blob: e09b79ac73fd3e40568b49914e1469ffe07f9a79 [file] [log] [blame]
Jason Cooper97fdd4e2013-08-06 15:01:19 +00001#include "kirkwood.dtsi"
2#include "kirkwood-6281.dtsi"
Andrew Lunneee47b72013-07-17 18:51:49 +02003
4/ {
5 model = "ZyXEL NSA310";
6
7 ocp@f1000000 {
Sebastian Hesselbartha9483962014-04-30 14:56:32 +02008 pinctrl: pin-controller@10000 {
Andrew Lunneee47b72013-07-17 18:51:49 +02009
Adam Baker65522092014-04-06 22:42:47 +010010 pmx_usb_power: pmx-usb-power {
Andrew Lunneee47b72013-07-17 18:51:49 +020011 marvell,pins = "mpp21";
12 marvell,function = "gpio";
13 };
Adam Baker65522092014-04-06 22:42:47 +010014
Andrew Lunneee47b72013-07-17 18:51:49 +020015 pmx_pwr_off: pmx-pwr-off {
16 marvell,pins = "mpp48";
17 marvell,function = "gpio";
18 };
19
Adam Baker65522092014-04-06 22:42:47 +010020 pmx_btn_reset: pmx-btn-reset {
21 marvell,pins = "mpp36";
22 marvell,function = "gpio";
23 };
24
25 pmx_btn_copy: pmx-btn-copy {
26 marvell,pins = "mpp37";
27 marvell,function = "gpio";
28 };
29
30 pmx_btn_power: pmx-btn-power {
31 marvell,pins = "mpp46";
32 marvell,function = "gpio";
33 };
34
35 pmx_led_copy_green: pmx-led-copy-green {
36 marvell,pins = "mpp39";
37 marvell,function = "gpio";
38 };
39
40 pmx_led_copy_red: pmx-led-copy-red {
41 marvell,pins = "mpp40";
42 marvell,function = "gpio";
43 };
Andrew Lunneee47b72013-07-17 18:51:49 +020044 };
45
46 serial@12000 {
47 status = "ok";
48 };
49
50 sata@80000 {
51 status = "okay";
52 nr-ports = <2>;
53 };
Andrew Lunneee47b72013-07-17 18:51:49 +020054 };
55
56 gpio_poweroff {
57 compatible = "gpio-poweroff";
58 pinctrl-0 = <&pmx_pwr_off>;
59 pinctrl-names = "default";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010060 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
Andrew Lunneee47b72013-07-17 18:51:49 +020061 };
62
Adam Baker65522092014-04-06 22:42:47 +010063 gpio_keys {
64 compatible = "gpio-keys";
65 #address-cells = <1>;
66 #size-cells = <0>;
67 pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
68 pinctrl-names = "default";
69
Andrew Lunn395c7552016-04-03 04:03:43 +020070 power {
Adam Baker65522092014-04-06 22:42:47 +010071 label = "Power Button";
72 linux,code = <KEY_POWER>;
73 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
74 };
Andrew Lunn395c7552016-04-03 04:03:43 +020075 copy {
Adam Baker65522092014-04-06 22:42:47 +010076 label = "Copy Button";
77 linux,code = <KEY_COPY>;
78 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
79 };
Andrew Lunn395c7552016-04-03 04:03:43 +020080 reset {
Adam Baker65522092014-04-06 22:42:47 +010081 label = "Reset Button";
82 linux,code = <KEY_RESTART>;
83 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
84 };
85 };
86
87
Andrew Lunneee47b72013-07-17 18:51:49 +020088 regulators {
89 compatible = "simple-bus";
90 #address-cells = <1>;
91 #size-cells = <0>;
Adam Baker65522092014-04-06 22:42:47 +010092 pinctrl-0 = <&pmx_usb_power>;
Andrew Lunneee47b72013-07-17 18:51:49 +020093 pinctrl-names = "default";
94
Adam Baker65522092014-04-06 22:42:47 +010095 usb0_power: regulator@1 {
Andrew Lunneee47b72013-07-17 18:51:49 +020096 compatible = "regulator-fixed";
97 reg = <1>;
Adam Baker65522092014-04-06 22:42:47 +010098 regulator-name = "USB Power";
Andrew Lunneee47b72013-07-17 18:51:49 +020099 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
101 regulator-always-on;
102 regulator-boot-on;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100103 gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
Andrew Lunneee47b72013-07-17 18:51:49 +0200104 };
105 };
106};
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600107
108&nand {
109 status = "okay";
110 chip-delay = <35>;
111
112 partition@0 {
113 label = "uboot";
114 reg = <0x0000000 0x0100000>;
115 read-only;
116 };
117 partition@100000 {
118 label = "uboot_env";
119 reg = <0x0100000 0x0080000>;
120 };
121 partition@180000 {
122 label = "key_store";
123 reg = <0x0180000 0x0080000>;
124 };
125 partition@200000 {
126 label = "info";
127 reg = <0x0200000 0x0080000>;
128 };
129 partition@280000 {
130 label = "etc";
131 reg = <0x0280000 0x0a00000>;
132 };
133 partition@c80000 {
134 label = "kernel_1";
135 reg = <0x0c80000 0x0a00000>;
136 };
137 partition@1680000 {
138 label = "rootfs1";
139 reg = <0x1680000 0x2fc0000>;
140 };
141 partition@4640000 {
142 label = "kernel_2";
143 reg = <0x4640000 0x0a00000>;
144 };
145 partition@5040000 {
146 label = "rootfs2";
147 reg = <0x5040000 0x2fc0000>;
148 };
149};
Andrew Lunneb13cf82016-04-03 04:03:47 +0200150
151&pciec {
152 status = "okay";
153};
154
155&pcie0 {
156 status = "okay";
157};