Skip to content

Commit 5cf87a1

Browse files
committed
Merge tag 'mvebu_fixes_for_v3.8' of git://git.infradead.org/users/jcooper/linux into fixes
From Jason Cooper: fixes for mvebu/kirkwood v3.8 - use correct uart driver for mvebu boards - add a missing DT clocks - gpio-poweroff level vs. edge triggering, use gpio_is_valid() - remove an inappropriate __init, modules need to access function. - various DT fixes - error handling in mv_xor * tag 'mvebu_fixes_for_v3.8' of git://git.infradead.org/users/jcooper/linux: pinctrl: mvebu: make pdma clock on dove mandatory ARM: Dove: Add pinctrl clock to DT dma: mv_xor: fix error handling for clocks dma: mv_xor: fix error handling of mv_xor_channel_add() arm: mvebu: Add missing ; for cpu node. arm: mvebu: Armada XP MV78230 has only three Ethernet interfaces arm: mvebu: Armada XP MV78230 has two cores, not one clk: mvebu: Remove inappropriate __init tagging ARM: Kirkwood: Use fixed-regulator instead of board gpio call ARM: Kirkwood: Fix missing sdio clock ARM: Kirkwood: Switch TWSI1 of 88f6282 to DT clock providers Power: gpio-poweroff: Fix documentation and gpio_is_valid ARM: Kirkwood: Fix missing clk for USB device. arm: mvebu: Use dw-apb-uart instead of ns16650 as UART driver Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents 0e3a4a2 + ba607b6 commit 5cf87a1

File tree

17 files changed

+101
-47
lines changed

17 files changed

+101
-47
lines changed

Documentation/devicetree/bindings/gpio/gpio-poweroff.txt

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
GPIO line that should be set high/low to power off a device
1+
Driver a GPIO line that can be used to turn the power off.
2+
3+
The driver supports both level triggered and edge triggered power off.
4+
At driver load time, the driver will request the given gpio line and
5+
install a pm_power_off handler. If the optional properties 'input' is
6+
not found, the GPIO line will be driven in the inactive
7+
state. Otherwise its configured as an input.
8+
9+
When the pm_power_off is called, the gpio is configured as an output,
10+
and drive active, so triggering a level triggered power off
11+
condition. This will also cause an inactive->active edge condition, so
12+
triggering positive edge triggered power off. After a delay of 100ms,
13+
the GPIO is set to inactive, thus causing an active->inactive edge,
14+
triggering negative edge triggered power off. After another 100ms
15+
delay the GPIO is driver active again. If the power is still on and
16+
the CPU still running after a 3000ms delay, a WARN_ON(1) is emitted.
217

318
Required properties:
419
- compatible : should be "gpio-poweroff".
@@ -13,10 +28,9 @@ Optional properties:
1328
property is not specified, the GPIO is initialized as an output in its
1429
inactive state.
1530

16-
1731
Examples:
1832

1933
gpio-poweroff {
2034
compatible = "gpio-poweroff";
21-
gpios = <&gpio 4 0>; /* GPIO 4 Active Low */
35+
gpios = <&gpio 4 0>;
2236
};

arch/arm/boot/dts/armada-370-xp.dtsi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,19 @@
5050
ranges;
5151

5252
serial@d0012000 {
53-
compatible = "ns16550";
53+
compatible = "snps,dw-apb-uart";
5454
reg = <0xd0012000 0x100>;
5555
reg-shift = <2>;
5656
interrupts = <41>;
57+
reg-io-width = <4>;
5758
status = "disabled";
5859
};
5960
serial@d0012100 {
60-
compatible = "ns16550";
61+
compatible = "snps,dw-apb-uart";
6162
reg = <0xd0012100 0x100>;
6263
reg-shift = <2>;
6364
interrupts = <42>;
65+
reg-io-width = <4>;
6466
status = "disabled";
6567
};
6668

