1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Device Tree file for Helios4
4 * based on SolidRun Clearfog revision A1 rev 2.0 (88F6828)
6 * Copyright (C) 2017 Aditya Prayoga <aditya@kobol.io>
11 #include "armada-388.dtsi"
12 #include "armada-38x-solidrun-microsom.dtsi"
16 compatible = "kobol,helios4", "marvell,armada388",
17 "marvell,armada385", "marvell,armada380";
20 device_type = "memory";
21 reg = <0x00000000 0x80000000>; /* 2 GB */
25 /* So that mvebu u-boot can update the MAC address */
34 stdout-path = "serial0:115200n8";
37 reg_12v: regulator-12v {
38 compatible = "regulator-fixed";
39 regulator-name = "power_brick_12V";
40 regulator-min-microvolt = <12000000>;
41 regulator-max-microvolt = <12000000>;
45 reg_3p3v: regulator-3p3v {
46 compatible = "regulator-fixed";
47 regulator-name = "3P3V";
48 regulator-min-microvolt = <3300000>;
49 regulator-max-microvolt = <3300000>;
51 vin-supply = <®_12v>;
54 reg_5p0v_hdd: regulator-5v-hdd {
55 compatible = "regulator-fixed";
56 regulator-name = "5V_HDD";
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
60 vin-supply = <®_12v>;
63 reg_5p0v_usb: regulator-5v-usb {
64 compatible = "regulator-fixed";
65 regulator-name = "USB-PWR";
66 regulator-min-microvolt = <5000000>;
67 regulator-max-microvolt = <5000000>;
71 gpio = <&expander0 6 GPIO_ACTIVE_HIGH>;
72 vin-supply = <®_12v>;
76 compatible = "gpio-leds";
78 label = "helios4:green:status";
79 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
80 linux,default-trigger = "heartbeat";
85 label = "helios4:red:fault";
86 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
87 default-state = "keep";
92 compatible = "gpio-leds";
94 label = "helios4:green:ata1";
95 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
96 linux,default-trigger = "ata1";
97 default-state = "off";
100 label = "helios4:green:ata2";
101 gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
102 linux,default-trigger = "ata2";
103 default-state = "off";
106 label = "helios4:green:ata3";
107 gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
108 linux,default-trigger = "ata3";
109 default-state = "off";
112 label = "helios4:green:ata4";
113 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
114 linux,default-trigger = "ata4";
115 default-state = "off";
118 label = "helios4:green:usb";
119 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
120 linux,default-trigger = "usb-host";
121 default-state = "off";
126 compatible = "pwm-fan";
127 pwms = <&gpio1 9 40000>; /* Target freq:25 kHz */
131 compatible = "pwm-fan";
132 pwms = <&gpio1 23 40000>; /* Target freq:25 kHz */
136 compatible = "usb-nop-xceiv";
137 vbus-regulator = <®_5p0v_usb>;
141 compatible = "usb-nop-xceiv";
148 * PCA9655 GPIO expander, up to 1MHz clock.
149 * 0-Board Revision bit 0 #
150 * 1-Board Revision bit 1 #
154 expander0: gpio-expander@20 {
156 * This is how it should be:
157 * compatible = "onnn,pca9655",
159 * but you can't do this because of
162 compatible = "nxp,pca9555";
166 pinctrl-names = "default";
167 pinctrl-0 = <&pca0_pins>;
168 interrupt-parent = <&gpio0>;
169 interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
170 interrupt-controller;
171 #interrupt-cells = <2>;
175 gpios = <0 GPIO_ACTIVE_LOW>;
177 line-name = "board-rev-0";
181 gpios = <1 GPIO_ACTIVE_LOW>;
183 line-name = "board-rev-1";
187 gpios = <5 GPIO_ACTIVE_HIGH>;
189 line-name = "usb-overcurrent-status";
193 temp_sensor: temp@4c {
194 compatible = "ti,lm75";
196 vcc-supply = <®_3p3v>;
202 * External I2C Bus for user peripheral
204 clock-frequency = <400000>;
205 pinctrl-0 = <&helios_i2c1_pins>;
206 pinctrl-names = "default";
212 #address-cells = <1>;
226 #address-cells = <1>;
239 pinctrl-0 = <&spi1_pins
240 µsom_spi1_cs_pins>;
241 pinctrl-names = "default";
247 cd-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
249 pinctrl-0 = <&helios_sdhci_pins
250 &helios_sdhci_cd_pins>;
251 pinctrl-names = "default";
258 usb-phy = <&usb2_phy>;
271 pca0_pins: pca0-pins {
272 marvell,pins = "mpp23";
273 marvell,function = "gpio";
275 microsom_phy0_int_pins: microsom-phy0-int-pins {
276 marvell,pins = "mpp18";
277 marvell,function = "gpio";
279 helios_i2c1_pins: i2c1-pins {
280 marvell,pins = "mpp26", "mpp27";
281 marvell,function = "i2c1";
283 helios_sdhci_cd_pins: helios-sdhci-cd-pins {
284 marvell,pins = "mpp20";
285 marvell,function = "gpio";
287 helios_sdhci_pins: helios-sdhci-pins {
288 marvell,pins = "mpp21", "mpp28",
291 marvell,function = "sd0";
293 helios_led_pins: helios-led-pins {
294 marvell,pins = "mpp24", "mpp25",
298 marvell,function = "gpio";
300 helios_fan_pins: helios-fan-pins {
301 marvell,pins = "mpp41", "mpp43",
303 marvell,function = "gpio";
305 microsom_spi1_cs_pins: spi1-cs-pins {
306 marvell,pins = "mpp59";
307 marvell,function = "spi1";