xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-lsxl.dtsi (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring#include "kirkwood.dtsi"
3*724ba675SRob Herring#include "kirkwood-6281.dtsi"
4*724ba675SRob Herring
5*724ba675SRob Herring/ {
6*724ba675SRob Herring	chosen {
7*724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
8*724ba675SRob Herring		stdout-path = &uart0;
9*724ba675SRob Herring	};
10*724ba675SRob Herring
11*724ba675SRob Herring	ocp@f1000000 {
12*724ba675SRob Herring		pinctrl: pin-controller@10000 {
13*724ba675SRob Herring			/* Non-default UART pins */
14*724ba675SRob Herring			pmx_uart0: pmx-uart0 {
15*724ba675SRob Herring				marvell,pins = "mpp4", "mpp5";
16*724ba675SRob Herring			};
17*724ba675SRob Herring
18*724ba675SRob Herring			pmx_power_hdd: pmx-power-hdd {
19*724ba675SRob Herring				marvell,pins = "mpp10";
20*724ba675SRob Herring				marvell,function = "gpo";
21*724ba675SRob Herring			};
22*724ba675SRob Herring			pmx_usb_vbus: pmx-usb-vbus {
23*724ba675SRob Herring				marvell,pins = "mpp11";
24*724ba675SRob Herring				marvell,function = "gpio";
25*724ba675SRob Herring			};
26*724ba675SRob Herring			pmx_fan_high: pmx-fan-high {
27*724ba675SRob Herring				marvell,pins = "mpp18";
28*724ba675SRob Herring				marvell,function = "gpo";
29*724ba675SRob Herring			};
30*724ba675SRob Herring			pmx_fan_low: pmx-fan-low {
31*724ba675SRob Herring				marvell,pins = "mpp19";
32*724ba675SRob Herring				marvell,function = "gpo";
33*724ba675SRob Herring			};
34*724ba675SRob Herring			pmx_led_function_blue: pmx-led-function-blue {
35*724ba675SRob Herring				marvell,pins = "mpp36";
36*724ba675SRob Herring				marvell,function = "gpio";
37*724ba675SRob Herring			};
38*724ba675SRob Herring			pmx_led_alarm: pmx-led-alarm {
39*724ba675SRob Herring				marvell,pins = "mpp37";
40*724ba675SRob Herring				marvell,function = "gpio";
41*724ba675SRob Herring			};
42*724ba675SRob Herring			pmx_led_info: pmx-led-info {
43*724ba675SRob Herring				marvell,pins = "mpp38";
44*724ba675SRob Herring				marvell,function = "gpio";
45*724ba675SRob Herring			};
46*724ba675SRob Herring			pmx_led_power: pmx-led-power {
47*724ba675SRob Herring				marvell,pins = "mpp39";
48*724ba675SRob Herring				marvell,function = "gpio";
49*724ba675SRob Herring			};
50*724ba675SRob Herring			pmx_fan_lock: pmx-fan-lock {
51*724ba675SRob Herring				marvell,pins = "mpp40";
52*724ba675SRob Herring				marvell,function = "gpio";
53*724ba675SRob Herring			};
54*724ba675SRob Herring			pmx_button_function: pmx-button-function {
55*724ba675SRob Herring				marvell,pins = "mpp41";
56*724ba675SRob Herring				marvell,function = "gpio";
57*724ba675SRob Herring			};
58*724ba675SRob Herring			pmx_power_switch: pmx-power-switch {
59*724ba675SRob Herring				marvell,pins = "mpp42";
60*724ba675SRob Herring				marvell,function = "gpio";
61*724ba675SRob Herring			};
62*724ba675SRob Herring			pmx_power_auto_switch: pmx-power-auto-switch {
63*724ba675SRob Herring				marvell,pins = "mpp43";
64*724ba675SRob Herring				marvell,function = "gpio";
65*724ba675SRob Herring			};
66*724ba675SRob Herring			pmx_led_function_red: pmx-led-function_red {
67*724ba675SRob Herring				marvell,pins = "mpp48";
68*724ba675SRob Herring				marvell,function = "gpio";
69*724ba675SRob Herring			};
70*724ba675SRob Herring
71*724ba675SRob Herring		};
72*724ba675SRob Herring		sata@80000 {
73*724ba675SRob Herring			status = "okay";
74*724ba675SRob Herring			nr-ports = <1>;
75*724ba675SRob Herring		};
76*724ba675SRob Herring
77*724ba675SRob Herring		spi@10600 {
78*724ba675SRob Herring			status = "okay";
79*724ba675SRob Herring
80*724ba675SRob Herring			m25p40@0 {
81*724ba675SRob Herring				#address-cells = <1>;
82*724ba675SRob Herring				#size-cells = <1>;
83*724ba675SRob Herring				compatible = "m25p40", "jedec,spi-nor";
84*724ba675SRob Herring				reg = <0>;
85*724ba675SRob Herring				spi-max-frequency = <25000000>;
86*724ba675SRob Herring				mode = <0>;
87*724ba675SRob Herring
88*724ba675SRob Herring				partition@0 {
89*724ba675SRob Herring					reg = <0x0 0x60000>;
90*724ba675SRob Herring					label = "uboot";
91*724ba675SRob Herring					read-only;
92*724ba675SRob Herring				};
93*724ba675SRob Herring
94*724ba675SRob Herring				partition@60000 {
95*724ba675SRob Herring					reg = <0x60000 0x10000>;
96*724ba675SRob Herring					label = "dtb";
97*724ba675SRob Herring					read-only;
98*724ba675SRob Herring				};
99*724ba675SRob Herring
100*724ba675SRob Herring				partition@70000 {
101*724ba675SRob Herring					reg = <0x70000 0x10000>;
102*724ba675SRob Herring					label = "uboot_env";
103*724ba675SRob Herring				};
104*724ba675SRob Herring			};
105*724ba675SRob Herring		};
106*724ba675SRob Herring	};
107*724ba675SRob Herring
108*724ba675SRob Herring	gpio_keys {
109*724ba675SRob Herring		compatible = "gpio-keys";
110*724ba675SRob Herring		#address-cells = <1>;
111*724ba675SRob Herring		#size-cells = <0>;
112*724ba675SRob Herring		pinctrl-0 = <&pmx_button_function &pmx_power_switch
113*724ba675SRob Herring			     &pmx_power_auto_switch>;
114*724ba675SRob Herring		pinctrl-names = "default";
115*724ba675SRob Herring
116*724ba675SRob Herring		option {
117*724ba675SRob Herring			label = "Function Button";
118*724ba675SRob Herring			linux,code = <KEY_OPTION>;
119*724ba675SRob Herring			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
120*724ba675SRob Herring		};
121*724ba675SRob Herring		reserved {
122*724ba675SRob Herring			label = "Power-on Switch";
123*724ba675SRob Herring			linux,code = <KEY_RESERVED>;
124*724ba675SRob Herring			linux,input-type = <5>;
125*724ba675SRob Herring			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
126*724ba675SRob Herring		};
127*724ba675SRob Herring		power {
128*724ba675SRob Herring			label = "Power-auto Switch";
129*724ba675SRob Herring			linux,code = <KEY_ESC>;
130*724ba675SRob Herring			linux,input-type = <5>;
131*724ba675SRob Herring			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
132*724ba675SRob Herring		};
133*724ba675SRob Herring	};
134*724ba675SRob Herring
135*724ba675SRob Herring	gpio_leds {
136*724ba675SRob Herring		compatible = "gpio-leds";
137*724ba675SRob Herring		pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
138*724ba675SRob Herring			     &pmx_led_info &pmx_led_power
139*724ba675SRob Herring			     &pmx_led_function_blue>;
140*724ba675SRob Herring		pinctrl-names = "default";
141*724ba675SRob Herring
142*724ba675SRob Herring		func_blue {
143*724ba675SRob Herring			label = "lsxl:blue:func";
144*724ba675SRob Herring			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
145*724ba675SRob Herring		};
146*724ba675SRob Herring
147*724ba675SRob Herring		alarm {
148*724ba675SRob Herring			label = "lsxl:red:alarm";
149*724ba675SRob Herring			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
150*724ba675SRob Herring		};
151*724ba675SRob Herring
152*724ba675SRob Herring		info {
153*724ba675SRob Herring			label = "lsxl:amber:info";
154*724ba675SRob Herring			gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
155*724ba675SRob Herring		};
156*724ba675SRob Herring
157*724ba675SRob Herring		power {
158*724ba675SRob Herring			label = "lsxl:blue:power";
159*724ba675SRob Herring			gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
160*724ba675SRob Herring			default-state = "keep";
161*724ba675SRob Herring		};
162*724ba675SRob Herring
163*724ba675SRob Herring		func_red {
164*724ba675SRob Herring			label = "lsxl:red:func";
165*724ba675SRob Herring			gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
166*724ba675SRob Herring		};
167*724ba675SRob Herring	};
168*724ba675SRob Herring
169*724ba675SRob Herring	gpio_fan {
170*724ba675SRob Herring		compatible = "gpio-fan";
171*724ba675SRob Herring		pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
172*724ba675SRob Herring		pinctrl-names = "default";
173*724ba675SRob Herring		gpios = <&gpio0 19 GPIO_ACTIVE_LOW
174*724ba675SRob Herring		         &gpio0 18 GPIO_ACTIVE_LOW>;
175*724ba675SRob Herring		gpio-fan,speed-map = <0    3
176*724ba675SRob Herring		                      1500 2
177*724ba675SRob Herring		                      3250 1
178*724ba675SRob Herring		                      5000 0>;
179*724ba675SRob Herring		alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
180*724ba675SRob Herring	};
181*724ba675SRob Herring
182*724ba675SRob Herring	restart_poweroff {
183*724ba675SRob Herring		compatible = "restart-poweroff";
184*724ba675SRob Herring	};
185*724ba675SRob Herring
186*724ba675SRob Herring	regulators {
187*724ba675SRob Herring		compatible = "simple-bus";
188*724ba675SRob Herring		#address-cells = <1>;
189*724ba675SRob Herring		#size-cells = <0>;
190*724ba675SRob Herring		pinctrl-0 = <&pmx_power_hdd &pmx_usb_vbus>;
191*724ba675SRob Herring		pinctrl-names = "default";
192*724ba675SRob Herring
193*724ba675SRob Herring		usb_power: regulator@1 {
194*724ba675SRob Herring			compatible = "regulator-fixed";
195*724ba675SRob Herring			reg = <1>;
196*724ba675SRob Herring			regulator-name = "USB Power";
197*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
198*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
199*724ba675SRob Herring			enable-active-high;
200*724ba675SRob Herring			regulator-always-on;
201*724ba675SRob Herring			regulator-boot-on;
202*724ba675SRob Herring			gpio = <&gpio0 11 0>;
203*724ba675SRob Herring		};
204*724ba675SRob Herring		hdd_power: regulator@2 {
205*724ba675SRob Herring			compatible = "regulator-fixed";
206*724ba675SRob Herring			reg = <2>;
207*724ba675SRob Herring			regulator-name = "HDD Power";
208*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
209*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
210*724ba675SRob Herring			enable-active-high;
211*724ba675SRob Herring			regulator-always-on;
212*724ba675SRob Herring			regulator-boot-on;
213*724ba675SRob Herring			gpio = <&gpio0 10 0>;
214*724ba675SRob Herring		};
215*724ba675SRob Herring	};
216*724ba675SRob Herring};
217*724ba675SRob Herring
218*724ba675SRob Herring&mdio {
219*724ba675SRob Herring	status = "okay";
220*724ba675SRob Herring
221*724ba675SRob Herring	ethphy1: ethernet-phy@8 {
222*724ba675SRob Herring		reg = <8>;
223*724ba675SRob Herring	};
224*724ba675SRob Herring};
225*724ba675SRob Herring
226*724ba675SRob Herring&eth1 {
227*724ba675SRob Herring	status = "okay";
228*724ba675SRob Herring	ethernet1-port@0 {
229*724ba675SRob Herring		phy-handle = <&ethphy1>;
230*724ba675SRob Herring	};
231*724ba675SRob Herring};
232