1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Andreas Färber
8 #include <dt-bindings/input/input.h>
12 compatible = "geekbuying,geekbox", "rockchip,rk3368";
15 stdout-path = "serial2:115200n8";
19 device_type = "memory";
20 reg = <0x0 0x0 0x0 0x80000000>;
24 compatible = "fixed-clock";
25 clock-frequency = <125000000>;
26 clock-output-names = "ext_gmac";
31 compatible = "gpio-ir-receiver";
32 gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_LOW>;
33 pinctrl-names = "default";
34 pinctrl-0 = <&ir_int>;
38 compatible = "gpio-keys";
39 pinctrl-names = "default";
40 pinctrl-0 = <&pwr_key>;
43 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_POWER>;
51 compatible = "gpio-leds";
54 gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
55 label = "geekbox:blue:led";
60 gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
61 label = "geekbox:red:led";
62 default-state = "off";
66 vcc_sys: vcc-sys-regulator {
67 compatible = "regulator-fixed";
68 regulator-name = "vcc_sys";
69 regulator-min-microvolt = <5000000>;
70 regulator-max-microvolt = <5000000>;
80 clock-frequency = <150000000>;
82 vmmc-supply = <&vcc_io>;
83 vqmmc-supply = <&vcc18_flash>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
90 phy-supply = <&vcc_lan>;
92 clock_in_out = "input";
93 assigned-clocks = <&cru SCLK_MAC>;
94 assigned-clock-parents = <&ext_gmac>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&rgmii_pins>;
105 compatible = "rockchip,rk808";
107 pinctrl-names = "default";
108 pinctrl-0 = <&pmic_int>, <&pmic_sleep>;
109 interrupt-parent = <&gpio0>;
110 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
111 rockchip,system-power-controller;
112 vcc1-supply = <&vcc_sys>;
113 vcc2-supply = <&vcc_sys>;
114 vcc3-supply = <&vcc_sys>;
115 vcc4-supply = <&vcc_sys>;
116 vcc6-supply = <&vcc_sys>;
117 vcc7-supply = <&vcc_sys>;
118 vcc8-supply = <&vcc_io>;
119 vcc9-supply = <&vcc_sys>;
120 vcc10-supply = <&vcc_sys>;
121 vcc11-supply = <&vcc_sys>;
122 vcc12-supply = <&vcc_io>;
123 clock-output-names = "xin32k", "rk808-clkout2";
130 regulator-min-microvolt = <700000>;
131 regulator-max-microvolt = <1500000>;
132 regulator-name = "vdd_cpu";
138 regulator-min-microvolt = <700000>;
139 regulator-max-microvolt = <1500000>;
140 regulator-name = "vdd_log";
146 regulator-name = "vcc_ddr";
152 regulator-min-microvolt = <3300000>;
153 regulator-max-microvolt = <3300000>;
154 regulator-name = "vcc_io";
157 vcc18_flash: LDO_REG1 {
160 regulator-min-microvolt = <1800000>;
161 regulator-max-microvolt = <1800000>;
162 regulator-name = "vcc18_flash";
165 vcc33_lcd: LDO_REG2 {
168 regulator-min-microvolt = <3300000>;
169 regulator-max-microvolt = <3300000>;
170 regulator-name = "vcc33_lcd";
176 regulator-min-microvolt = <1000000>;
177 regulator-max-microvolt = <1000000>;
178 regulator-name = "vdd_10";
183 regulator-min-microvolt = <1800000>;
184 regulator-max-microvolt = <1800000>;
185 regulator-name = "vcca_18";
191 regulator-min-microvolt = <1800000>;
192 regulator-max-microvolt = <3300000>;
193 regulator-name = "vccio_sd";
196 vdd10_lcd: LDO_REG6 {
199 regulator-min-microvolt = <1000000>;
200 regulator-max-microvolt = <1000000>;
201 regulator-name = "vdd10_lcd";
207 regulator-min-microvolt = <1800000>;
208 regulator-max-microvolt = <1800000>;
209 regulator-name = "vcc_18";
212 vcc18_lcd: LDO_REG8 {
215 regulator-min-microvolt = <1800000>;
216 regulator-max-microvolt = <1800000>;
217 regulator-name = "vcc18_lcd";
220 vcc_sd: SWITCH_REG1 {
221 regulator-name = "vcc_sd";
224 vcc_lan: SWITCH_REG2 {
227 regulator-name = "vcc_lan";
236 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
242 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
247 pmic_sleep: pmic-sleep {
248 rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>;
252 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
259 rockchip,hw-tshut-mode = <0>; /* CRU */
260 rockchip,hw-tshut-polarity = <1>; /* high */