xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-linkstation.dtsi (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Device Tree common file for kirkwood based Buffalo Linkstation
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (C) 2015, 2016
6*724ba675SRob Herring * Roger Shimizu <rogershimizu@gmail.com>
7*724ba675SRob Herring */
8*724ba675SRob Herring
9*724ba675SRob Herring/ {
10*724ba675SRob Herring	chosen {
11*724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
12*724ba675SRob Herring		stdout-path = &uart0;
13*724ba675SRob Herring	};
14*724ba675SRob Herring
15*724ba675SRob Herring	ocp@f1000000 {
16*724ba675SRob Herring		pinctrl: pin-controller@10000 {
17*724ba675SRob Herring			pmx_power_hdd0: pmx-power-hdd0 {
18*724ba675SRob Herring				marvell,function = "gpio";
19*724ba675SRob Herring			};
20*724ba675SRob Herring			pmx_usb_vbus: pmx-usb-vbus {
21*724ba675SRob Herring				marvell,function = "gpio";
22*724ba675SRob Herring			};
23*724ba675SRob Herring			pmx_led_alarm: pmx-led-alarm {
24*724ba675SRob Herring				marvell,function = "gpio";
25*724ba675SRob Herring			};
26*724ba675SRob Herring			pmx_led_function_red: pmx-led-function-red {
27*724ba675SRob Herring				marvell,function = "gpio";
28*724ba675SRob Herring			};
29*724ba675SRob Herring			pmx_led_function_blue: pmx-led-function-blue {
30*724ba675SRob Herring				marvell,function = "gpio";
31*724ba675SRob Herring			};
32*724ba675SRob Herring			pmx_led_info: pmx-led-info {
33*724ba675SRob Herring				marvell,function = "gpio";
34*724ba675SRob Herring			};
35*724ba675SRob Herring			pmx_led_power: pmx-led-power {
36*724ba675SRob Herring				marvell,function = "gpio";
37*724ba675SRob Herring			};
38*724ba675SRob Herring			pmx_button_function: pmx-button-function {
39*724ba675SRob Herring				marvell,function = "gpio";
40*724ba675SRob Herring			};
41*724ba675SRob Herring			pmx_power_switch: pmx-power-switch {
42*724ba675SRob Herring				marvell,function = "gpio";
43*724ba675SRob Herring			};
44*724ba675SRob Herring			pmx_power_auto_switch: pmx-power-auto-switch {
45*724ba675SRob Herring				marvell,function = "gpio";
46*724ba675SRob Herring			};
47*724ba675SRob Herring		};
48*724ba675SRob Herring
49*724ba675SRob Herring		serial@12000 {
50*724ba675SRob Herring			status = "okay";
51*724ba675SRob Herring		};
52*724ba675SRob Herring
53*724ba675SRob Herring		sata@80000 {
54*724ba675SRob Herring			status = "okay";
55*724ba675SRob Herring			nr-ports = <1>;
56*724ba675SRob Herring		};
57*724ba675SRob Herring
58*724ba675SRob Herring		spi@10600 {
59*724ba675SRob Herring			status = "okay";
60*724ba675SRob Herring
61*724ba675SRob Herring			m25p40@0 {
62*724ba675SRob Herring				#address-cells = <1>;
63*724ba675SRob Herring				#size-cells = <1>;
64*724ba675SRob Herring				compatible = "st,m25p40", "jedec,spi-nor";
65*724ba675SRob Herring				reg = <0>;
66*724ba675SRob Herring				spi-max-frequency = <25000000>;
67*724ba675SRob Herring				mode = <0>;
68*724ba675SRob Herring
69*724ba675SRob Herring				partition@0 {
70*724ba675SRob Herring					reg = <0x0 0x60000>;
71*724ba675SRob Herring					label = "uboot";
72*724ba675SRob Herring					read-only;
73*724ba675SRob Herring				};
74*724ba675SRob Herring
75*724ba675SRob Herring				partition@60000 {
76*724ba675SRob Herring					reg = <0x60000 0x10000>;
77*724ba675SRob Herring					label = "dtb";
78*724ba675SRob Herring					read-only;
79*724ba675SRob Herring				};
80*724ba675SRob Herring
81*724ba675SRob Herring				partition@70000 {
82*724ba675SRob Herring					reg = <0x70000 0x10000>;
83*724ba675SRob Herring					label = "uboot_env";
84*724ba675SRob Herring				};
85*724ba675SRob Herring			};
86*724ba675SRob Herring		};
87*724ba675SRob Herring	};
88*724ba675SRob Herring
89*724ba675SRob Herring	gpio_keys {
90*724ba675SRob Herring		compatible = "gpio-keys";
91*724ba675SRob Herring		pinctrl-0 = <&pmx_button_function &pmx_power_switch
92*724ba675SRob Herring			     &pmx_power_auto_switch>;
93*724ba675SRob Herring		pinctrl-names = "default";
94*724ba675SRob Herring
95*724ba675SRob Herring		function-button {
96*724ba675SRob Herring			label = "Function Button";
97*724ba675SRob Herring			linux,code = <KEY_OPTION>;
98*724ba675SRob Herring		};
99*724ba675SRob Herring
100*724ba675SRob Herring		power-on-switch {
101*724ba675SRob Herring			label = "Power-on Switch";
102*724ba675SRob Herring			linux,code = <KEY_RESERVED>;
103*724ba675SRob Herring			linux,input-type = <5>;
104*724ba675SRob Herring		};
105*724ba675SRob Herring
106*724ba675SRob Herring		power-auto-switch {
107*724ba675SRob Herring			label = "Power-auto Switch";
108*724ba675SRob Herring			linux,code = <KEY_ESC>;
109*724ba675SRob Herring			linux,input-type = <5>;
110*724ba675SRob Herring		};
111*724ba675SRob Herring	};
112*724ba675SRob Herring
113*724ba675SRob Herring	gpio_leds {
114*724ba675SRob Herring		compatible = "gpio-leds";
115*724ba675SRob Herring		pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
116*724ba675SRob Herring			     &pmx_led_info &pmx_led_power
117*724ba675SRob Herring			     &pmx_led_function_blue>;
118*724ba675SRob Herring		pinctrl-names = "default";
119*724ba675SRob Herring	};
120*724ba675SRob Herring
121*724ba675SRob Herring	restart_poweroff {
122*724ba675SRob Herring		compatible = "restart-poweroff";
123*724ba675SRob Herring	};
124*724ba675SRob Herring
125*724ba675SRob Herring	regulators {
126*724ba675SRob Herring		compatible = "simple-bus";
127*724ba675SRob Herring		#address-cells = <1>;
128*724ba675SRob Herring		#size-cells = <0>;
129*724ba675SRob Herring		pinctrl-0 = <&pmx_power_hdd0 &pmx_usb_vbus>;
130*724ba675SRob Herring		pinctrl-names = "default";
131*724ba675SRob Herring
132*724ba675SRob Herring		usb_power: regulator@1 {
133*724ba675SRob Herring			compatible = "regulator-fixed";
134*724ba675SRob Herring			reg = <1>;
135*724ba675SRob Herring			regulator-name = "USB Power";
136*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
137*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
138*724ba675SRob Herring			enable-active-high;
139*724ba675SRob Herring			regulator-always-on;
140*724ba675SRob Herring			regulator-boot-on;
141*724ba675SRob Herring		};
142*724ba675SRob Herring
143*724ba675SRob Herring		hdd_power0: regulator@2 {
144*724ba675SRob Herring			compatible = "regulator-fixed";
145*724ba675SRob Herring			reg = <2>;
146*724ba675SRob Herring			regulator-name = "HDD0 Power";
147*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
148*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
149*724ba675SRob Herring			enable-active-high;
150*724ba675SRob Herring			regulator-always-on;
151*724ba675SRob Herring			regulator-boot-on;
152*724ba675SRob Herring		};
153*724ba675SRob Herring	};
154*724ba675SRob Herring};
155*724ba675SRob Herring
156*724ba675SRob Herring&pciec {
157*724ba675SRob Herring	status = "okay";
158*724ba675SRob Herring};
159*724ba675SRob Herring
160*724ba675SRob Herring&pcie0 {
161*724ba675SRob Herring	status = "okay";
162*724ba675SRob Herring};
163