arch/arm/boot/dts/armada-xp-mv78230.dtsi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@
3434
reg = <0>;
3535
clocks = <&cpuclk 0>;
3636
};
37-
}
37+
38+
cpu@1 {
39+
device_type = "cpu";
40+
compatible = "marvell,sheeva-v7";
41+
reg = <1>;
42+
clocks = <&cpuclk 1>;
43+
};
44+
};
3845

3946
soc {
4047
pinctrl {

arch/arm/boot/dts/armada-xp-mv78260.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,13 @@
8585
#interrupts-cells = <2>;
8686
interrupts = <24>;
8787
};
88+
89+
ethernet@d0034000 {
90+
compatible = "marvell,armada-370-neta";
91+
reg = <0xd0034000 0x2500>;
92+
interrupts = <14>;
93+
clocks = <&gateclk 1>;
94+
status = "disabled";
95+
};
8896
};
8997
};

arch/arm/boot/dts/armada-xp-mv78460.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,13 @@
100100
#interrupts-cells = <2>;
101101
interrupts = <24>;
102102
};
103+
104+
ethernet@d0034000 {
105+
compatible = "marvell,armada-370-neta";
106+
reg = <0xd0034000 0x2500>;
107+
interrupts = <14>;
108+
clocks = <&gateclk 1>;
109+
status = "disabled";
110+
};
103111
};
104112
};

arch/arm/boot/dts/armada-xp.dtsi

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,19 @@
4242

4343
soc {
4444
serial@d0012200 {
45-
compatible = "ns16550";
45+
compatible = "snps,dw-apb-uart";
4646
reg = <0xd0012200 0x100>;
4747
reg-shift = <2>;
4848
interrupts = <43>;
49+
reg-io-width = <4>;
4950
status = "disabled";
5051
};
5152
serial@d0012300 {
52-
compatible = "ns16550";
53+
compatible = "snps,dw-apb-uart";
5354
reg = <0xd0012300 0x100>;
5455
reg-shift = <2>;
5556
interrupts = <44>;
57+
reg-io-width = <4>;
5658
status = "disabled";
5759
};
5860

@@ -93,14 +95,6 @@
9395
status = "disabled";
9496
};
9597

96-
ethernet@d0034000 {
97-
compatible = "marvell,armada-370-neta";
98-
reg = <0xd0034000 0x2500>;
99-
interrupts = <14>;
100-
clocks = <&gateclk 1>;
101-
status = "disabled";
102-
};
103-
10498
xor@d0060900 {
10599
compatible = "marvell,orion-xor";
106100
reg = <0xd0060900 0x100

arch/arm/boot/dts/dove.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
pinctrl: pinctrl@d0200 {
118118
compatible = "marvell,dove-pinctrl";
119119
reg = <0xd0200 0x10>;
120+
clocks = <&gate_clk 22>;
120121
};
121122

122123
spi0: spi@10600 {

arch/arm/boot/dts/kirkwood-6282.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#size-cells = <0>;
4040
interrupts = <32>;
4141
clock-frequency = <100000>;
42+
clocks = <&gate_clk 7>;
4243
status = "disabled";
4344
};
4445
};

arch/arm/boot/dts/kirkwood-topkick.dts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,21 @@
8282
gpios = <&gpio1 16 1>;
8383
};
8484
};
85+
regulators {
86+
compatible = "simple-bus";
87+
#address-cells = <1>;
88+
#size-cells = <0>;
89+
90+
sata0_power: regulator@1 {
91+
compatible = "regulator-fixed";
92+
reg = <1>;
93+
regulator-name = "SATA0 Power";
94+
regulator-min-microvolt = <5000000>;
95+
regulator-max-microvolt = <5000000>;
96+
enable-active-high;
97+
regulator-always-on;
98+
regulator-boot-on;
99+
gpio = <&gpio1 4 0>;
100+
};
101+
};
85102
};

arch/arm/boot/dts/kirkwood.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
compatible = "marvell,orion-ehci";
145145
reg = <0x50000 0x1000>;
146146
interrupts = <19>;
147+
clocks = <&gate_clk 3>;
147148
status = "okay";
148149
};
149150

0 commit comments

Comments
 (0)