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>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
153 vmmc-supply = <&vcc_emmc>;
154 vqmmc-supply = <&vcc_emmc>;
159 clock-frequency = <400000>;
163 compatible = "asahi-kasei,ak8975";
165 interrupt-parent = <&gpio4>;
166 interrupts = <RK_PC1 IRQ_TYPE_EDGE_RISING>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&comp_int>;
171 mma8452: mma8452@1d {
172 compatible = "fsl,mma8452";
174 interrupt-parent = <&gpio4>;
175 interrupts = <RK_PC0 IRQ_TYPE_EDGE_RISING>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&gsensor_int>;
182 clock-frequency = <400000>;
187 interrupt-parent = <&gpio6>;
188 interrupts = <RK_PA4 IRQ_TYPE_EDGE_RISING>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&pmic_int>, <&pwr_hold>;
192 vcc1-supply = <&vsys>;
193 vcc2-supply = <&vsys>;
194 vcc3-supply = <&vsys>;
195 vcc4-supply = <&vsys>;
196 vcc5-supply = <&vcc_io>;
197 vcc6-supply = <&vcc_io>;
198 vcc7-supply = <&vsys>;
199 vccio-supply = <&vsys>;
202 vcc_rtc: regulator@0 {
203 regulator-name = "vcc_rtc";
207 vcc_io: regulator@1 {
208 regulator-name = "vcc_io";
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
214 vdd_arm: regulator@2 {
215 regulator-name = "vdd_arm";
216 regulator-min-microvolt = <600000>;
217 regulator-max-microvolt = <1500000>;
222 vcc_ddr: regulator@3 {
223 regulator-name = "vcc_ddr";
224 regulator-min-microvolt = <600000>;
225 regulator-max-microvolt = <1500000>;
231 regulator-name = "vcc18";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
237 vdd_11: regulator@6 {
238 regulator-name = "vdd_11";
239 regulator-min-microvolt = <1100000>;
240 regulator-max-microvolt = <1100000>;
244 vcc_25: regulator@7 {
245 regulator-name = "vcc_25";
246 regulator-min-microvolt = <2500000>;
247 regulator-max-microvolt = <2500000>;
251 vccio_wl: regulator@8 {
252 regulator-name = "vccio_wl";
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <1800000>;
257 vcc25_hdmi: regulator@9 {
258 regulator-name = "vcc25_hdmi";
259 regulator-min-microvolt = <2500000>;
260 regulator-max-microvolt = <2500000>;
263 vcca_33: regulator@10 {
264 regulator-name = "vcca_33";
265 regulator-min-microvolt = <3300000>;
266 regulator-max-microvolt = <3300000>;
269 vcc_rmii: regulator@11 {
270 regulator-name = "vcc_rmii";
271 regulator-min-microvolt = <3300000>;
272 regulator-max-microvolt = <3300000>;
275 vcc28_cif: regulator@12 {
276 regulator-name = "vcc28_cif";
277 regulator-min-microvolt = <2800000>;
278 regulator-max-microvolt = <2800000>;
284 #include "tps65910.dtsi"
301 pinctrl-names = "default";
302 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
303 vmmc-supply = <&vcc_sd>;
312 pinctrl-names = "default";
313 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
314 vmmc-supply = <&vccio_wl>;
319 pcfg_output_high: pcfg-output-high {
325 rockchip,pins = <4 RK_PC1 RK_FUNC_GPIO &pcfg_pull_default>;
331 rockchip,pins = <1 RK_PD6 RK_FUNC_GPIO &pcfg_output_high>;
337 rockchip,pins = <6 RK_PA1 RK_FUNC_GPIO &pcfg_pull_default>;
343 rockchip,pins = <6 RK_PA2 RK_FUNC_GPIO &pcfg_pull_default>;
348 gsensor_int: gsensor-int {
349 rockchip,pins = <4 RK_PC0 RK_FUNC_GPIO &pcfg_pull_default>;
354 sdmmc_pwr: sdmmc-pwr {
355 rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
361 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
365 rockchip,pins = <1 RK_PD7 RK_FUNC_GPIO &pcfg_output_high>;
369 rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_default>;
372 sata_reset: sata-reset {
373 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_output_high>;
379 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
385 rockchip,pins = <6 RK_PA4 RK_FUNC_GPIO &pcfg_pull_default>;
389 rockchip,pins = <6 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
407 vref-supply = <&vcc_25>;
416 pinctrl-names = "default";
417 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
426 pinctrl-names = "default";
427 pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
432 pinctrl-names = "default";
433 pinctrl-0 = <&hub_rst>, <&sata_reset>;