2 * Copyright (c) 2016 Andreas Färber
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 "rk3368.dtsi"
45 #include <dt-bindings/input/input.h>
49 compatible = "geekbuying,geekbox", "rockchip,rk3368";
52 stdout-path = "serial2:115200n8";
56 device_type = "memory";
57 reg = <0x0 0x0 0x0 0x80000000>;
61 compatible = "fixed-clock";
62 clock-frequency = <125000000>;
63 clock-output-names = "ext_gmac";
68 compatible = "gpio-ir-receiver";
69 gpios = <&gpio3 30 GPIO_ACTIVE_LOW>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&ir_int>;
75 compatible = "gpio-keys";
76 pinctrl-names = "default";
77 pinctrl-0 = <&pwr_key>;
80 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_POWER>;
88 compatible = "gpio-leds";
91 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
92 label = "geekbox:blue:led";
97 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
98 label = "geekbox:red:led";
99 default-state = "off";
103 vcc_sys: vcc-sys-regulator {
104 compatible = "regulator-fixed";
105 regulator-name = "vcc_sys";
106 regulator-min-microvolt = <5000000>;
107 regulator-max-microvolt = <5000000>;
118 clock-frequency = <150000000>;
120 keep-power-in-suspend;
123 vmmc-supply = <&vcc_io>;
124 vqmmc-supply = <&vcc18_flash>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
131 phy-supply = <&vcc_lan>;
133 clock_in_out = "input";
134 assigned-clocks = <&cru SCLK_MAC>;
135 assigned-clock-parents = <&ext_gmac>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&rgmii_pins>;
146 compatible = "rockchip,rk808";
148 pinctrl-names = "default";
149 pinctrl-0 = <&pmic_int>, <&pmic_sleep>;
150 interrupt-parent = <&gpio0>;
151 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
152 rockchip,system-power-controller;
153 vcc1-supply = <&vcc_sys>;
154 vcc2-supply = <&vcc_sys>;
155 vcc3-supply = <&vcc_sys>;
156 vcc4-supply = <&vcc_sys>;
157 vcc6-supply = <&vcc_sys>;
158 vcc7-supply = <&vcc_sys>;
159 vcc8-supply = <&vcc_io>;
160 vcc9-supply = <&vcc_sys>;
161 vcc10-supply = <&vcc_sys>;
162 vcc11-supply = <&vcc_sys>;
163 vcc12-supply = <&vcc_io>;
164 clock-output-names = "rk808-clkout1", "rk808-clkout2";
171 regulator-min-microvolt = <700000>;
172 regulator-max-microvolt = <1500000>;
173 regulator-name = "vdd_cpu";
179 regulator-min-microvolt = <700000>;
180 regulator-max-microvolt = <1500000>;
181 regulator-name = "vdd_log";
187 regulator-name = "vcc_ddr";
193 regulator-min-microvolt = <3300000>;
194 regulator-max-microvolt = <3300000>;
195 regulator-name = "vcc_io";
198 vcc18_flash: LDO_REG1 {
201 regulator-min-microvolt = <1800000>;
202 regulator-max-microvolt = <1800000>;
203 regulator-name = "vcc18_flash";
206 vcc33_lcd: LDO_REG2 {
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
211 regulator-name = "vcc33_lcd";
217 regulator-min-microvolt = <1000000>;
218 regulator-max-microvolt = <1000000>;
219 regulator-name = "vdd_10";
224 regulator-min-microvolt = <1800000>;
225 regulator-max-microvolt = <1800000>;
226 regulator-name = "vcca_18";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <3300000>;
234 regulator-name = "vccio_sd";
237 vdd10_lcd: LDO_REG6 {
240 regulator-min-microvolt = <1000000>;
241 regulator-max-microvolt = <1000000>;
242 regulator-name = "vdd10_lcd";
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1800000>;
250 regulator-name = "vcc_18";
253 vcc18_lcd: LDO_REG8 {
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <1800000>;
258 regulator-name = "vcc18_lcd";
261 vcc_sd: SWITCH_REG1 {
264 regulator-name = "vcc_sd";
267 vcc_lan: SWITCH_REG2 {
270 regulator-name = "vcc_lan";
279 rockchip,pins = <3 30 RK_FUNC_GPIO &pcfg_pull_none>;
285 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
290 pmic_sleep: pmic-sleep {
291 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
295 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
302 rockchip,hw-tshut-mode = <0>; /* CRU */
303 rockchip,hw-tshut-polarity = <1>; /* high */