kirkwood: apply minor DTS style improvements
[openwrt/openwrt.git] / target / linux / kirkwood / files-4.19 / 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@0 {
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
96 led_red_sys: red-sys {
97 label = "nsa310:red:sys";
98 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
99 };
100
101 green-hdd {
102 label = "nsa310:green:hdd";
103 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
104 };
105
106 red-hdd {
107 label = "nsa310:red:hdd";
108 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
109 };
110
111 green-esata {
112 label = "nsa310:green:esata";
113 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
114 };
115
116 red-esata {
117 label = "nsa310:red:esata";
118 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
119 };
120
121 green-usb {
122 label = "nsa310:green:usb";
123 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
124 };
125
126 red-usb {
127 label = "nsa310:red:usb";
128 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
129 };
130
131 green-copy {
132 label = "nsa310:green:copy";
133 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
134 };
135
136 red-copy {
137 label = "nsa310:red:copy";
138 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
139 };
140 };
141 };