arm64: dts: broadcom: bcm2712: Add V3D device node
PATCH v2 1/1 arm64: dts: broadcom: bcm2712: Add V3D device node
Commits 0ad5bc1ce463 ("drm/v3d: fix up register addresses for V3D 7.x") and 6fd9487147c4 ("drm/v3d: add brcm,2712-v3d as a compatible V3D device") added driver support for V3D on BCM2712, but the corresponding device tree node is still missing.
Add the V3D device tree node to the BCM2712 DTS.
---
v1 -> v2:
- Rebased on top of linux-next (Stefan Wahren)
- Fixed node's address (2000000 -> 1002000000) (Stefan Wahren)
- Link to v1: https://lore.kernel.org/linux-devicetree/[email protected]/
--- .../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi | 4 ++++ arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 14 ++++++++++++++ 2 files changed, 18 insertions(+)
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +4 -0
@@ -247,3 +247,7 @@ &pcie1 { &pcie2 { status = "okay"; }; + +&v3d { + clocks = <&firmware_clocks 5>; +};
arch/arm64/boot/dts/broadcom/bcm2712.dtsi +14 -0
@@ -1,5 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/bcm2835-pm.h> / { compatible = "brcm,bcm2712";
@@ -642,6 +643,19 @@ mip1: msi-controller@1000131000 { msi-ranges = <&gicv2 GIC_SPI 247 IRQ_TYPE_EDGE_RISING 8>; brcm,msi-offset = <8>; }; + + v3d: gpu@1002000000 { + compatible = "brcm,2712-v3d"; + reg = <0x10 0x02000000 0x00 0x4000>, + <0x10 0x02008000 0x00 0x6000>, + <0x10 0x02030800 0x00 0x0700>; + reg-names = "hub", "core0", "sms"; + + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; + resets = <&pm BCM2835_RESET_V3D>; + interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>; + }; }; vc4: gpu {
Signature · 1 line
2.52.0
Hi Maira,
Quoted 25 lines · Maíra Canal
Commits
0ad5bc1ce463("drm/v3d: fix up register addresses for V3D 7.x") and6fd9487147c4("drm/v3d: add brcm,2712-v3d as a compatible V3D device") added driver support for V3D on BCM2712, but the corresponding device tree node is still missing.Add the V3D device tree node to the BCM2712 DTS.
Signed-off-by Maíra Canal <[email protected]>---
v1 -> v2:- Rebased on top of linux-next (Stefan Wahren)
- Fixed node's address (2000000 -> 1002000000) (Stefan Wahren)
- Link to v1: https://lore.kernel.org/linux-devicetree/[email protected]/--- .../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi | 4 ++++ arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 14 ++++++++++++++ 2 files changed, 18 insertions(+)arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +0
-0
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi &pcie1 { · line 252
Quoted 6 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +3
-0@@ -247,3 +247,7 @@ &pcie1 { &pcie2 { status = "okay"; }; + +&v3d { + clocks = <&firmware_clocks 5>;
Looking at the upstream DT [1] I think this also needs a clock-names entry.
Quoted 32 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +1
-0+};arch/arm64/boot/dts/broadcom/bcm2712.dtsi +14
-0@@ -1,5 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/bcm2835-pm.h> / { compatible = "brcm,bcm2712";@@ -642,6 +643,19 @@ mip1: msi-controller@1000131000 { msi-ranges = <&gicv2 GIC_SPI 247 IRQ_TYPE_EDGE_RISING 8>; brcm,msi-offset = <8>; }; + + v3d: gpu@1002000000 { + compatible = "brcm,2712-v3d"; + reg = <0x10 0x02000000 0x00 0x4000>, + <0x10 0x02008000 0x00 0x6000>, + <0x10 0x02030800 0x00 0x0700>; + reg-names = "hub", "core0", "sms"; + + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; + resets = <&pm BCM2835_RESET_V3D>; + interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>; + }; }; vc4: gpu {
Hi Peter,
Quoted 24 lines · Peter Robinson
Hi Maira,
Quoted 21 lines · Maíra Canal
Commits
0ad5bc1ce463("drm/v3d: fix up register addresses for V3D 7.x") and6fd9487147c4("drm/v3d: add brcm,2712-v3d as a compatible V3D device") added driver support for V3D on BCM2712, but the corresponding device tree node is still missing.Add the V3D device tree node to the BCM2712 DTS.
Signed-off-by Maíra Canal <[email protected]>---
v1 -> v2:- Rebased on top of linux-next (Stefan Wahren)
- Fixed node's address (2000000 -> 1002000000) (Stefan Wahren)
- Link to v1: https://lore.kernel.org/linux-
devicetree/[email protected]/
---
.../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi | 4 ++++ arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 14 ++++++++++++++2 files changed, 18 insertions(+)
Quoted 13 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi &pcie1 { · line 252
Quoted 11 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +3
-0@@ -247,3 +247,7 @@ &pcie1 { &pcie2 { status = "okay"; }; + +&v3d { + clocks = <&firmware_clocks 5>;Looking at the upstream DT [1] I think this also needs a clock-names entry.
Differently from the hvs node [1] you sent (which specifies clock- names), the v3d binding [2] doesn't have a clock-names property. Therefore, it is not needed.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/gpu/brcm,bcm-v3d.yaml
Best regards,
- Maíra
Quoted 33 lines
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ tree/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi#n233
Quoted 30 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +1
-0+};arch/arm64/boot/dts/broadcom/bcm2712.dtsi +14
-0@@ -1,5 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/bcm2835-pm.h> / { compatible = "brcm,bcm2712";@@ -642,6 +643,19 @@ mip1: msi-controller@1000131000 { msi-ranges = <&gicv2 GIC_SPI 247 IRQ_TYPE_EDGE_RISING 8>; brcm,msi-offset = <8>; }; + + v3d: gpu@1002000000 { + compatible = "brcm,2712-v3d"; + reg = <0x10 0x02000000 0x00 0x4000>, + <0x10 0x02008000 0x00 0x6000>, + <0x10 0x02030800 0x00 0x0700>; + reg-names = "hub", "core0", "sms"; + + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; + resets = <&pm BCM2835_RESET_V3D>; + interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>; + }; }; vc4: gpu {
Quoted 44 lines · Maíra Canal
Hi Peter,
Quoted 25 lines · Peter Robinson
Hi Maira,
Quoted 22 lines · Maíra Canal
Commits
0ad5bc1ce463("drm/v3d: fix up register addresses for V3D 7.x") and6fd9487147c4("drm/v3d: add brcm,2712-v3d as a compatible V3D device")
added driver support for V3D on BCM2712, but the corresponding device tree node is still missing.Add the V3D device tree node to the BCM2712 DTS.
Signed-off-by Maíra Canal <[email protected]>---
v1 -> v2:- Rebased on top of linux-next (Stefan Wahren)
- Fixed node's address (2000000 -> 1002000000) (Stefan Wahren)
- Link to v1: https://lore.kernel.org/linux-
devicetree/[email protected]/--- .../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi | 4 ++++ arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 14 ++++++++++++++ 2 files changed, 18 insertions(+)Quoted 14 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi &pcie1 { · line 252
Quoted 12 lines
(quoted diff) renamed from arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +0
-0
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsiindex7d4742ebe247..97522c6803c5100644arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +3
-0@@ -247,3 +247,7 @@ &pcie1 { &pcie2 { status = "okay"; }; + +&v3d { + clocks = <&firmware_clocks 5>;Looking at the upstream DT [1] I think this also needs a clock-names entry.
Quoted 3 lines
Differently from the
hvsnode [1] you sent (which specifies clock- names), thev3dbinding [2] doesn't have a clock-names property. Therefore, it is not needed.
There's a name in the clk driver [1] so maybe the bindings should be updated?
Quoted 44 lines
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/gpu/brcm,bcm-v3d.yamlBest regards,
- MaíraQuoted 35 lines
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
tree/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi#n233Quoted 31 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +1
-0+};arch/arm64/ renamed from arch/arm64/boot/dts/broadcom/bcm2712.dtsi +0
-0
boot/dts/broadcom/bcm2712.dtsi
index330a121ebfcb..661668ef7419100644arch/arm64/boot/dts/broadcom/bcm2712.dtsi +14
-0@@ -1,5 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/bcm2835-pm.h> / { compatible = "brcm,bcm2712";@@ -642,6 +643,19 @@ mip1: msi-controller@1000131000 { msi-ranges = <&gicv2 GIC_SPI 247 IRQ_TYPE_EDGE_RISING 8>; brcm,msi-offset = <8>; }; + + v3d: gpu@1002000000 { + compatible = "brcm,2712-v3d"; + reg = <0x10 0x02000000 0x00 0x4000>, + <0x10 0x02008000 0x00 0x6000>, + <0x10 0x02030800 0x00 0x0700>; + reg-names = "hub", "core0", "sms"; + + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; + resets = <&pm BCM2835_RESET_V3D>; + interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>; + }; }; vc4: gpu {
Hi Peter,
Quoted 45 lines · Peter Robinson
Quoted 44 lines · Maíra Canal
Hi Peter,
Quoted 39 lines · Peter Robinson
Hi Maira,
Quoted 28 lines · Maíra Canal
Commits
0ad5bc1ce463("drm/v3d: fix up register addresses for V3D 7.x") and6fd9487147c4("drm/v3d: add brcm,2712-v3d as a compatible V3D device")
added driver support for V3D on BCM2712, but the corresponding device tree node is still missing.Add the V3D device tree node to the BCM2712 DTS.
Signed-off-by Maíra Canal <[email protected]>---
v1 -> v2:- Rebased on top of linux-next (Stefan Wahren)
- Fixed node's address (2000000 -> 1002000000) (Stefan Wahren)
- Link to v1: https://lore.kernel.org/linux-
devicetree/[email protected]/--- .../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi | 4 ++++ arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 14 ++++++++++++++ 2 files changed, 18 insertions(+)(quoted diff) renamed from arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +0
-0
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsiindex7d4742ebe247..97522c6803c5100644arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi &pcie1 { · line 252
Quoted 6 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +3
-0@@ -247,3 +247,7 @@ &pcie1 { &pcie2 { status = "okay"; }; + +&v3d { + clocks = <&firmware_clocks 5>;Looking at the upstream DT [1] I think this also needs a clock-names entry.
Quoted 5 lines
Quoted 3 lines
Differently from the
hvsnode [1] you sent (which specifies clock- names), thev3dbinding [2] doesn't have a clock-names property. Therefore, it is not needed.There's a name in the clk driver [1] so maybe the bindings should be updated?
Those are two separate concepts. In the DT, clock-names is used by vc4 to distinguish between multiple clock inputs [1]. In contrast, the v3d driver has a single clock input [2], and does not rely on named clock lookups.
Given that, I believe there is no need for a clock-names property in the v3d binding, and updating the binding to mandate it would not provide any functional benefit at this point.
Best regards,
- Maíra
Quoted 47 lines
Quoted 44 lines
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/display/brcm,bcm2835-hvs.yaml
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/gpu/brcm,bcm-v3d.yamlBest regards,
- MaíraQuoted 35 lines
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
tree/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi#n233Quoted 31 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +1
-0+};arch/arm64/ renamed from arch/arm64/boot/dts/broadcom/bcm2712.dtsi +0
-0
boot/dts/broadcom/bcm2712.dtsi
index330a121ebfcb..661668ef7419100644arch/arm64/boot/dts/broadcom/bcm2712.dtsi +14
-0@@ -1,5 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/bcm2835-pm.h> / { compatible = "brcm,bcm2712";@@ -642,6 +643,19 @@ mip1: msi-controller@1000131000 { msi-ranges = <&gicv2 GIC_SPI 247 IRQ_TYPE_EDGE_RISING 8>; brcm,msi-offset = <8>; }; + + v3d: gpu@1002000000 { + compatible = "brcm,2712-v3d"; + reg = <0x10 0x02000000 0x00 0x4000>, + <0x10 0x02008000 0x00 0x6000>, + <0x10 0x02030800 0x00 0x0700>; + reg-names = "hub", "core0", "sms"; + + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; + resets = <&pm BCM2835_RESET_V3D>; + interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>; + }; }; vc4: gpu {
Quoted 11 lines · Peter Robinson
Quoted 9 lines
Quoted 5 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi &pcie1 { · line 252
Quoted 3 lines
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +3
-0+ +&v3d { + clocks = <&firmware_clocks 5>;Looking at the upstream DT [1] I think this also needs a clock-names entry.
Differently from the
hvsnode [1] you sent (which specifies clock- names), thev3dbinding [2] doesn't have a clock-names property. Therefore, it is not needed.There's a name in the clk driver [1] so maybe the bindings should be updated?
That's a clock provider, not consumer.
Quoted 2 lines
Best regards,
Krzysztof
Am 14.01.26 um 13:04 schrieb Maíra Canal:
Quoted 8 lines
Commits
0ad5bc1ce463("drm/v3d: fix up register addresses for V3D 7.x") and6fd9487147c4("drm/v3d: add brcm,2712-v3d as a compatible V3D device") added driver support for V3D on BCM2712, but the corresponding device tree node is still missing.Add the V3D device tree node to the BCM2712 DTS.
Signed-off-by Maíra Canal <[email protected]>
Hi Florian,
Just a quick ping on this patch. Did you get a chance to review it?
Best regards,
- Maíra
Quoted 63 lines · Maíra Canal
Commits
0ad5bc1ce463("drm/v3d: fix up register addresses for V3D 7.x") and6fd9487147c4("drm/v3d: add brcm,2712-v3d as a compatible V3D device") added driver support for V3D on BCM2712, but the corresponding device tree node is still missing.Add the V3D device tree node to the BCM2712 DTS.
Signed-off-by Maíra Canal <[email protected]>---
v1 -> v2:- Rebased on top of linux-next (Stefan Wahren)
- Fixed node's address (2000000 -> 1002000000) (Stefan Wahren)
- Link to v1: https://lore.kernel.org/linux-devicetree/[email protected]/--- .../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi | 4 ++++ arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 14 ++++++++++++++ 2 files changed, 18 insertions(+)arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi +4
-0@@ -247,3 +247,7 @@ &pcie1 { &pcie2 { status = "okay"; }; + +&v3d { + clocks = <&firmware_clocks 5>; +};arch/arm64/boot/dts/broadcom/bcm2712.dtsi +14
-0@@ -1,5 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/bcm2835-pm.h> / { compatible = "brcm,bcm2712";@@ -642,6 +643,19 @@ mip1: msi-controller@1000131000 { msi-ranges = <&gicv2 GIC_SPI 247 IRQ_TYPE_EDGE_RISING 8>; brcm,msi-offset = <8>; }; + + v3d: gpu@1002000000 { + compatible = "brcm,2712-v3d"; + reg = <0x10 0x02000000 0x00 0x4000>, + <0x10 0x02008000 0x00 0x6000>, + <0x10 0x02030800 0x00 0x0700>; + reg-names = "hub", "core0", "sms"; + + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; + resets = <&pm BCM2835_RESET_V3D>; + interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>; + }; }; vc4: gpu {
Florian Fainelli
maintainerQuoted 3 lines · Maíra Canal
Hi Florian,
Just a quick ping on this patch. Did you get a chance to review it?
Your patch is based upon linux-next rather than the Broadcom SoC tree, the devicetree-arm64/fixes branch is not merged into devicetree-arm64/next at the moment, therefore arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi does not exist in that branch.
Give me a few days to figure out how to best deal with that.
Signature · 1 line
Florian
Florian Fainelli
maintainerQuoted 8 lines · Florian Fainelli
Quoted 3 lines · Maíra Canal
Hi Florian,
Just a quick ping on this patch. Did you get a chance to review it?
Your patch is based upon linux-next rather than the Broadcom SoC tree, the devicetree-arm64/fixes branch is not merged into devicetree-arm64/ next at the moment, therefore
arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsidoes not exist in that branch.Give me a few days to figure out how to best deal with that.
Rebased devicetree-arm64/next against v6.19-rc5 and took your patch, thanks!
Signature · 1 line
Florian