kirkwood: switch from swconfig to dsa
[oweals/openwrt.git] / target / linux / kirkwood / files-4.14 / arch / arm / boot / dts / kirkwood-goflexhome.dts
1 /dts-v1/;
2
3 #include "kirkwood.dtsi"
4 #include "kirkwood-6281.dtsi"
5
6 / {
7         model = "Seagate GoFlex Home";
8         compatible = "seagate,goflexhome", "marvell,kirkwood-88f6281", "marvell,kirkwood";
9
10         aliases {
11                 led-boot = &led_health;
12                 led-failsafe = &led_fault;
13                 led-running = &led_health;
14                 led-upgrade = &led_fault;
15         };
16
17         memory {
18                 device_type = "memory";
19                 reg = <0x00000000 0x8000000>;
20         };
21
22         chosen {
23                 bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10";
24                 stdout-path = &uart0;
25         };
26
27         ocp@f1000000 {
28                 pinctrl: pin-controller@10000 {
29                         pmx_usb_power_enable: pmx-usb-power-enable {
30                                 marvell,pins = "mpp29";
31                                 marvell,function = "gpio";
32                         };
33                         pmx_led_white: pmx-led-white {
34                                 marvell,pins = "mpp40";
35                                 marvell,function = "gpio";
36                         };
37                         pmx_led_green: pmx-led_green {
38                                 marvell,pins = "mpp46";
39                                 marvell,function = "gpio";
40                         };
41                         pmx_led_orange: pmx-led-orange {
42                                 marvell,pins = "mpp47";
43                                 marvell,function = "gpio";
44                         };
45                 };
46                 serial@12000 {
47                         status = "ok";
48                 };
49
50                 sata@80000 {
51                         status = "okay";
52                         nr-ports = <2>;
53                 };
54
55         };
56         gpio-leds {
57                 compatible = "gpio-leds";
58
59                 led_health: health {
60                         label = "status:green:health";
61                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
62                         default-state = "on";
63                 };
64                 led_fault: fault {
65                         label = "status:orange:fault";
66                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
67                 };
68                 misc {
69                         label = "status:white:misc";
70                         gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
71                         linux,default-trigger = "disk-activity";
72                 };
73         };
74         regulators {
75                 compatible = "simple-bus";
76                 #address-cells = <1>;
77                 #size-cells = <0>;
78                 pinctrl-0 = <&pmx_usb_power_enable>;
79                 pinctrl-names = "default";
80
81                 usb_power: regulator@1 {
82                         compatible = "regulator-fixed";
83                         reg = <1>;
84                         regulator-name = "USB Power";
85                         regulator-min-microvolt = <5000000>;
86                         regulator-max-microvolt = <5000000>;
87                         enable-active-high;
88                         regulator-always-on;
89                         regulator-boot-on;
90                         gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
91                 };
92         };
93 };
94
95 &nand {
96         chip-delay = <40>;
97         status = "okay";
98
99         partition@0 {
100                 label = "u-boot";
101                 reg = <0x0000000 0x100000>;
102                 read-only;
103         };
104
105         partition@100000 {
106                 label = "ubi";
107                 reg = <0x100000 0x0ff00000>;
108         };
109 };
110
111 &mdio {
112         status = "okay";
113
114         ethphy0: ethernet-phy@0 {
115                 reg = <0>;
116         };
117 };
118
119 &eth0 {
120         status = "okay";
121         ethernet0-port@0 {
122                 phy-handle = <&ethphy0>;
123         };
124 };