1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/pwm/pwm.h>
9 device_type = "memory";
10 reg = <0x0 0x0 0x0 0x80000000>;
14 compatible = "adc-keys";
15 io-channels = <&saradc 1>;
16 io-channel-names = "buttons";
17 keyup-threshold-microvolt = <1800000>;
21 linux,code = <KEY_VOLUMEUP>;
22 press-threshold-microvolt = <100000>;
26 label = "Volume Down";
27 linux,code = <KEY_VOLUMEDOWN>;
28 press-threshold-microvolt = <300000>;
33 linux,code = <KEY_MENU>;
34 press-threshold-microvolt = <640000>;
39 linux,code = <KEY_ESC>;
40 press-threshold-microvolt = <1000000>;
45 linux,code = <KEY_HOME>;
46 press-threshold-microvolt = <1300000>;
50 backlight: backlight {
51 compatible = "pwm-backlight";
55 16 17 18 19 20 21 22 23
56 24 25 26 27 28 29 30 31
57 32 33 34 35 36 37 38 39
58 40 41 42 43 44 45 46 47
59 48 49 50 51 52 53 54 55
60 56 57 58 59 60 61 62 63
61 64 65 66 67 68 69 70 71
62 72 73 74 75 76 77 78 79
63 80 81 82 83 84 85 86 87
64 88 89 90 91 92 93 94 95
65 96 97 98 99 100 101 102 103
66 104 105 106 107 108 109 110 111
67 112 113 114 115 116 117 118 119
68 120 121 122 123 124 125 126 127
69 128 129 130 131 132 133 134 135
70 136 137 138 139 140 141 142 143
71 144 145 146 147 148 149 150 151
72 152 153 154 155 156 157 158 159
73 160 161 162 163 164 165 166 167
74 168 169 170 171 172 173 174 175
75 176 177 178 179 180 181 182 183
76 184 185 186 187 188 189 190 191
77 192 193 194 195 196 197 198 199
78 200 201 202 203 204 205 206 207
79 208 209 210 211 212 213 214 215
80 216 217 218 219 220 221 222 223
81 224 225 226 227 228 229 230 231
82 232 233 234 235 236 237 238 239
83 240 241 242 243 244 245 246 247
84 248 249 250 251 252 253 254 255>;
85 default-brightness-level = <128>;
86 enable-gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
87 pinctrl-names = "default";
89 pwms = <&pwm0 0 1000000 PWM_POLARITY_INVERTED>;
92 ext_gmac: external-gmac-clock {
93 compatible = "fixed-clock";
94 clock-frequency = <125000000>;
95 clock-output-names = "ext_gmac";
100 compatible = "lg,lp079qx1-sp0v";
101 backlight = <&backlight>;
102 enable-gpios = <&gpio7 RK_PA4 GPIO_ACTIVE_HIGH>;
103 pinctrl-0 = <&lcd_cs>;
107 panel_in_edp: endpoint {
108 remote-endpoint = <&edp_out_panel>;
115 compatible = "gpio-keys";
118 pinctrl-names = "default";
119 pinctrl-0 = <&pwrbtn>;
122 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
123 linux,code = <KEY_POWER>;
124 label = "GPIO Key Power";
125 linux,input-type = <1>;
127 debounce-interval = <100>;
131 /* This turns on USB vbus for both host0 (ehci) and host1 (dwc2) */
132 vcc_host: vcc-host-regulator {
133 compatible = "regulator-fixed";
135 gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&host_vbus_drv>;
138 regulator-name = "vcc_host";
143 vcc_phy: vcc-phy-regulator {
144 compatible = "regulator-fixed";
146 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
147 pinctrl-names = "default";
148 pinctrl-0 = <ð_phy_pwr>;
149 regulator-name = "vcc_phy";
150 regulator-min-microvolt = <3300000>;
151 regulator-max-microvolt = <3300000>;
156 vcc_sys: vsys-regulator {
157 compatible = "regulator-fixed";
158 regulator-name = "vcc_sys";
159 regulator-min-microvolt = <5000000>;
160 regulator-max-microvolt = <5000000>;
166 * NOTE: vcc_sd isn't hooked up on v1.0 boards where power comes from
167 * vcc_io directly. Those boards won't be able to power cycle SD cards
168 * but it shouldn't hurt to toggle this pin there anyway.
170 vcc_sd: sdmmc-regulator {
171 compatible = "regulator-fixed";
172 gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&sdmmc_pwr>;
175 regulator-name = "vcc_sd";
176 regulator-min-microvolt = <3300000>;
177 regulator-max-microvolt = <3300000>;
178 startup-delay-us = <100000>;
179 vin-supply = <&vcc_io>;
184 cpu0-supply = <&vdd_cpu>;
194 #address-cells = <1>;
197 edp_out_panel: endpoint@0 {
199 remote-endpoint = <&panel_in_edp>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
220 vref-supply = <&vcc_18>;
228 card-detect-delay = <200>;
229 disable-wp; /* wp not hooked up */
230 pinctrl-names = "default";
231 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
233 vmmc-supply = <&vcc_sd>;
234 vqmmc-supply = <&vccio_sd>;
238 phy-supply = <&vcc_phy>;
240 clock_in_out = "input";
241 snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
242 snps,reset-active-low;
243 snps,reset-delays-us = <0 10000 1000000>;
244 assigned-clocks = <&cru SCLK_MAC>;
245 assigned-clock-parents = <&ext_gmac>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&rgmii_pins>;
254 mali-supply = <&vdd_gpu>;
259 ddc-i2c-bus = <&i2c5>;
300 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
301 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
306 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
307 drive-strength = <8>;
310 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
312 drive-strength = <8>;
317 rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
323 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
329 rockchip,pins = <7 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
335 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
341 * Default drive strength isn't enough to achieve even
342 * high-speed mode on EVB board so bump up to 8ma.
344 sdmmc_bus4: sdmmc-bus4 {
345 rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up_drv_8ma>,
346 <6 RK_PC1 1 &pcfg_pull_up_drv_8ma>,
347 <6 RK_PC2 1 &pcfg_pull_up_drv_8ma>,
348 <6 RK_PC3 1 &pcfg_pull_up_drv_8ma>;
351 sdmmc_clk: sdmmc-clk {
352 rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>;
355 sdmmc_cmd: sdmmc-cmd {
356 rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>;
359 sdmmc_pwr: sdmmc-pwr {
360 rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
365 host_vbus_drv: host-vbus-drv {
366 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
371 eth_phy_pwr: eth-phy-pwr {
372 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;