2 * (C) Copyright 2017 Rockchip Electronics Co., Ltd
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <dt-bindings/input/input.h>
12 model = "Rockchip sheep board";
13 compatible = "rockchip,sheep", "rockchip,rk3368";
16 stdout-path = "serial2:115200n8";
20 device_type = "memory";
21 reg = <0x0 0x0 0x0 0x80000000>;
25 compatible = "fixed-clock";
26 clock-frequency = <125000000>;
27 clock-output-names = "ext_gmac";
32 compatible = "gpio-ir-receiver";
33 gpios = <&gpio3 30 GPIO_ACTIVE_LOW>;
34 pinctrl-names = "default";
35 pinctrl-0 = <&ir_int>;
39 compatible = "gpio-keys";
40 pinctrl-names = "default";
41 pinctrl-0 = <&pwr_key>;
44 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_POWER>;
52 compatible = "gpio-leds";
55 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
56 label = "geekbox:blue:led";
61 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
62 label = "geekbox:red:led";
63 default-state = "off";
67 vcc_sys: vcc-sys-regulator {
68 compatible = "regulator-fixed";
69 regulator-name = "vcc_sys";
70 regulator-min-microvolt = <5000000>;
71 regulator-max-microvolt = <5000000>;
81 clock-frequency = <150000000>;
83 keep-power-in-suspend;
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 = <5 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 {
227 regulator-name = "vcc_sd";
230 vcc_lan: SWITCH_REG2 {
233 regulator-name = "vcc_lan";
242 rockchip,pins = <3 30 RK_FUNC_GPIO &pcfg_pull_none>;
248 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>;
253 pmic_sleep: pmic-sleep {
254 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;
258 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
269 rockchip,hw-tshut-mode = <0>; /* CRU */
270 rockchip,hw-tshut-polarity = <1>; /* high */