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 reg = <0x60000000 0x40000000>;
55 compatible = "gpio-ir-receiver";
56 gpios = <&gpio6 1 GPIO_ACTIVE_LOW>;
57 pinctrl-names = "default";
58 pinctrl-0 = <&ir_int>;
62 compatible = "gpio-keys";
67 gpio-key,wakeup = <1>;
68 gpios = <&gpio6 2 GPIO_ACTIVE_LOW>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&pwr_key>;
76 vsys: vsys-regulator {
77 compatible = "regulator-fixed";
78 regulator-name = "vsys";
79 regulator-min-microvolt = <5000000>;
80 regulator-max-microvolt = <5000000>;
85 /* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
86 vcc_stdby: 5v-stdby-regulator {
87 compatible = "regulator-fixed";
88 regulator-name = "5v_stdby";
89 regulator-min-microvolt = <5000000>;
90 regulator-max-microvolt = <5000000>;
95 vcc_emmc: emmc-regulator {
96 compatible = "regulator-fixed";
97 regulator-name = "emmc_vccq";
98 regulator-min-microvolt = <3000000>;
99 regulator-max-microvolt = <3000000>;
100 vin-supply = <&vsys>;
103 vcc_sata: sata-regulator {
104 compatible = "regulator-fixed";
106 gpio = <&gpio4 22 GPIO_ACTIVE_HIGH>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&sata_pwr>;
109 regulator-name = "usb_5v";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
113 vin-supply = <&vcc_stdby>;
116 vcc_sd: sdmmc-regulator {
117 compatible = "regulator-fixed";
118 gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&sdmmc_pwr>;
121 regulator-name = "vcc_sd";
122 regulator-min-microvolt = <3300000>;
123 regulator-max-microvolt = <3300000>;
124 startup-delay-us = <100000>;
125 vin-supply = <&vcc_io>;
128 vcc_host: usb-host-regulator {
129 compatible = "regulator-fixed";
131 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&host_drv>;
134 regulator-name = "host-pwr";
135 regulator-min-microvolt = <5000000>;
136 regulator-max-microvolt = <5000000>;
138 vin-supply = <&vcc_stdby>;
141 vcc_otg: usb-otg-regulator {
142 compatible = "regulator-fixed";
144 gpio = <&gpio0 5 GPIO_ACTIVE_HIGH>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&otg_drv>;
147 regulator-name = "vcc_otg";
148 regulator-min-microvolt = <5000000>;
149 regulator-max-microvolt = <5000000>;
151 vin-supply = <&vcc_stdby>;
156 cpu0-supply = <&vdd_arm>;
160 pinctrl-names = "default";
161 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
163 phy-supply = <&vcc_rmii>;
166 phy0: ethernet-phy@0 {
178 pinctrl-names = "default";
179 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
180 vmmc-supply = <&vcc_emmc>;
181 vqmmc-supply = <&vcc_emmc>;
186 clock-frequency = <400000>;
190 compatible = "asahi-kasei,ak8975";
192 interrupt-parent = <&gpio4>;
193 interrupts = <17 IRQ_TYPE_EDGE_RISING>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&comp_int>;
198 mma8452: mma8452@1d {
199 compatible = "fsl,mma8452";
201 interrupt-parent = <&gpio4>;
202 interrupts = <16 IRQ_TYPE_EDGE_RISING>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&gsensor_int>;
209 clock-frequency = <400000>;
214 interrupt-parent = <&gpio6>;
215 interrupts = <4 IRQ_TYPE_EDGE_RISING>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&pmic_int>, <&pwr_hold>;
219 vcc1-supply = <&vsys>;
220 vcc2-supply = <&vsys>;
221 vcc3-supply = <&vsys>;
222 vcc4-supply = <&vsys>;
223 vcc5-supply = <&vcc_io>;
224 vcc6-supply = <&vcc_io>;
225 vcc7-supply = <&vsys>;
226 vccio-supply = <&vsys>;
229 vcc_rtc: regulator@0 {
230 regulator-name = "vcc_rtc";
234 vcc_io: regulator@1 {
235 regulator-name = "vcc_io";
236 regulator-min-microvolt = <3300000>;
237 regulator-max-microvolt = <3300000>;
241 vdd_arm: regulator@2 {
242 regulator-name = "vdd_arm";
243 regulator-min-microvolt = <600000>;
244 regulator-max-microvolt = <1500000>;
249 vcc_ddr: regulator@3 {
250 regulator-name = "vcc_ddr";
251 regulator-min-microvolt = <600000>;
252 regulator-max-microvolt = <1500000>;
258 regulator-name = "vcc18";
259 regulator-min-microvolt = <1800000>;
260 regulator-max-microvolt = <1800000>;
264 vdd_11: regulator@6 {
265 regulator-name = "vdd_11";
266 regulator-min-microvolt = <1100000>;
267 regulator-max-microvolt = <1100000>;
271 vcc_25: regulator@7 {
272 regulator-name = "vcc_25";
273 regulator-min-microvolt = <2500000>;
274 regulator-max-microvolt = <2500000>;
278 vccio_wl: regulator@8 {
279 regulator-name = "vccio_wl";
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <1800000>;
284 vcc25_hdmi: regulator@9 {
285 regulator-name = "vcc25_hdmi";
286 regulator-min-microvolt = <2500000>;
287 regulator-max-microvolt = <2500000>;
290 vcca_33: regulator@10 {
291 regulator-name = "vcca_33";
292 regulator-min-microvolt = <3300000>;
293 regulator-max-microvolt = <3300000>;
296 vcc_rmii: regulator@11 {
297 regulator-name = "vcc_rmii";
298 regulator-min-microvolt = <3300000>;
299 regulator-max-microvolt = <3300000>;
302 vcc28_cif: regulator@12 {
303 regulator-name = "vcc28_cif";
304 regulator-min-microvolt = <2800000>;
305 regulator-max-microvolt = <2800000>;
311 #include "tps65910.dtsi"
329 pinctrl-names = "default";
330 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
331 vmmc-supply = <&vcc_sd>;
341 pinctrl-names = "default";
342 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
343 vmmc-supply = <&vccio_wl>;
348 pcfg_output_high: pcfg-output-high {
354 rockchip,pins = <4 17 RK_FUNC_GPIO &pcfg_pull_default>;
360 rockchip,pins = <1 30 RK_FUNC_GPIO &pcfg_output_high>;
366 rockchip,pins = <6 1 RK_FUNC_GPIO &pcfg_pull_default>;
372 rockchip,pins = <6 2 RK_FUNC_GPIO &pcfg_pull_default>;
377 gsensor_int: gsensor-int {
378 rockchip,pins = <4 16 RK_FUNC_GPIO &pcfg_pull_default>;
383 sdmmc_pwr: sdmmc-pwr {
384 rockchip,pins = <3 7 RK_FUNC_GPIO &pcfg_pull_default>;
390 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_default>;
394 rockchip,pins = <1 31 RK_FUNC_GPIO &pcfg_output_high>;
398 rockchip,pins = <4 22 RK_FUNC_GPIO &pcfg_pull_default>;
401 sata_reset: sata-reset {
402 rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_output_high>;
408 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_default>;
414 rockchip,pins = <6 4 RK_FUNC_GPIO &pcfg_pull_default>;
418 rockchip,pins = <6 8 RK_FUNC_GPIO &pcfg_output_high>;
432 vref-supply = <&vcc_25>;
441 pinctrl-names = "default";
442 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
451 pinctrl-names = "default";
452 pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
457 pinctrl-names = "default";
458 pinctrl-0 = <&hub_rst>, <&sata_reset>;