-
Notifications
You must be signed in to change notification settings - Fork 0
/
kirkwood-lenovo-ix2-common.dtsi
210 lines (175 loc) · 3.95 KB
/
kirkwood-lenovo-ix2-common.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
#include "kirkwood.dtsi"
#include "kirkwood-6282.dtsi"
/ {
/* 256 MB RAM. */
memory {
device_type = "memory";
reg = <0x00000000 0x10000000>;
};
chosen {
bootargs = "console=ttyS0,115200n8 earlyprintk";
stdout-path = &uart1;
};
ocp@f1000000 {
pinctrl: pin-controller@10000 {
pmx_power_off: pmx-power-off {
marvell,pins = "mpp36";
marvell,function = "gpio";
};
pmx_sata1_power: pmx-sata1-power {
marvell,pins = "mpp17";
marvell,function = "gpio";
};
pmx_btn_power: pmx-btn-power {
marvell,pins = "mpp15";
marvell,function = "gpio";
};
pmx_btn_reset: pmx-btn-reset {
marvell,pins = "mpp29";
marvell,function = "gpio";
};
pmx_led_sys_white: pmx-led-sys-white {
marvell,pins = "mpp39";
marvell,function = "gpio";
};
pmx_led_sys_red: pmx-led-sys-red {
marvell,pins = "mpp37";
marvell,function = "gpio";
};
pmx_led_hdd_blue: pmx-led-hdd-blue {
marvell,pins = "mpp26";
marvell,function = "gpio";
};
pmx_led_hdd1_red: pmx-led-hdd1-red {
marvell,pins = "mpp25";
marvell,function = "gpio";
};
pmx_led_hdd2_red: pmx-led-hdd2-red {
marvell,pins = "mpp24";
marvell,function = "gpio";
};
pmx_led_brightness: pmx-led-brightness {
marvell,pins = "mpp40", "mpp41";
marvell,function = "gpio";
};
};
/* Second serial port is available on header "CN4". */
serial@12100 {
status = "okay";
};
rtc@10300 {
status = "okay";
};
i2c@11000 {
status = "okay";
adt7473: adt7473@2e {
compatible = "adi,adt7473";
reg = <0x2e>;
};
/* Also something at 0x64. Maybe Marvell i2c debug? */
};
sata@80000 {
status = "okay";
nr-ports = <2>;
};
};
gpio-poweroff {
compatible = "gpio-poweroff";
pinctrl-0 = <&pmx_power_off>;
pinctrl-names = "default";
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
};
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&pmx_btn_power &pmx_btn_reset>;
pinctrl-names = "default";
power {
label = "Power Button";
linux,code = <KEY_POWER>;
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
};
reset {
label = "Reset Button";
linux,code = <KEY_RESTART>;
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
};
};
gpio-leds {
compatible = "gpio-leds";
pinctrl-0 = <&pmx_led_sys_white &pmx_led_sys_red
&pmx_led_hdd_blue
&pmx_led_hdd1_red &pmx_led_hdd2_red>;
pinctrl-names = "default";
white-sys {
label = "ix2:white:sys";
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
red-sys {
label = "ix2:red:sys";
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
};
blue-hdd {
label = "ix2:blue:hdd";
gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
};
red-hdd1 {
label = "ix2:red:hdd1";
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
};
red-hdd2 {
label = "ix2:red:hdd2";
gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
};
};
regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&pmx_led_brightness
&pmx_sata1_power>;
pinctrl-names = "default";
led_power: regulator@1 {
compatible = "regulator-gpio";
reg = <1>;
regulator-name = "LED brightness";
regulator-type = "voltage";
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <3300000>;
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH
&gpio1 8 GPIO_ACTIVE_HIGH>;
gpios_states = <1 1>;
state = <3300000 0x3
2200000 0x1
1100000 0x0>;
regulator-always-on;
regulator-boot-on;
enable-active-high;
};
sata1_power: regulator@2 {
compatible = "regulator-fixed";
reg = <2>;
regulator-name = "SATA1 Power";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
regulator-boot-on;
enable-active-high;
gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>;
};
};
};
&mdio {
status = "okay";
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
ð0 {
status = "okay";
ethernet0-port@0 {
phy-handle = <ðphy0>;
};
};