1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Device Tree file for Seagate Blackarmor NAS220
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (C) 2014 Evgeni Dobrev <evgeni@studio-punkt.com>
6*724ba675SRob Herring */
7*724ba675SRob Herring
8*724ba675SRob Herring/dts-v1/;
9*724ba675SRob Herring
10*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
11*724ba675SRob Herring#include <dt-bindings/input/input.h>
12*724ba675SRob Herring#include "kirkwood.dtsi"
13*724ba675SRob Herring#include "kirkwood-6192.dtsi"
14*724ba675SRob Herring
15*724ba675SRob Herring/ {
16*724ba675SRob Herring	model = "Seagate Blackarmor NAS220";
17*724ba675SRob Herring	compatible = "seagate,blackarmor-nas220","marvell,kirkwood-88f6192",
18*724ba675SRob Herring		     "marvell,kirkwood";
19*724ba675SRob Herring
20*724ba675SRob Herring	memory { /* 128 MB */
21*724ba675SRob Herring		device_type = "memory";
22*724ba675SRob Herring		reg = <0x00000000 0x8000000>;
23*724ba675SRob Herring	};
24*724ba675SRob Herring
25*724ba675SRob Herring	chosen {
26*724ba675SRob Herring		bootargs = "console=ttyS0,115200n8";
27*724ba675SRob Herring		stdout-path = &uart0;
28*724ba675SRob Herring	};
29*724ba675SRob Herring
30*724ba675SRob Herring	gpio_poweroff {
31*724ba675SRob Herring		compatible = "gpio-poweroff";
32*724ba675SRob Herring		gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
33*724ba675SRob Herring	};
34*724ba675SRob Herring
35*724ba675SRob Herring	gpio_keys {
36*724ba675SRob Herring		compatible = "gpio-keys";
37*724ba675SRob Herring
38*724ba675SRob Herring		reset {
39*724ba675SRob Herring			label = "Reset";
40*724ba675SRob Herring			linux,code = <KEY_POWER>;
41*724ba675SRob Herring			gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
42*724ba675SRob Herring		};
43*724ba675SRob Herring
44*724ba675SRob Herring		button {
45*724ba675SRob Herring			label = "Power";
46*724ba675SRob Herring			linux,code = <KEY_SLEEP>;
47*724ba675SRob Herring			gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
48*724ba675SRob Herring		};
49*724ba675SRob Herring	};
50*724ba675SRob Herring
51*724ba675SRob Herring	gpio-leds {
52*724ba675SRob Herring		compatible = "gpio-leds";
53*724ba675SRob Herring
54*724ba675SRob Herring		blue-power {
55*724ba675SRob Herring			label = "nas220:blue:power";
56*724ba675SRob Herring			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
57*724ba675SRob Herring			linux,default-trigger = "default-on";
58*724ba675SRob Herring		};
59*724ba675SRob Herring	};
60*724ba675SRob Herring
61*724ba675SRob Herring	regulators {
62*724ba675SRob Herring		compatible = "simple-bus";
63*724ba675SRob Herring		#address-cells = <1>;
64*724ba675SRob Herring		#size-cells = <0>;
65*724ba675SRob Herring		pinctrl-0 = <&pmx_power_sata0 &pmx_power_sata1>;
66*724ba675SRob Herring		pinctrl-names = "default";
67*724ba675SRob Herring
68*724ba675SRob Herring		sata0_power: regulator@1 {
69*724ba675SRob Herring			compatible = "regulator-fixed";
70*724ba675SRob Herring			reg = <1>;
71*724ba675SRob Herring			regulator-name = "SATA0 Power";
72*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
73*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
74*724ba675SRob Herring			enable-active-high;
75*724ba675SRob Herring			regulator-always-on;
76*724ba675SRob Herring			regulator-boot-on;
77*724ba675SRob Herring			gpio = <&gpio0 24 GPIO_ACTIVE_LOW>;
78*724ba675SRob Herring		};
79*724ba675SRob Herring
80*724ba675SRob Herring		sata1_power: regulator@2 {
81*724ba675SRob Herring			compatible = "regulator-fixed";
82*724ba675SRob Herring			reg = <2>;
83*724ba675SRob Herring			regulator-name = "SATA1 Power";
84*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
85*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
86*724ba675SRob Herring			enable-active-high;
87*724ba675SRob Herring			regulator-always-on;
88*724ba675SRob Herring			regulator-boot-on;
89*724ba675SRob Herring			gpio = <&gpio0 28 GPIO_ACTIVE_LOW>;
90*724ba675SRob Herring		};
91*724ba675SRob Herring	};
92*724ba675SRob Herring};
93*724ba675SRob Herring
94*724ba675SRob Herring/*
95*724ba675SRob Herring * Serial port routed to connector CN5
96*724ba675SRob Herring *
97*724ba675SRob Herring * pin 1 - TX (CPU's TX)
98*724ba675SRob Herring * pin 4 - RX (CPU's RX)
99*724ba675SRob Herring * pin 6 - GND
100*724ba675SRob Herring */
101*724ba675SRob Herring&uart0 {
102*724ba675SRob Herring	status = "okay";
103*724ba675SRob Herring};
104*724ba675SRob Herring
105*724ba675SRob Herring&pinctrl {
106*724ba675SRob Herring	pinctrl-0 = <&pmx_button_reset &pmx_button_power>;
107*724ba675SRob Herring	pinctrl-names = "default";
108*724ba675SRob Herring
109*724ba675SRob Herring	pmx_act_sata0: pmx-act-sata0 {
110*724ba675SRob Herring		marvell,pins = "mpp15";
111*724ba675SRob Herring		marvell,function = "sata0";
112*724ba675SRob Herring	};
113*724ba675SRob Herring
114*724ba675SRob Herring	pmx_act_sata1: pmx-act-sata1 {
115*724ba675SRob Herring		marvell,pins = "mpp16";
116*724ba675SRob Herring		marvell,function = "sata1";
117*724ba675SRob Herring	};
118*724ba675SRob Herring
119*724ba675SRob Herring	pmx_power_sata0: pmx-power-sata0 {
120*724ba675SRob Herring		marvell,pins = "mpp24";
121*724ba675SRob Herring		marvell,function = "gpio";
122*724ba675SRob Herring	};
123*724ba675SRob Herring
124*724ba675SRob Herring	pmx_power_sata1: pmx-power-sata1 {
125*724ba675SRob Herring		marvell,pins = "mpp28";
126*724ba675SRob Herring		marvell,function = "gpio";
127*724ba675SRob Herring	};
128*724ba675SRob Herring
129*724ba675SRob Herring	pmx_button_reset: pmx-button-reset {
130*724ba675SRob Herring		marvell,pins = "mpp29";
131*724ba675SRob Herring		marvell,function = "gpio";
132*724ba675SRob Herring	};
133*724ba675SRob Herring
134*724ba675SRob Herring	pmx_button_power: pmx-button-power {
135*724ba675SRob Herring		marvell,pins = "mpp26";
136*724ba675SRob Herring		marvell,function = "gpio";
137*724ba675SRob Herring	};
138*724ba675SRob Herring};
139*724ba675SRob Herring
140*724ba675SRob Herring&sata {
141*724ba675SRob Herring	status = "okay";
142*724ba675SRob Herring	nr-ports = <2>;
143*724ba675SRob Herring};
144*724ba675SRob Herring
145*724ba675SRob Herring&i2c0 {
146*724ba675SRob Herring	status = "okay";
147*724ba675SRob Herring
148*724ba675SRob Herring	adt7476: thermal@2e {
149*724ba675SRob Herring		compatible = "adi,adt7476";
150*724ba675SRob Herring		reg = <0x2e>;
151*724ba675SRob Herring	};
152*724ba675SRob Herring};
153*724ba675SRob Herring
154*724ba675SRob Herring&nand {
155*724ba675SRob Herring	status = "okay";
156*724ba675SRob Herring};
157*724ba675SRob Herring
158*724ba675SRob Herring&mdio {
159*724ba675SRob Herring	status = "okay";
160*724ba675SRob Herring
161*724ba675SRob Herring	ethphy0: ethernet-phy@8 {
162*724ba675SRob Herring		 reg = <8>;
163*724ba675SRob Herring	};
164*724ba675SRob Herring};
165*724ba675SRob Herring
166*724ba675SRob Herring&eth0 {
167*724ba675SRob Herring	status = "okay";
168*724ba675SRob Herring
169*724ba675SRob Herring	ethernet0-port@0 {
170*724ba675SRob Herring		phy-handle = <&ethphy0>;
171*724ba675SRob Herring	};
172*724ba675SRob Herring};
173