devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset
@ 2024-12-12 18:36 Dave Stevenson
  2024-12-12 18:36 ` [PATCH v3 1/7] dt-bindings: display: bcm2711-hdmi: Add interrupt details for BCM2712 Dave Stevenson
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Dave Stevenson @ 2024-12-12 18:36 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio, Dave Stevenson

I missed the DT errors from the recent patchset[1] (DT patches
in linux-next via Florian, DRM bindings patches on dri-misc-next)
as Rob's bot report got spam filtered, so this is a fixup set.

Largely it was changes to number of interrupts or clocks in the
bindings, so those are now covered.

I've fixed up the missing "interrupt-controller" flags for 2711
and 2712 whilst here.

I can't get my head around what is meant to happen with ranges:
"soc@107c000000: firmware: 'ranges' is a required property"
The meaning seems obvious.

However if I add it then I get:
"firmware: '#address-cells', '#size-cells', 'dma-ranges', 'ranges' do
not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/arm/bcm/raspberrypi,bcm2835-firmware.yaml#

There's obviously some other flag I need to set in the bindings,
but I can't work it out. We have similar errors for all the Pi
platforms for one or more nodes.
Please advise and I'll happily fix them all.

Thanks
  Dave

[1] https://lore.kernel.org/linux-arm-kernel/20241025-drm-vc4-2712-support-v2-0-35efa83c8fc0@raspberrypi.com/

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
Changes in v3:
- Fixed up indentation on 1/7. (I fixed it once, but obviously reworked
  things and lost it).
- Link to v2: https://lore.kernel.org/r/20241212-dt-bcm2712-fixes-v2-0-35986e04d0f4@raspberrypi.com

Thanks to Stefan and Krzysztof for their reviews.
Hopefully I've addressed all points raised in the correct manner.

Changes in v2:
- Commits have now be merged from drm-misc-next to linux-next, so all
  commit hashes are valid on linux-next.
- 1/7 Removed references to "previous commit". Fixed up indentation.
  Added maxItems
- 2/7 Defined widest constraints
- 3/7 Added maxItems and removed reference to Linux
- 4/7 Described the errors. Split into two for fix of node name vs addr
  being wrong.
- Added new patch removing "required" for interrupt-controller and
  interrupt-cells for bcm2836-l1-intc
- 5/7 (now 7/7) Removed the intc node for 2712 - it's irrelevant on 64bit systems
- 6/7 dropped as updating the binding is the correct answer
- 7/7 dropped. simple-bus claims ranges is required, but adding it
  creates other errors. I'm unclear as to the right solution.

- Link to v1: https://lore.kernel.org/r/20241202-dt-bcm2712-fixes-v1-0-fac67cc2f98a@raspberrypi.com

---
Dave Stevenson (7):
      dt-bindings: display: bcm2711-hdmi: Add interrupt details for BCM2712
      dt-bindings: display: Fix BCM2835 HVS bindings for BCM2712
      dt-bindings: gpio: brcmstb: permit gpio-line-names property
      dt-bindings: interrupt-controller: brcm,bcm2836-l1-intc: Drop interrupt-controller requirement
      arm64: dts: broadcom: Rename bcm2712 interrupt controllers
      arm64: dts: broadcom: Correct hdmi device node names
      arm64: dts: broadcom: Remove intc controller on BCM2712.

 .../bindings/display/brcm,bcm2711-hdmi.yaml        | 107 ++++++++++++++++++---
 .../bindings/display/brcm,bcm2835-hvs.yaml         |  83 +++++++++++++---
 .../bindings/gpio/brcm,brcmstb-gpio.yaml           |   4 +
 .../interrupt-controller/brcm,bcm2836-l1-intc.yaml |   2 -
 arch/arm64/boot/dts/broadcom/bcm2712.dtsi          |  13 +--
 5 files changed, 170 insertions(+), 39 deletions(-)
---
base-commit: 3a6b7ba51f16c093420959ab2bd3476d180547fa
change-id: 20241128-dt-bcm2712-fixes-afb0e8a0a476

Best regards,
-- 
Dave Stevenson <dave.stevenson@raspberrypi.com>


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [PATCH v3 1/7] dt-bindings: display: bcm2711-hdmi: Add interrupt details for BCM2712
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
@ 2024-12-12 18:36 ` Dave Stevenson
  2024-12-13  9:18   ` Krzysztof Kozlowski
  2024-12-12 18:36 ` [PATCH v3 2/7] dt-bindings: display: Fix BCM2835 HVS bindings " Dave Stevenson
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 21+ messages in thread
From: Dave Stevenson @ 2024-12-12 18:36 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio, Dave Stevenson

Commit 62948c62abca ("dt-bindings: display: Add BCM2712 HDMI bindings")
added the compatible strings for BCM2712, but missed out that the
number of interrupts changed.

Update the schema to include the interrupt requirements.

Fixes: 62948c62abca ("dt-bindings: display: Add BCM2712 HDMI bindings")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
 .../bindings/display/brcm,bcm2711-hdmi.yaml        | 107 ++++++++++++++++++---
 1 file changed, 93 insertions(+), 14 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml b/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml
index 6d11f5955b51..dd7dea60183b 100644
--- a/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml
+++ b/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml
@@ -56,22 +56,38 @@ properties:
       - const: cec
 
   interrupts:
