xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-nsa3x0-common.dtsi (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring#include "kirkwood.dtsi"
3724ba675SRob Herring#include "kirkwood-6281.dtsi"
4724ba675SRob Herring
5724ba675SRob Herring/ {
6724ba675SRob Herring	model = "ZyXEL NSA310";
7724ba675SRob Herring
8724ba675SRob Herring	ocp@f1000000 {
9724ba675SRob Herring		pinctrl: pin-controller@10000 {
10724ba675SRob Herring
11724ba675SRob Herring			pmx_usb_power: pmx-usb-power {
12724ba675SRob Herring				marvell,pins = "mpp21";
13724ba675SRob Herring				marvell,function = "gpio";
14724ba675SRob Herring			};
15724ba675SRob Herring
16724ba675SRob Herring			pmx_pwr_off: pmx-pwr-off {
17724ba675SRob Herring				marvell,pins = "mpp48";
18724ba675SRob Herring				marvell,function = "gpio";
19724ba675SRob Herring			};
20724ba675SRob Herring
21724ba675SRob Herring			pmx_btn_reset: pmx-btn-reset {
22724ba675SRob Herring				marvell,pins = "mpp36";
23724ba675SRob Herring				marvell,function = "gpio";
24724ba675SRob Herring			};
25724ba675SRob Herring
26724ba675SRob Herring			pmx_btn_copy: pmx-btn-copy {
27724ba675SRob Herring				marvell,pins = "mpp37";
28724ba675SRob Herring				marvell,function = "gpio";
29724ba675SRob Herring			};
30724ba675SRob Herring
31724ba675SRob Herring			pmx_btn_power: pmx-btn-power {
32724ba675SRob Herring				marvell,pins = "mpp46";
33724ba675SRob Herring				marvell,function = "gpio";
34724ba675SRob Herring			};
35724ba675SRob Herring
36724ba675SRob Herring			pmx_led_copy_green: pmx-led-copy-green {
37724ba675SRob Herring				marvell,pins = "mpp39";
38724ba675SRob Herring				marvell,function = "gpio";
39724ba675SRob Herring			};
40724ba675SRob Herring
41724ba675SRob Herring			pmx_led_copy_red: pmx-led-copy-red {
42724ba675SRob Herring				marvell,pins = "mpp40";
43724ba675SRob Herring				marvell,function = "gpio";
44724ba675SRob Herring			};
45724ba675SRob Herring		};
46724ba675SRob Herring
47724ba675SRob Herring		serial@12000 {
48724ba675SRob Herring			status = "okay";
49724ba675SRob Herring		};
50724ba675SRob Herring
51724ba675SRob Herring		sata@80000 {
52724ba675SRob Herring			status = "okay";
53724ba675SRob Herring			nr-ports = <2>;
54724ba675SRob Herring		};
55724ba675SRob Herring	};
56724ba675SRob Herring
57724ba675SRob Herring	gpio_poweroff {
58724ba675SRob Herring		compatible = "gpio-poweroff";
59724ba675SRob Herring		pinctrl-0 = <&pmx_pwr_off>;
60724ba675SRob Herring		pinctrl-names = "default";
61724ba675SRob Herring		gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
62724ba675SRob Herring	};
63724ba675SRob Herring
64724ba675SRob Herring	gpio_keys {
65724ba675SRob Herring		compatible = "gpio-keys";
66724ba675SRob Herring		pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
67724ba675SRob Herring		pinctrl-names = "default";
68724ba675SRob Herring
69*b98a9191SKrzysztof Kozlowski		button-power {
70724ba675SRob Herring			label = "Power Button";
71724ba675SRob Herring			linux,code = <KEY_POWER>;
72724ba675SRob Herring			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
73724ba675SRob Herring		};
74*b98a9191SKrzysztof Kozlowski		button-copy {
75724ba675SRob Herring			label = "Copy Button";
76724ba675SRob Herring			linux,code = <KEY_COPY>;
77724ba675SRob Herring			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
78724ba675SRob Herring		};
79*b98a9191SKrzysztof Kozlowski		button-reset {
80724ba675SRob Herring			label = "Reset Button";
81724ba675SRob Herring			linux,code = <KEY_RESTART>;
82724ba675SRob Herring			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
83724ba675SRob Herring		};
84724ba675SRob Herring	};
85724ba675SRob Herring
86724ba675SRob Herring
87724ba675SRob Herring	regulators {
88724ba675SRob Herring		compatible = "simple-bus";
89724ba675SRob Herring		#address-cells = <1>;
90724ba675SRob Herring		#size-cells = <0>;
91724ba675SRob Herring		pinctrl-0 = <&pmx_usb_power>;
92724ba675SRob Herring		pinctrl-names = "default";
93724ba675SRob Herring
94724ba675SRob Herring		usb0_power: regulator@1 {
95724ba675SRob Herring			compatible = "regulator-fixed";
96724ba675SRob Herring			reg = <1>;
97724ba675SRob Herring			regulator-name = "USB Power";
98724ba675SRob Herring			regulator-min-microvolt = <5000000>;
99724ba675SRob Herring			regulator-max-microvolt = <5000000>;
100724ba675SRob Herring			regulator-always-on;
101724ba675SRob Herring			regulator-boot-on;
102724ba675SRob Herring			gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
103724ba675SRob Herring		};
104724ba675SRob Herring	};
105724ba675SRob Herring};
106724ba675SRob Herring
107724ba675SRob Herring&nand {
108724ba675SRob Herring	status = "okay";
109724ba675SRob Herring	chip-delay = <35>;
110724ba675SRob Herring
111724ba675SRob Herring	partition@0 {
112724ba675SRob Herring		label = "uboot";
113724ba675SRob Herring		reg = <0x0000000 0x0100000>;
114724ba675SRob Herring		read-only;
115724ba675SRob Herring	};
116724ba675SRob Herring	partition@100000 {
117724ba675SRob Herring		label = "uboot_env";
118724ba675SRob Herring		reg = <0x0100000 0x0080000>;
119724ba675SRob Herring	};
120724ba675SRob Herring	partition@180000 {
121724ba675SRob Herring		label = "key_store";
122724ba675SRob Herring		reg = <0x0180000 0x0080000>;
123724ba675SRob Herring	};
124724ba675SRob Herring	partition@200000 {
125724ba675SRob Herring		label = "info";
126724ba675SRob Herring		reg = <0x0200000 0x0080000>;
127724ba675SRob Herring	};
128724ba675SRob Herring	partition@280000 {
129724ba675SRob Herring		label = "etc";
130724ba675SRob Herring		reg = <0x0280000 0x0a00000>;
131724ba675SRob Herring	};
132724ba675SRob Herring	partition@c80000 {
133724ba675SRob Herring		label = "kernel_1";
134724ba675SRob Herring		reg = <0x0c80000 0x0a00000>;
135724ba675SRob Herring	};
136724ba675SRob Herring	partition@1680000 {
137724ba675SRob Herring		label = "rootfs1";
138724ba675SRob Herring		reg = <0x1680000 0x2fc0000>;
139724ba675SRob Herring	};
140724ba675SRob Herring	partition@4640000 {
141724ba675SRob Herring		label = "kernel_2";
142724ba675SRob Herring		reg = <0x4640000 0x0a00000>;
143724ba675SRob Herring	};
144724ba675SRob Herring	partition@5040000 {
145724ba675SRob Herring		label = "rootfs2";
146724ba675SRob Herring		reg = <0x5040000 0x2fc0000>;
147724ba675SRob Herring	};
148724ba675SRob Herring};
149724ba675SRob Herring
150724ba675SRob Herring&pciec {
151724ba675SRob Herring	status = "okay";
152724ba675SRob Herring};
153724ba675SRob Herring
154724ba675SRob Herring&pcie0 {
155724ba675SRob Herring	status = "okay";
156724ba675SRob Herring};
157