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 addresses */
30 stdout-path = "serial0:115200n8";
33 reg_12v: regulator-12v {
34 compatible = "regulator-fixed";
35 regulator-name = "power_brick_12V";
36 regulator-min-microvolt = <12000000>;
37 regulator-max-microvolt = <12000000>;
41 reg_3p3v: regulator-3p3v {
42 compatible = "regulator-fixed";
43 regulator-name = "3P3V";
44 regulator-min-microvolt = <3300000>;
45 regulator-max-microvolt = <3300000>;
47 vin-supply = <®_12v>;
50 reg_5p0v_hdd: regulator-5v-hdd {
51 compatible = "regulator-fixed";
52 regulator-name = "5V_HDD";
53 regulator-min-microvolt = <5000000>;
54 regulator-max-microvolt = <5000000>;
56 vin-supply = <®_12v>;
59 reg_5p0v_usb: regulator-5v-usb {
60 compatible = "regulator-fixed";
61 regulator-name = "USB-PWR";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
67 gpio = <&expander0 6 GPIO_ACTIVE_HIGH>;
68 vin-supply = <®_12v>;
72 compatible = "gpio-leds";
74 label = "helios4:green:status";
75 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "heartbeat";
81 label = "helios4:red:fault";
82 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
83 default-state = "keep";
88 compatible = "gpio-leds";
90 label = "helios4:green:ata1";
91 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
92 linux,default-trigger = "ata1";
93 default-state = "off";
96 label = "helios4:green:ata2";
97 gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
98 linux,default-trigger = "ata2";
99 default-state = "off";
102 label = "helios4:green:ata3";
103 gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
104 linux,default-trigger = "ata3";
105 default-state = "off";
108 label = "helios4:green:ata4";
109 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
110 linux,default-trigger = "ata4";
111 default-state = "off";
114 label = "helios4:green:usb";
115 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
116 linux,default-trigger = "usb-host";
117 default-state = "off";
122 compatible = "pwm-fan";
123 pwms = <&gpio1 9 40000>; /* Target freq:25 kHz */
127 compatible = "pwm-fan";
128 pwms = <&gpio1 23 40000>; /* Target freq:25 kHz */
132 compatible = "usb-nop-xceiv";
133 vbus-regulator = <®_5p0v_usb>;
137 compatible = "usb-nop-xceiv";
144 * PCA9655 GPIO expander, up to 1MHz clock.
145 * 0-Board Revision bit 0 #
146 * 1-Board Revision bit 1 #
150 expander0: gpio-expander@20 {
152 * This is how it should be:
153 * compatible = "onnn,pca9655",
155 * but you can't do this because of
158 compatible = "nxp,pca9555";
162 pinctrl-names = "default";
163 pinctrl-0 = <&pca0_pins>;
164 interrupt-parent = <&gpio0>;
165 interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
166 interrupt-controller;
167 #interrupt-cells = <2>;
171 gpios = <0 GPIO_ACTIVE_LOW>;
173 line-name = "board-rev-0";
177 gpios = <1 GPIO_ACTIVE_LOW>;
179 line-name = "board-rev-1";
183 gpios = <5 GPIO_ACTIVE_HIGH>;
185 line-name = "usb-overcurrent-status";
189 temp_sensor: temp@4c {
190 compatible = "ti,lm75";
192 vcc-supply = <®_3p3v>;
198 * External I2C Bus for user peripheral
200 clock-frequency = <400000>;
201 pinctrl-0 = <&helios_i2c1_pins>;
202 pinctrl-names = "default";
208 #address-cells = <1>;
222 #address-cells = <1>;
235 pinctrl-0 = <&spi1_pins
236 µsom_spi1_cs_pins>;
237 pinctrl-names = "default";
243 cd-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
245 pinctrl-0 = <&helios_sdhci_pins
246 &helios_sdhci_cd_pins>;
247 pinctrl-names = "default";
254 usb-phy = <&usb2_phy>;
267 pca0_pins: pca0-pins {
268 marvell,pins = "mpp23";
269 marvell,function = "gpio";
271 microsom_phy0_int_pins: microsom-phy0-int-pins {
272 marvell,pins = "mpp18";
273 marvell,function = "gpio";
275 helios_i2c1_pins: i2c1-pins {
276 marvell,pins = "mpp26", "mpp27";
277 marvell,function = "i2c1";
279 helios_sdhci_cd_pins: helios-sdhci-cd-pins {
280 marvell,pins = "mpp20";
281 marvell,function = "gpio";
283 helios_sdhci_pins: helios-sdhci-pins {
284 marvell,pins = "mpp21", "mpp28",
287 marvell,function = "sd0";
289 helios_led_pins: helios-led-pins {
290 marvell,pins = "mpp24", "mpp25",
294 marvell,function = "gpio";
296 helios_fan_pins: helios-fan-pins {
297 marvell,pins = "mpp41", "mpp43",
299 marvell,function = "gpio";
301 microsom_spi1_cs_pins: spi1-cs-pins {
302 marvell,pins = "mpp59";
303 marvell,function = "spi1";