1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
7 #include <dt-bindings/input/input.h>
8 #include "rk3066a.dtsi"
11 model = "Rayeager PX2";
12 compatible = "chipspark,rayeager-px2", "rockchip,rk3066a";
15 device_type = "memory";
16 reg = <0x60000000 0x40000000>;
20 compatible = "gpio-ir-receiver";
21 gpios = <&gpio6 RK_PA1 GPIO_ACTIVE_LOW>;
22 pinctrl-names = "default";
23 pinctrl-0 = <&ir_int>;
27 compatible = "gpio-keys";
31 gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_POWER>;
34 pinctrl-names = "default";
35 pinctrl-0 = <&pwr_key>;
40 compatible = "pwm-regulator";
41 pwms = <&pwm3 0 1000>;
42 regulator-name = "vdd_log";
43 regulator-min-microvolt = <1200000>;
44 regulator-max-microvolt = <1200000>;
46 voltage-table = <1000000 100>,
51 vsys: vsys-regulator {
52 compatible = "regulator-fixed";
53 regulator-name = "vsys";
54 regulator-min-microvolt = <5000000>;
55 regulator-max-microvolt = <5000000>;
60 /* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
61 vcc_stdby: 5v-stdby-regulator {
62 compatible = "regulator-fixed";
63 regulator-name = "5v_stdby";
64 regulator-min-microvolt = <5000000>;
65 regulator-max-microvolt = <5000000>;
70 vcc_emmc: emmc-regulator {
71 compatible = "regulator-fixed";
72 regulator-name = "emmc_vccq";
73 regulator-min-microvolt = <3000000>;
74 regulator-max-microvolt = <3000000>;
78 vcc_sata: sata-regulator {
79 compatible = "regulator-fixed";
81 gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&sata_pwr>;
84 regulator-name = "usb_5v";
85 regulator-min-microvolt = <5000000>;
86 regulator-max-microvolt = <5000000>;
88 vin-supply = <&vcc_stdby>;
91 vcc_sd: sdmmc-regulator {
92 compatible = "regulator-fixed";
93 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&sdmmc_pwr>;
96 regulator-name = "vcc_sd";
97 regulator-min-microvolt = <3300000>;
98 regulator-max-microvolt = <3300000>;
99 startup-delay-us = <100000>;
100 vin-supply = <&vcc_io>;
103 vcc_host: usb-host-regulator {
104 compatible = "regulator-fixed";
106 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&host_drv>;
109 regulator-name = "host-pwr";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
113 vin-supply = <&vcc_stdby>;
116 vcc_otg: usb-otg-regulator {
117 compatible = "regulator-fixed";
119 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
120 pinctrl-names = "default";
121 pinctrl-0 = <&otg_drv>;
122 regulator-name = "vcc_otg";
123 regulator-min-microvolt = <5000000>;
124 regulator-max-microvolt = <5000000>;
126 vin-supply = <&vcc_stdby>;
131 cpu0-supply = <&vdd_arm>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
138 phy-supply = <&vcc_rmii>;
141 phy0: ethernet-phy@0 {
143 reset-gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
154 vmmc-supply = <&vcc_emmc>;
155 vqmmc-supply = <&vcc_emmc>;
160 clock-frequency = <400000>;
164 compatible = "asahi-kasei,ak8975";
166 interrupt-parent = <&gpio4>;
167 interrupts = <RK_PC1 IRQ_TYPE_EDGE_RISING>;
168 pinctrl-names = "default";
169 pinctrl-0 = <&comp_int>;
172 mma8452: mma8452@1d {
173 compatible = "fsl,mma8452";
175 interrupt-parent = <&gpio4>;
176 interrupts = <RK_PC0 IRQ_TYPE_EDGE_RISING>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&gsensor_int>;
183 clock-frequency = <400000>;
188 interrupt-parent = <&gpio6>;
189 interrupts = <RK_PA4 IRQ_TYPE_EDGE_RISING>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&pmic_int>, <&pwr_hold>;
193 vcc1-supply = <&vsys>;
194 vcc2-supply = <&vsys>;
195 vcc3-supply = <&vsys>;
196 vcc4-supply = <&vsys>;
197 vcc5-supply = <&vcc_io>;
198 vcc6-supply = <&vcc_io>;
199 vcc7-supply = <&vsys>;
200 vccio-supply = <&vsys>;
203 vcc_rtc: regulator@0 {
204 regulator-name = "vcc_rtc";
208 vcc_io: regulator@1 {
209 regulator-name = "vcc_io";
210 regulator-min-microvolt = <3300000>;
211 regulator-max-microvolt = <3300000>;
215 vdd_arm: regulator@2 {
216 regulator-name = "vdd_arm";
217 regulator-min-microvolt = <600000>;
218 regulator-max-microvolt = <1500000>;
223 vcc_ddr: regulator@3 {
224 regulator-name = "vcc_ddr";
225 regulator-min-microvolt = <600000>;
226 regulator-max-microvolt = <1500000>;
232 regulator-name = "vcc18";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
238 vdd_11: regulator@6 {
239 regulator-name = "vdd_11";
240 regulator-min-microvolt = <1100000>;
241 regulator-max-microvolt = <1100000>;
245 vcc_25: regulator@7 {
246 regulator-name = "vcc_25";
247 regulator-min-microvolt = <2500000>;
248 regulator-max-microvolt = <2500000>;
252 vccio_wl: regulator@8 {
253 regulator-name = "vccio_wl";
254 regulator-min-microvolt = <1800000>;
255 regulator-max-microvolt = <1800000>;
258 vcc25_hdmi: regulator@9 {
259 regulator-name = "vcc25_hdmi";
260 regulator-min-microvolt = <2500000>;
261 regulator-max-microvolt = <2500000>;
264 vcca_33: regulator@10 {
265 regulator-name = "vcca_33";
266 regulator-min-microvolt = <3300000>;
267 regulator-max-microvolt = <3300000>;
270 vcc_rmii: regulator@11 {
271 regulator-name = "vcc_rmii";
272 regulator-min-microvolt = <3300000>;
273 regulator-max-microvolt = <3300000>;
276 vcc28_cif: regulator@12 {
277 regulator-name = "vcc28_cif";
278 regulator-min-microvolt = <2800000>;
279 regulator-max-microvolt = <2800000>;
285 #include "tps65910.dtsi"
302 pinctrl-names = "default";
303 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
304 vmmc-supply = <&vcc_sd>;
314 pinctrl-names = "default";
315 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
316 vmmc-supply = <&vccio_wl>;
321 pcfg_output_high: pcfg-output-high {
327 rockchip,pins = <4 17 RK_FUNC_GPIO &pcfg_pull_default>;
333 rockchip,pins = <1 30 RK_FUNC_GPIO &pcfg_output_high>;
339 rockchip,pins = <6 1 RK_FUNC_GPIO &pcfg_pull_default>;
345 rockchip,pins = <6 2 RK_FUNC_GPIO &pcfg_pull_default>;
350 gsensor_int: gsensor-int {
351 rockchip,pins = <4 16 RK_FUNC_GPIO &pcfg_pull_default>;
356 sdmmc_pwr: sdmmc-pwr {
357 rockchip,pins = <3 7 RK_FUNC_GPIO &pcfg_pull_default>;
363 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_default>;
367 rockchip,pins = <1 31 RK_FUNC_GPIO &pcfg_output_high>;
371 rockchip,pins = <4 22 RK_FUNC_GPIO &pcfg_pull_default>;
374 sata_reset: sata-reset {
375 rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_output_high>;
381 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_default>;
387 rockchip,pins = <6 4 RK_FUNC_GPIO &pcfg_pull_default>;
391 rockchip,pins = <6 8 RK_FUNC_GPIO &pcfg_output_high>;
409 vref-supply = <&vcc_25>;
418 pinctrl-names = "default";
419 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
428 pinctrl-names = "default";
429 pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
434 pinctrl-names = "default";
435 pinctrl-0 = <&hub_rst>, <&sata_reset>;