blob: 0b69ee4934fa314c28ef0ad16940f839bf192e2e [file] [log] [blame]
Tero Jaaskoafcad882012-10-26 18:56:16 +03001/dts-v1/;
2
Adam Baker76a93dc2014-04-08 23:34:32 +01003#include "kirkwood-nsa3x0-common.dtsi"
Tero Jaaskoafcad882012-10-26 18:56:16 +03004
5/ {
Tero Jaaskoafcad882012-10-26 18:56:16 +03006 compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
7
8 memory {
9 device_type = "memory";
10 reg = <0x00000000 0x10000000>;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,115200";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020015 stdout-path = &uart0;
Tero Jaaskoafcad882012-10-26 18:56:16 +030016 };
17
18 ocp@f1000000 {
Sebastian Hesselbartha9483962014-04-30 14:56:32 +020019 pinctrl: pin-controller@10000 {
Thomas Petazzoni7a2c9bb2013-05-24 11:44:53 +020020 pinctrl-0 = <&pmx_unknown>;
Jason Cooper4ded6572013-01-26 20:50:14 +000021 pinctrl-names = "default";
22
23 pmx_led_esata_green: pmx-led-esata-green {
24 marvell,pins = "mpp12";
25 marvell,function = "gpio";
26 };
27
28 pmx_led_esata_red: pmx-led-esata-red {
29 marvell,pins = "mpp13";
30 marvell,function = "gpio";
31 };
32
33 pmx_led_usb_green: pmx-led-usb-green {
34 marvell,pins = "mpp15";
35 marvell,function = "gpio";
36 };
37
38 pmx_led_usb_red: pmx-led-usb-red {
39 marvell,pins = "mpp16";
40 marvell,function = "gpio";
41 };
42
Jason Cooper4ded6572013-01-26 20:50:14 +000043 pmx_led_sys_green: pmx-led-sys-green {
44 marvell,pins = "mpp28";
45 marvell,function = "gpio";
46 };
47
48 pmx_led_sys_red: pmx-led-sys-red {
49 marvell,pins = "mpp29";
50 marvell,function = "gpio";
51 };
52
Jason Cooper4ded6572013-01-26 20:50:14 +000053 pmx_led_hdd_green: pmx-led-hdd-green {
54 marvell,pins = "mpp41";
55 marvell,function = "gpio";
56 };
57
58 pmx_led_hdd_red: pmx-led-hdd-red {
59 marvell,pins = "mpp42";
60 marvell,function = "gpio";
61 };
62
63 pmx_unknown: pmx-unknown {
64 marvell,pins = "mpp44";
65 marvell,function = "gpio";
66 };
67
Tero Jaaskoafcad882012-10-26 18:56:16 +030068 };
69
70 i2c@11000 {
71 status = "okay";
Andrew Lunnb4d2a242012-12-28 15:08:50 +010072
73 adt7476: adt7476a@2e {
Andrew Lunndcdf9cf2014-03-22 13:46:00 +010074 compatible = "adi,adt7476";
Andrew Lunnb4d2a242012-12-28 15:08:50 +010075 reg = <0x2e>;
76 };
Tero Jaaskoafcad882012-10-26 18:56:16 +030077 };
Tero Jaaskoafcad882012-10-26 18:56:16 +030078 };
79
Tero Jaaskoafcad882012-10-26 18:56:16 +030080 gpio-leds {
81 compatible = "gpio-leds";
Thomas Petazzoni7a2c9bb2013-05-24 11:44:53 +020082 pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
83 &pmx_led_usb_green &pmx_led_usb_red
84 &pmx_led_sys_green &pmx_led_sys_red
85 &pmx_led_copy_green &pmx_led_copy_red
86 &pmx_led_hdd_green &pmx_led_hdd_red>;
87 pinctrl-names = "default";
Tero Jaaskoafcad882012-10-26 18:56:16 +030088
89 green-sys {
90 label = "nsa310:green:sys";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010091 gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +030092 };
93 red-sys {
94 label = "nsa310:red:sys";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010095 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +030096 };
97 green-hdd {
98 label = "nsa310:green:hdd";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010099 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +0300100 };
101 red-hdd {
102 label = "nsa310:red:hdd";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100103 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +0300104 };
105 green-esata {
106 label = "nsa310:green:esata";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100107 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +0300108 };
109 red-esata {
110 label = "nsa310:red:esata";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100111 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +0300112 };
113 green-usb {
114 label = "nsa310:green:usb";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100115 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +0300116 };
117 red-usb {
118 label = "nsa310:red:usb";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100119 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +0300120 };
121 green-copy {
122 label = "nsa310:green:copy";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100123 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +0300124 };
125 red-copy {
126 label = "nsa310:red:copy";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100127 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
Tero Jaaskoafcad882012-10-26 18:56:16 +0300128 };
129 };
Tero Jaaskoafcad882012-10-26 18:56:16 +0300130};
Andrew Lunneb13cf82016-04-03 04:03:47 +0200131
132&pciec {
133 status = "okay";
134};
135
136&pcie0 {
137 status = "okay";
138};