powerpc/dts: Add Device Tree for WatchGuard Firebox T30
Subsystems (2)
PATCH v4 1/1 powerpc/dts: Add Device Tree for WatchGuard Firebox T30
Add initial support for the WatchGuard Firebox T30 board based on the PowerPC architecture, updating the fsl Makefile and adding the new DTS file.
--- arch/powerpc/boot/dts/fsl/Makefile | 1 + arch/powerpc/boot/dts/fsl/firebox-t30.dts | 378 ++++++++++++++++++++++ 2 files changed, 379 insertions(+) create mode 100644 arch/powerpc/boot/dts/fsl/firebox-t30.dts
---
v4:
- Removed duplicate firebox-t30.dtb entry from fsl/Makefile.
- Fixed invalid TPM compatible string to "atmel,at97sc3204t".
- Dropped redundant SoC properties and malformed interrupts in sdhc/spi0.
- Removed unsupported properties (rx/tx internal delays, gpio-controller).
- Wrapped commit message to 75 columns and added Signed-off-by.
arch/powerpc/boot/dts/fsl/Makefile +1 -0
@@ -3,6 +3,7 @@ dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts)) # MPC85xx platforms +dtb-$(CONFIG_MPC85xx_RDB) += firebox-t30.dtb dtb-$(CONFIG_BSC9131_RDB) += bsc9131rdb.dtb dtb-$(CONFIG_BSC9132_QDS) += bsc9132qds.dtb dtb-$(CONFIG_C293_PCIE) += c293pcie.dtb
arch/powerpc/boot/dts/fsl/firebox-t30.dts new file +378 -0
378 lines not on this page · raw message
Signature · 1 line
2.53.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Low] powerpc/dts: stray closing brace in firebox-t30.dts breaks dtc build - [Low] powerpc/dts: undefined…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] powerpc/dts: stray closing brace in firebox-t30.dts breaks dtc build
- [Low] powerpc/dts: undefined gpio0 phandle in firebox-t30.dts breaks dtc build --
commit 75dba0f2ad965f2d5da4392dbd577cbd573b988a
Author: Lefteris Koutrakis <[email protected]>
powerpc/dts: Add Device Tree for WatchGuard Firebox T30
This commit adds initial device tree support for the WatchGuard Firebox T30 board and enables building firebox-t30.dtb under CONFIG_MPC85xx_RDB in arch/powerpc/boot/dts/fsl/Makefile.
Quoted 6 lines
arch/powerpc/boot/dts/fsl/firebox-t30.dts new file +0
-0@@ -0,0 +1,378 @@
[ ... ]
arch/powerpc/boot/dts/fsl/firebox-t30.dts line 293
Quoted 10 lines
arch/powerpc/boot/dts/fsl/firebox-t30.dts new file +10
-0+ enet1: ethernet@b1000 { + status = "disabled"; + }; + + enet2: ethernet@b2000 { + status = "disabled"; + }; + + }; + };
[Severity: Low]
Does this extra closing brace after enet2: ethernet@b2000 break compilation of firebox-t30.dtb with a dtc syntax error?
Because all previous child nodes inside soc: soc@ffe00000 have balanced braces, the first closing brace here closes soc: soc@ffe00000 and the second prematurely closes the root node /. As a result, the subsequent leds,
pci0: pcie@ffe09000, and pci1: pcie@ffe0a000 nodes end up outside the root node, leaving the final closing brace at the end of the file unmatched.
arch/powerpc/boot/dts/fsl/firebox-t30.dts line 302
Quoted 9 lines
arch/powerpc/boot/dts/fsl/firebox-t30.dts new file +9
-0+ + leds { + compatible = "gpio-leds"; + + led0: led-0 { + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + color = <LED_COLOR_ID_ORANGE>; + function = LED_FUNCTION_STATUS; + };
[Severity: Low]
Where is the gpio0 label defined for the<&gpio0 ...> phandle references in led-0 through led-5 under leds?
The SoC GPIO controller stub included via p1020si-post.dtsi from arch/powerpc/boot/dts/fsl/pq3-gpio-0.dtsi defines the node without a label:
gpio-controller@fc00 {
#gpio-cells = <2>;
compatible = "fsl,pq3-gpio";
reg = <0xfc00 0x100>;
interrupts = <47 0x2 0 0>;
gpio-controller;
};Since firebox-t30.dts does not define gpio0: gpio-controller@fc00 under
soc: soc@ffe00000 (it looks like the node header was removed while leaving its closing brace above), won't dtc fail to resolve &gpio0 when building firebox-t30.dtb?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1