1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2020 Aditya Prayoga <aditya@kobol.io>
7 * The Kobol Helios64 is a board designed to operate as a NAS and optionally
8 * ships with an enclosing that can host five 2.5" hard disks.
10 * See https://wiki.kobol.io/helios64/intro/ for further details.
14 #include "rk3399.dtsi"
15 #include "rk3399-opp.dtsi"
18 model = "Kobol Helios64";
19 compatible = "kobol,helios64", "rockchip,rk3399";
21 avdd_1v8_s0: avdd-1v8-s0 {
22 compatible = "regulator-fixed";
23 regulator-name = "avdd_1v8_s0";
26 regulator-min-microvolt = <1800000>;
27 regulator-max-microvolt = <1800000>;
28 vin-supply = <&vcc3v3_sys_s3>;
31 clkin_gmac: external-gmac-clock {
32 compatible = "fixed-clock";
33 clock-frequency = <125000000>;
34 clock-output-names = "clkin_gmac";
39 compatible = "gpio-leds";
40 pinctrl-names = "default";
41 pinctrl-0 = <&sys_grn_led_on &sys_red_led_on>;
44 label = "helios64:green:status";
45 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
50 label = "helios64:red:fault";
51 gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
52 default-state = "keep";
56 vcc1v8_sys_s0: vcc1v8-sys-s0 {
57 compatible = "regulator-fixed";
58 regulator-name = "vcc1v8_sys_s0";
61 regulator-min-microvolt = <1800000>;
62 regulator-max-microvolt = <1800000>;
63 vin-supply = <&vcc1v8_sys_s3>;
66 vcc3v0_sd: vcc3v0-sd {
67 compatible = "regulator-fixed";
69 gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
70 regulator-name = "vcc3v0_sd";
72 regulator-min-microvolt = <3000000>;
73 regulator-max-microvolt = <3000000>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&sdmmc0_pwr_h>;
76 vin-supply = <&vcc3v3_sys_s3>;
79 vcc3v3_sys_s3: vcc_lan: vcc3v3-sys-s3 {
80 compatible = "regulator-fixed";
81 regulator-name = "vcc3v3_sys_s3";
84 regulator-min-microvolt = <3300000>;
85 regulator-max-microvolt = <3300000>;
86 vin-supply = <&vcc5v0_sys>;
89 regulator-on-in-suspend;
93 vcc5v0_sys: vcc5v0-sys {
94 compatible = "regulator-fixed";
95 regulator-name = "vcc5v0_sys";
98 regulator-min-microvolt = <5000000>;
99 regulator-max-microvolt = <5000000>;
100 vin-supply = <&vcc12v_dcin_bkup>;
102 regulator-state-mem {
103 regulator-on-in-suspend;
107 vcc12v_dcin: vcc12v-dcin {
108 compatible = "regulator-fixed";
109 regulator-name = "vcc12v_dcin";
112 regulator-min-microvolt = <12000000>;
113 regulator-max-microvolt = <12000000>;
116 vcc12v_dcin_bkup: vcc12v-dcin-bkup {
117 compatible = "regulator-fixed";
118 regulator-name = "vcc12v_dcin_bkup";
121 regulator-min-microvolt = <12000000>;
122 regulator-max-microvolt = <12000000>;
123 vin-supply = <&vcc12v_dcin>;
128 * The system doesn't run stable with cpu freq enabled, so disallow the lower
129 * frequencies until this problem is properly understood and resolved.
150 cpu-supply = <&vdd_cpu_b>;
154 cpu-supply = <&vdd_cpu_b>;
158 cpu-supply = <&vdd_cpu_l>;
162 cpu-supply = <&vdd_cpu_l>;
166 cpu-supply = <&vdd_cpu_l>;
170 cpu-supply = <&vdd_cpu_l>;
178 assigned-clock-parents = <&clkin_gmac>;
179 assigned-clocks = <&cru SCLK_RMII_SRC>;
180 clock_in_out = "input";
182 phy-supply = <&vcc_lan>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&rgmii_pins &gphy_reset>;
187 snps,reset-active-low;
188 snps,reset-delays-us = <0 10000 50000>;
189 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
194 clock-frequency = <400000>;
195 i2c-scl-rising-time-ns = <168>;
196 i2c-scl-falling-time-ns = <4>;
200 compatible = "rockchip,rk808";
202 interrupt-parent = <&gpio0>;
203 interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
204 clock-output-names = "xin32k", "rk808-clkout2";
205 pinctrl-names = "default";
206 pinctrl-0 = <&pmic_int_l>;
207 vcc1-supply = <&vcc5v0_sys>;
208 vcc2-supply = <&vcc5v0_sys>;
209 vcc3-supply = <&vcc5v0_sys>;
210 vcc4-supply = <&vcc5v0_sys>;
211 vcc6-supply = <&vcc5v0_sys>;
212 vcc7-supply = <&vcc5v0_sys>;
213 vcc8-supply = <&vcc3v3_sys_s3>;
214 vcc9-supply = <&vcc5v0_sys>;
215 vcc10-supply = <&vcc5v0_sys>;
216 vcc11-supply = <&vcc5v0_sys>;
217 vcc12-supply = <&vcc3v3_sys_s3>;
218 vddio-supply = <&vcc3v0_s3>;
223 vdd_cpu_l: DCDC_REG2 {
224 regulator-name = "vdd_cpu_l";
227 regulator-min-microvolt = <750000>;
228 regulator-max-microvolt = <1350000>;
229 regulator-ramp-delay = <6001>;
231 regulator-state-mem {
232 regulator-off-in-suspend;
236 vcc1v8_sys_s3: DCDC_REG4 {
237 regulator-name = "vcc1v8_sys_s3";
240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <1800000>;
243 regulator-state-mem {
244 regulator-on-in-suspend;
245 regulator-suspend-microvolt = <1800000>;
249 vcc_sdio_s0: LDO_REG4 {
250 regulator-name = "vcc_sdio_s0";
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <3000000>;
256 regulator-state-mem {
257 regulator-on-in-suspend;
258 regulator-suspend-microvolt = <3000000>;
262 vcc3v0_s3: LDO_REG8 {
263 regulator-name = "vcc3v0_s3";
266 regulator-min-microvolt = <3000000>;
267 regulator-max-microvolt = <3000000>;
269 regulator-state-mem {
270 regulator-on-in-suspend;
271 regulator-suspend-microvolt = <3000000>;
277 vdd_cpu_b: regulator@40 {
278 compatible = "silergy,syr827";
280 fcs,suspend-voltage-selector = <1>;
281 regulator-name = "vdd_cpu_b";
284 regulator-min-microvolt = <712500>;
285 regulator-max-microvolt = <1500000>;
286 regulator-ramp-delay = <1000>;
287 vin-supply = <&vcc5v0_sys>;
289 regulator-state-mem {
290 regulator-off-in-suspend;
296 clock-frequency = <400000>;
297 i2c-scl-rising-time-ns = <160>;
298 i2c-scl-falling-time-ns = <30>;
302 compatible = "national,lm75";
308 audio-supply = <&vcc1v8_sys_s0>;
309 bt656-supply = <&vcc1v8_sys_s0>;
310 gpio1830-supply = <&vcc3v0_s3>;
311 sdmmc-supply = <&vcc_sdio_s0>;
317 gphy_reset: gphy-reset {
318 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>;
323 sys_grn_led_on: sys-grn-led-on {
324 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
327 sys_red_led_on: sys-red-led-on {
328 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
333 pmic_int_l: pmic-int-l {
334 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
339 sdmmc0_pwr_h: sdmmc0-pwr-h {
340 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
346 pmu1830-supply = <&vcc3v0_s3>;
354 vqmmc-supply = <&vcc1v8_sys_s0>;
361 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
363 pinctrl-names = "default";
364 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
365 vmmc-supply = <&vcc3v0_sd>;
366 vqmmc-supply = <&vcc_sdio_s0>;