blob: 2c4037b0728218a8c700623a212ed5be1a170e6e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Jason Cooper97fdd4e2013-08-06 15:01:19 +00002#include "kirkwood.dtsi"
3#include "kirkwood-6281.dtsi"
Andrew Lunneee47b72013-07-17 18:51:49 +02004
5/ {
6 model = "ZyXEL NSA310";
7
8 ocp@f1000000 {
Sebastian Hesselbartha94839692014-04-30 14:56:32 +02009 pinctrl: pin-controller@10000 {
Andrew Lunneee47b72013-07-17 18:51:49 +020010
Adam Baker65522092014-04-06 22:42:47 +010011 pmx_usb_power: pmx-usb-power {
Andrew Lunneee47b72013-07-17 18:51:49 +020012 marvell,pins = "mpp21";
13 marvell,function = "gpio";
14 };
Adam Baker65522092014-04-06 22:42:47 +010015
Andrew Lunneee47b72013-07-17 18:51:49 +020016 pmx_pwr_off: pmx-pwr-off {
17 marvell,pins = "mpp48";
18 marvell,function = "gpio";
19 };
20
Adam Baker65522092014-04-06 22:42:47 +010021 pmx_btn_reset: pmx-btn-reset {
22 marvell,pins = "mpp36";
23 marvell,function = "gpio";
24 };
25
26 pmx_btn_copy: pmx-btn-copy {
27 marvell,pins = "mpp37";
28 marvell,function = "gpio";
29 };
30
31 pmx_btn_power: pmx-btn-power {
32 marvell,pins = "mpp46";
33 marvell,function = "gpio";
34 };
35
36 pmx_led_copy_green: pmx-led-copy-green {
37 marvell,pins = "mpp39";
38 marvell,function = "gpio";
39 };
40
41 pmx_led_copy_red: pmx-led-copy-red {
42 marvell,pins = "mpp40";
43 marvell,function = "gpio";
44 };
Andrew Lunneee47b72013-07-17 18:51:49 +020045 };
46
47 serial@12000 {
48 status = "ok";
49 };
50
51 sata@80000 {
52 status = "okay";
53 nr-ports = <2>;
54 };
Andrew Lunneee47b72013-07-17 18:51:49 +020055 };
56
57 gpio_poweroff {
58 compatible = "gpio-poweroff";
59 pinctrl-0 = <&pmx_pwr_off>;
60 pinctrl-names = "default";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010061 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
Andrew Lunneee47b72013-07-17 18:51:49 +020062 };
63
Adam Baker65522092014-04-06 22:42:47 +010064 gpio_keys {
65 compatible = "gpio-keys";
66 #address-cells = <1>;
67 #size-cells = <0>;
68 pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
69 pinctrl-names = "default";
70
Andrew Lunn395c7552016-04-03 04:03:43 +020071 power {
Adam Baker65522092014-04-06 22:42:47 +010072 label = "Power Button";
73 linux,code = <KEY_POWER>;
74 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
75 };
Andrew Lunn395c7552016-04-03 04:03:43 +020076 copy {
Adam Baker65522092014-04-06 22:42:47 +010077 label = "Copy Button";
78 linux,code = <KEY_COPY>;
79 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
80 };
Andrew Lunn395c7552016-04-03 04:03:43 +020081 reset {
Adam Baker65522092014-04-06 22:42:47 +010082 label = "Reset Button";
83 linux,code = <KEY_RESTART>;
84 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
85 };
86 };
87
88
Andrew Lunneee47b72013-07-17 18:51:49 +020089 regulators {
90 compatible = "simple-bus";
91 #address-cells = <1>;
92 #size-cells = <0>;
Adam Baker65522092014-04-06 22:42:47 +010093 pinctrl-0 = <&pmx_usb_power>;
Andrew Lunneee47b72013-07-17 18:51:49 +020094 pinctrl-names = "default";
95
Adam Baker65522092014-04-06 22:42:47 +010096 usb0_power: regulator@1 {
Andrew Lunneee47b72013-07-17 18:51:49 +020097 compatible = "regulator-fixed";
98 reg = <1>;
Adam Baker65522092014-04-06 22:42:47 +010099 regulator-name = "USB Power";
Andrew Lunneee47b72013-07-17 18:51:49 +0200100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
102 regulator-always-on;
103 regulator-boot-on;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100104 gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
Andrew Lunneee47b72013-07-17 18:51:49 +0200105 };
106 };
107};
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600108
109&nand {
110 status = "okay";
111 chip-delay = <35>;
112
113 partition@0 {
114 label = "uboot";
115 reg = <0x0000000 0x0100000>;
116 read-only;
117 };
118 partition@100000 {
119 label = "uboot_env";
120 reg = <0x0100000 0x0080000>;
121 };
122 partition@180000 {
123 label = "key_store";
124 reg = <0x0180000 0x0080000>;
125 };
126 partition@200000 {
127 label = "info";
128 reg = <0x0200000 0x0080000>;
129 };
130 partition@280000 {
131 label = "etc";
132 reg = <0x0280000 0x0a00000>;
133 };
134 partition@c80000 {
135 label = "kernel_1";
136 reg = <0x0c80000 0x0a00000>;
137 };
138 partition@1680000 {
139 label = "rootfs1";
140 reg = <0x1680000 0x2fc0000>;
141 };
142 partition@4640000 {
143 label = "kernel_2";
144 reg = <0x4640000 0x0a00000>;
145 };
146 partition@5040000 {
147 label = "rootfs2";
148 reg = <0x5040000 0x2fc0000>;
149 };
150};
Andrew Lunneb13cf82016-04-03 04:03:47 +0200151
152&pciec {
153 status = "okay";
154};
155
156&pcie0 {
157 status = "okay";
158};