1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Device Tree common file for the Seagate Per 3 * Device Tree common file for the Seagate Personal Cloud NAS 1 and 2-Bay 4 * (Armada 370 SoC). 4 * (Armada 370 SoC). 5 * 5 * 6 * Copyright (C) 2015 Seagate 6 * Copyright (C) 2015 Seagate 7 * 7 * 8 * Author: Simon Guinot <simon.guinot@sequanux. 8 * Author: Simon Guinot <simon.guinot@sequanux.org> 9 */ 9 */ 10 10 11 /* 11 /* 12 * TODO: add support for the white SATA LED. 12 * TODO: add support for the white SATA LED. 13 */ 13 */ 14 14 15 #include "armada-370.dtsi" 15 #include "armada-370.dtsi" 16 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/input/input.h> 17 #include <dt-bindings/input/input.h> 18 18 19 / { 19 / { 20 chosen { 20 chosen { 21 stdout-path = "serial0:115200n 21 stdout-path = "serial0:115200n8"; 22 }; 22 }; 23 23 24 memory@0 { 24 memory@0 { 25 device_type = "memory"; 25 device_type = "memory"; 26 reg = <0x00000000 0x20000000>; 26 reg = <0x00000000 0x20000000>; /* 512 MB */ 27 }; 27 }; 28 28 29 soc { 29 soc { 30 ranges = <MBUS_ID(0xf0, 0x01) 30 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 31 MBUS_ID(0x01, 0xe0) 31 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>; 32 32 33 internal-regs { 33 internal-regs { 34 coherency-fabric@20200 34 coherency-fabric@20200 { 35 broken-idle; 35 broken-idle; 36 }; 36 }; 37 37 38 serial@12000 { 38 serial@12000 { 39 status = "okay 39 status = "okay"; 40 }; 40 }; 41 41 42 ethernet@74000 { 42 ethernet@74000 { 43 status = "okay 43 status = "okay"; 44 pinctrl-0 = <& 44 pinctrl-0 = <&ge1_rgmii_pins>; 45 pinctrl-names 45 pinctrl-names = "default"; 46 phy = <&phy0>; 46 phy = <&phy0>; 47 phy-mode = "rg 47 phy-mode = "rgmii-id"; 48 }; 48 }; 49 49 50 usb@50000 { 50 usb@50000 { 51 status = "okay 51 status = "okay"; 52 }; 52 }; 53 }; 53 }; 54 }; 54 }; 55 55 56 regulator-0 { 56 regulator-0 { 57 compatible = "regulator-fixed" 57 compatible = "regulator-fixed"; 58 regulator-name = "USB Power"; 58 regulator-name = "USB Power"; 59 regulator-min-microvolt = <500 59 regulator-min-microvolt = <5000000>; 60 regulator-max-microvolt = <500 60 regulator-max-microvolt = <5000000>; 61 regulator-always-on; 61 regulator-always-on; 62 regulator-boot-on; 62 regulator-boot-on; 63 gpio = <&gpio1 27 GPIO_ACTIVE_ 63 gpio = <&gpio1 27 GPIO_ACTIVE_LOW>; 64 }; 64 }; 65 65 66 regulator-1 { 66 regulator-1 { 67 compatible = "regulator-fixed" 67 compatible = "regulator-fixed"; 68 regulator-name = "SATA0 power" 68 regulator-name = "SATA0 power"; 69 regulator-min-microvolt = <500 69 regulator-min-microvolt = <5000000>; 70 regulator-max-microvolt = <500 70 regulator-max-microvolt = <5000000>; 71 enable-active-high; 71 enable-active-high; 72 regulator-always-on; 72 regulator-always-on; 73 regulator-boot-on; 73 regulator-boot-on; 74 gpio = <&gpio1 18 GPIO_ACTIVE_ 74 gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; 75 }; 75 }; 76 76 77 gpio-keys { 77 gpio-keys { 78 compatible = "gpio-keys"; 78 compatible = "gpio-keys"; 79 79 80 button-power { 80 button-power { 81 label = "Power button" 81 label = "Power button"; 82 linux,code = <KEY_POWE 82 linux,code = <KEY_POWER>; 83 gpios = <&gpio1 19 GPI 83 gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>; 84 debounce-interval = <1 84 debounce-interval = <100>; 85 }; 85 }; 86 button-reset { 86 button-reset { 87 label = "Reset Button" 87 label = "Reset Button"; 88 linux,code = <KEY_REST 88 linux,code = <KEY_RESTART>; 89 gpios = <&gpio1 23 GPI 89 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; 90 debounce-interval = <1 90 debounce-interval = <100>; 91 }; 91 }; 92 button-usb { 92 button-usb { 93 label = "USB VBUS erro 93 label = "USB VBUS error"; 94 linux,code = <KEY_UNKN 94 linux,code = <KEY_UNKNOWN>; 95 gpios = <&gpio1 21 GPI 95 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; 96 debounce-interval = <1 96 debounce-interval = <100>; 97 }; 97 }; 98 }; 98 }; 99 99 100 gpio-leds { 100 gpio-leds { 101 compatible = "gpio-leds"; 101 compatible = "gpio-leds"; 102 102 103 led-red-sata0 { 103 led-red-sata0 { 104 label = "cumulus:red:s 104 label = "cumulus:red:sata0"; 105 gpios = <&gpio1 26 GPI 105 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; 106 default-state = "off"; 106 default-state = "off"; 107 }; 107 }; 108 }; 108 }; 109 109 110 gpio_poweroff { 110 gpio_poweroff { 111 compatible = "gpio-poweroff"; 111 compatible = "gpio-poweroff"; 112 gpios = <&gpio1 25 GPIO_ACTIVE 112 gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>; 113 }; 113 }; 114 }; 114 }; 115 115 116 &pciec { 116 &pciec { 117 status = "okay"; 117 status = "okay"; 118 118 119 /* USB 3.0 Bridge ASM1042A */ 119 /* USB 3.0 Bridge ASM1042A */ 120 pcie@1,0 { 120 pcie@1,0 { 121 status = "okay"; 121 status = "okay"; 122 }; 122 }; 123 }; 123 }; 124 124 125 &mdio { 125 &mdio { 126 pinctrl-0 = <&mdio_pins>; 126 pinctrl-0 = <&mdio_pins>; 127 pinctrl-names = "default"; 127 pinctrl-names = "default"; 128 128 129 phy0: ethernet-phy@0 { 129 phy0: ethernet-phy@0 { 130 reg = <0>; 130 reg = <0>; 131 }; 131 }; 132 }; 132 }; 133 133 134 &pinctrl { 134 &pinctrl { 135 pinctrl-0 = <&sata_led_pin>; 135 pinctrl-0 = <&sata_led_pin>; 136 pinctrl-names = "default"; 136 pinctrl-names = "default"; 137 137 138 sata_led_pin: sata-led-pin { 138 sata_led_pin: sata-led-pin { 139 marvell,pins = "mpp60"; 139 marvell,pins = "mpp60"; 140 marvell,function = "sata0"; 140 marvell,function = "sata0"; 141 }; 141 }; 142 gpio_led_pin: gpio-led-pin { 142 gpio_led_pin: gpio-led-pin { 143 marvell,pins = "mpp60"; 143 marvell,pins = "mpp60"; 144 marvell,function = "gpio"; 144 marvell,function = "gpio"; 145 }; 145 }; 146 }; 146 }; 147 147 148 &spi0 { 148 &spi0 { 149 status = "okay"; 149 status = "okay"; 150 pinctrl-0 = <&spi0_pins2>; 150 pinctrl-0 = <&spi0_pins2>; 151 pinctrl-names = "default"; 151 pinctrl-names = "default"; 152 152 153 flash@0 { 153 flash@0 { 154 #address-cells = <1>; 154 #address-cells = <1>; 155 #size-cells = <1>; 155 #size-cells = <1>; 156 /* MX25L8006E */ 156 /* MX25L8006E */ 157 compatible = "mxicy,mx25l8005" 157 compatible = "mxicy,mx25l8005", "jedec,spi-nor"; 158 reg = <0>; /* Chip select 0 */ 158 reg = <0>; /* Chip select 0 */ 159 spi-max-frequency = <50000000> 159 spi-max-frequency = <50000000>; 160 160 161 partition@0 { 161 partition@0 { 162 label = "u-boot"; 162 label = "u-boot"; 163 reg = <0x0 0x100000>; 163 reg = <0x0 0x100000>; 164 }; 164 }; 165 }; 165 }; 166 }; 166 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.