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";
21 device_type = "memory";
22 reg = <0x60000000 0x40000000>;
26 compatible = "gpio-ir-receiver";
27 gpios = <&gpio6 RK_PA1 GPIO_ACTIVE_LOW>;
28 pinctrl-names = "default";
29 pinctrl-0 = <&ir_int>;
33 compatible = "gpio-keys";
37 gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_POWER>;
40 pinctrl-names = "default";
41 pinctrl-0 = <&pwr_key>;
46 compatible = "pwm-regulator";
47 pwms = <&pwm3 0 1000>;
48 regulator-name = "vdd_log";
49 regulator-min-microvolt = <1200000>;
50 regulator-max-microvolt = <1200000>;
52 voltage-table = <1000000 100>,
57 vsys: vsys-regulator {
58 compatible = "regulator-fixed";
59 regulator-name = "vsys";
60 regulator-min-microvolt = <5000000>;
61 regulator-max-microvolt = <5000000>;
66 /* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
67 vcc_stdby: stdby-regulator {
68 compatible = "regulator-fixed";
69 regulator-name = "5v_stdby";
70 regulator-min-microvolt = <5000000>;
71 regulator-max-microvolt = <5000000>;
76 vcc_emmc: emmc-regulator {
77 compatible = "regulator-fixed";
78 regulator-name = "emmc_vccq";
79 regulator-min-microvolt = <3000000>;
80 regulator-max-microvolt = <3000000>;
84 vcc_sata: sata-regulator {
85 compatible = "regulator-fixed";
87 gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&sata_pwr>;
90 regulator-name = "usb_5v";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
94 vin-supply = <&vcc_stdby>;
97 vcc_sd: sdmmc-regulator {
98 compatible = "regulator-fixed";
99 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&sdmmc_pwr>;
102 regulator-name = "vcc_sd";
103 regulator-min-microvolt = <3300000>;
104 regulator-max-microvolt = <3300000>;
105 startup-delay-us = <100000>;
106 vin-supply = <&vcc_io>;
109 vcc_host: usb-host-regulator {
110 compatible = "regulator-fixed";
112 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&host_drv>;
115 regulator-name = "host-pwr";
116 regulator-min-microvolt = <5000000>;
117 regulator-max-microvolt = <5000000>;
119 vin-supply = <&vcc_stdby>;
122 vcc_otg: usb-otg-regulator {
123 compatible = "regulator-fixed";
125 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&otg_drv>;
128 regulator-name = "vcc_otg";
129 regulator-min-microvolt = <5000000>;
130 regulator-max-microvolt = <5000000>;
132 vin-supply = <&vcc_stdby>;
137 cpu-supply = <&vdd_arm>;
141 cpu-supply = <&vdd_arm>;
146 phy-supply = <&vcc_rmii>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
152 #address-cells = <1>;
155 phy0: ethernet-phy@0 {
157 reset-gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>;
166 pinctrl-names = "default";
167 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
168 vmmc-supply = <&vcc_emmc>;
169 vqmmc-supply = <&vcc_emmc>;
174 clock-frequency = <400000>;
178 compatible = "asahi-kasei,ak8975";
180 interrupt-parent = <&gpio4>;
181 interrupts = <RK_PC1 IRQ_TYPE_EDGE_RISING>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&comp_int>;
186 mma8452: mma8452@1d {
187 compatible = "fsl,mma8452";
189 interrupt-parent = <&gpio4>;
190 interrupts = <RK_PC0 IRQ_TYPE_EDGE_RISING>;
191 pinctrl-names = "default";
192 pinctrl-0 = <&gsensor_int>;
197 clock-frequency = <400000>;
202 interrupt-parent = <&gpio6>;
203 interrupts = <RK_PA4 IRQ_TYPE_EDGE_RISING>;
204 pinctrl-names = "default";
205 pinctrl-0 = <&pmic_int>, <&pwr_hold>;
207 vcc1-supply = <&vsys>;
208 vcc2-supply = <&vsys>;
209 vcc3-supply = <&vsys>;
210 vcc4-supply = <&vsys>;
211 vcc5-supply = <&vcc_io>;
212 vcc6-supply = <&vcc_io>;
213 vcc7-supply = <&vsys>;
214 vccio-supply = <&vsys>;
217 vcc_rtc: regulator@0 {
218 regulator-name = "vcc_rtc";
222 vcc_io: regulator@1 {
223 regulator-name = "vcc_io";
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
229 vdd_arm: regulator@2 {
230 regulator-name = "vdd_arm";
231 regulator-min-microvolt = <600000>;
232 regulator-max-microvolt = <1500000>;
237 vcc_ddr: regulator@3 {
238 regulator-name = "vcc_ddr";
239 regulator-min-microvolt = <600000>;
240 regulator-max-microvolt = <1500000>;
246 regulator-name = "vcc18";
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
252 vdd_11: regulator@6 {
253 regulator-name = "vdd_11";
254 regulator-min-microvolt = <1100000>;
255 regulator-max-microvolt = <1100000>;
259 vcc_25: regulator@7 {
260 regulator-name = "vcc_25";
261 regulator-min-microvolt = <2500000>;
262 regulator-max-microvolt = <2500000>;
266 vccio_wl: regulator@8 {
267 regulator-name = "vccio_wl";
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
272 vcc25_hdmi: regulator@9 {
273 regulator-name = "vcc25_hdmi";
274 regulator-min-microvolt = <2500000>;
275 regulator-max-microvolt = <2500000>;
278 vcca_33: regulator@10 {
279 regulator-name = "vcca_33";
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3300000>;
284 vcc_rmii: regulator@11 {
285 regulator-name = "vcc_rmii";
286 regulator-min-microvolt = <3300000>;
287 regulator-max-microvolt = <3300000>;
290 vcc28_cif: regulator@12 {
291 regulator-name = "vcc28_cif";
292 regulator-min-microvolt = <2800000>;
293 regulator-max-microvolt = <2800000>;
299 #include "tps65910.dtsi"
316 pinctrl-names = "default";
317 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
318 vmmc-supply = <&vcc_sd>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
329 vmmc-supply = <&vccio_wl>;
334 pcfg_output_high: pcfg-output-high {
340 rockchip,pins = <4 RK_PC1 RK_FUNC_GPIO &pcfg_pull_default>;
346 rockchip,pins = <1 RK_PD6 RK_FUNC_GPIO &pcfg_output_high>;
352 rockchip,pins = <6 RK_PA1 RK_FUNC_GPIO &pcfg_pull_default>;
358 rockchip,pins = <6 RK_PA2 RK_FUNC_GPIO &pcfg_pull_default>;
363 gsensor_int: gsensor-int {
364 rockchip,pins = <4 RK_PC0 RK_FUNC_GPIO &pcfg_pull_default>;
369 sdmmc_pwr: sdmmc-pwr {
370 rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
376 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
380 rockchip,pins = <1 RK_PD7 RK_FUNC_GPIO &pcfg_output_high>;
384 rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_default>;
387 sata_reset: sata-reset {
388 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_output_high>;
394 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
400 rockchip,pins = <6 RK_PA4 RK_FUNC_GPIO &pcfg_pull_default>;
404 rockchip,pins = <6 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
422 vref-supply = <&vcc_25>;
431 pinctrl-names = "default";
432 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
441 pinctrl-names = "default";
442 pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
447 pinctrl-names = "default";
448 pinctrl-0 = <&hub_rst>, <&sata_reset>;