arm: calxeda: update DTS and MAINTAINERS
v3 cover arm: calxeda: update DTS and MAINTAINERS
Hi,
this is mostly a repost of the DT and MAINTAINERS part of the previous v2 series, with Rob's ACKs added.
Please apply to armsoc!
Patches based on soc/for-next (c247a41835698).
------------------
This series is an answer to the attempt [1] of removing the Calxeda Highbank platform support from the kernel. Apart from the pending removal of ARM32 host KVM support from the kernel, the lack of proper DT schema bindings and passing checks was another major reason for Rob's series.
This series addresses the .dts part of the problem.
The first four patches adjust the .dts files to pass the existing (mostly generic) DT schema binding checks, also prepare for passing later when the schemas get updated in a parallel series. Those changes do not affect the functionality.
The final patch then changes the MAINTAINERS file to hand over the maintainership to me. I have a working machine under my desk and have some interest in keeping this platform support alive.
Changelog:
v2 ... v3:
- Remove schema binding conversions from this series
- Re-add #address-cells = <0> to the GIC node
- Add Rob's ACKs
v1 ... v2:
- Remove unneeded property type from clocks and sgpio-gpio
- add additionalProperties: false to bindings missing it before
- limit number in "phydev" to the hardware constraint of 5 bits
- add required: properties to l2ecc binding
- fix enumeration of compatible strings in calxeda-ddr-ctrlr
Cheers,
Andre.
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
Andre Przywara (5):
arm: dts: calxeda: Basic DT file fixes
arm: dts: calxeda: Provide UART clock
arm: dts: calxeda: Fix interrupt grouping
arm: dts: calxeda: Group port-phys and sgpio-gpio items
MAINTAINERS: Update Calxeda Highbank maintainership
MAINTAINERS | 2 +- arch/arm/boot/dts/ecx-2000.dts | 6 ++---- arch/arm/boot/dts/ecx-common.dtsi | 17 +++++++++-------- arch/arm/boot/dts/highbank.dts | 11 ++++------- 4 files changed, 16 insertions(+), 20 deletions(-)
Signature · 1 line
2.17.1
PATCH v3 1/5 arm: dts: calxeda: Basic DT file fixes
The .dts files for the Calxeda machines are quite old, so carry some sloppy mistakes that the DT schema checker will complain about.
Fix those issues, they should not have any effect on functionality.
--- arch/arm/boot/dts/ecx-2000.dts | 4 +--- arch/arm/boot/dts/highbank.dts | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-)
arch/arm/boot/dts/ecx-2000.dts +1 -3
@@ -13,7 +13,6 @@ compatible = "calxeda,ecx-2000"; #address-cells = <2>; #size-cells = <2>; - clock-ranges; cpus { #address-cells = <1>;
@@ -83,8 +82,7 @@ intc: interrupt-controller@fff11000 { compatible = "arm,cortex-a15-gic"; #interrupt-cells = <3>; - #size-cells = <0>; - #address-cells = <1>; + #address-cells = <0>; interrupt-controller; interrupts = <1 9 0xf04>; reg = <0xfff11000 0x1000>,
arch/arm/boot/dts/highbank.dts +2 -5
@@ -13,7 +13,6 @@ compatible = "calxeda,highbank"; #address-cells = <1>; #size-cells = <1>; - clock-ranges; cpus { #address-cells = <1>;
@@ -96,7 +95,7 @@ }; }; - memory { + memory@0 { name = "memory"; device_type = "memory"; reg = <0x00000000 0xff900000>;
@@ -128,14 +127,12 @@ intc: interrupt-controller@fff11000 { compatible = "arm,cortex-a9-gic"; #interrupt-cells = <3>; - #size-cells = <0>; - #address-cells = <1>; interrupt-controller; reg = <0xfff11000 0x1000>, <0xfff10100 0x100>; }; - L2: l2-cache { + L2: cache-controller { compatible = "arm,pl310-cache"; reg = <0xfff12000 0x1000>; interrupts = <0 70 4>;
Signature · 1 line
2.17.1
PATCH v3 2/5 arm: dts: calxeda: Provide UART clock
In reply to Andre PrzywaraThe PL011 UART binding requires two clocks to be named in a node. Add the second clock, which is the bus gate, that just gets enabled. Since this is a fixed clock anyway, it doesn't make any difference.
--- arch/arm/boot/dts/ecx-common.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/ecx-common.dtsi +2 -2
@@ -114,8 +114,8 @@ compatible = "arm,pl011", "arm,primecell"; reg = <0xfff36000 0x1000>; interrupts = <0 20 4>; - clocks = <&pclk>; - clock-names = "apb_pclk"; + clocks = <&pclk>, <&pclk>; + clock-names = "uartclk", "apb_pclk"; }; smic@fff3a000 {
Signature · 1 line
2.17.1
PATCH v3 3/5 arm: dts: calxeda: Fix interrupt grouping
In reply to Andre PrzywaraCurrently multiple interrupts for some devices are written as one array instead of using the DT grouping notation (<0 42 4>, <0 23 4>). This ends up in the same binary representation in the .dtb, but is semantically not equivalent. The yaml schema checks will stumble over this, so lets fix that first.
I refrained from using the symbolic names for GIC_SPI/GIC_PPI and IRQ_TYPE_LEVEL_HIGH, mostly because it increases the delta between the original DTS files and the mainline versions, so it's just additional churn.
--- arch/arm/boot/dts/ecx-2000.dts | 2 +- arch/arm/boot/dts/ecx-common.dtsi | 4 ++-- arch/arm/boot/dts/highbank.dts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/ecx-2000.dts +1 -1
@@ -93,7 +93,7 @@ pmu { compatible = "arm,cortex-a9-pmu"; - interrupts = <0 76 4 0 75 4 0 74 4 0 73 4>; + interrupts = <0 76 4>, <0 75 4>, <0 74 4>, <0 73 4>; }; }; };
arch/arm/boot/dts/ecx-common.dtsi +2 -2
@@ -202,14 +202,14 @@ ethernet@fff50000 { compatible = "calxeda,hb-xgmac"; reg = <0xfff50000 0x1000>; - interrupts = <0 77 4 0 78 4 0 79 4>; + interrupts = <0 77 4>, <0 78 4>, <0 79 4>; dma-coherent; }; ethernet@fff51000 { compatible = "calxeda,hb-xgmac"; reg = <0xfff51000 0x1000>; - interrupts = <0 80 4 0 81 4 0 82 4>; + interrupts = <0 80 4>, <0 81 4>, <0 82 4>; dma-coherent; };
arch/arm/boot/dts/highbank.dts +2 -2
@@ -142,14 +142,14 @@ pmu { compatible = "arm,cortex-a9-pmu"; - interrupts = <0 76 4 0 75 4 0 74 4 0 73 4>; + interrupts = <0 76 4>, <0 75 4>, <0 74 4>, <0 73 4>; }; sregs@fff3c200 { compatible = "calxeda,hb-sregs-l2-ecc"; reg = <0xfff3c200 0x100>; - interrupts = <0 71 4 0 72 4>; + interrupts = <0 71 4>, <0 72 4>; }; };
Signature · 1 line
2.17.1
PATCH v3 4/5 arm: dts: calxeda: Group port-phys and sgpio-gpio items
In reply to Andre PrzywaraFor proper bindings checks we need to properly group the port-phys and sgpio-gpio items, so that they match the expected number of items.
--- arch/arm/boot/dts/ecx-common.dtsi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
arch/arm/boot/dts/ecx-common.dtsi +5 -4
@@ -27,10 +27,11 @@ reg = <0xffe08000 0x10000>; interrupts = <0 83 4>; dma-coherent; - calxeda,port-phys = <&combophy5 0 &combophy0 0 - &combophy0 1 &combophy0 2 - &combophy0 3>; - calxeda,sgpio-gpio =<&gpioh 5 1 &gpioh 6 1 &gpioh 7 1>; + calxeda,port-phys = < &combophy5 0>, <&combophy0 0>, + <&combophy0 1>, <&combophy0 2>, + <&combophy0 3>; + calxeda,sgpio-gpio =<&gpioh 5 1>, <&gpioh 6 1>, + <&gpioh 7 1>; calxeda,led-order = <4 0 1 2 3>; };
Signature · 1 line
2.17.1
PATCH v3 5/5 MAINTAINERS: Update Calxeda Highbank maintainership
In reply to Andre PrzywaraRob sees little point in maintaining the Calxeda architecture (early ARM 32-bit server) anymore.
Since I have a machine sitting under my desk, change the maintainership to not lose support for that platform.
--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -1605,7 +1605,7 @@ F: Documentation/devicetree/bindings/clock/bitmain,bm1880-clk.yaml F: Documentation/devicetree/bindings/pinctrl/bitmain,bm1880-pinctrl.txt ARM/CALXEDA HIGHBANK ARCHITECTURE -M: Rob Herring <[email protected]> +M: Andre Przywara <[email protected]> L: [email protected] (moderated for non-subscribers) S: Maintained F: arch/arm/mach-highbank/
Signature · 1 line
2.17.1