1821b1e6b4b021b7ee76cbfbbc0eb2cfd6340931
[openwrt/staging/dedeckeh.git] / target / linux / bcm27xx / patches-5.10 / 950-0462-ARM-dts-bcm2711-Add-the-CEC-interrupt-controller.patch
1 From 37e369738ad24d0e43a5db645dcf3a7c434d0db9 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Mon, 11 Jan 2021 15:23:09 +0100
4 Subject: [PATCH] ARM: dts: bcm2711: Add the CEC interrupt controller
5
6 The CEC and hotplug interrupts go through an interrupt controller shared
7 between the two HDMI controllers.
8
9 Let's add that interrupt controller and the interrupts for both HDMI
10 controllers
11
12 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
13 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
14 ---
15 arch/arm/boot/dts/bcm2711.dtsi | 18 ++++++++++++++++++
16 1 file changed, 18 insertions(+)
17
18 --- a/arch/arm/boot/dts/bcm2711.dtsi
19 +++ b/arch/arm/boot/dts/bcm2711.dtsi
20 @@ -308,6 +308,14 @@
21 #reset-cells = <1>;
22 };
23
24 + aon_intr: interrupt-controller@7ef00100 {
25 + compatible = "brcm,bcm2711-l2-intc", "brcm,l2-intc";
26 + reg = <0x7ef00100 0x30>;
27 + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
28 + interrupt-controller;
29 + #interrupt-cells = <1>;
30 + };
31 +
32 hdmi0: hdmi@7ef00700 {
33 compatible = "brcm,bcm2711-hdmi0";
34 reg = <0x7ef00700 0x300>,
35 @@ -336,6 +344,11 @@
36 <&clk_27MHz>;
37 clock-names = "hdmi", "bvb", "audio", "cec";
38 resets = <&dvp 0>;
39 + interrupt-parent = <&aon_intr>;
40 + interrupts = <0>, <1>, <2>,
41 + <3>, <4>, <5>;
42 + interrupt-names = "cec-tx", "cec-rx", "cec-low",
43 + "wakeup", "hpd-connected", "hpd-removed";
44 ddc = <&ddc0>;
45 dmas = <&dma 10>;
46 dma-names = "audio-rx";
47 @@ -380,6 +393,11 @@
48 <&dvp 0>,
49 <&clk_27MHz>;
50 resets = <&dvp 1>;
51 + interrupt-parent = <&aon_intr>;
52 + interrupts = <8>, <7>, <6>,
53 + <9>, <10>, <11>;
54 + interrupt-names = "cec-tx", "cec-rx", "cec-low",
55 + "wakeup", "hpd-connected", "hpd-removed";
56 dmas = <&dma 17>;
57 dma-names = "audio-rx";
58 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;