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";
19 stdout-path = "serial2:115200n8";
23 device_type = "memory";
24 reg = <0x0 0x0 0x0 0x80000000>;
28 compatible = "fixed-clock";
29 clock-frequency = <125000000>;
30 clock-output-names = "ext_gmac";
35 compatible = "gpio-ir-receiver";
36 gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_LOW>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&ir_int>;
42 compatible = "gpio-keys";
43 pinctrl-names = "default";
44 pinctrl-0 = <&pwr_key>;
47 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_POWER>;
55 compatible = "gpio-leds";
58 gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
59 label = "geekbox:blue:led";
64 gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
65 label = "geekbox:red:led";
66 default-state = "off";
70 vcc_sys: vcc-sys-regulator {
71 compatible = "regulator-fixed";
72 regulator-name = "vcc_sys";
73 regulator-min-microvolt = <5000000>;
74 regulator-max-microvolt = <5000000>;
84 clock-frequency = <150000000>;
86 vmmc-supply = <&vcc_io>;
87 vqmmc-supply = <&vcc18_flash>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
94 phy-supply = <&vcc_lan>;
96 clock_in_out = "input";
97 assigned-clocks = <&cru SCLK_MAC>;
98 assigned-clock-parents = <&ext_gmac>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&rgmii_pins>;
109 compatible = "rockchip,rk808";
111 pinctrl-names = "default";
112 pinctrl-0 = <&pmic_int>, <&pmic_sleep>;
113 interrupt-parent = <&gpio0>;
114 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
115 rockchip,system-power-controller;
116 vcc1-supply = <&vcc_sys>;
117 vcc2-supply = <&vcc_sys>;
118 vcc3-supply = <&vcc_sys>;
119 vcc4-supply = <&vcc_sys>;
120 vcc6-supply = <&vcc_sys>;
121 vcc7-supply = <&vcc_sys>;
122 vcc8-supply = <&vcc_io>;
123 vcc9-supply = <&vcc_sys>;
124 vcc10-supply = <&vcc_sys>;
125 vcc11-supply = <&vcc_sys>;
126 vcc12-supply = <&vcc_io>;
127 clock-output-names = "xin32k", "rk808-clkout2";
134 regulator-min-microvolt = <700000>;
135 regulator-max-microvolt = <1500000>;
136 regulator-name = "vdd_cpu";
142 regulator-min-microvolt = <700000>;
143 regulator-max-microvolt = <1500000>;
144 regulator-name = "vdd_log";
150 regulator-name = "vcc_ddr";
156 regulator-min-microvolt = <3300000>;
157 regulator-max-microvolt = <3300000>;
158 regulator-name = "vcc_io";
161 vcc18_flash: LDO_REG1 {
164 regulator-min-microvolt = <1800000>;
165 regulator-max-microvolt = <1800000>;
166 regulator-name = "vcc18_flash";
169 vcc33_lcd: LDO_REG2 {
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
174 regulator-name = "vcc33_lcd";
180 regulator-min-microvolt = <1000000>;
181 regulator-max-microvolt = <1000000>;
182 regulator-name = "vdd_10";
187 regulator-min-microvolt = <1800000>;
188 regulator-max-microvolt = <1800000>;
189 regulator-name = "vcca_18";
195 regulator-min-microvolt = <1800000>;
196 regulator-max-microvolt = <3300000>;
197 regulator-name = "vccio_sd";
200 vdd10_lcd: LDO_REG6 {
203 regulator-min-microvolt = <1000000>;
204 regulator-max-microvolt = <1000000>;
205 regulator-name = "vdd10_lcd";
211 regulator-min-microvolt = <1800000>;
212 regulator-max-microvolt = <1800000>;
213 regulator-name = "vcc_18";
216 vcc18_lcd: LDO_REG8 {
219 regulator-min-microvolt = <1800000>;
220 regulator-max-microvolt = <1800000>;
221 regulator-name = "vcc18_lcd";
224 vcc_sd: SWITCH_REG1 {
225 regulator-name = "vcc_sd";
228 vcc_lan: SWITCH_REG2 {
231 regulator-name = "vcc_lan";
240 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
246 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
251 pmic_sleep: pmic-sleep {
252 rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>;
256 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
263 rockchip,hw-tshut-mode = <0>; /* CRU */
264 rockchip,hw-tshut-polarity = <1>; /* high */