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