2 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "rk3066a.dtsi"
47 model = "Rayeager PX2";
48 compatible = "chipspark,rayeager-px2", "rockchip,rk3066a";
51 device_type = "memory";
52 reg = <0x60000000 0x40000000>;
56 compatible = "gpio-ir-receiver";
57 gpios = <&gpio6 1 GPIO_ACTIVE_LOW>;
58 pinctrl-names = "default";
59 pinctrl-0 = <&ir_int>;
63 compatible = "gpio-keys";
69 gpios = <&gpio6 2 GPIO_ACTIVE_LOW>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&pwr_key>;
78 compatible = "pwm-regulator";
79 pwms = <&pwm3 0 1000>;
80 regulator-name = "vdd_log";
81 regulator-min-microvolt = <1200000>;
82 regulator-max-microvolt = <1200000>;
84 voltage-table = <1000000 100>,
89 vsys: vsys-regulator {
90 compatible = "regulator-fixed";
91 regulator-name = "vsys";
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
98 /* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
99 vcc_stdby: 5v-stdby-regulator {
100 compatible = "regulator-fixed";
101 regulator-name = "5v_stdby";
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
108 vcc_emmc: emmc-regulator {
109 compatible = "regulator-fixed";
110 regulator-name = "emmc_vccq";
111 regulator-min-microvolt = <3000000>;
112 regulator-max-microvolt = <3000000>;
113 vin-supply = <&vsys>;
116 vcc_sata: sata-regulator {
117 compatible = "regulator-fixed";
119 gpio = <&gpio4 22 GPIO_ACTIVE_HIGH>;
120 pinctrl-names = "default";
121 pinctrl-0 = <&sata_pwr>;
122 regulator-name = "usb_5v";
123 regulator-min-microvolt = <5000000>;
124 regulator-max-microvolt = <5000000>;
126 vin-supply = <&vcc_stdby>;
129 vcc_sd: sdmmc-regulator {
130 compatible = "regulator-fixed";
131 gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&sdmmc_pwr>;
134 regulator-name = "vcc_sd";
135 regulator-min-microvolt = <3300000>;
136 regulator-max-microvolt = <3300000>;
137 startup-delay-us = <100000>;
138 vin-supply = <&vcc_io>;
141 vcc_host: usb-host-regulator {
142 compatible = "regulator-fixed";
144 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&host_drv>;
147 regulator-name = "host-pwr";
148 regulator-min-microvolt = <5000000>;
149 regulator-max-microvolt = <5000000>;
151 vin-supply = <&vcc_stdby>;
154 vcc_otg: usb-otg-regulator {
155 compatible = "regulator-fixed";
157 gpio = <&gpio0 5 GPIO_ACTIVE_HIGH>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&otg_drv>;
160 regulator-name = "vcc_otg";
161 regulator-min-microvolt = <5000000>;
162 regulator-max-microvolt = <5000000>;
164 vin-supply = <&vcc_stdby>;
169 cpu0-supply = <&vdd_arm>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
176 phy-supply = <&vcc_rmii>;
179 phy0: ethernet-phy@0 {
191 pinctrl-names = "default";
192 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
193 vmmc-supply = <&vcc_emmc>;
194 vqmmc-supply = <&vcc_emmc>;
199 clock-frequency = <400000>;
203 compatible = "asahi-kasei,ak8975";
205 interrupt-parent = <&gpio4>;
206 interrupts = <17 IRQ_TYPE_EDGE_RISING>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&comp_int>;
211 mma8452: mma8452@1d {
212 compatible = "fsl,mma8452";
214 interrupt-parent = <&gpio4>;
215 interrupts = <16 IRQ_TYPE_EDGE_RISING>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&gsensor_int>;
222 clock-frequency = <400000>;
227 interrupt-parent = <&gpio6>;
228 interrupts = <4 IRQ_TYPE_EDGE_RISING>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&pmic_int>, <&pwr_hold>;
232 vcc1-supply = <&vsys>;
233 vcc2-supply = <&vsys>;
234 vcc3-supply = <&vsys>;
235 vcc4-supply = <&vsys>;
236 vcc5-supply = <&vcc_io>;
237 vcc6-supply = <&vcc_io>;
238 vcc7-supply = <&vsys>;
239 vccio-supply = <&vsys>;
242 vcc_rtc: regulator@0 {
243 regulator-name = "vcc_rtc";
247 vcc_io: regulator@1 {
248 regulator-name = "vcc_io";
249 regulator-min-microvolt = <3300000>;
250 regulator-max-microvolt = <3300000>;
254 vdd_arm: regulator@2 {
255 regulator-name = "vdd_arm";
256 regulator-min-microvolt = <600000>;
257 regulator-max-microvolt = <1500000>;
262 vcc_ddr: regulator@3 {
263 regulator-name = "vcc_ddr";
264 regulator-min-microvolt = <600000>;
265 regulator-max-microvolt = <1500000>;
271 regulator-name = "vcc18";
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
277 vdd_11: regulator@6 {
278 regulator-name = "vdd_11";
279 regulator-min-microvolt = <1100000>;
280 regulator-max-microvolt = <1100000>;
284 vcc_25: regulator@7 {
285 regulator-name = "vcc_25";
286 regulator-min-microvolt = <2500000>;
287 regulator-max-microvolt = <2500000>;
291 vccio_wl: regulator@8 {
292 regulator-name = "vccio_wl";
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
297 vcc25_hdmi: regulator@9 {
298 regulator-name = "vcc25_hdmi";
299 regulator-min-microvolt = <2500000>;
300 regulator-max-microvolt = <2500000>;
303 vcca_33: regulator@10 {
304 regulator-name = "vcca_33";
305 regulator-min-microvolt = <3300000>;
306 regulator-max-microvolt = <3300000>;
309 vcc_rmii: regulator@11 {
310 regulator-name = "vcc_rmii";
311 regulator-min-microvolt = <3300000>;
312 regulator-max-microvolt = <3300000>;
315 vcc28_cif: regulator@12 {
316 regulator-name = "vcc28_cif";
317 regulator-min-microvolt = <2800000>;
318 regulator-max-microvolt = <2800000>;
324 #include "tps65910.dtsi"
342 pinctrl-names = "default";
343 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
344 vmmc-supply = <&vcc_sd>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
358 vmmc-supply = <&vccio_wl>;
363 pcfg_output_high: pcfg-output-high {
369 rockchip,pins = <4 17 RK_FUNC_GPIO &pcfg_pull_default>;
375 rockchip,pins = <1 30 RK_FUNC_GPIO &pcfg_output_high>;
381 rockchip,pins = <6 1 RK_FUNC_GPIO &pcfg_pull_default>;
387 rockchip,pins = <6 2 RK_FUNC_GPIO &pcfg_pull_default>;
392 gsensor_int: gsensor-int {
393 rockchip,pins = <4 16 RK_FUNC_GPIO &pcfg_pull_default>;
398 sdmmc_pwr: sdmmc-pwr {
399 rockchip,pins = <3 7 RK_FUNC_GPIO &pcfg_pull_default>;
405 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_default>;
409 rockchip,pins = <1 31 RK_FUNC_GPIO &pcfg_output_high>;
413 rockchip,pins = <4 22 RK_FUNC_GPIO &pcfg_pull_default>;
416 sata_reset: sata-reset {
417 rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_output_high>;
423 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_default>;
429 rockchip,pins = <6 4 RK_FUNC_GPIO &pcfg_pull_default>;
433 rockchip,pins = <6 8 RK_FUNC_GPIO &pcfg_output_high>;
451 vref-supply = <&vcc_25>;
460 pinctrl-names = "default";
461 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
470 pinctrl-names = "default";
471 pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
476 pinctrl-names = "default";
477 pinctrl-0 = <&hub_rst>, <&sata_reset>;