-    items:
-      - description: CEC TX interrupt
-      - description: CEC RX interrupt
-      - description: CEC stuck at low interrupt
-      - description: Wake-up interrupt
-      - description: Hotplug connected interrupt
-      - description: Hotplug removed interrupt
+    oneOf:
+      - items:
+          - description: CEC TX interrupt
+          - description: CEC RX interrupt
+          - description: CEC stuck at low interrupt
+          - description: Wake-up interrupt
+          - description: Hotplug connected interrupt
+          - description: Hotplug removed interrupt
+
+      - items:
+          - description: CEC TX interrupt
+          - description: CEC RX interrupt
+          - description: CEC stuck at low interrupt
+          - description: Hotplug connected interrupt
+          - description: Hotplug removed interrupt
 
   interrupt-names:
-    items:
-      - const: cec-tx
-      - const: cec-rx
-      - const: cec-low
-      - const: wakeup
-      - const: hpd-connected
-      - const: hpd-removed
+    oneOf:
+      - items:
+          - const: cec-tx
+          - const: cec-rx
+          - const: cec-low
+          - const: wakeup
+          - const: hpd-connected
+          - const: hpd-removed
+
+      - items:
+          - const: cec-tx
+          - const: cec-rx
+          - const: cec-low
+          - const: hpd-connected
+          - const: hpd-removed
 
   ddc:
     $ref: /schemas/types.yaml#/definitions/phandle
