Commit | Line | Data |
---|---|---|
4aff38a3 | 1 | /include/ "kirkwood.dtsi" |
8d72b4a6 | 2 | /include/ "kirkwood-6281.dtsi" |
4aff38a3 MW |
3 | |
4 | / { | |
5 | chosen { | |
6 | bootargs = "console=ttyS0,115200n8 earlyprintk"; | |
7 | }; | |
8 | ||
9 | ocp@f1000000 { | |
8d72b4a6 AL |
10 | pinctrl: pinctrl@10000 { |
11 | ||
12 | pinctrl-0 = < &pmx_power_hdd &pmx_usb_vbus | |
13 | &pmx_fan_low &pmx_fan_high | |
14 | &pmx_led_function_red &pmx_led_alarm | |
15 | &pmx_led_info &pmx_led_power | |
16 | &pmx_fan_lock &pmx_button_function | |
17 | &pmx_power_switch &pmx_power_auto_switch | |
18 | &pmx_led_function_blue >; | |
19 | pinctrl-names = "default"; | |
20 | ||
21 | pmx_power_hdd: pmx-power-hdd { | |
22 | marvell,pins = "mpp10"; | |
23 | marvell,function = "gpo"; | |
24 | }; | |
25 | pmx_usb_vbus: pmx-usb-vbus { | |
26 | marvell,pins = "mpp11"; | |
27 | marvell,function = "gpio"; | |
28 | }; | |
29 | pmx_fan_high: pmx-fan-high { | |
30 | marvell,pins = "mpp18"; | |
31 | marvell,function = "gpo"; | |
32 | }; | |
33 | pmx_fan_low: pmx-fan-low { | |
34 | marvell,pins = "mpp19"; | |
35 | marvell,function = "gpo"; | |
36 | }; | |
37 | pmx_led_function_blue: pmx-led-function-blue { | |
38 | marvell,pins = "mpp36"; | |
39 | marvell,function = "gpio"; | |
40 | }; | |
41 | pmx_led_alarm: pmx-led-alarm { | |
42 | marvell,pins = "mpp37"; | |
43 | marvell,function = "gpio"; | |
44 | }; | |
45 | pmx_led_info: pmx-led-info { | |
46 | marvell,pins = "mpp38"; | |
47 | marvell,function = "gpio"; | |
48 | }; | |
49 | pmx_led_power: pmx-led-power { | |
50 | marvell,pins = "mpp39"; | |
51 | marvell,function = "gpio"; | |
52 | }; | |
53 | pmx_fan_lock: pmx-fan-lock { | |
54 | marvell,pins = "mpp40"; | |
55 | marvell,function = "gpio"; | |
56 | }; | |
57 | pmx_button_function: pmx-button-function { | |
58 | marvell,pins = "mpp41"; | |
59 | marvell,function = "gpio"; | |
60 | }; | |
61 | pmx_power_switch: pmx-power-switch { | |
62 | marvell,pins = "mpp42"; | |
63 | marvell,function = "gpio"; | |
64 | }; | |
65 | pmx_power_auto_switch: pmx-power-auto-switch { | |
66 | marvell,pins = "mpp43"; | |
67 | marvell,function = "gpio"; | |
68 | }; | |
69 | pmx_led_function_red: pmx-led-function_red { | |
70 | marvell,pins = "mpp48"; | |
71 | marvell,function = "gpio"; | |
72 | }; | |
73 | ||
74 | }; | |
4aff38a3 MW |
75 | sata@80000 { |
76 | status = "okay"; | |
77 | nr-ports = <1>; | |
78 | }; | |
79 | ||
80 | spi@10600 { | |
81 | status = "okay"; | |
82 | ||
83 | m25p40@0 { | |
84 | #address-cells = <1>; | |
85 | #size-cells = <1>; | |
86 | compatible = "m25p40"; | |
87 | reg = <0>; | |
88 | spi-max-frequency = <25000000>; | |
89 | mode = <0>; | |
90 | ||
91 | partition@0 { | |
92 | reg = <0x0 0x60000>; | |
93 | label = "uboot"; | |
94 | read-only; | |
95 | }; | |
96 | ||
97 | partition@60000 { | |
98 | reg = <0x60000 0x10000>; | |
99 | label = "dtb"; | |
100 | read-only; | |
101 | }; | |
102 | ||
103 | partition@70000 { | |
104 | reg = <0x70000 0x10000>; | |
105 | label = "uboot_env"; | |
106 | }; | |
107 | }; | |
108 | }; | |
109 | }; | |
110 | ||
111 | gpio_keys { | |
112 | compatible = "gpio-keys"; | |
113 | #address-cells = <1>; | |
114 | #size-cells = <0>; | |
115 | button@1 { | |
116 | label = "Function Button"; | |
12431634 | 117 | linux,code = <357>; |
4aff38a3 MW |
118 | gpios = <&gpio1 9 1>; |
119 | }; | |
120 | button@2 { | |
121 | label = "Power-on Switch"; | |
12431634 MW |
122 | linux,code = <0>; |
123 | linux,input-type = <5>; | |
4aff38a3 MW |
124 | gpios = <&gpio1 10 1>; |
125 | }; | |
126 | button@3 { | |
127 | label = "Power-auto Switch"; | |
12431634 MW |
128 | linux,code = <1>; |
129 | linux,input-type = <5>; | |
4aff38a3 MW |
130 | gpios = <&gpio1 11 1>; |
131 | }; | |
132 | }; | |
133 | ||
134 | gpio_leds { | |
135 | compatible = "gpio-leds"; | |
136 | ||
137 | led@1 { | |
a54841e5 | 138 | label = "lsxl:blue:func"; |
4aff38a3 MW |
139 | gpios = <&gpio1 4 1>; |
140 | }; | |
141 | ||
142 | led@2 { | |
a54841e5 | 143 | label = "lsxl:red:alarm"; |
4aff38a3 MW |
144 | gpios = <&gpio1 5 1>; |
145 | }; | |
146 | ||
147 | led@3 { | |
a54841e5 | 148 | label = "lsxl:amber:info"; |
4aff38a3 MW |
149 | gpios = <&gpio1 6 1>; |
150 | }; | |
151 | ||
152 | led@4 { | |
a54841e5 | 153 | label = "lsxl:blue:power"; |
4aff38a3 MW |
154 | gpios = <&gpio1 7 1>; |
155 | linux,default-trigger = "default-on"; | |
156 | }; | |
157 | ||
158 | led@5 { | |
a54841e5 | 159 | label = "lsxl:red:func"; |
4aff38a3 MW |
160 | gpios = <&gpio1 16 1>; |
161 | }; | |
162 | }; | |
b046f560 MW |
163 | |
164 | gpio_fan { | |
165 | compatible = "gpio-fan"; | |
166 | gpios = <&gpio0 19 1 | |
167 | &gpio0 18 1>; | |
168 | gpio-fan,speed-map = <0 3 | |
169 | 1500 2 | |
170 | 3250 1 | |
171 | 5000 0>; | |
172 | alarm-gpios = <&gpio1 8 0>; | |
173 | }; | |
423b8959 AL |
174 | |
175 | regulators { | |
176 | compatible = "simple-bus"; | |
177 | #address-cells = <1>; | |
178 | #size-cells = <0>; | |
179 | ||
180 | usb_power: regulator@1 { | |
181 | compatible = "regulator-fixed"; | |
182 | reg = <1>; | |
183 | regulator-name = "USB Power"; | |
184 | regulator-min-microvolt = <5000000>; | |
185 | regulator-max-microvolt = <5000000>; | |
186 | enable-active-high; | |
187 | regulator-always-on; | |
188 | regulator-boot-on; | |
189 | gpio = <&gpio0 11 0>; | |
190 | }; | |
191 | hdd_power: regulator@2 { | |
192 | compatible = "regulator-fixed"; | |
193 | reg = <2>; | |
194 | regulator-name = "HDD Power"; | |
195 | regulator-min-microvolt = <5000000>; | |
196 | regulator-max-microvolt = <5000000>; | |
197 | enable-active-high; | |
198 | regulator-always-on; | |
199 | regulator-boot-on; | |
200 | gpio = <&gpio0 10 0>; | |
201 | }; | |
202 | }; | |
4aff38a3 | 203 | }; |