2 * Copyright (c) 2016 Matthias Brugger <mbrugger@suse.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 <dt-bindings/input/input.h>
45 #include "rk3368.dtsi"
48 model = "Rockchip Orion R68";
49 compatible = "tronsmart,orion-r68-meta", "rockchip,rk3368";
52 stdout-path = "serial2:115200n8";
56 device_type = "memory";
57 reg = <0x0 0x0 0x0 0x80000000>;
60 emmc_pwrseq: emmc-pwrseq {
61 compatible = "mmc-pwrseq-emmc";
62 pinctrl-0 = <&emmc_reset>;
63 pinctrl-names = "default";
64 reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
67 ext_gmac: external-gmac-clock {
68 compatible = "fixed-clock";
70 clock-frequency = <125000000>;
71 clock-output-names = "ext_gmac";
75 compatible = "gpio-keys";
76 pinctrl-names = "default";
77 pinctrl-0 = <&pwr_key>;
81 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
83 linux,code = <KEY_POWER>;
88 compatible = "gpio-leds";
91 gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
92 label = "orion:red:led";
93 pinctrl-names = "default";
94 pinctrl-0 = <&led_ctl>;
99 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
100 label = "orion:blue:led";
101 pinctrl-names = "default";
102 pinctrl-0 = <&stby_pwren>;
103 default-state = "off";
107 vcc_18: vcc18-regulator {
108 compatible = "regulator-fixed";
109 regulator-name = "vcc_18";
110 regulator-min-microvolt = <1800000>;
111 regulator-max-microvolt = <1800000>;
114 vin-supply = <&vcc_sys>;
117 /* supplies both host and otg */
118 vcc_host: vcc-host-regulator {
119 compatible = "regulator-fixed";
120 gpio = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&host_vbus_drv>;
123 regulator-name = "vcc_host";
126 vin-supply = <&vcc_sys>;
129 vcc_io: vcc-io-regulator {
130 compatible = "regulator-fixed";
131 regulator-name = "vcc_io";
132 regulator-min-microvolt = <3300000>;
133 regulator-max-microvolt = <3300000>;
136 vin-supply = <&vcc_sys>;
139 vcc_lan: vcc-lan-regulator {
140 compatible = "regulator-fixed";
141 regulator-name = "vcc_lan";
142 regulator-min-microvolt = <3300000>;
143 regulator-max-microvolt = <3300000>;
146 vin-supply = <&vcc_io>;
149 vcc_sd: vcc-sd-regulator {
150 compatible = "regulator-fixed";
151 regulator-name = "vcc_sd";
152 gpio = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>;
153 regulator-min-microvolt = <1800000>;
154 regulator-max-microvolt = <3300000>;
155 vin-supply = <&vcc_io>;
158 vcc_sys: vcc-sys-regulator {
159 compatible = "regulator-fixed";
160 regulator-name = "vcc_sys";
161 regulator-min-microvolt = <5000000>;
162 regulator-max-microvolt = <5000000>;
167 vccio_sd: vcc-io-sd-regulator {
168 compatible = "regulator-fixed";
169 regulator-name= "vccio_sd";
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <3300000>;
174 vin-supply = <&vcc_io>;
177 vccio_wl: vccio-wl-regulator {
178 compatible = "regulator-fixed";
179 regulator-name = "vccio_wl";
180 regulator-min-microvolt = <3300000>;
181 regulator-max-microvolt = <3300000>;
184 vin-supply = <&vcc_io>;
187 vdd_10: vdd-10-regulator {
188 compatible = "regulator-fixed";
189 regulator-name = "vdd_10";
190 regulator-min-microvolt = <1000000>;
191 regulator-max-microvolt = <1000000>;
194 vin-supply = <&vcc_sys>;
202 mmc-pwrseq = <&emmc_pwrseq>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
212 assigned-clocks = <&cru SCLK_MAC>;
213 assigned-clock-parents = <&ext_gmac>;
214 clock_in_out = "input";
215 phy-supply = <&vcc_lan>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&rgmii_pins>;
219 snps,reset-gpio = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>;
220 snps,reset-active-low;
221 snps,reset-delays-us = <0 10000 1000000>;
231 compatible = "silergy,syr827";
233 fcs,suspend-voltage-selector = <1>;
234 regulator-name = "vdd_cpu";
235 regulator-enable-ramp-delay = <300>;
236 regulator-min-microvolt = <712500>;
237 regulator-max-microvolt = <1500000>;
238 regulator-ramp-delay = <8000>;
241 vin-supply = <&vcc_sys>;
244 hym8563: hym8563@51 {
245 compatible = "haoyu,hym8563";
248 clock-frequency = <32768>;
249 clock-output-names = "xin32k";
250 /* rtc_int is not connected */
255 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
257 drive-strength = <8>;
260 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
262 drive-strength = <8>;
266 emmc_bus8: emmc-bus8 {
267 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
268 <1 19 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
269 <1 20 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
270 <1 21 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
271 <1 22 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
272 <1 23 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
273 <1 24 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
274 <1 25 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;
278 rockchip,pins = <2 4 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
282 rockchip,pins = <1 26 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;
285 emmc_reset: emmc-reset {
286 rockchip,pins = <2 3 RK_FUNC_GPIO &pcfg_pull_none>;
292 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_down>;
297 stby_pwren: stby-pwren {
298 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
302 rockchip,pins = <3 29 RK_FUNC_GPIO &pcfg_pull_none>;
307 sdmmc_clk: sdmmc-clk {
308 rockchip,pins = <2 9 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
311 sdmmc_cmd: sdmmc-cmd {
312 rockchip,pins = <2 10 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
316 rockchip,pins = <2 11 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
319 sdmmc_bus1: sdmmc-bus1 {
320 rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
323 sdmmc_bus4: sdmmc-bus4 {
324 rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
325 <2 6 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
326 <2 7 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
327 <2 8 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
332 host_vbus_drv: host-vbus-drv {
333 rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_none>;
339 vref-supply = <&vcc_18>;
345 clock-frequency = <50000000>;
346 max-frequency = <50000000>;
348 card-detect-delay = <200>;
349 pinctrl-names = "default";
350 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
351 vmmc-supply = <&vcc_sd>;
352 vqmmc-supply = <&vccio_sd>;
361 pinctrl-names = "default";
362 pinctrl-0 = <&uart4_xfer>;