@@ -112,6 +128,66 @@ required:
 
 additionalProperties: false
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - brcm,bcm2711-hdmi0
+              - brcm,bcm2711-hdmi1
+    then:
+      properties:
+        interrupts:
+          items:
+            - description: CEC TX interrupt
+            - description: CEC RX interrupt
+            - description: CEC stuck at low interrupt
+            - description: Wake-up interrupt
+            - description: Hotplug connected interrupt
+            - description: Hotplug removed interrupt
+        interrupt-names:
+          items:
+            - const: cec-tx
+            - const: cec-rx
+            - const: cec-low
+            - const: wakeup
+            - const: hpd-connected
+            - const: hpd-removed
+
+
+      required:
+        - interrupts
+        - interrupt-names
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - brcm,bcm2712-hdmi0
+              - brcm,bcm2712-hdmi1
+    then:
+      properties:
+        interrupts:
+          items:
+            - description: CEC TX interrupt
+            - description: CEC RX interrupt
+            - description: CEC stuck at low interrupt
+            - description: Hotplug connected interrupt
+            - description: Hotplug removed interrupt
+        interrupts-names:
+          items:
+            - const: cec-tx
+            - const: cec-rx
+            - const: cec-low
+            - const: hpd-connected
+            - const: hpd-removed
+
+      required:
+        - interrupts
+        - interrupt-names
+
 examples:
   - |
     hdmi0: hdmi@7ef00700 {
@@ -136,6 +212,9 @@ examples:
                     "hd";
         clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>;
         clock-names = "hdmi", "bvb", "audio", "cec";
+        interrupts = <0>, <1>, <2>, <3>, <4>, <5>;
+        interrupt-names = "cec-tx", "cec-rx", "cec-low", "wakeup",
+                "hpd-connected", "hpd-removed";
         resets = <&dvp 0>;
         ddc = <&ddc0>;
     };

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v3 2/7] dt-bindings: display: Fix BCM2835 HVS bindings for BCM2712
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
  2024-12-12 18:36 ` [PATCH v3 1/7] dt-bindings: display: bcm2711-hdmi: Add interrupt details for BCM2712 Dave Stevenson
@ 2024-12-12 18:36 ` Dave Stevenson
  2024-12-13  9:19   ` Krzysztof Kozlowski
  2024-12-12 18:36 ` [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property Dave Stevenson
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 21+ messages in thread
From: Dave Stevenson @ 2024-12-12 18:36 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio, Dave Stevenson

Commit 6cfcbe548a3a ("dt-bindings: display: Add BCM2712 HVS bindings")
added the compatible string for BCM2712, but missed out that
the number of interrupts and clocks changed too.

Update to validate clock and interrupts for the variants.

Fixes: 6cfcbe548a3a ("dt-bindings: display: Add BCM2712 HVS bindings")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
 .../bindings/display/brcm,bcm2835-hvs.yaml         | 83 ++++++++++++++++++----
 1 file changed, 69 insertions(+), 14 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml b/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
index f91c9dce2a44..36bf8eec88a6 100644
--- a/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
+++ b/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
@@ -20,11 +20,20 @@ properties:
     maxItems: 1
 
   interrupts:
-    maxItems: 1
+    minItems: 1
+    maxItems: 3
+
+  interrupt-names:
+    minItems: 1
+    maxItems: 3
 
   clocks:
-    maxItems: 1
-    description: Core Clock
+    minItems: 1
+    maxItems: 2
+
+  clock-names:
+    minItems: 1
+    maxItems: 2
 
 required:
   - compatible
@@ -33,17 +42,63 @@ required:
 
 additionalProperties: false
 
-if:
-  properties:
-    compatible:
-      contains:
-        enum:
-          - brcm,bcm2711-hvs
-          - brcm,bcm2712-hvs
-
-then:
-  required:
-    - clocks
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: brcm,bcm2711-hvs
+
+    then:
+      properties:
+        clocks:
+          items:
+            - description: Core Clock
+        interrupts:
+          maxItems: 1
+
+      required:
+        - clocks
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: brcm,bcm2712-hvs
+
+    then:
+      properties:
+        clocks:
+          maxItems: 2
+        clock-names:
+          items:
+            - const: core
+            - const: disp
+        interrupts:
+          items:
+            - description: Channel 0 End of frame
+            - description: Channel 1 End of frame
+            - description: Channel 2 End of frame
+        interrupt-names:
+          items:
+            - const: ch0-eof
+            - const: ch1-eof
+            - const: ch2-eof
+      required:
+        - clocks
+        - clock-names
+        - interrupt-names
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: brcm,bcm2835-hvs
+
+    then:
+      properties:
+        interrupts:
+          maxItems: 1
 
 examples:
   - |

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
  2024-12-12 18:36 ` [PATCH v3 1/7] dt-bindings: display: bcm2711-hdmi: Add interrupt details for BCM2712 Dave Stevenson
  2024-12-12 18:36 ` [PATCH v3 2/7] dt-bindings: display: Fix BCM2835 HVS bindings " Dave Stevenson
@ 2024-12-12 18:36 ` Dave Stevenson
  2024-12-12 18:38   ` Florian Fainelli
                     ` (2 more replies)
  2024-12-12 18:36 ` [PATCH v3 4/7] dt-bindings: interrupt-controller: brcm,bcm2836-l1-intc: Drop interrupt-controller requirement Dave Stevenson
                   ` (5 subsequent siblings)
  8 siblings, 3 replies; 21+ messages in thread
From: Dave Stevenson @ 2024-12-12 18:36 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio, Dave Stevenson

gpio-line-names is a generic property that can be supported by any
GPIO controller, so permit it through the binding.

It is permitted to have a variable number of GPIOs per node based
on brcm,gpio-bank-widths, so define an arbitrary maximum number of
items based on current users.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
 Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.yaml b/Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.yaml
index f096f286da19..fbd69b4cecc7 100644
--- a/Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.yaml
@@ -64,6 +64,10 @@ properties:
 
   gpio-ranges: true
 
+  gpio-line-names:
+    minItems: 1
+    maxItems: 128
+
   wakeup-source:
     type: boolean
     description: >

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v3 4/7] dt-bindings: interrupt-controller: brcm,bcm2836-l1-intc: Drop interrupt-controller requirement
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
                   ` (2 preceding siblings ...)
  2024-12-12 18:36 ` [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property Dave Stevenson
@ 2024-12-12 18:36 ` Dave Stevenson
  2024-12-13  9:20   ` Krzysztof Kozlowski
  2024-12-12 18:36 ` [PATCH v3 5/7] arm64: dts: broadcom: Rename bcm2712 interrupt controllers Dave Stevenson
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 21+ messages in thread
From: Dave Stevenson @ 2024-12-12 18:36 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio, Dave Stevenson

Since commit 88bbe85dcd37 ("irqchip: bcm2836: Move SMP startup code to
arch/arm (v2)") the bcm2836-l1-intc block on bcm2711 is only used as a
base address for the smp_boot_secondary hook on 32 bit kernels. It is
not used as an interrupt controller.

Drop the binding requirement for interrupt-controller and interrupt-cells
to satisfy validation on this platform.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
 .../devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml  | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml
index 5fda626c80ce..2ff390c1705b 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml
@@ -34,8 +34,6 @@ properties:
 required:
   - compatible
   - reg
-  - interrupt-controller
-  - '#interrupt-cells'
 
 additionalProperties: false
 

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v3 5/7] arm64: dts: broadcom: Rename bcm2712 interrupt controllers
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
                   ` (3 preceding siblings ...)
  2024-12-12 18:36 ` [PATCH v3 4/7] dt-bindings: interrupt-controller: brcm,bcm2836-l1-intc: Drop interrupt-controller requirement Dave Stevenson
@ 2024-12-12 18:36 ` Dave Stevenson
  2024-12-17 19:37   ` Florian Fainelli
  2024-12-12 18:36 ` [PATCH v3 6/7] arm64: dts: broadcom: Correct hdmi device node names Dave Stevenson
                   ` (3 subsequent siblings)
  8 siblings, 1 reply; 21+ messages in thread
From: Dave Stevenson @ 2024-12-12 18:36 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio, Dave Stevenson

CHECK_DTBS produces errors on bcm2712-rpi-5-b.dtb and bcm2712-d-rpi-5-b.dtb
of:
intc@7d508380: $nodename:0: 'intc@7d508380' does not match '^interrupt-controller(@[0-9a-f,]+)*$'
        from schema $id: http://devicetree.org/schemas/interrupt-controller/brcm,l2-intc.yaml#
intc@7d508400: $nodename:0: 'intc@7d508400' does not match '^interrupt-controller(@[0-9a-f,]+)*$'
        from schema $id: http://devicetree.org/schemas/interrupt-controller/brcm,l2-intc.yaml#

Rename the nodes from intc to interrupt-controller.

Fixes: f66b382affd8 ("arm64: dts: broadcom: Add display pipeline support to BCM2712")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
 arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
index 39305e0869ec..bd78af0211b6 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
@@ -336,7 +336,7 @@ ddc1: i2c@7d508280 {
 			#size-cells = <0>;
 		};
 
-		bsc_irq: intc@7d508380 {
+		bsc_irq: interrupt-controller@7d508380 {
 			compatible = "brcm,bcm7271-l2-intc";
 			reg = <0x7d508380 0x10>;
 			interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>;
@@ -344,7 +344,7 @@ bsc_irq: intc@7d508380 {
 			#interrupt-cells = <1>;
 		};
 
-		main_irq: intc@7d508400 {
+		main_irq: interrupt-controller@7d508400 {
 			compatible = "brcm,bcm7271-l2-intc";
 			reg = <0x7d508400 0x10>;
 			interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>;

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v3 6/7] arm64: dts: broadcom: Correct hdmi device node names
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
                   ` (4 preceding siblings ...)
  2024-12-12 18:36 ` [PATCH v3 5/7] arm64: dts: broadcom: Rename bcm2712 interrupt controllers Dave Stevenson
@ 2024-12-12 18:36 ` Dave Stevenson
  2024-12-17 19:37   ` Florian Fainelli
  2024-12-12 18:36 ` [PATCH v3 7/7] arm64: dts: broadcom: Remove intc controller on BCM2712 Dave Stevenson
                   ` (2 subsequent siblings)
  8 siblings, 1 reply; 21+ messages in thread
From: Dave Stevenson @ 2024-12-12 18:36 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio, Dave Stevenson

The names of the hdmi0 and hdmi1 nodes had addresses that
didn't match the reg properties for the nodes.

Fixes: f66b382affd8 ("arm64: dts: broadcom: Add display pipeline support to BCM2712")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
 arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
index bd78af0211b6..f42fad2d8b37 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
@@ -352,7 +352,7 @@ main_irq: interrupt-controller@7d508400 {
 			#interrupt-cells = <1>;
 		};
 
-		hdmi0: hdmi@7ef00700 {
+		hdmi0: hdmi@7c701400 {
 			compatible = "brcm,bcm2712-hdmi0";
 			reg = <0x7c701400 0x300>,
 			      <0x7c701000 0x200>,
@@ -381,7 +381,7 @@ hdmi0: hdmi@7ef00700 {
 			ddc = <&ddc0>;
 		};
 
-		hdmi1: hdmi@7ef05700 {
+		hdmi1: hdmi@7c706400 {
 			compatible = "brcm,bcm2712-hdmi1";
 			reg = <0x7c706400 0x300>,
 			      <0x7c706000 0x200>,

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v3 7/7] arm64: dts: broadcom: Remove intc controller on BCM2712.
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
                   ` (5 preceding siblings ...)
  2024-12-12 18:36 ` [PATCH v3 6/7] arm64: dts: broadcom: Correct hdmi device node names Dave Stevenson
@ 2024-12-12 18:36 ` Dave Stevenson
  2024-12-17 19:37   ` Florian Fainelli
  2024-12-16  9:09 ` (subset) [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Bartosz Golaszewski
  2024-12-17 19:41 ` Florian Fainelli
  8 siblings, 1 reply; 21+ messages in thread
From: Dave Stevenson @ 2024-12-12 18:36 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio, Dave Stevenson

The brcm,bcm2836-l1-intc controller isn't used on this platform.
It is used on 32-bit kernels for the smp_boot_secondary hook, but
BCM2712 can't run a 32-bit kernel.

Remove the node.

Fixes: e1417095a139 ("arm64: dts: broadcom: Add firmware clocks and power nodes to Pi5 DT")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
 arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
index f42fad2d8b37..9a426aa27c74 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
@@ -221,11 +221,6 @@ mailbox: mailbox@7c013880 {
 			#mbox-cells = <0>;
 		};
 
-		local_intc: interrupt-controller@7cd00000 {
-			compatible = "brcm,bcm2836-l1-intc";
-			reg = <0x7cd00000 0x100>;
-		};
-
 		uart10: serial@7d001000 {
 			compatible = "arm,pl011", "arm,primecell";
 			reg = <0x7d001000 0x200>;

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property
  2024-12-12 18:36 ` [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property Dave Stevenson
@ 2024-12-12 18:38   ` Florian Fainelli
  2024-12-13  9:19   ` Krzysztof Kozlowski
  2024-12-20 12:50   ` Linus Walleij
  2 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2024-12-12 18:38 UTC (permalink / raw)
  To: Dave Stevenson, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley,
	Broadcom internal kernel review list, Eric Anholt,
	Maíra Canal, Raspberry Pi Kernel Maintenance, Ray Jui,
	Scott Branden, Doug Berger, Linus Walleij, Bartosz Golaszewski,
	Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio

On 12/12/24 10:36, Dave Stevenson wrote:
> gpio-line-names is a generic property that can be supported by any
> GPIO controller, so permit it through the binding.
> 
> It is permitted to have a variable number of GPIOs per node based
> on brcm,gpio-bank-widths, so define an arbitrary maximum number of
> items based on current users.
> 
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 1/7] dt-bindings: display: bcm2711-hdmi: Add interrupt details for BCM2712
  2024-12-12 18:36 ` [PATCH v3 1/7] dt-bindings: display: bcm2711-hdmi: Add interrupt details for BCM2712 Dave Stevenson
@ 2024-12-13  9:18   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-13  9:18 UTC (permalink / raw)
  To: Dave Stevenson
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren, dri-devel,
	devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Florian Fainelli, linux-gpio

On Thu, Dec 12, 2024 at 06:36:28PM +0000, Dave Stevenson wrote:
> Commit 62948c62abca ("dt-bindings: display: Add BCM2712 HDMI bindings")
> added the compatible strings for BCM2712, but missed out that the
> number of interrupts changed.
> 
> Update the schema to include the interrupt requirements.
> 
> Fixes: 62948c62abca ("dt-bindings: display: Add BCM2712 HDMI bindings")
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---
>  .../bindings/display/brcm,bcm2711-hdmi.yaml        | 107 ++++++++++++++++++---
>  1 file changed, 93 insertions(+), 14 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml b/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml
> index 6d11f5955b51..dd7dea60183b 100644
> --- a/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml
> +++ b/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml
> @@ -56,22 +56,38 @@ properties:
>        - const: cec
>  
>    interrupts:

> -    items:
> -      - description: CEC TX interrupt
> -      - description: CEC RX interrupt
> -      - description: CEC stuck at low interrupt
> -      - description: Wake-up interrupt
> -      - description: Hotplug connected interrupt
> -      - description: Hotplug removed interrupt
> +    oneOf:
> +      - items:
> +          - description: CEC TX interrupt
> +          - description: CEC RX interrupt
> +          - description: CEC stuck at low interrupt
> +          - description: Wake-up interrupt
> +          - description: Hotplug connected interrupt
> +          - description: Hotplug removed interrupt
> +
> +      - items:
> +          - description: CEC TX interrupt
> +          - description: CEC RX interrupt
> +          - description: CEC stuck at low interrupt
> +          - description: Hotplug connected interrupt
> +          - description: Hotplug removed interrupt

You have chosen unusual syntax. There are no bindings doing this way, so
I really do not get which file you used as template.

Expected here are minItems and maxItems. These are the widest
constraints. Otherwise you are repeating the same in allOf:if:then. And
then the allOf:if:then: defines the items.

You can do the opposite - define the items here then just choose
constraints in if:then:. Less popular if you have list without common
part (so no minItems here), but sure, if you insist... yet you chosen
some third way of duplicating it in both places.

Look:
https://elixir.bootlin.com/linux/v6.11-rc6/source/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml#L127
https://elixir.bootlin.com/linux/v6.11-rc6/source/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml#L39
https://elixir.bootlin.com/linux/v5.19/source/Documentation/devicetree/bindings/example-schema.yaml#L91

There is nowhere syntax like here, with duplicating everything twice.

BTW, drop the full stop from your subjects in some other patches.
Subject never ends with full stop.


Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 2/7] dt-bindings: display: Fix BCM2835 HVS bindings for BCM2712
  2024-12-12 18:36 ` [PATCH v3 2/7] dt-bindings: display: Fix BCM2835 HVS bindings " Dave Stevenson
@ 2024-12-13  9:19   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-13  9:19 UTC (permalink / raw)
  To: Dave Stevenson
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren, dri-devel,
	devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Florian Fainelli, linux-gpio

On Thu, Dec 12, 2024 at 06:36:29PM +0000, Dave Stevenson wrote:
> Commit 6cfcbe548a3a ("dt-bindings: display: Add BCM2712 HVS bindings")
> added the compatible string for BCM2712, but missed out that
> the number of interrupts and clocks changed too.
> 
> Update to validate clock and interrupts for the variants.
> 
> Fixes: 6cfcbe548a3a ("dt-bindings: display: Add BCM2712 HVS bindings")
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---
>  .../bindings/display/brcm,bcm2835-hvs.yaml         | 83 ++++++++++++++++++----
>  1 file changed, 69 insertions(+), 14 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml b/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
> index f91c9dce2a44..36bf8eec88a6 100644
> --- a/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
> +++ b/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
> @@ -20,11 +20,20 @@ properties:
>      maxItems: 1
>  
>    interrupts:
> -    maxItems: 1
> +    minItems: 1
> +    maxItems: 3
> +
> +  interrupt-names:
> +    minItems: 1
> +    maxItems: 3
>  
>    clocks:
> -    maxItems: 1
> -    description: Core Clock
> +    minItems: 1
> +    maxItems: 2
> +
> +  clock-names:
> +    minItems: 1
> +    maxItems: 2
>  
>  required:
>    - compatible
> @@ -33,17 +42,63 @@ required:
>  
>  additionalProperties: false
>  
> -if:
> -  properties:
> -    compatible:
> -      contains:
> -        enum:
> -          - brcm,bcm2711-hvs
> -          - brcm,bcm2712-hvs
> -
> -then:
> -  required:
> -    - clocks
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: brcm,bcm2711-hvs
> +
> +    then:
> +      properties:
> +        clocks:
> +          items:
> +            - description: Core Clock
> +        interrupts:
> +          maxItems: 1
> +
> +      required:
> +        - clocks
> +
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: brcm,bcm2712-hvs
> +
> +    then:
> +      properties:
> +        clocks:

minItems: 2

> +          maxItems: 2
> +        clock-names:
> +          items:
> +            - const: core
> +            - const: disp
> +        interrupts:
> +          items:
> +            - description: Channel 0 End of frame
> +            - description: Channel 1 End of frame
> +            - description: Channel 2 End of frame
> +        interrupt-names:
> +          items:
> +            - const: ch0-eof
> +            - const: ch1-eof
> +            - const: ch2-eof
> +      required:
> +        - clocks
> +        - clock-names
> +        - interrupt-names

Why requiring last two names? Commit msg does not explain that.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property
  2024-12-12 18:36 ` [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property Dave Stevenson
  2024-12-12 18:38   ` Florian Fainelli
@ 2024-12-13  9:19   ` Krzysztof Kozlowski
  2024-12-20 12:50   ` Linus Walleij
  2 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-13  9:19 UTC (permalink / raw)
  To: Dave Stevenson
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren, dri-devel,
	devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Florian Fainelli, linux-gpio

On Thu, Dec 12, 2024 at 06:36:30PM +0000, Dave Stevenson wrote:
> gpio-line-names is a generic property that can be supported by any
> GPIO controller, so permit it through the binding.
> 
> It is permitted to have a variable number of GPIOs per node based
> on brcm,gpio-bank-widths, so define an arbitrary maximum number of
> items based on current users.
> 
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---
>  Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.yaml | 4 ++++
>  1 file changed, 4 insertions(+)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 4/7] dt-bindings: interrupt-controller: brcm,bcm2836-l1-intc: Drop interrupt-controller requirement
  2024-12-12 18:36 ` [PATCH v3 4/7] dt-bindings: interrupt-controller: brcm,bcm2836-l1-intc: Drop interrupt-controller requirement Dave Stevenson
@ 2024-12-13  9:20   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-13  9:20 UTC (permalink / raw)
  To: Dave Stevenson
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren, dri-devel,
	devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Florian Fainelli, linux-gpio

On Thu, Dec 12, 2024 at 06:36:31PM +0000, Dave Stevenson wrote:
> Since commit 88bbe85dcd37 ("irqchip: bcm2836: Move SMP startup code to
> arch/arm (v2)") the bcm2836-l1-intc block on bcm2711 is only used as a
> base address for the smp_boot_secondary hook on 32 bit kernels. It is
> not used as an interrupt controller.
> 
> Drop the binding requirement for interrupt-controller and interrupt-cells
> to satisfy validation on this platform.
> 
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---
>  .../devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml  | 2 --
>  1 file changed, 2 deletions(-)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: (subset) [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
                   ` (6 preceding siblings ...)
  2024-12-12 18:36 ` [PATCH v3 7/7] arm64: dts: broadcom: Remove intc controller on BCM2712 Dave Stevenson
@ 2024-12-16  9:09 ` Bartosz Golaszewski
  2024-12-17 19:41 ` Florian Fainelli
  8 siblings, 0 replies; 21+ messages in thread
From: Bartosz Golaszewski @ 2024-12-16  9:09 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren,
	Dave Stevenson
  Cc: Bartosz Golaszewski, dri-devel, devicetree, linux-rpi-kernel,
	linux-arm-kernel, linux-kernel, Florian Fainelli, linux-gpio

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Thu, 12 Dec 2024 18:36:27 +0000, Dave Stevenson wrote:
> I missed the DT errors from the recent patchset[1] (DT patches
> in linux-next via Florian, DRM bindings patches on dri-misc-next)
> as Rob's bot report got spam filtered, so this is a fixup set.
> 
> Largely it was changes to number of interrupts or clocks in the
> bindings, so those are now covered.
> 
> [...]

Applied, thanks!

[3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property
      commit: 83a9752729c455a6bd9b7cf62198506180691931

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 5/7] arm64: dts: broadcom: Rename bcm2712 interrupt controllers
  2024-12-12 18:36 ` [PATCH v3 5/7] arm64: dts: broadcom: Rename bcm2712 interrupt controllers Dave Stevenson
@ 2024-12-17 19:37   ` Florian Fainelli
  0 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2024-12-17 19:37 UTC (permalink / raw)
  To: bcm-kernel-feedback-list, Dave Stevenson, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: Florian Fainelli, dri-devel, devicetree, linux-rpi-kernel,
	linux-arm-kernel, linux-kernel, linux-gpio

From: Florian Fainelli <f.fainelli@gmail.com>

On Thu, 12 Dec 2024 18:36:32 +0000, Dave Stevenson <dave.stevenson@raspberrypi.com> wrote:
> CHECK_DTBS produces errors on bcm2712-rpi-5-b.dtb and bcm2712-d-rpi-5-b.dtb
> of:
> intc@7d508380: $nodename:0: 'intc@7d508380' does not match '^interrupt-controller(@[0-9a-f,]+)*$'
>         from schema $id: http://devicetree.org/schemas/interrupt-controller/brcm,l2-intc.yaml#
> intc@7d508400: $nodename:0: 'intc@7d508400' does not match '^interrupt-controller(@[0-9a-f,]+)*$'
>         from schema $id: http://devicetree.org/schemas/interrupt-controller/brcm,l2-intc.yaml#
> 
> Rename the nodes from intc to interrupt-controller.
> 
> Fixes: f66b382affd8 ("arm64: dts: broadcom: Add display pipeline support to BCM2712")
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree-arm64/next, thanks!
--
Florian

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 6/7] arm64: dts: broadcom: Correct hdmi device node names
  2024-12-12 18:36 ` [PATCH v3 6/7] arm64: dts: broadcom: Correct hdmi device node names Dave Stevenson
@ 2024-12-17 19:37   ` Florian Fainelli
  0 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2024-12-17 19:37 UTC (permalink / raw)
  To: bcm-kernel-feedback-list, Dave Stevenson, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: Florian Fainelli, dri-devel, devicetree, linux-rpi-kernel,
	linux-arm-kernel, linux-kernel, linux-gpio

From: Florian Fainelli <f.fainelli@gmail.com>

On Thu, 12 Dec 2024 18:36:33 +0000, Dave Stevenson <dave.stevenson@raspberrypi.com> wrote:
> The names of the hdmi0 and hdmi1 nodes had addresses that
> didn't match the reg properties for the nodes.
> 
> Fixes: f66b382affd8 ("arm64: dts: broadcom: Add display pipeline support to BCM2712")
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree-arm64/next, thanks!
--
Florian

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 7/7] arm64: dts: broadcom: Remove intc controller on BCM2712.
  2024-12-12 18:36 ` [PATCH v3 7/7] arm64: dts: broadcom: Remove intc controller on BCM2712 Dave Stevenson
@ 2024-12-17 19:37   ` Florian Fainelli
  0 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2024-12-17 19:37 UTC (permalink / raw)
  To: bcm-kernel-feedback-list, Dave Stevenson, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Linus Walleij,
	Bartosz Golaszewski, Thomas Gleixner, Stefan Wahren
  Cc: Florian Fainelli, dri-devel, devicetree, linux-rpi-kernel,
	linux-arm-kernel, linux-kernel, linux-gpio

From: Florian Fainelli <f.fainelli@gmail.com>

On Thu, 12 Dec 2024 18:36:34 +0000, Dave Stevenson <dave.stevenson@raspberrypi.com> wrote:
> The brcm,bcm2836-l1-intc controller isn't used on this platform.
> It is used on 32-bit kernels for the smp_boot_secondary hook, but
> BCM2712 can't run a 32-bit kernel.
> 
> Remove the node.
> 
> Fixes: e1417095a139 ("arm64: dts: broadcom: Add firmware clocks and power nodes to Pi5 DT")
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree-arm64/next, thanks!
--
Florian

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset
  2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
                   ` (7 preceding siblings ...)
  2024-12-16  9:09 ` (subset) [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Bartosz Golaszewski
@ 2024-12-17 19:41 ` Florian Fainelli
  8 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2024-12-17 19:41 UTC (permalink / raw)
  To: Dave Stevenson, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley,
	Broadcom internal kernel review list, Eric Anholt,
	Maíra Canal, Raspberry Pi Kernel Maintenance, Ray Jui,
	Scott Branden, Doug Berger, Linus Walleij, Bartosz Golaszewski,
	Thomas Gleixner, Stefan Wahren
  Cc: dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio

On 12/12/24 10:36, Dave Stevenson wrote:
> I missed the DT errors from the recent patchset[1] (DT patches
> in linux-next via Florian, DRM bindings patches on dri-misc-next)
> as Rob's bot report got spam filtered, so this is a fixup set.
> 
> Largely it was changes to number of interrupts or clocks in the
> bindings, so those are now covered.
> 
> I've fixed up the missing "interrupt-controller" flags for 2711
> and 2712 whilst here.
> 
> I can't get my head around what is meant to happen with ranges:
> "soc@107c000000: firmware: 'ranges' is a required property"
> The meaning seems obvious.
> 
> However if I add it then I get:
> "firmware: '#address-cells', '#size-cells', 'dma-ranges', 'ranges' do
> not match any of the regexes: 'pinctrl-[0-9]+'
> from schema $id: http://devicetree.org/schemas/arm/bcm/raspberrypi,bcm2835-firmware.yaml#
> 
> There's obviously some other flag I need to set in the bindings,
> but I can't work it out. We have similar errors for all the Pi
> platforms for one or more nodes.
> Please advise and I'll happily fix them all.

Dave, as proposed earlier, I have squashed/fixed up the fixes into their 
original commit since those were only in linux-next. Thanks!
-- 
Florian

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property
  2024-12-12 18:36 ` [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property Dave Stevenson
  2024-12-12 18:38   ` Florian Fainelli
  2024-12-13  9:19   ` Krzysztof Kozlowski
@ 2024-12-20 12:50   ` Linus Walleij
  2024-12-20 13:01     ` Dave Stevenson
  2 siblings, 1 reply; 21+ messages in thread
From: Linus Walleij @ 2024-12-20 12:50 UTC (permalink / raw)
  To: Dave Stevenson
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Bartosz Golaszewski,
	Thomas Gleixner, Stefan Wahren, dri-devel, devicetree,
	linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Florian Fainelli, linux-gpio

On Thu, Dec 12, 2024 at 7:36 PM Dave Stevenson
<dave.stevenson@raspberrypi.com> wrote:

> gpio-line-names is a generic property that can be supported by any
> GPIO controller, so permit it through the binding.
>
> It is permitted to have a variable number of GPIOs per node based
> on brcm,gpio-bank-widths, so define an arbitrary maximum number of
> items based on current users.
>
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Perhaps Bartosz can just apply this one patch separately?

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property
  2024-12-20 12:50   ` Linus Walleij
@ 2024-12-20 13:01     ` Dave Stevenson
  2024-12-20 13:40       ` Bartosz Golaszewski
  0 siblings, 1 reply; 21+ messages in thread
From: Dave Stevenson @ 2024-12-20 13:01 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list,
	Eric Anholt, Maíra Canal, Raspberry Pi Kernel Maintenance,
	Ray Jui, Scott Branden, Doug Berger, Bartosz Golaszewski,
	Thomas Gleixner, Stefan Wahren, dri-devel, devicetree,
	linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Florian Fainelli, linux-gpio

Hi Linus

On Fri, 20 Dec 2024 at 12:50, Linus Walleij <linus.walleij@linaro.org> wrote:
>
> On Thu, Dec 12, 2024 at 7:36 PM Dave Stevenson
> <dave.stevenson@raspberrypi.com> wrote:
>
> > gpio-line-names is a generic property that can be supported by any
> > GPIO controller, so permit it through the binding.
> >
> > It is permitted to have a variable number of GPIOs per node based
> > on brcm,gpio-bank-widths, so define an arbitrary maximum number of
> > items based on current users.
> >
> > Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Thank you.

> Perhaps Bartosz can just apply this one patch separately?

I believe he already has, but commented against the cover letter
rather than this patch -
https://lore.kernel.org/linux-arm-kernel/173434013318.38429.808413721248542013.b4-ty@linaro.org/

  Dave

> Yours,
> Linus Walleij

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property
  2024-12-20 13:01     ` Dave Stevenson
@ 2024-12-20 13:40       ` Bartosz Golaszewski
  0 siblings, 0 replies; 21+ messages in thread
From: Bartosz Golaszewski @ 2024-12-20 13:40 UTC (permalink / raw)
  To: Dave Stevenson
  Cc: Linus Walleij, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Eric Anholt,
	Maíra Canal, Raspberry Pi Kernel Maintenance, Ray Jui,
	Scott Branden, Doug Berger, Thomas Gleixner, Stefan Wahren,
	dri-devel, devicetree, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel, Florian Fainelli, linux-gpio

On Fri, Dec 20, 2024 at 2:02 PM Dave Stevenson
<dave.stevenson@raspberrypi.com> wrote:
>
> Hi Linus
>
> On Fri, 20 Dec 2024 at 12:50, Linus Walleij <linus.walleij@linaro.org> wrote:
> >
> > On Thu, Dec 12, 2024 at 7:36 PM Dave Stevenson
> > <dave.stevenson@raspberrypi.com> wrote:
> >
> > > gpio-line-names is a generic property that can be supported by any
> > > GPIO controller, so permit it through the binding.
> > >
> > > It is permitted to have a variable number of GPIOs per node based
> > > on brcm,gpio-bank-widths, so define an arbitrary maximum number of
> > > items based on current users.
> > >
> > > Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> >
> > Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
>
> Thank you.
>
> > Perhaps Bartosz can just apply this one patch separately?
>
> I believe he already has, but commented against the cover letter
> rather than this patch -
> https://lore.kernel.org/linux-arm-kernel/173434013318.38429.808413721248542013.b4-ty@linaro.org/
>

Ah, this is how b4 works. Even if you apply a single patch, it
responds to the cover letter (or the first patch in the series if
there's no cover letter).

Bart

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2024-12-20 13:40 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 18:36 [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Dave Stevenson
2024-12-12 18:36 ` [PATCH v3 1/7] dt-bindings: display: bcm2711-hdmi: Add interrupt details for BCM2712 Dave Stevenson
2024-12-13  9:18   ` Krzysztof Kozlowski
2024-12-12 18:36 ` [PATCH v3 2/7] dt-bindings: display: Fix BCM2835 HVS bindings " Dave Stevenson
2024-12-13  9:19   ` Krzysztof Kozlowski
2024-12-12 18:36 ` [PATCH v3 3/7] dt-bindings: gpio: brcmstb: permit gpio-line-names property Dave Stevenson
2024-12-12 18:38   ` Florian Fainelli
2024-12-13  9:19   ` Krzysztof Kozlowski
2024-12-20 12:50   ` Linus Walleij
2024-12-20 13:01     ` Dave Stevenson
2024-12-20 13:40       ` Bartosz Golaszewski
2024-12-12 18:36 ` [PATCH v3 4/7] dt-bindings: interrupt-controller: brcm,bcm2836-l1-intc: Drop interrupt-controller requirement Dave Stevenson
2024-12-13  9:20   ` Krzysztof Kozlowski
2024-12-12 18:36 ` [PATCH v3 5/7] arm64: dts: broadcom: Rename bcm2712 interrupt controllers Dave Stevenson
2024-12-17 19:37   ` Florian Fainelli
2024-12-12 18:36 ` [PATCH v3 6/7] arm64: dts: broadcom: Correct hdmi device node names Dave Stevenson
2024-12-17 19:37   ` Florian Fainelli
2024-12-12 18:36 ` [PATCH v3 7/7] arm64: dts: broadcom: Remove intc controller on BCM2712 Dave Stevenson
2024-12-17 19:37   ` Florian Fainelli
2024-12-16  9:09 ` (subset) [PATCH v3 0/7] drm/vc4: Fixup DT and DT binding issues from recent patchset Bartosz Golaszewski
2024-12-17 19:41 ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).