ath25: switch default kernel to 5.15
[openwrt/staging/ldir.git] / target / linux / mvebu / patches-5.10 / 004-v5.11-ARM-dts-turris-omnia-describe-switch-interrupt.patch
1 From d29b67c220caf5f4905e1f1576e71bcb6de4af9e Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org>
3 Date: Sun, 15 Nov 2020 14:59:19 +0100
4 Subject: ARM: dts: turris-omnia: describe switch interrupt
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Describe switch interrupt for Turris Omnia so that the CPU does not have
10 to poll the switch. We also need to to set mpp45 pin to gpio function
11 for this.
12
13 Signed-off-by: Marek Behún <kabel@kernel.org>
14 Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia")
15 Cc: linux-arm-kernel@lists.infradead.org
16 Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
17 Cc: Jason Cooper <jason@lakedaemon.net>
18 Cc: Gregory CLEMENT <gregory.clement@bootlin.com>
19 Cc: Andreas Färber <afaerber@suse.de>
20 Cc: Andrew Lunn <andrew@lunn.ch>
21 Cc: Rob Herring <robh+dt@kernel.org>
22 Cc: devicetree@vger.kernel.org
23 Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
24 ---
25 arch/arm/boot/dts/armada-385-turris-omnia.dts | 12 +++++++++++-
26 1 file changed, 11 insertions(+), 1 deletion(-)
27
28 --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts
29 +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts
30 @@ -267,13 +267,18 @@
31
32 /* Switch MV88E6176 at address 0x10 */
33 switch@10 {
34 + pinctrl-names = "default";
35 + pinctrl-0 = <&swint_pins>;
36 compatible = "marvell,mv88e6085";
37 #address-cells = <1>;
38 #size-cells = <0>;
39 - dsa,member = <0 0>;
40
41 + dsa,member = <0 0>;
42 reg = <0x10>;
43
44 + interrupt-parent = <&gpio1>;
45 + interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
46 +
47 ports {
48 #address-cells = <1>;
49 #size-cells = <0>;
50 @@ -336,6 +341,11 @@
51 marvell,function = "gpio";
52 };
53
54 + swint_pins: swint-pins {
55 + marvell,pins = "mpp45";
56 + marvell,function = "gpio";
57 + };
58 +
59 spi0cs0_pins: spi0cs0-pins {
60 marvell,pins = "mpp25";
61 marvell,function = "spi0";