1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/* 3724ba675SRob Herring * Device Tree common file for the Seagate Personal Cloud NAS 1 and 2-Bay 4724ba675SRob Herring * (Armada 370 SoC). 5724ba675SRob Herring * 6724ba675SRob Herring * Copyright (C) 2015 Seagate 7724ba675SRob Herring * 8724ba675SRob Herring * Author: Simon Guinot <simon.guinot@sequanux.org> 9724ba675SRob Herring */ 10724ba675SRob Herring 11724ba675SRob Herring/* 12724ba675SRob Herring * TODO: add support for the white SATA LED. 13724ba675SRob Herring */ 14724ba675SRob Herring 15724ba675SRob Herring#include "armada-370.dtsi" 16724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 17724ba675SRob Herring#include <dt-bindings/input/input.h> 18724ba675SRob Herring 19724ba675SRob Herring/ { 20724ba675SRob Herring chosen { 21724ba675SRob Herring stdout-path = "serial0:115200n8"; 22724ba675SRob Herring }; 23724ba675SRob Herring 24724ba675SRob Herring memory@0 { 25724ba675SRob Herring device_type = "memory"; 26724ba675SRob Herring reg = <0x00000000 0x20000000>; /* 512 MB */ 27724ba675SRob Herring }; 28724ba675SRob Herring 29724ba675SRob Herring soc { 30724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 31724ba675SRob Herring MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>; 32724ba675SRob Herring 33724ba675SRob Herring internal-regs { 34724ba675SRob Herring coherency-fabric@20200 { 35724ba675SRob Herring broken-idle; 36724ba675SRob Herring }; 37724ba675SRob Herring 38724ba675SRob Herring serial@12000 { 39724ba675SRob Herring status = "okay"; 40724ba675SRob Herring }; 41724ba675SRob Herring 42724ba675SRob Herring ethernet@74000 { 43724ba675SRob Herring status = "okay"; 44724ba675SRob Herring pinctrl-0 = <&ge1_rgmii_pins>; 45724ba675SRob Herring pinctrl-names = "default"; 46724ba675SRob Herring phy = <&phy0>; 47724ba675SRob Herring phy-mode = "rgmii-id"; 48724ba675SRob Herring }; 49724ba675SRob Herring 50724ba675SRob Herring usb@50000 { 51724ba675SRob Herring status = "okay"; 52724ba675SRob Herring }; 53724ba675SRob Herring }; 54724ba675SRob Herring }; 55724ba675SRob Herring 56*afa6b4f3SKrzysztof Kozlowski regulator-0 { 57724ba675SRob Herring compatible = "regulator-fixed"; 58724ba675SRob Herring regulator-name = "USB Power"; 59724ba675SRob Herring regulator-min-microvolt = <5000000>; 60724ba675SRob Herring regulator-max-microvolt = <5000000>; 61724ba675SRob Herring regulator-always-on; 62724ba675SRob Herring regulator-boot-on; 63724ba675SRob Herring gpio = <&gpio1 27 GPIO_ACTIVE_LOW>; 64724ba675SRob Herring }; 65*afa6b4f3SKrzysztof Kozlowski 66*afa6b4f3SKrzysztof Kozlowski regulator-1 { 67724ba675SRob Herring compatible = "regulator-fixed"; 68724ba675SRob Herring regulator-name = "SATA0 power"; 69724ba675SRob Herring regulator-min-microvolt = <5000000>; 70724ba675SRob Herring regulator-max-microvolt = <5000000>; 71724ba675SRob Herring enable-active-high; 72724ba675SRob Herring regulator-always-on; 73724ba675SRob Herring regulator-boot-on; 74724ba675SRob Herring gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; 75724ba675SRob Herring }; 76724ba675SRob Herring 77724ba675SRob Herring gpio-keys { 78724ba675SRob Herring compatible = "gpio-keys"; 79724ba675SRob Herring 80724ba675SRob Herring button-power { 81724ba675SRob Herring label = "Power button"; 82724ba675SRob Herring linux,code = <KEY_POWER>; 83724ba675SRob Herring gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>; 84724ba675SRob Herring debounce-interval = <100>; 85724ba675SRob Herring }; 86724ba675SRob Herring button-reset { 87724ba675SRob Herring label = "Reset Button"; 88724ba675SRob Herring linux,code = <KEY_RESTART>; 89724ba675SRob Herring gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; 90724ba675SRob Herring debounce-interval = <100>; 91724ba675SRob Herring }; 92724ba675SRob Herring button-usb { 93724ba675SRob Herring label = "USB VBUS error"; 94724ba675SRob Herring linux,code = <KEY_UNKNOWN>; 95724ba675SRob Herring gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; 96724ba675SRob Herring debounce-interval = <100>; 97724ba675SRob Herring }; 98724ba675SRob Herring }; 99724ba675SRob Herring 100724ba675SRob Herring gpio-leds { 101724ba675SRob Herring compatible = "gpio-leds"; 102724ba675SRob Herring 103724ba675SRob Herring led-red-sata0 { 104724ba675SRob Herring label = "cumulus:red:sata0"; 105724ba675SRob Herring gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; 106724ba675SRob Herring default-state = "off"; 107724ba675SRob Herring }; 108724ba675SRob Herring }; 109724ba675SRob Herring 110724ba675SRob Herring gpio_poweroff { 111724ba675SRob Herring compatible = "gpio-poweroff"; 112724ba675SRob Herring gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>; 113724ba675SRob Herring }; 114724ba675SRob Herring}; 115724ba675SRob Herring 116724ba675SRob Herring&pciec { 117724ba675SRob Herring status = "okay"; 118724ba675SRob Herring 119724ba675SRob Herring /* USB 3.0 Bridge ASM1042A */ 120724ba675SRob Herring pcie@1,0 { 121724ba675SRob Herring status = "okay"; 122724ba675SRob Herring }; 123724ba675SRob Herring}; 124724ba675SRob Herring 125724ba675SRob Herring&mdio { 126724ba675SRob Herring pinctrl-0 = <&mdio_pins>; 127724ba675SRob Herring pinctrl-names = "default"; 128724ba675SRob Herring 129724ba675SRob Herring phy0: ethernet-phy@0 { 130724ba675SRob Herring reg = <0>; 131724ba675SRob Herring }; 132724ba675SRob Herring}; 133724ba675SRob Herring 134724ba675SRob Herring&pinctrl { 135724ba675SRob Herring pinctrl-0 = <&sata_led_pin>; 136724ba675SRob Herring pinctrl-names = "default"; 137724ba675SRob Herring 138724ba675SRob Herring sata_led_pin: sata-led-pin { 139724ba675SRob Herring marvell,pins = "mpp60"; 140724ba675SRob Herring marvell,function = "sata0"; 141724ba675SRob Herring }; 142724ba675SRob Herring gpio_led_pin: gpio-led-pin { 143724ba675SRob Herring marvell,pins = "mpp60"; 144724ba675SRob Herring marvell,function = "gpio"; 145724ba675SRob Herring }; 146724ba675SRob Herring}; 147724ba675SRob Herring 148724ba675SRob Herring&spi0 { 149724ba675SRob Herring status = "okay"; 150724ba675SRob Herring pinctrl-0 = <&spi0_pins2>; 151724ba675SRob Herring pinctrl-names = "default"; 152724ba675SRob Herring 153724ba675SRob Herring flash@0 { 154724ba675SRob Herring #address-cells = <1>; 155724ba675SRob Herring #size-cells = <1>; 156724ba675SRob Herring /* MX25L8006E */ 157724ba675SRob Herring compatible = "mxicy,mx25l8005", "jedec,spi-nor"; 158724ba675SRob Herring reg = <0>; /* Chip select 0 */ 159724ba675SRob Herring spi-max-frequency = <50000000>; 160724ba675SRob Herring 161724ba675SRob Herring partition@0 { 162724ba675SRob Herring label = "u-boot"; 163724ba675SRob Herring reg = <0x0 0x100000>; 164724ba675SRob Herring }; 165724ba675SRob Herring }; 166724ba675SRob Herring}; 167