1 // SPDX-License-Identifier: GPL-2.0 OR MIT
3 * Copyright 2019 Ondrej Jirman <megous@megous.com>
7 #include "sun5i-a13.dtsi"
8 #include "sunxi-common-regulators.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/pwm/pwm.h>
15 model = "PocketBook Touch Lux 3";
16 compatible = "pocketbook,touch-lux-3", "allwinner,sun5i-a13";
26 compatible = "pwm-backlight";
27 pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
28 enable-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
29 brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
30 default-brightness-level = <8>;
34 stdout-path = "serial0:115200n8";
38 compatible = "gpio-leds";
41 gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
47 compatible = "gpio-keys";
53 linux,code = <KEY_RIGHT>;
54 gpios = <&pio 6 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PG9 */
59 linux,code = <KEY_LEFT>;
60 gpios = <&pio 6 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PG10 */
64 reg_1v8: regulator-1v8 {
65 compatible = "regulator-fixed";
66 regulator-name = "vdd-1v8-nor-ctp";
67 regulator-min-microvolt = <1800000>;
68 regulator-max-microvolt = <1800000>;
69 gpio = <&pio 2 15 GPIO_ACTIVE_HIGH>;
73 reg_1v8_nor: regulator-nor {
74 compatible = "regulator-fixed";
75 regulator-name = "vdd-nor";
76 regulator-min-microvolt = <1800000>;
77 regulator-max-microvolt = <1800000>;
78 gpio = <&pio 2 14 GPIO_ACTIVE_HIGH>;
80 vin-supply = <®_1v8>;
84 reg_1v8_ctp: regulator-ctp {
85 compatible = "regulator-fixed";
86 regulator-name = "vdd-ctp";
87 regulator-min-microvolt = <1800000>;
88 regulator-max-microvolt = <1800000>;
89 gpio = <&pio 2 13 GPIO_ACTIVE_HIGH>;
91 vin-supply = <®_1v8>;
94 reg_3v3_mmc0: regulator-mmc0 {
95 compatible = "regulator-fixed";
96 regulator-name = "vdd-mmc0";
97 regulator-min-microvolt = <3300000>;
98 regulator-max-microvolt = <3300000>;
99 gpio = <&pio 4 4 GPIO_ACTIVE_LOW>; /* PE4 */
100 vin-supply = <®_vcc3v3>;
105 cpu-supply = <®_dcdc2>;
121 #include "axp209.dtsi"
127 compatible = "nxp,pcf8563";
135 /* Touchpanel is connected here. */
139 vref-supply = <®_ldo2>;
144 linux,code = <KEY_HOME>;
151 linux,code = <KEY_MENU>;
158 vmmc-supply = <®_3v3_mmc0>;
160 cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
165 pinctrl-names = "default";
166 pinctrl-0 = <&mmc2_4bit_pc_pins>;
167 vmmc-supply = <®_vcc3v3>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&pwm0_pin>;
189 regulator-min-microvolt = <1000000>;
190 regulator-max-microvolt = <1400000>;
191 regulator-name = "vdd-cpu";
196 regulator-min-microvolt = <1200000>;
197 regulator-max-microvolt = <1200000>;
198 regulator-name = "vdd-int-pll";
202 regulator-name = "vdd-rtc";
207 regulator-min-microvolt = <3000000>;
208 regulator-max-microvolt = <3000000>;
209 regulator-name = "avcc";
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
215 regulator-name = "vcc-wifi";
216 /* We need this otherwise the LDO3 would overload */
217 regulator-soft-start;
218 regulator-ramp-delay = <1600>;
222 pinctrl-names = "default";
223 pinctrl-0 = <&spi2_pe_pins>, <&spi2_cs0_pe_pin>;
227 #address-cells = <1>;
229 compatible = "macronix,mx25u4033", "jedec,spi-nor";
231 spi-max-frequency = <4000000>;
236 pinctrl-names = "default";
237 pinctrl-0 = <&uart1_pg_pins>;
242 dr_mode = "peripheral";
246 &battery_power_supply {
255 usb1_vbus-supply = <®_ldo3>;