1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2017 Rockchip Electronics Co., Ltd
8 #include <dt-bindings/input/input.h>
11 model = "Rockchip sheep board";
12 compatible = "rockchip,sheep", "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 30 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 2 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_POWER>;
51 compatible = "gpio-leds";
54 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
55 label = "geekbox:blue:led";
60 gpios = <&gpio2 3 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 keep-power-in-suspend;
85 vmmc-supply = <&vcc_io>;
86 vqmmc-supply = <&vcc18_flash>;
87 pinctrl-names = "default";
88 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
93 phy-supply = <&vcc_lan>;
95 clock_in_out = "input";
96 assigned-clocks = <&cru SCLK_MAC>;
97 assigned-clock-parents = <&ext_gmac>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&rgmii_pins>;
108 compatible = "rockchip,rk808";
110 pinctrl-names = "default";
111 pinctrl-0 = <&pmic_int>, <&pmic_sleep>;
112 interrupt-parent = <&gpio0>;
113 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
114 rockchip,system-power-controller;
115 vcc1-supply = <&vcc_sys>;
116 vcc2-supply = <&vcc_sys>;
117 vcc3-supply = <&vcc_sys>;
118 vcc4-supply = <&vcc_sys>;
119 vcc6-supply = <&vcc_sys>;
120 vcc7-supply = <&vcc_sys>;
121 vcc8-supply = <&vcc_io>;
122 vcc9-supply = <&vcc_sys>;
123 vcc10-supply = <&vcc_sys>;
124 vcc11-supply = <&vcc_sys>;
125 vcc12-supply = <&vcc_io>;
126 clock-output-names = "xin32k", "rk808-clkout2";
133 regulator-min-microvolt = <700000>;
134 regulator-max-microvolt = <1500000>;
135 regulator-name = "vdd_cpu";
141 regulator-min-microvolt = <700000>;
142 regulator-max-microvolt = <1500000>;
143 regulator-name = "vdd_log";
149 regulator-name = "vcc_ddr";
155 regulator-min-microvolt = <3300000>;
156 regulator-max-microvolt = <3300000>;
157 regulator-name = "vcc_io";
160 vcc18_flash: LDO_REG1 {
163 regulator-min-microvolt = <1800000>;
164 regulator-max-microvolt = <1800000>;
165 regulator-name = "vcc18_flash";
168 vcc33_lcd: LDO_REG2 {
171 regulator-min-microvolt = <3300000>;
172 regulator-max-microvolt = <3300000>;
173 regulator-name = "vcc33_lcd";
179 regulator-min-microvolt = <1000000>;
180 regulator-max-microvolt = <1000000>;
181 regulator-name = "vdd_10";
186 regulator-min-microvolt = <1800000>;
187 regulator-max-microvolt = <1800000>;
188 regulator-name = "vcca_18";
194 regulator-min-microvolt = <1800000>;
195 regulator-max-microvolt = <3300000>;
196 regulator-name = "vccio_sd";
199 vdd10_lcd: LDO_REG6 {
202 regulator-min-microvolt = <1000000>;
203 regulator-max-microvolt = <1000000>;
204 regulator-name = "vdd10_lcd";
210 regulator-min-microvolt = <1800000>;
211 regulator-max-microvolt = <1800000>;
212 regulator-name = "vcc_18";
215 vcc18_lcd: LDO_REG8 {
218 regulator-min-microvolt = <1800000>;
219 regulator-max-microvolt = <1800000>;
220 regulator-name = "vcc18_lcd";
223 vcc_sd: SWITCH_REG1 {
226 regulator-name = "vcc_sd";
229 vcc_lan: SWITCH_REG2 {
232 regulator-name = "vcc_lan";
241 rockchip,pins = <3 30 RK_FUNC_GPIO &pcfg_pull_none>;
247 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
252 pmic_sleep: pmic-sleep {
253 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
257 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
268 rockchip,hw-tshut-mode = <0>; /* CRU */
269 rockchip,hw-tshut-polarity = <1>; /* high */