xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-lsxl.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	chosen {
7724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
8724ba675SRob Herring		stdout-path = &uart0;
9724ba675SRob Herring	};
10724ba675SRob Herring
11724ba675SRob Herring	ocp@f1000000 {
12724ba675SRob Herring		pinctrl: pin-controller@10000 {
13724ba675SRob Herring			/* Non-default UART pins */
14724ba675SRob Herring			pmx_uart0: pmx-uart0 {
15724ba675SRob Herring				marvell,pins = "mpp4", "mpp5";
16724ba675SRob Herring			};
17724ba675SRob Herring
18724ba675SRob Herring			pmx_power_hdd: pmx-power-hdd {
19724ba675SRob Herring				marvell,pins = "mpp10";
20724ba675SRob Herring				marvell,function = "gpo";
21724ba675SRob Herring			};
22724ba675SRob Herring			pmx_usb_vbus: pmx-usb-vbus {
23724ba675SRob Herring				marvell,pins = "mpp11";
24724ba675SRob Herring				marvell,function = "gpio";
25724ba675SRob Herring			};
26724ba675SRob Herring			pmx_fan_high: pmx-fan-high {
27724ba675SRob Herring				marvell,pins = "mpp18";
28724ba675SRob Herring				marvell,function = "gpo";
29724ba675SRob Herring			};
30724ba675SRob Herring			pmx_fan_low: pmx-fan-low {
31724ba675SRob Herring				marvell,pins = "mpp19";
32724ba675SRob Herring				marvell,function = "gpo";
33724ba675SRob Herring			};
34724ba675SRob Herring			pmx_led_function_blue: pmx-led-function-blue {
35724ba675SRob Herring				marvell,pins = "mpp36";
36724ba675SRob Herring				marvell,function = "gpio";
37724ba675SRob Herring			};
38724ba675SRob Herring			pmx_led_alarm: pmx-led-alarm {
39724ba675SRob Herring				marvell,pins = "mpp37";
40724ba675SRob Herring				marvell,function = "gpio";
41724ba675SRob Herring			};
42724ba675SRob Herring			pmx_led_info: pmx-led-info {
43724ba675SRob Herring				marvell,pins = "mpp38";
44724ba675SRob Herring				marvell,function = "gpio";
45724ba675SRob Herring			};
46724ba675SRob Herring			pmx_led_power: pmx-led-power {
47724ba675SRob Herring				marvell,pins = "mpp39";
48724ba675SRob Herring				marvell,function = "gpio";
49724ba675SRob Herring			};
50724ba675SRob Herring			pmx_fan_lock: pmx-fan-lock {
51724ba675SRob Herring				marvell,pins = "mpp40";
52724ba675SRob Herring				marvell,function = "gpio";
53724ba675SRob Herring			};
54724ba675SRob Herring			pmx_button_function: pmx-button-function {
55724ba675SRob Herring				marvell,pins = "mpp41";
56724ba675SRob Herring				marvell,function = "gpio";
57724ba675SRob Herring			};
58724ba675SRob Herring			pmx_power_switch: pmx-power-switch {
59724ba675SRob Herring				marvell,pins = "mpp42";
60724ba675SRob Herring				marvell,function = "gpio";
61724ba675SRob Herring			};
62724ba675SRob Herring			pmx_power_auto_switch: pmx-power-auto-switch {
63724ba675SRob Herring				marvell,pins = "mpp43";
64724ba675SRob Herring				marvell,function = "gpio";
65724ba675SRob Herring			};
66724ba675SRob Herring			pmx_led_function_red: pmx-led-function_red {
67724ba675SRob Herring				marvell,pins = "mpp48";
68724ba675SRob Herring				marvell,function = "gpio";
69724ba675SRob Herring			};
70724ba675SRob Herring
71724ba675SRob Herring		};
72724ba675SRob Herring		sata@80000 {
73724ba675SRob Herring			status = "okay";
74724ba675SRob Herring			nr-ports = <1>;
75724ba675SRob Herring		};
76724ba675SRob Herring
77724ba675SRob Herring		spi@10600 {
78724ba675SRob Herring			status = "okay";
79724ba675SRob Herring
80724ba675SRob Herring			m25p40@0 {
81724ba675SRob Herring				#address-cells = <1>;
82724ba675SRob Herring				#size-cells = <1>;
83724ba675SRob Herring				compatible = "m25p40", "jedec,spi-nor";
84724ba675SRob Herring				reg = <0>;
85724ba675SRob Herring				spi-max-frequency = <25000000>;
86724ba675SRob Herring				mode = <0>;
87724ba675SRob Herring
88724ba675SRob Herring				partition@0 {
89724ba675SRob Herring					reg = <0x0 0x60000>;
90724ba675SRob Herring					label = "uboot";
91724ba675SRob Herring					read-only;
92724ba675SRob Herring				};
93724ba675SRob Herring
94724ba675SRob Herring				partition@60000 {
95724ba675SRob Herring					reg = <0x60000 0x10000>;
96724ba675SRob Herring					label = "dtb";
97724ba675SRob Herring					read-only;
98724ba675SRob Herring				};
99724ba675SRob Herring
100724ba675SRob Herring				partition@70000 {
101724ba675SRob Herring					reg = <0x70000 0x10000>;
102724ba675SRob Herring					label = "uboot_env";
103724ba675SRob Herring				};
104724ba675SRob Herring			};
105724ba675SRob Herring		};
106724ba675SRob Herring	};
107724ba675SRob Herring
108724ba675SRob Herring	gpio_keys {
109724ba675SRob Herring		compatible = "gpio-keys";
110724ba675SRob Herring		pinctrl-0 = <&pmx_button_function &pmx_power_switch
111724ba675SRob Herring			     &pmx_power_auto_switch>;
112724ba675SRob Herring		pinctrl-names = "default";
113724ba675SRob Herring
114b98a9191SKrzysztof Kozlowski		button-option {
115724ba675SRob Herring			label = "Function Button";
116724ba675SRob Herring			linux,code = <KEY_OPTION>;
117724ba675SRob Herring			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
118724ba675SRob Herring		};
119b98a9191SKrzysztof Kozlowski		button-reserved {
120724ba675SRob Herring			label = "Power-on Switch";
121724ba675SRob Herring			linux,code = <KEY_RESERVED>;
122724ba675SRob Herring			linux,input-type = <5>;
123724ba675SRob Herring			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
124724ba675SRob Herring		};
125b98a9191SKrzysztof Kozlowski		button-power {
126724ba675SRob Herring			label = "Power-auto Switch";
127724ba675SRob Herring			linux,code = <KEY_ESC>;
128724ba675SRob Herring			linux,input-type = <5>;
129724ba675SRob Herring			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
130724ba675SRob Herring		};
131724ba675SRob Herring	};
132724ba675SRob Herring
133724ba675SRob Herring	gpio_leds {
134724ba675SRob Herring		compatible = "gpio-leds";
135724ba675SRob Herring		pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
136724ba675SRob Herring			     &pmx_led_info &pmx_led_power
137724ba675SRob Herring			     &pmx_led_function_blue>;
138724ba675SRob Herring		pinctrl-names = "default";
139724ba675SRob Herring
140*9d0120b7SKrzysztof Kozlowski		led-func-blue {
141724ba675SRob Herring			label = "lsxl:blue:func";
142724ba675SRob Herring			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
143724ba675SRob Herring		};
144724ba675SRob Herring
145*9d0120b7SKrzysztof Kozlowski		led-alarm {
146724ba675SRob Herring			label = "lsxl:red:alarm";
147724ba675SRob Herring			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
148724ba675SRob Herring		};
149724ba675SRob Herring
150*9d0120b7SKrzysztof Kozlowski		led-info {
151724ba675SRob Herring			label = "lsxl:amber:info";
152724ba675SRob Herring			gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
153724ba675SRob Herring		};
154724ba675SRob Herring
155*9d0120b7SKrzysztof Kozlowski		led-power {
156724ba675SRob Herring			label = "lsxl:blue:power";
157724ba675SRob Herring			gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
158724ba675SRob Herring			default-state = "keep";
159724ba675SRob Herring		};
160724ba675SRob Herring
161*9d0120b7SKrzysztof Kozlowski		led-func-red {
162724ba675SRob Herring			label = "lsxl:red:func";
163724ba675SRob Herring			gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
164724ba675SRob Herring		};
165724ba675SRob Herring	};
166724ba675SRob Herring
167724ba675SRob Herring	gpio_fan {
168724ba675SRob Herring		compatible = "gpio-fan";
169724ba675SRob Herring		pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
170724ba675SRob Herring		pinctrl-names = "default";
171724ba675SRob Herring		gpios = <&gpio0 19 GPIO_ACTIVE_LOW
172724ba675SRob Herring		         &gpio0 18 GPIO_ACTIVE_LOW>;
17362f34e3eSDavid Heidelberg		gpio-fan,speed-map =
17462f34e3eSDavid Heidelberg				<0    3>,
17562f34e3eSDavid Heidelberg				<1500 2>,
17662f34e3eSDavid Heidelberg				<3250 1>,
17762f34e3eSDavid Heidelberg				<5000 0>;
178724ba675SRob Herring		alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
179724ba675SRob Herring	};
180724ba675SRob Herring
181724ba675SRob Herring	restart_poweroff {
182724ba675SRob Herring		compatible = "restart-poweroff";
183724ba675SRob Herring	};
184724ba675SRob Herring
185724ba675SRob Herring	regulators {
186724ba675SRob Herring		compatible = "simple-bus";
187724ba675SRob Herring		#address-cells = <1>;
188724ba675SRob Herring		#size-cells = <0>;
189724ba675SRob Herring		pinctrl-0 = <&pmx_power_hdd &pmx_usb_vbus>;
190724ba675SRob Herring		pinctrl-names = "default";
191724ba675SRob Herring
192724ba675SRob Herring		usb_power: regulator@1 {
193724ba675SRob Herring			compatible = "regulator-fixed";
194724ba675SRob Herring			reg = <1>;
195724ba675SRob Herring			regulator-name = "USB Power";
196724ba675SRob Herring			regulator-min-microvolt = <5000000>;
197724ba675SRob Herring			regulator-max-microvolt = <5000000>;
198724ba675SRob Herring			enable-active-high;
199724ba675SRob Herring			regulator-always-on;
200724ba675SRob Herring			regulator-boot-on;
201724ba675SRob Herring			gpio = <&gpio0 11 0>;
202724ba675SRob Herring		};
203724ba675SRob Herring		hdd_power: regulator@2 {
204724ba675SRob Herring			compatible = "regulator-fixed";
205724ba675SRob Herring			reg = <2>;
206724ba675SRob Herring			regulator-name = "HDD Power";
207724ba675SRob Herring			regulator-min-microvolt = <5000000>;
208724ba675SRob Herring			regulator-max-microvolt = <5000000>;
209724ba675SRob Herring			enable-active-high;
210724ba675SRob Herring			regulator-always-on;
211724ba675SRob Herring			regulator-boot-on;
212724ba675SRob Herring			gpio = <&gpio0 10 0>;
213724ba675SRob Herring		};
214724ba675SRob Herring	};
215724ba675SRob Herring};
216724ba675SRob Herring
217724ba675SRob Herring&mdio {
218724ba675SRob Herring	status = "okay";
219724ba675SRob Herring
220724ba675SRob Herring	ethphy1: ethernet-phy@8 {
221724ba675SRob Herring		reg = <8>;
222724ba675SRob Herring	};
223724ba675SRob Herring};
224724ba675SRob Herring
225724ba675SRob Herring&eth1 {
226724ba675SRob Herring	status = "okay";
227724ba675SRob Herring	ethernet1-port@0 {
228724ba675SRob Herring		phy-handle = <&ethphy1>;
229724ba675SRob Herring	};
230724ba675SRob Herring};
231