1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2020 Pascal Roeleven <dev@pascalroeleven.nl>
7 #include "sun4i-a10.dtsi"
8 #include "sunxi-common-regulators.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include <dt-bindings/pwm/pwm.h>
16 model = "Topwise A721";
17 compatible = "topwise,a721", "allwinner,sun4i-a10";
23 backlight: backlight {
24 compatible = "pwm-backlight";
25 pwms = <&pwm 0 100000 PWM_POLARITY_INVERTED>;
26 power-supply = <®_vbat>;
27 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
28 brightness-levels = <0 30 40 50 60 70 80 90 100>;
29 default-brightness-level = <8>;
33 stdout-path = "serial0:115200n8";
37 compatible = "starry,kr070pe2t";
38 backlight = <&backlight>;
39 power-supply = <®_lcd_power>;
42 panel_input: endpoint {
43 remote-endpoint = <&tcon0_out_panel>;
48 reg_lcd_power: reg-lcd-power {
49 compatible = "regulator-fixed";
50 regulator-name = "reg-lcd-power";
51 gpio = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
56 compatible = "regulator-fixed";
57 regulator-name = "vbat";
58 regulator-min-microvolt = <3700000>;
59 regulator-max-microvolt = <3700000>;
69 cpu-supply = <®_dcdc2>;
93 #include "axp209.dtsi"
99 &battery_power_supply {
107 compatible = "fsl,mma7660";
116 compatible = "edt,edt-ft5406";
118 interrupt-parent = <&pio>;
119 interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
120 touchscreen-size-x = <800>;
121 touchscreen-size-y = <480>;
122 vcc-supply = <®_vcc3v3>;
127 vref-supply = <®_ldo2>;
132 linux,code = <KEY_VOLUMEUP>;
138 label = "Volume Down";
139 linux,code = <KEY_VOLUMEDOWN>;
146 vmmc-supply = <®_vcc3v3>;
148 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH01 */
165 vcc-pb-supply = <®_vcc3v3>;
166 vcc-pf-supply = <®_vcc3v3>;
167 vcc-ph-supply = <®_vcc3v3>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&pwm0_pin>;
178 regulator-min-microvolt = <1000000>;
179 regulator-max-microvolt = <1400000>;
180 regulator-name = "vdd-cpu";
185 regulator-min-microvolt = <1250000>;
186 regulator-max-microvolt = <1250000>;
187 regulator-name = "vdd-int-dll";
191 regulator-name = "vdd-rtc";
196 regulator-min-microvolt = <3000000>;
197 regulator-max-microvolt = <3000000>;
198 regulator-name = "avcc";
214 tcon0_out_panel: endpoint@0 {
216 remote-endpoint = <&panel_input>;
221 pinctrl-names = "default";
222 pinctrl-0 = <&uart0_pb_pins>;
236 usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
237 usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
238 usb0_vbus-supply = <®_usb0_vbus>;
239 usb1_vbus-supply = <®_usb1_vbus>;
240 usb2_vbus-supply = <®_usb2_vbus>;