1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ 2724ba675SRob Herring/* 3724ba675SRob Herring * Device Tree file for Seagate Blackarmor NAS220 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (C) 2014 Evgeni Dobrev <evgeni@studio-punkt.com> 6724ba675SRob Herring */ 7724ba675SRob Herring 8724ba675SRob Herring/dts-v1/; 9724ba675SRob Herring 10724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 11724ba675SRob Herring#include <dt-bindings/input/input.h> 12724ba675SRob Herring#include "kirkwood.dtsi" 13724ba675SRob Herring#include "kirkwood-6192.dtsi" 14724ba675SRob Herring 15724ba675SRob Herring/ { 16724ba675SRob Herring model = "Seagate Blackarmor NAS220"; 17724ba675SRob Herring compatible = "seagate,blackarmor-nas220","marvell,kirkwood-88f6192", 18724ba675SRob Herring "marvell,kirkwood"; 19724ba675SRob Herring 20724ba675SRob Herring memory { /* 128 MB */ 21724ba675SRob Herring device_type = "memory"; 22724ba675SRob Herring reg = <0x00000000 0x8000000>; 23724ba675SRob Herring }; 24724ba675SRob Herring 25724ba675SRob Herring chosen { 26724ba675SRob Herring bootargs = "console=ttyS0,115200n8"; 27724ba675SRob Herring stdout-path = &uart0; 28724ba675SRob Herring }; 29724ba675SRob Herring 30724ba675SRob Herring gpio_poweroff { 31724ba675SRob Herring compatible = "gpio-poweroff"; 32724ba675SRob Herring gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 33724ba675SRob Herring }; 34724ba675SRob Herring 35724ba675SRob Herring gpio_keys { 36724ba675SRob Herring compatible = "gpio-keys"; 37724ba675SRob Herring 38b98a9191SKrzysztof Kozlowski button-reset { 39724ba675SRob Herring label = "Reset"; 40724ba675SRob Herring linux,code = <KEY_POWER>; 41724ba675SRob Herring gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; 42724ba675SRob Herring }; 43724ba675SRob Herring 44b98a9191SKrzysztof Kozlowski button-power { 45724ba675SRob Herring label = "Power"; 46724ba675SRob Herring linux,code = <KEY_SLEEP>; 47724ba675SRob Herring gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 48724ba675SRob Herring }; 49724ba675SRob Herring }; 50724ba675SRob Herring 51724ba675SRob Herring gpio-leds { 52724ba675SRob Herring compatible = "gpio-leds"; 53724ba675SRob Herring 54*9d0120b7SKrzysztof Kozlowski led-blue-power { 55724ba675SRob Herring label = "nas220:blue:power"; 56724ba675SRob Herring gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; 57724ba675SRob Herring linux,default-trigger = "default-on"; 58724ba675SRob Herring }; 59724ba675SRob Herring }; 60724ba675SRob Herring 61724ba675SRob Herring regulators { 62724ba675SRob Herring compatible = "simple-bus"; 63724ba675SRob Herring #address-cells = <1>; 64724ba675SRob Herring #size-cells = <0>; 65724ba675SRob Herring pinctrl-0 = <&pmx_power_sata0 &pmx_power_sata1>; 66724ba675SRob Herring pinctrl-names = "default"; 67724ba675SRob Herring 68724ba675SRob Herring sata0_power: regulator@1 { 69724ba675SRob Herring compatible = "regulator-fixed"; 70724ba675SRob Herring reg = <1>; 71724ba675SRob Herring regulator-name = "SATA0 Power"; 72724ba675SRob Herring regulator-min-microvolt = <5000000>; 73724ba675SRob Herring regulator-max-microvolt = <5000000>; 74724ba675SRob Herring enable-active-high; 75724ba675SRob Herring regulator-always-on; 76724ba675SRob Herring regulator-boot-on; 77724ba675SRob Herring gpio = <&gpio0 24 GPIO_ACTIVE_LOW>; 78724ba675SRob Herring }; 79724ba675SRob Herring 80724ba675SRob Herring sata1_power: regulator@2 { 81724ba675SRob Herring compatible = "regulator-fixed"; 82724ba675SRob Herring reg = <2>; 83724ba675SRob Herring regulator-name = "SATA1 Power"; 84724ba675SRob Herring regulator-min-microvolt = <5000000>; 85724ba675SRob Herring regulator-max-microvolt = <5000000>; 86724ba675SRob Herring enable-active-high; 87724ba675SRob Herring regulator-always-on; 88724ba675SRob Herring regulator-boot-on; 89724ba675SRob Herring gpio = <&gpio0 28 GPIO_ACTIVE_LOW>; 90724ba675SRob Herring }; 91724ba675SRob Herring }; 92724ba675SRob Herring}; 93724ba675SRob Herring 94724ba675SRob Herring/* 95724ba675SRob Herring * Serial port routed to connector CN5 96724ba675SRob Herring * 97724ba675SRob Herring * pin 1 - TX (CPU's TX) 98724ba675SRob Herring * pin 4 - RX (CPU's RX) 99724ba675SRob Herring * pin 6 - GND 100724ba675SRob Herring */ 101724ba675SRob Herring&uart0 { 102724ba675SRob Herring status = "okay"; 103724ba675SRob Herring}; 104724ba675SRob Herring 105724ba675SRob Herring&pinctrl { 106724ba675SRob Herring pinctrl-0 = <&pmx_button_reset &pmx_button_power>; 107724ba675SRob Herring pinctrl-names = "default"; 108724ba675SRob Herring 109724ba675SRob Herring pmx_act_sata0: pmx-act-sata0 { 110724ba675SRob Herring marvell,pins = "mpp15"; 111724ba675SRob Herring marvell,function = "sata0"; 112724ba675SRob Herring }; 113724ba675SRob Herring 114724ba675SRob Herring pmx_act_sata1: pmx-act-sata1 { 115724ba675SRob Herring marvell,pins = "mpp16"; 116724ba675SRob Herring marvell,function = "sata1"; 117724ba675SRob Herring }; 118724ba675SRob Herring 119724ba675SRob Herring pmx_power_sata0: pmx-power-sata0 { 120724ba675SRob Herring marvell,pins = "mpp24"; 121724ba675SRob Herring marvell,function = "gpio"; 122724ba675SRob Herring }; 123724ba675SRob Herring 124724ba675SRob Herring pmx_power_sata1: pmx-power-sata1 { 125724ba675SRob Herring marvell,pins = "mpp28"; 126724ba675SRob Herring marvell,function = "gpio"; 127724ba675SRob Herring }; 128724ba675SRob Herring 129724ba675SRob Herring pmx_button_reset: pmx-button-reset { 130724ba675SRob Herring marvell,pins = "mpp29"; 131724ba675SRob Herring marvell,function = "gpio"; 132724ba675SRob Herring }; 133724ba675SRob Herring 134724ba675SRob Herring pmx_button_power: pmx-button-power { 135724ba675SRob Herring marvell,pins = "mpp26"; 136724ba675SRob Herring marvell,function = "gpio"; 137724ba675SRob Herring }; 138724ba675SRob Herring}; 139724ba675SRob Herring 140724ba675SRob Herring&sata { 141724ba675SRob Herring status = "okay"; 142724ba675SRob Herring nr-ports = <2>; 143724ba675SRob Herring}; 144724ba675SRob Herring 145724ba675SRob Herring&i2c0 { 146724ba675SRob Herring status = "okay"; 147724ba675SRob Herring 148724ba675SRob Herring adt7476: thermal@2e { 149724ba675SRob Herring compatible = "adi,adt7476"; 150724ba675SRob Herring reg = <0x2e>; 151724ba675SRob Herring }; 152724ba675SRob Herring}; 153724ba675SRob Herring 154724ba675SRob Herring&nand { 155724ba675SRob Herring status = "okay"; 156724ba675SRob Herring}; 157724ba675SRob Herring 158724ba675SRob Herring&mdio { 159724ba675SRob Herring status = "okay"; 160724ba675SRob Herring 161724ba675SRob Herring ethphy0: ethernet-phy@8 { 162724ba675SRob Herring reg = <8>; 163724ba675SRob Herring }; 164724ba675SRob Herring}; 165724ba675SRob Herring 166724ba675SRob Herringð0 { 167724ba675SRob Herring status = "okay"; 168724ba675SRob Herring 169724ba675SRob Herring ethernet0-port@0 { 170724ba675SRob Herring phy-handle = <ðphy0>; 171724ba675SRob Herring }; 172724ba675SRob Herring}; 173