1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Device Tree common file for the Seagate NAS 2 and 4-bay (Armada 370 SoC). 4 * 5 * Copyright (C) 2015 Seagate 6 * 7 * Author: Vincent Donnefort <vdonnefort@gmail.com> 8 */ 9 10 /* 11 * TODO: add support for the white SATA LEDs associated with HDD 0 and 1. 12 */ 13 14 #include "armada-370.dtsi" 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/input.h> 17 18 / { 19 chosen { 20 stdout-path = "serial0:115200n8"; 21 }; 22 23 memory@0 { 24 device_type = "memory"; 25 reg = <0x00000000 0x20000000>; /* 512 MB */ 26 }; 27 28 soc { 29 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 30 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>; 31 32 internal-regs { 33 serial@12000 { 34 status = "okay"; 35 }; 36 37 sata@a0000 { 38 nr-ports = <2>; 39 status = "okay"; 40 }; 41 42 ethernet@70000 { 43 status = "okay"; 44 pinctrl-0 = <&ge0_rgmii_pins>; 45 pinctrl-names = "default"; 46 phy = <&phy0>; 47 phy-mode = "rgmii-id"; 48 }; 49 50 i2c@11000 { 51 status = "okay"; 52 pinctrl-0 = <&i2c0_pins>; 53 pinctrl-names = "default"; 54 clock-frequency = <100000>; 55 56 /* RTC - NXP 8563T (second source) */ 57 rtc@51 { 58 compatible = "nxp,pcf8563"; 59 reg = <0x51>; 60 interrupts = <110>; 61 }; 62 /* RTC - MCP7940NT */ 63 rtc@6f { 64 compatible = "microchip,mcp7941x"; 65 reg = <0x6f>; 66 interrupts = <110>; 67 }; 68 }; 69 }; 70 71 }; 72 73 regulator-1 { 74 compatible = "regulator-fixed"; 75 regulator-name = "SATA0 power"; 76 regulator-min-microvolt = <5000000>; 77 regulator-max-microvolt = <5000000>; 78 enable-active-high; 79 regulator-always-on; 80 regulator-boot-on; 81 gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; 82 }; 83 84 regulator-2 { 85 compatible = "regulator-fixed"; 86 regulator-name = "SATA1 power"; 87 regulator-min-microvolt = <5000000>; 88 regulator-max-microvolt = <5000000>; 89 enable-active-high; 90 regulator-always-on; 91 regulator-boot-on; 92 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; 93 }; 94 95 gpio-fan { 96 compatible = "gpio-fan"; 97 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH 98 &gpio2 1 GPIO_ACTIVE_HIGH>; 99 }; 100 101 gpio-keys { 102 compatible = "gpio-keys"; 103 104 button-power { 105 label = "Power button"; 106 linux,code = <KEY_POWER>; 107 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; 108 debounce-interval = <100>; 109 }; 110 button-backup { 111 label = "Backup button"; 112 linux,code = <KEY_OPTION>; 113 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; 114 debounce-interval = <100>; 115 }; 116 button-reset { 117 label = "Reset Button"; 118 linux,code = <KEY_RESTART>; 119 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; 120 debounce-interval = <100>; 121 }; 122 }; 123 124 gpio-leds { 125 compatible = "gpio-leds"; 126 127 led-white-power { 128 label = "dart:white:power"; 129 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 130 linux,default-trigger = "timer"; 131 132 }; 133 led-red-power { 134 label = "dart:red:power"; 135 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; 136 }; 137 led-red-sata0 { 138 label = "dart:red:sata0"; 139 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 140 }; 141 led-red-sata1 { 142 label = "dart:red:sata1"; 143 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; 144 }; 145 }; 146 147 gpio_poweroff { 148 compatible = "gpio-poweroff"; 149 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>; 150 }; 151 }; 152 153 &pciec { 154 status = "okay"; 155 156 /* USB 3.0 bridge ASM1042A */ 157 pcie@2,0 { 158 status = "okay"; 159 }; 160 }; 161 162 163 &mdio { 164 pinctrl-0 = <&mdio_pins>; 165 pinctrl-names = "default"; 166 167 phy0: ethernet-phy@0 { 168 reg = <0>; 169 }; 170 }; 171 172 &pinctrl { 173 pinctrl-0 = <&hdd0_led_sata_pin>, <&hdd1_led_sata_pin>; 174 pinctrl-names = "default"; 175 176 hdd0_led_sata_pin: hdd0-led-sata-pin { 177 marvell,pins = "mpp48"; 178 marvell,function = "sata1"; 179 }; 180 hdd0_led_gpio_pin: hdd0-led-gpio-pin { 181 marvell,pins = "mpp48"; 182 marvell,function = "gpio"; 183 }; 184 hdd1_led_sata_pin: hdd1-led-sata-pin { 185 marvell,pins = "mpp57"; 186 marvell,function = "sata0"; 187 }; 188 hdd1_led_gpio_pin: hdd1-led-gpio-pin { 189 marvell,pins = "mpp57"; 190 marvell,function = "gpio"; 191 }; 192 }; 193 194 &nand_controller { 195 status = "okay"; 196 197 nand@0 { 198 reg = <0>; 199 label = "pxa3xx_nand-0"; 200 nand-rb = <0>; 201 marvell,nand-keep-config; 202 nand-on-flash-bbt; 203 nand-ecc-strength = <4>; 204 nand-ecc-step-size = <512>; 205 206 partitions { 207 compatible = "fixed-partitions"; 208 #address-cells = <1>; 209 #size-cells = <1>; 210 211 partition@0 { 212 label = "u-boot"; 213 reg = <0x0 0x300000>; 214 }; 215 partition@300000 { 216 label = "device-tree"; 217 reg = <0x300000 0x20000>; 218 }; 219 partition@320000 { 220 label = "linux"; 221 reg = <0x320000 0x2000000>; 222 }; 223 partition@2320000 { 224 label = "rootfs"; 225 reg = <0x2320000 0xdce0000>; 226 }; 227 }; 228 }; 229 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.