kirkwood: switch from swconfig to dsa
[oweals/openwrt.git] / target / linux / kirkwood / files-4.14 / arch / arm / boot / dts / kirkwood-nsa310b.dts
1 /dts-v1/;
2
3 #include "kirkwood-nsa3x0-common.dtsi"
4
5 /*
6  * There are at least two different NSA310 designs. This variant has
7  * a red/green USB Led (same as nsa310) and a lm85 temp/fan controller.
8  */
9
10 / {
11         model = "ZyXEL NSA310b";
12         compatible = "zyxel,nsa310b", "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
13
14         aliases {
15                 led-boot = &led_green_sys;
16                 led-failsafe = &led_red_sys;
17                 led-running = &led_green_sys;
18                 led-upgrade = &led_red_sys;
19         };
20
21         memory {
22                 device_type = "memory";
23                 reg = <0x00000000 0x10000000>;
24         };
25
26         chosen {
27                 bootargs = "console=ttyS0,115200";
28                 stdout-path = &uart0;
29         };
30
31         ocp@f1000000 {
32                 pinctrl: pin-controller@10000 {
33                         pinctrl-names = "default";
34
35                         pmx_led_esata_green: pmx-led-esata-green {
36                                 marvell,pins = "mpp12";
37                                 marvell,function = "gpio";
38                         };
39
40                         pmx_led_esata_red: pmx-led-esata-red {
41                                 marvell,pins = "mpp13";
42                                 marvell,function = "gpio";
43                         };
44
45                         pmx_led_usb_green: pmx-led-usb-green {
46                                 marvell,pins = "mpp15";
47                                 marvell,function = "gpio";
48                         };
49
50                         pmx_led_usb_red: pmx-led-usb-red {
51                                 marvell,pins = "mpp16";
52                                 marvell,function = "gpio";
53                         };
54
55                         pmx_led_sys_green: pmx-led-sys-green {
56                                 marvell,pins = "mpp28";
57                                 marvell,function = "gpio";
58                         };
59
60                         pmx_led_sys_red: pmx-led-sys-red {
61                                 marvell,pins = "mpp29";
62                                 marvell,function = "gpio";
63                         };
64
65                         pmx_led_hdd_green: pmx-led-hdd-green {
66                                 marvell,pins = "mpp41";
67                                 marvell,function = "gpio";
68                         };
69
70                         pmx_led_hdd_red: pmx-led-hdd-red {
71                                 marvell,pins = "mpp42";
72                                 marvell,function = "gpio";
73                         };
74
75                 };
76
77                 i2c@11000 {
78                         status = "okay";
79
80                         lm85: lm85@2e {
81                                 compatible = "national,lm85";
82                                 reg = <0x2e>;
83                         };
84                 };
85         };
86
87         gpio-leds {
88                 compatible = "gpio-leds";
89
90                 led_green_sys: green-sys {
91                         label = "nsa310:green:sys";
92                         gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
93                         default-state = "on";
94                 };
95                 led_red_sys: red-sys {
96                         label = "nsa310:red:sys";
97                         gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
98                 };
99                 green-hdd {
100                         label = "nsa310:green:hdd";
101                         gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
102                 };
103                 red-hdd {
104                         label = "nsa310:red:hdd";
105                         gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
106                 };
107                 green-esata {
108                         label = "nsa310:green:esata";
109                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
110                 };
111                 red-esata {
112                         label = "nsa310:red:esata";
113                         gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
114                 };
115                 green-usb {
116                         label = "nsa310:green:usb";
117                         gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
118                 };
119                 red-usb {
120                         label = "nsa310:red:usb";
121                         gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
122                 };
123                 green-copy {
124                         label = "nsa310:green:copy";
125                         gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
126                 };
127                 red-copy {
128                         label = "nsa310:red:copy";
129                         gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
130                 };
131         };
132 };