dts/dt-bindings: Fix Arm Ltd. ARMv8 "boards"
Subsystems (7)
v3 cover dts/dt-bindings: Fix Arm Ltd. ARMv8 "boards"
A few updates compared to v2. The most important is to fix the interrupt-maps, triggered by changing the number of address-cells in the GIC node. For this I split the former patch 07/17 into two (09/20 and 10/20), one for the foundation model, the other for Juno. Also I fixed a dtc complaint about device nodes without reg properties being inside simple-bus nodes, those are the new patches 04-06/20. Will took patch 01/17 from v2 already, so I removed this from this series.
The rest of the patches stayed the same.
-----------------------------------
The .dts files in the arch/arm64/boot/dts/arm directory describe several boards and platforms provided by Arm Ltd. (mostly Juno and fastmodels). Both the .dts files and some of their associated .yaml bindings were not fully compliant, for some boards a simple dtc run complains already. And make dtbs_check would create quite a list of violations.
This series attempts to fix all of them, although some are not yet covered, as they require some discussion about potential binding or DT schema changes.
The first and the last two patches fix some minor omissions in the yaml bindings.
The rest of the series then address the violations that dtbs_check and dtc itself reported: many node name scheme mismatches, some missing properties or wrong child node handling. See the respective patches for more details.
After applying this series I still see the following warnings:
- vexpress-v2f-1xv7-ca53x2: leds: linux,default-trigger names not listed. The kernel provides triggers for each CPU core, which the DT tries to use. However cpu<x> is not listed in the binding, and I fail to add a regexp for a property *value* to express this easily. Alternatively we could drop any constraint on this string at all, since this might become a moving target and is not really a hardware property, rather than a convenience Linux configuration option.
- juno: scp-sram: The compatible names for the SCPI child nodes are not fully converted to yaml yet, so dtbs_check fails to find a matching schema. Converting the SCPI bindings over is next on my list.
- fvp-base-revc: panel: 'power-supply' is a required property Indeed the Linux driver depends on that property, not sure how this ever worked. I am about to test this, the fix should a rather easy addition of a fixed regulator.
Please have a look, I am open to discussions.
Cheers,
Andre
Changelog v2 ... v3:
- drop patch v2 01/17, Will took that already
- also move fixed devices for vexpress, foundation and Juno (04-06/20)
- use "arm,gic-400" in addition to the "Cortex GIC" for the models
- adjust all interrupt-map properties to reflect GIC #address-cells changes
Changelog v1 ... v2:
- drop GIC "compatible" changes for Juno
- add "arm,gic-400", "arm,cortex-a15-gic" as a valid combination
- reorder more controversial binding fixes to the end
- add Robin's Acked-by:
- fix subject lines in first three emails
Andre Przywara (20):
dt-bindings: arm: gic: Allow combining arm,gic-400 compatible strings
arm64: dts: arm: Fix node address fields
arm64: dts: arm: fvp: Move fixed devices out of bus node
arm64: dts: arm: vexpress: Move fixed devices out of bus node
arm64: dts: arm: foundation: Move fixed clocks out of bus node
arm64: dts: arm: juno: Move fixed devices out of bus node
arm64: dts: juno: Fix mem-timer
arm64: dts: arm: model: Fix GIC compatible names
arm64: dts: arm: juno: Fix GIC child nodes
arm64: dts: arm: foundation: Fix GIC child nodes
arm64: dts: arm: Fix ITS node names and #msi-cells
arm64: dts: juno: usb: Use proper DT node name
arm64: dts: arm: Fix serial node names
arm64: dts: fvp: Fix SMMU DT node
arm64: dts: arm: Fix bus node names
arm64: dts: juno: Fix GPU interrupt order
arm64: dts: arm: Fix VExpress LED names
arm64: dts: juno: Fix SCPI shared mem node name
dt-bindings: mali-midgard: Allow dma-coherent
dt-bindings: ehci/ohci: Allow iommus property
.../bindings/gpu/arm,mali-midgard.yaml | 2 + .../interrupt-controller/arm,gic.yaml | 6 + .../devicetree/bindings/usb/generic-ehci.yaml | 3 + .../devicetree/bindings/usb/generic-ohci.yaml | 3 + arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 328 +++++++++--------- .../boot/dts/arm/foundation-v8-gicv2.dtsi | 4 +- .../boot/dts/arm/foundation-v8-gicv3.dtsi | 11 +- arch/arm64/boot/dts/arm/foundation-v8.dtsi | 142 ++++---- arch/arm64/boot/dts/arm/fvp-base-revc.dts | 10 +- arch/arm64/boot/dts/arm/juno-base.dtsi | 82 ++--- arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 166 ++++----- arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts | 2 +- .../boot/dts/arm/rtsm_ve-motherboard-rs2.dtsi | 4 +- .../boot/dts/arm/rtsm_ve-motherboard.dtsi | 152 ++++---- 14 files changed, 465 insertions(+), 450 deletions(-)
Signature · 1 line
2.17.1
PATCH v3 1/20 dt-bindings: arm: gic: Allow combining arm, gic-400 compatible strings
The arm,gic-400 compatible is probably the best matching string for the GIC in most modern SoCs, but was only introduced later into the kernel. For historic reasons and to keep compatibility, some SoC DTs were thus using a combination of this name and one of the older strings, which currently the binding denies.
Add a stanza to the DT binding to allow "arm,gic-400", followed by either "arm,cortex-a15-gic" or "arm,cortex-a7-gic". This fixes binding compliance for quite some SoC .dtsi files in the kernel tree.
--- .../devicetree/bindings/interrupt-controller/arm,gic.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml +6 -0
@@ -39,6 +39,12 @@ properties: - qcom,msm-8660-qgic - qcom,msm-qgic2 + - items: + - const: arm,gic-400 + - enum: + - arm,cortex-a15-gic + - arm,cortex-a7-gic + - items: - const: arm,arm1176jzf-devchip-gic - const: arm,arm11mp-gic
Signature · 1 line
2.17.1
PATCH v3 2/20 arm64: dts: arm: Fix node address fields
In reply to Andre PrzywaraThe Arm Ltd. boards were using an outdated address convention in the DT node names, by separating the high from the low 32-bits of an address by a comma.
Remove the comma from the node name suffix to be DT spec compliant.
--- arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 10 +++++----- arch/arm64/boot/dts/arm/foundation-v8.dtsi | 4 ++-- arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 6 +++--- arch/arm64/boot/dts/arm/rtsm_ve-motherboard-rs2.dtsi | 2 +- arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-)
arch/arm/boot/dts/vexpress-v2m-rs1.dtsi +5 -5
@@ -31,7 +31,7 @@ #interrupt-cells = <1>; ranges; - nor_flash: flash@0,00000000 { + nor_flash: flash@0 { compatible = "arm,vexpress-flash", "cfi-flash"; reg = <0 0x00000000 0x04000000>, <4 0x00000000 0x04000000>;
@@ -41,13 +41,13 @@ }; }; - psram@1,00000000 { + psram@100000000 { compatible = "arm,vexpress-psram", "mtd-ram"; reg = <1 0x00000000 0x02000000>; bank-width = <4>; }; - ethernet@2,02000000 { + ethernet@202000000 { compatible = "smsc,lan9118", "smsc,lan9115"; reg = <2 0x02000000 0x10000>; interrupts = <15>;
@@ -59,14 +59,14 @@ vddvario-supply = <&v2m_fixed_3v3>; }; - usb@2,03000000 { + usb@203000000 { compatible = "nxp,usb-isp1761"; reg = <2 0x03000000 0x20000>; interrupts = <16>; port1-otg; }; - iofpga@3,00000000 { + iofpga@300000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm64/boot/dts/arm/foundation-v8.dtsi +2 -2
@@ -151,7 +151,7 @@ <0 0 41 &gic 0 0 GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>, <0 0 42 &gic 0 0 GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; - ethernet@2,02000000 { + ethernet@202000000 { compatible = "smsc,lan91c111"; reg = <2 0x02000000 0x10000>; interrupts = <15>;
@@ -178,7 +178,7 @@ clock-output-names = "v2m:refclk32khz"; }; - iofpga@3,00000000 { + iofpga@300000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm64/boot/dts/arm/juno-motherboard.dtsi +3 -3
@@ -103,7 +103,7 @@ }; }; - flash@0,00000000 { + flash@0 { /* 2 * 32MiB NOR Flash memory mounted on CS0 */ compatible = "arm,vexpress-flash", "cfi-flash"; reg = <0 0x00000000 0x04000000>;
@@ -120,7 +120,7 @@ }; }; - ethernet@2,00000000 { + ethernet@200000000 { compatible = "smsc,lan9118", "smsc,lan9115"; reg = <2 0x00000000 0x10000>; interrupts = <3>;
@@ -133,7 +133,7 @@ vddvario-supply = <&mb_fixed_3v3>; }; - iofpga@3,00000000 { + iofpga@300000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm64/boot/dts/arm/rtsm_ve-motherboard-rs2.dtsi +1 -1
@@ -9,7 +9,7 @@ motherboard { arm,v2m-memory-map = "rs2"; - iofpga@3,00000000 { + iofpga@300000000 { virtio-p9@140000 { compatible = "virtio,mmio"; reg = <0x140000 0x200>;
arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi +3 -3
@@ -17,14 +17,14 @@ #interrupt-cells = <1>; ranges; - flash@0,00000000 { + flash@0 { compatible = "arm,vexpress-flash", "cfi-flash"; reg = <0 0x00000000 0x04000000>, <4 0x00000000 0x04000000>; bank-width = <4>; }; - ethernet@2,02000000 { + ethernet@202000000 { compatible = "smsc,lan91c111"; reg = <2 0x02000000 0x10000>; interrupts = <15>;
@@ -51,7 +51,7 @@ clock-output-names = "v2m:refclk32khz"; }; - iofpga@3,00000000 { + iofpga@300000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.17.1
PATCH v3 3/20 arm64: dts: arm: fvp: Move fixed devices out of bus node
In reply to Andre PrzywaraThe devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/v2m_refclk32khz
missing or empty reg/ranges property
Move the fixed clocks, the fixed regulator, and the config bus subtree to the root node, since they do not depend on any busses.
--- .../boot/dts/arm/rtsm_ve-motherboard.dtsi | 136 +++++++++--------- 1 file changed, 68 insertions(+), 68 deletions(-)
arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi +68 -68
@@ -8,6 +8,74 @@ * VEMotherBoard.lisa */ / { + v2m_clk24mhz: clk24mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "v2m:clk24mhz"; + }; + + v2m_refclk1mhz: refclk1mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <1000000>; + clock-output-names = "v2m:refclk1mhz"; + }; + + v2m_refclk32khz: refclk32khz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "v2m:refclk32khz"; + }; + + v2m_fixed_3v3: v2m-3v3 { + compatible = "regulator-fixed"; + regulator-name = "3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + mcc { + compatible = "arm,vexpress,config-bus"; + arm,vexpress,config-bridge = <&v2m_sysreg>; + + v2m_oscclk1: oscclk1 { + /* CLCD clock */ + compatible = "arm,vexpress-osc"; + arm,vexpress-sysreg,func = <1 1>; + freq-range = <23750000 63500000>; + #clock-cells = <0>; + clock-output-names = "v2m:oscclk1"; + }; + + reset { + compatible = "arm,vexpress-reset"; + arm,vexpress-sysreg,func = <5 0>; + }; + + muxfpga { + compatible = "arm,vexpress-muxfpga"; + arm,vexpress-sysreg,func = <7 0>; + }; + + shutdown { + compatible = "arm,vexpress-shutdown"; + arm,vexpress-sysreg,func = <8 0>; + }; + + reboot { + compatible = "arm,vexpress-reboot"; + arm,vexpress-sysreg,func = <9 0>; + }; + + dvimode { + compatible = "arm,vexpress-dvimode"; + arm,vexpress-sysreg,func = <11 0>; + }; + }; + bus@8000000 { motherboard { arm,v2m-memory-map = "rs1";
@@ -30,27 +98,6 @@ interrupts = <15>; }; - v2m_clk24mhz: clk24mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <24000000>; - clock-output-names = "v2m:clk24mhz"; - }; - - v2m_refclk1mhz: refclk1mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <1000000>; - clock-output-names = "v2m:refclk1mhz"; - }; - - v2m_refclk32khz: refclk32khz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <32768>; - clock-output-names = "v2m:refclk32khz"; - }; - iofpga@300000000 { compatible = "simple-bus"; #address-cells = <1>;
@@ -198,53 +245,6 @@ }; }; }; - - v2m_fixed_3v3: v2m-3v3 { - compatible = "regulator-fixed"; - regulator-name = "3V3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - mcc { - compatible = "arm,vexpress,config-bus"; - arm,vexpress,config-bridge = <&v2m_sysreg>; - - v2m_oscclk1: oscclk1 { - /* CLCD clock */ - compatible = "arm,vexpress-osc"; - arm,vexpress-sysreg,func = <1 1>; - freq-range = <23750000 63500000>; - #clock-cells = <0>; - clock-output-names = "v2m:oscclk1"; - }; - - reset { - compatible = "arm,vexpress-reset"; - arm,vexpress-sysreg,func = <5 0>; - }; - - muxfpga { - compatible = "arm,vexpress-muxfpga"; - arm,vexpress-sysreg,func = <7 0>; - }; - - shutdown { - compatible = "arm,vexpress-shutdown"; - arm,vexpress-sysreg,func = <8 0>; - }; - - reboot { - compatible = "arm,vexpress-reboot"; - arm,vexpress-sysreg,func = <9 0>; - }; - - dvimode { - compatible = "arm,vexpress-dvimode"; - arm,vexpress-sysreg,func = <11 0>; - }; - }; }; }; };
Signature · 1 line
2.17.1
PATCH v3 4/20 arm64: dts: arm: vexpress: Move fixed devices out of bus node
In reply to Andre PrzywaraThe devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges property
Move the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
--- arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 308 ++++++++++++------------ 1 file changed, 154 insertions(+), 154 deletions(-)
arch/arm/boot/dts/vexpress-v2m-rs1.dtsi +154 -154
@@ -19,6 +19,160 @@ */ / { + v2m_fixed_3v3: fixed-regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + v2m_clk24mhz: clk24mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "v2m:clk24mhz"; + }; + + v2m_refclk1mhz: refclk1mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <1000000>; + clock-output-names = "v2m:refclk1mhz"; + }; + + v2m_refclk32khz: refclk32khz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "v2m:refclk32khz"; + }; + + leds { + compatible = "gpio-leds"; + + user1 { + label = "v2m:green:user1"; + gpios = <&v2m_led_gpios 0 0>; + linux,default-trigger = "heartbeat"; + }; + + user2 { + label = "v2m:green:user2"; + gpios = <&v2m_led_gpios 1 0>; + linux,default-trigger = "disk-activity"; + }; + + user3 { + label = "v2m:green:user3"; + gpios = <&v2m_led_gpios 2 0>; + linux,default-trigger = "cpu0"; + }; + + user4 { + label = "v2m:green:user4"; + gpios = <&v2m_led_gpios 3 0>; + linux,default-trigger = "cpu1"; + }; + + user5 { + label = "v2m:green:user5"; + gpios = <&v2m_led_gpios 4 0>; + linux,default-trigger = "cpu2"; + }; + + user6 { + label = "v2m:green:user6"; + gpios = <&v2m_led_gpios 5 0>; + linux,default-trigger = "cpu3"; + }; + + user7 { + label = "v2m:green:user7"; + gpios = <&v2m_led_gpios 6 0>; + linux,default-trigger = "cpu4"; + }; + + user8 { + label = "v2m:green:user8"; + gpios = <&v2m_led_gpios 7 0>; + linux,default-trigger = "cpu5"; + }; + }; + + mcc { + compatible = "arm,vexpress,config-bus"; + arm,vexpress,config-bridge = <&v2m_sysreg>; + + oscclk0 { + /* MCC static memory clock */ + compatible = "arm,vexpress-osc"; + arm,vexpress-sysreg,func = <1 0>; + freq-range = <25000000 60000000>; + #clock-cells = <0>; + clock-output-names = "v2m:oscclk0"; + }; + + v2m_oscclk1: oscclk1 { + /* CLCD clock */ + compatible = "arm,vexpress-osc"; + arm,vexpress-sysreg,func = <1 1>; + freq-range = <23750000 65000000>; + #clock-cells = <0>; + clock-output-names = "v2m:oscclk1"; + }; + + v2m_oscclk2: oscclk2 { + /* IO FPGA peripheral clock */ + compatible = "arm,vexpress-osc"; + arm,vexpress-sysreg,func = <1 2>; + freq-range = <24000000 24000000>; + #clock-cells = <0>; + clock-output-names = "v2m:oscclk2"; + }; + + volt-vio { + /* Logic level voltage */ + compatible = "arm,vexpress-volt"; + arm,vexpress-sysreg,func = <2 0>; + regulator-name = "VIO"; + regulator-always-on; + label = "VIO"; + }; + + temp-mcc { + /* MCC internal operating temperature */ + compatible = "arm,vexpress-temp"; + arm,vexpress-sysreg,func = <4 0>; + label = "MCC"; + }; + + reset { + compatible = "arm,vexpress-reset"; + arm,vexpress-sysreg,func = <5 0>; + }; + + muxfpga { + compatible = "arm,vexpress-muxfpga"; + arm,vexpress-sysreg,func = <7 0>; + }; + + shutdown { + compatible = "arm,vexpress-shutdown"; + arm,vexpress-sysreg,func = <8 0>; + }; + + reboot { + compatible = "arm,vexpress-reboot"; + arm,vexpress-sysreg,func = <9 0>; + }; + + dvimode { + compatible = "arm,vexpress-dvimode"; + arm,vexpress-sysreg,func = <11 0>; + }; + }; + bus@8000000 { motherboard { model = "V2M-P1";
@@ -282,160 +436,6 @@ }; }; }; - - v2m_fixed_3v3: fixed-regulator-0 { - compatible = "regulator-fixed"; - regulator-name = "3V3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - v2m_clk24mhz: clk24mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <24000000>; - clock-output-names = "v2m:clk24mhz"; - }; - - v2m_refclk1mhz: refclk1mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <1000000>; - clock-output-names = "v2m:refclk1mhz"; - }; - - v2m_refclk32khz: refclk32khz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <32768>; - clock-output-names = "v2m:refclk32khz"; - }; - - leds { - compatible = "gpio-leds"; - - user1 { - label = "v2m:green:user1"; - gpios = <&v2m_led_gpios 0 0>; - linux,default-trigger = "heartbeat"; - }; - - user2 { - label = "v2m:green:user2"; - gpios = <&v2m_led_gpios 1 0>; - linux,default-trigger = "mmc0"; - }; - - user3 { - label = "v2m:green:user3"; - gpios = <&v2m_led_gpios 2 0>; - linux,default-trigger = "cpu0"; - }; - - user4 { - label = "v2m:green:user4"; - gpios = <&v2m_led_gpios 3 0>; - linux,default-trigger = "cpu1"; - }; - - user5 { - label = "v2m:green:user5"; - gpios = <&v2m_led_gpios 4 0>; - linux,default-trigger = "cpu2"; - }; - - user6 { - label = "v2m:green:user6"; - gpios = <&v2m_led_gpios 5 0>; - linux,default-trigger = "cpu3"; - }; - - user7 { - label = "v2m:green:user7"; - gpios = <&v2m_led_gpios 6 0>; - linux,default-trigger = "cpu4"; - }; - - user8 { - label = "v2m:green:user8"; - gpios = <&v2m_led_gpios 7 0>; - linux,default-trigger = "cpu5"; - }; - }; - - mcc { - compatible = "arm,vexpress,config-bus"; - arm,vexpress,config-bridge = <&v2m_sysreg>; - - oscclk0 { - /* MCC static memory clock */ - compatible = "arm,vexpress-osc"; - arm,vexpress-sysreg,func = <1 0>; - freq-range = <25000000 60000000>; - #clock-cells = <0>; - clock-output-names = "v2m:oscclk0"; - }; - - v2m_oscclk1: oscclk1 { - /* CLCD clock */ - compatible = "arm,vexpress-osc"; - arm,vexpress-sysreg,func = <1 1>; - freq-range = <23750000 65000000>; - #clock-cells = <0>; - clock-output-names = "v2m:oscclk1"; - }; - - v2m_oscclk2: oscclk2 { - /* IO FPGA peripheral clock */ - compatible = "arm,vexpress-osc"; - arm,vexpress-sysreg,func = <1 2>; - freq-range = <24000000 24000000>; - #clock-cells = <0>; - clock-output-names = "v2m:oscclk2"; - }; - - volt-vio { - /* Logic level voltage */ - compatible = "arm,vexpress-volt"; - arm,vexpress-sysreg,func = <2 0>; - regulator-name = "VIO"; - regulator-always-on; - label = "VIO"; - }; - - temp-mcc { - /* MCC internal operating temperature */ - compatible = "arm,vexpress-temp"; - arm,vexpress-sysreg,func = <4 0>; - label = "MCC"; - }; - - reset { - compatible = "arm,vexpress-reset"; - arm,vexpress-sysreg,func = <5 0>; - }; - - muxfpga { - compatible = "arm,vexpress-muxfpga"; - arm,vexpress-sysreg,func = <7 0>; - }; - - shutdown { - compatible = "arm,vexpress-shutdown"; - arm,vexpress-sysreg,func = <8 0>; - }; - - reboot { - compatible = "arm,vexpress-reboot"; - arm,vexpress-sysreg,func = <9 0>; - }; - - dvimode { - compatible = "arm,vexpress-dvimode"; - arm,vexpress-sysreg,func = <11 0>; - }; - }; }; }; };
Signature · 1 line
2.17.1
PATCH v3 5/20 arm64: dts: arm: foundation: Move fixed clocks out of bus node
In reply to Andre PrzywaraThe devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/v2m_refclk32khz
missing or empty reg/ranges property
Move the fixed clocks to the root node, since they do not depend on any busses.
--- arch/arm64/boot/dts/arm/foundation-v8.dtsi | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-)
arch/arm64/boot/dts/arm/foundation-v8.dtsi +21 -21
@@ -92,6 +92,27 @@ timeout-sec = <30>; }; + v2m_clk24mhz: clk24mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "v2m:clk24mhz"; + }; + + v2m_refclk1mhz: refclk1mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <1000000>; + clock-output-names = "v2m:refclk1mhz"; + }; + + v2m_refclk32khz: refclk32khz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "v2m:refclk32khz"; + }; + bus@8000000 { compatible = "arm,vexpress,v2m-p1", "simple-bus"; arm,v2m-memory-map = "rs1";
@@ -157,27 +178,6 @@ interrupts = <15>; }; - v2m_clk24mhz: clk24mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <24000000>; - clock-output-names = "v2m:clk24mhz"; - }; - - v2m_refclk1mhz: refclk1mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <1000000>; - clock-output-names = "v2m:refclk1mhz"; - }; - - v2m_refclk32khz: refclk32khz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <32768>; - clock-output-names = "v2m:refclk32khz"; - }; - iofpga@300000000 { compatible = "simple-bus"; #address-cells = <1>;
Signature · 1 line
2.17.1
PATCH v3 6/20 arm64: dts: arm: juno: Move fixed devices out of bus node
In reply to Andre PrzywaraThe devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/v2m_refclk32khz
missing or empty reg/ranges property
Move the fixed clocks, the fixed regulator, and the gpio keys to the root node, since they do not depend on any busses.
--- arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 158 +++++++++--------- 1 file changed, 79 insertions(+), 79 deletions(-)
arch/arm64/boot/dts/arm/juno-motherboard.dtsi +79 -79
@@ -8,35 +8,90 @@ */ / { - bus@8000000 { - mb_clk24mhz: clk24mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <24000000>; - clock-output-names = "juno_mb:clk24mhz"; - }; + mb_clk24mhz: clk24mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "juno_mb:clk24mhz"; + }; - mb_clk25mhz: clk25mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <25000000>; - clock-output-names = "juno_mb:clk25mhz"; - }; + mb_clk25mhz: clk25mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + clock-output-names = "juno_mb:clk25mhz"; + }; - v2m_refclk1mhz: refclk1mhz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <1000000>; - clock-output-names = "juno_mb:refclk1mhz"; - }; + v2m_refclk1mhz: refclk1mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <1000000>; + clock-output-names = "juno_mb:refclk1mhz"; + }; - v2m_refclk32khz: refclk32khz { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <32768>; - clock-output-names = "juno_mb:refclk32khz"; + v2m_refclk32khz: refclk32khz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "juno_mb:refclk32khz"; + }; + + mb_fixed_3v3: mcc-sb-3v3 { + compatible = "regulator-fixed"; + regulator-name = "MCC_SB_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + gpio-keys { + compatible = "gpio-keys"; + + power-button { + debounce-interval = <50>; + wakeup-source; + linux,code = <116>; + label = "POWER"; + gpios = <&iofpga_gpio0 0 0x4>; + }; + home-button { + debounce-interval = <50>; + wakeup-source; + linux,code = <102>; + label = "HOME"; + gpios = <&iofpga_gpio0 1 0x4>; + }; + rlock-button { + debounce-interval = <50>; + wakeup-source; + linux,code = <152>; + label = "RLOCK"; + gpios = <&iofpga_gpio0 2 0x4>; + }; + vol-up-button { + debounce-interval = <50>; + wakeup-source; + linux,code = <115>; + label = "VOL+"; + gpios = <&iofpga_gpio0 3 0x4>; }; + vol-down-button { + debounce-interval = <50>; + wakeup-source; + linux,code = <114>; + label = "VOL-"; + gpios = <&iofpga_gpio0 4 0x4>; + }; + nmi-button { + debounce-interval = <50>; + wakeup-source; + linux,code = <99>; + label = "NMI"; + gpios = <&iofpga_gpio0 5 0x4>; + }; + }; + bus@8000000 { motherboard { compatible = "arm,vexpress,v2p-p1", "simple-bus"; #address-cells = <2>; /* SMB chipselect number and offset */
@@ -48,61 +103,6 @@ arm,vexpress,site = <0>; arm,v2m-memory-map = "rs1"; - mb_fixed_3v3: mcc-sb-3v3 { - compatible = "regulator-fixed"; - regulator-name = "MCC_SB_3V3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - gpio-keys { - compatible = "gpio-keys"; - - power-button { - debounce-interval = <50>; - wakeup-source; - linux,code = <116>; - label = "POWER"; - gpios = <&iofpga_gpio0 0 0x4>; - }; - home-button { - debounce-interval = <50>; - wakeup-source; - linux,code = <102>; - label = "HOME"; - gpios = <&iofpga_gpio0 1 0x4>; - }; - rlock-button { - debounce-interval = <50>; - wakeup-source; - linux,code = <152>; - label = "RLOCK"; - gpios = <&iofpga_gpio0 2 0x4>; - }; - vol-up-button { - debounce-interval = <50>; - wakeup-source; - linux,code = <115>; - label = "VOL+"; - gpios = <&iofpga_gpio0 3 0x4>; - }; - vol-down-button { - debounce-interval = <50>; - wakeup-source; - linux,code = <114>; - label = "VOL-"; - gpios = <&iofpga_gpio0 4 0x4>; - }; - nmi-button { - debounce-interval = <50>; - wakeup-source; - linux,code = <99>; - label = "NMI"; - gpios = <&iofpga_gpio0 5 0x4>; - }; - }; - flash@0 { /* 2 * 32MiB NOR Flash memory mounted on CS0 */ compatible = "arm,vexpress-flash", "cfi-flash";
Signature · 1 line
2.17.1
PATCH v3 7/20 arm64: dts: juno: Fix mem-timer
In reply to Andre PrzywaraThe Juno's mem-timer DT node was not fully compliant with the DT binding, which has certain expectation about child nodes and their size and address cells values.
Use a cell size of 1, as the binding requests, and spell out the ranges property to be binding compliant.
--- arch/arm64/boot/dts/arm/juno-base.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/arm/juno-base.dtsi +4 -4
@@ -11,14 +11,14 @@ compatible = "arm,armv7-timer-mem"; reg = <0x0 0x2a810000 0x0 0x10000>; clock-frequency = <50000000>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x0 0x2a820000 0x20000>; status = "disabled"; frame@2a830000 { frame-number = <1>; interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; - reg = <0x0 0x2a830000 0x0 0x10000>; + reg = <0x10000 0x10000>; }; };
Signature · 1 line
2.17.1
PATCH v3 8/20 arm64: dts: arm: model: Fix GIC compatible names
In reply to Andre PrzywaraThe GIC DT binding only allows certain combinations of DT compatible strings. The somewhat awkward "arm,cortex-a15-gic", "arm,cortex-a9-gic" is not among those.
Drop that combination of different "cortex" based strings used for the models, and replace it with the more useful combination including "arm,gic-400".
--- arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi | 2 +- arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi +1 -1
@@ -6,7 +6,7 @@ / { gic: interrupt-controller@2c001000 { - compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; + compatible = "arm,gic-400", "arm,cortex-a15-gic"; #interrupt-cells = <3>; #address-cells = <2>; interrupt-controller;
arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts +1 -1
@@ -95,7 +95,7 @@ }; gic: interrupt-controller@2c001000 { - compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; + compatible = "arm,gic-400", "arm,cortex-a15-gic"; #interrupt-cells = <3>; #address-cells = <0>; interrupt-controller;
Signature · 1 line
2.17.1
PATCH v3 9/20 arm64: dts: arm: juno: Fix GIC child nodes
In reply to Andre PrzywaraThe GIC DT nodes for the Juno boards were not fully compliant with the DT binding, which has certain expectations about child nodes and their size and address cells values.
Use smaller #address-cells and #size-cells values, as the binding requests, and adjust the reg properties accordingly.
This requires adjusting the interrupt nexus nodes as well, as one field of the interrupt-map property depends on the GIC's address-size.
--- arch/arm64/boot/dts/arm/juno-base.dtsi | 50 +++++++++++++------------- 1 file changed, 25 insertions(+), 25 deletions(-)
arch/arm64/boot/dts/arm/juno-base.dtsi +25 -25
@@ -74,35 +74,35 @@ <0x0 0x2c02f000 0 0x2000>, <0x0 0x2c04f000 0 0x2000>, <0x0 0x2c06f000 0 0x2000>; - #address-cells = <2>; + #address-cells = <1>; #interrupt-cells = <3>; - #size-cells = <2>; + #size-cells = <1>; interrupt-controller; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>; - ranges = <0 0 0 0x2c1c0000 0 0x40000>; + ranges = <0 0 0x2c1c0000 0x40000>; v2m_0: v2m@0 { compatible = "arm,gic-v2m-frame"; msi-controller; - reg = <0 0 0 0x10000>; + reg = <0 0x10000>; }; v2m@10000 { compatible = "arm,gic-v2m-frame"; msi-controller; - reg = <0 0x10000 0 0x10000>; + reg = <0x10000 0x10000>; }; v2m@20000 { compatible = "arm,gic-v2m-frame"; msi-controller; - reg = <0 0x20000 0 0x10000>; + reg = <0x20000 0x10000>; }; v2m@30000 { compatible = "arm,gic-v2m-frame"; msi-controller; - reg = <0 0x30000 0 0x10000>; + reg = <0x30000 0x10000>; }; };
@@ -546,10 +546,10 @@ <0x42000000 0x40 0x00000000 0x40 0x00000000 0x1 0x00000000>; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &gic 0 0 GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 2 &gic 0 0 GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 3 &gic 0 0 GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 4 &gic 0 0 GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map = <0 0 0 1 &gic 0 GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &gic 0 GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &gic 0 GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &gic 0 GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>; msi-parent = <&v2m_0>; status = "disabled"; iommu-map-mask = <0x0>; /* RC has no means to output PCI RID */
@@ -813,19 +813,19 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 15>; - interrupt-map = <0 0 0 &gic 0 0 GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, - <0 0 1 &gic 0 0 GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, - <0 0 2 &gic 0 0 GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>, - <0 0 3 &gic 0 0 GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, - <0 0 4 &gic 0 0 GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, - <0 0 5 &gic 0 0 GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, - <0 0 6 &gic 0 0 GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, - <0 0 7 &gic 0 0 GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, - <0 0 8 &gic 0 0 GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, - <0 0 9 &gic 0 0 GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>, - <0 0 10 &gic 0 0 GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, - <0 0 11 &gic 0 0 GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, - <0 0 12 &gic 0 0 GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map = <0 0 0 &gic 0 GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, + <0 0 1 &gic 0 GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, + <0 0 2 &gic 0 GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>, + <0 0 3 &gic 0 GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, + <0 0 4 &gic 0 GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, + <0 0 5 &gic 0 GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, + <0 0 6 &gic 0 GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, + <0 0 7 &gic 0 GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, + <0 0 8 &gic 0 GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, + <0 0 9 &gic 0 GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>, + <0 0 10 &gic 0 GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, + <0 0 11 &gic 0 GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, + <0 0 12 &gic 0 GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; }; site2: tlx@60000000 {
@@ -835,6 +835,6 @@ ranges = <0 0 0x60000000 0x10000000>; #interrupt-cells = <1>; interrupt-map-mask = <0 0>; - interrupt-map = <0 0 &gic 0 0 GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map = <0 0 &gic 0 GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>; }; };
Signature · 1 line
2.17.1
PATCH v3 10/20 arm64: dts: arm: foundation: Fix GIC child nodes
In reply to Andre PrzywaraThe GIC DT nodes for the fastmodels were not fully compliant with the DT binding, which has certain expectations about child nodes and their size and address cells values.
Use smaller #address-cells and #size-cells values, as the binding requests, and adjust the reg properties accordingly.
This requires adjusting the interrupt nexus nodes as well, as one field of the interrupt-map property depends on the GIC's address-size.
Since the .dts files share interrupt nexus nodes across different interrupt controllers (GICv2 vs. GICv3), we need to use the only commonly allowed #address-size value of <1> for both.
--- .../boot/dts/arm/foundation-v8-gicv2.dtsi | 2 +- .../boot/dts/arm/foundation-v8-gicv3.dtsi | 8 +- arch/arm64/boot/dts/arm/foundation-v8.dtsi | 86 +++++++++---------- 3 files changed, 48 insertions(+), 48 deletions(-)
arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi +1 -1
@@ -8,7 +8,7 @@ gic: interrupt-controller@2c001000 { compatible = "arm,gic-400", "arm,cortex-a15-gic"; #interrupt-cells = <3>; - #address-cells = <2>; + #address-cells = <1>; interrupt-controller; reg = <0x0 0x2c001000 0 0x1000>, <0x0 0x2c002000 0 0x2000>,
arch/arm64/boot/dts/arm/foundation-v8-gicv3.dtsi +4 -4
@@ -8,9 +8,9 @@ gic: interrupt-controller@2f000000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x2f000000 0x100000>; interrupt-controller; reg = <0x0 0x2f000000 0x0 0x10000>, <0x0 0x2f100000 0x0 0x200000>,
@@ -22,7 +22,7 @@ its: its@2f020000 { compatible = "arm,gic-v3-its"; msi-controller; - reg = <0x0 0x2f020000 0x0 0x20000>; + reg = <0x20000 0x20000>; }; }; };
arch/arm64/boot/dts/arm/foundation-v8.dtsi +43 -43
92 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v3 11/20 arm64: dts: arm: Fix ITS node names and #msi-cells
In reply to Andre PrzywaraThe GIC ITS nodes in the fastmodel DTS files were not fully binding compliant.
Use one of the allowed node names, also add the required #msi-cells property for the older model.
--- arch/arm64/boot/dts/arm/foundation-v8-gicv3.dtsi | 3 ++- arch/arm64/boot/dts/arm/fvp-base-revc.dts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/arm/foundation-v8-gicv3.dtsi +2 -1
@@ -19,9 +19,10 @@ <0x0 0x2c02f000 0x0 0x2000>; interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; - its: its@2f020000 { + its: msi-controller@2f020000 { compatible = "arm,gic-v3-its"; msi-controller; + #msi-cells = <1>; reg = <0x20000 0x20000>; }; };
arch/arm64/boot/dts/arm/fvp-base-revc.dts +1 -1
@@ -126,7 +126,7 @@ <0x0 0x2c02f000 0 0x2000>; // GICV interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; - its: its@2f020000 { + its: msi-controller@2f020000 { #msi-cells = <1>; compatible = "arm,gic-v3-its"; reg = <0x0 0x2f020000 0x0 0x20000>; // GITS
Signature · 1 line
2.17.1
PATCH v3 12/20 arm64: dts: juno: usb: Use proper DT node name
In reply to Andre PrzywaraThe EHCI/OCHI DT binding requires to use "usb" as the node name stub.
Replace the existing name with "usb" to comply with the binding.
--- arch/arm64/boot/dts/arm/juno-base.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/arm/juno-base.dtsi +2 -2
@@ -768,7 +768,7 @@ }; }; - ohci@7ffb0000 { + usb@7ffb0000 { compatible = "generic-ohci"; reg = <0x0 0x7ffb0000 0x0 0x10000>; interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
@@ -776,7 +776,7 @@ clocks = <&soc_usb48mhz>; }; - ehci@7ffc0000 { + usb@7ffc0000 { compatible = "generic-ehci"; reg = <0x0 0x7ffc0000 0x0 0x10000>; interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.17.1
PATCH v3 13/20 arm64: dts: arm: Fix serial node names
In reply to Andre PrzywaraThe UARTs for all Arm Ltd. boards were using "uart" as their node name stub.
Replace that with the required "serial" string, to comply with the PL011 DT binding.
--- arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 8 ++++---- arch/arm64/boot/dts/arm/foundation-v8.dtsi | 8 ++++---- arch/arm64/boot/dts/arm/juno-base.dtsi | 2 +- arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-)
arch/arm/boot/dts/vexpress-v2m-rs1.dtsi +4 -4
@@ -316,7 +316,7 @@ clock-names = "KMIREFCLK", "apb_pclk"; }; - v2m_serial0: uart@90000 { + v2m_serial0: serial@90000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x090000 0x1000>; interrupts = <5>;
@@ -324,7 +324,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial1: uart@a0000 { + v2m_serial1: serial@a0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0a0000 0x1000>; interrupts = <6>;
@@ -332,7 +332,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial2: uart@b0000 { + v2m_serial2: serial@b0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0b0000 0x1000>; interrupts = <7>;
@@ -340,7 +340,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial3: uart@c0000 { + v2m_serial3: serial@c0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0c0000 0x1000>; interrupts = <8>;
arch/arm64/boot/dts/arm/foundation-v8.dtsi +4 -4
@@ -189,7 +189,7 @@ reg = <0x010000 0x1000>; }; - v2m_serial0: uart@90000 { + v2m_serial0: serial@90000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x090000 0x1000>; interrupts = <5>;
@@ -197,7 +197,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial1: uart@a0000 { + v2m_serial1: serial@a0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0a0000 0x1000>; interrupts = <6>;
@@ -205,7 +205,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial2: uart@b0000 { + v2m_serial2: serial@b0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0b0000 0x1000>; interrupts = <7>;
@@ -213,7 +213,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial3: uart@c0000 { + v2m_serial3: serial@c0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0c0000 0x1000>; interrupts = <8>;
arch/arm64/boot/dts/arm/juno-base.dtsi +1 -1
@@ -729,7 +729,7 @@ }; }; - soc_uart0: uart@7ff80000 { + soc_uart0: serial@7ff80000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0x7ff80000 0x0 0x1000>; interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi +4 -4
@@ -158,7 +158,7 @@ clock-names = "KMIREFCLK", "apb_pclk"; }; - v2m_serial0: uart@90000 { + v2m_serial0: serial@90000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x090000 0x1000>; interrupts = <5>;
@@ -166,7 +166,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial1: uart@a0000 { + v2m_serial1: serial@a0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0a0000 0x1000>; interrupts = <6>;
@@ -174,7 +174,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial2: uart@b0000 { + v2m_serial2: serial@b0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0b0000 0x1000>; interrupts = <7>;
@@ -182,7 +182,7 @@ clock-names = "uartclk", "apb_pclk"; }; - v2m_serial3: uart@c0000 { + v2m_serial3: serial@c0000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0c0000 0x1000>; interrupts = <8>;
Signature · 1 line
2.17.1
PATCH v3 14/20 arm64: dts: fvp: Fix SMMU DT node
In reply to Andre PrzywaraThe SMMU name in the RevC FVP DT file was not fully binding compliant.
Adjust the node name to match the binding's list of allowed names, also shuffle the order of the interrupts to comply with the expected order.
--- arch/arm64/boot/dts/arm/fvp-base-revc.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/arm/fvp-base-revc.dts +4 -4
@@ -172,14 +172,14 @@ dma-coherent; }; - smmu: smmu@2b400000 { + smmu: iommu@2b400000 { compatible = "arm,smmu-v3"; reg = <0x0 0x2b400000 0x0 0x100000>; interrupts = <GIC_SPI 74 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>, <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>, - <GIC_SPI 77 IRQ_TYPE_EDGE_RISING>, - <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "eventq", "priq", "cmdq-sync", "gerror"; + <GIC_SPI 77 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "eventq", "gerror", "priq", "cmdq-sync"; dma-coherent; #iommu-cells = <1>; msi-parent = <&its 0x10000>;
Signature · 1 line
2.17.1
PATCH v3 15/20 arm64: dts: arm: Fix bus node names
In reply to Andre PrzywaraMost Arm Ltd. boards are employing a layered bus structure, to map the hardware design (SoC, motherboard, IOFPGA) and structure the DTs.
The "simple-bus" nodes only allow a limited set of node names. Switch to use *-bus to be binding compliant.
This relies on a pending dt-schema.git fix for now:
https://github.com/devicetree-org/dt-schema/pull/38
--- arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 4 ++-- arch/arm64/boot/dts/arm/foundation-v8.dtsi | 2 +- arch/arm64/boot/dts/arm/juno-base.dtsi | 2 +- arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 4 ++-- arch/arm64/boot/dts/arm/rtsm_ve-motherboard-rs2.dtsi | 4 ++-- arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/boot/dts/vexpress-v2m-rs1.dtsi +2 -2
@@ -174,7 +174,7 @@ }; bus@8000000 { - motherboard { + motherboard-bus { model = "V2M-P1"; arm,hbi = <0x190>; arm,vexpress,site = <0>;
@@ -220,7 +220,7 @@ port1-otg; }; - iofpga@300000000 { + iofpga-bus@300000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm64/boot/dts/arm/foundation-v8.dtsi +1 -1
@@ -178,7 +178,7 @@ interrupts = <15>; }; - iofpga@300000000 { + iofpga-bus@300000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm64/boot/dts/arm/juno-base.dtsi +1 -1
@@ -828,7 +828,7 @@ <0 0 12 &gic 0 GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; }; - site2: tlx@60000000 { + site2: tlx-bus@60000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm64/boot/dts/arm/juno-motherboard.dtsi +2 -2
@@ -92,7 +92,7 @@ }; bus@8000000 { - motherboard { + motherboard-bus { compatible = "arm,vexpress,v2p-p1", "simple-bus"; #address-cells = <2>; /* SMB chipselect number and offset */ #size-cells = <1>;
@@ -133,7 +133,7 @@ vddvario-supply = <&mb_fixed_3v3>; }; - iofpga@300000000 { + iofpga-bus@300000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm64/boot/dts/arm/rtsm_ve-motherboard-rs2.dtsi +2 -2
@@ -6,10 +6,10 @@ */ / { bus@8000000 { - motherboard { + motherboard-bus { arm,v2m-memory-map = "rs2"; - iofpga@300000000 { + iofpga-bus@300000000 { virtio-p9@140000 { compatible = "virtio,mmio"; reg = <0x140000 0x200>;
arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi +2 -2
@@ -77,7 +77,7 @@ }; bus@8000000 { - motherboard { + motherboard-bus { arm,v2m-memory-map = "rs1"; compatible = "arm,vexpress,v2m-p1", "simple-bus"; #address-cells = <2>; /* SMB chipselect number and offset */
@@ -98,7 +98,7 @@ interrupts = <15>; }; - iofpga@300000000 { + iofpga-bus@300000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.17.1
PATCH v3 16/20 arm64: dts: juno: Fix GPU interrupt order
In reply to Andre PrzywaraThe Mali binding insists on the GPU interrupts to be in ordered as: job, mmu, gpu.
Sort the GPU interrupts and interrupt-names properties accordingly.
--- arch/arm64/boot/dts/arm/juno-base.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/arm/juno-base.dtsi +4 -4
@@ -501,10 +501,10 @@ gpu: gpu@2d000000 { compatible = "arm,juno-mali", "arm,mali-t624"; reg = <0 0x2d000000 0 0x10000>; - interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>, - <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>, - <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; - interrupt-names = "gpu", "job", "mmu"; + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "job", "mmu", "gpu"; clocks = <&scpi_dvfs 2>; power-domains = <&scpi_devpd 1>; dma-coherent;
Signature · 1 line
2.17.1
PATCH v3 17/20 arm64: dts: arm: Fix VExpress LED names
In reply to Andre PrzywaraThe common LED binding wants the LED node names to start with led- and then have just a single number.
Changing the naming for the 8 user LEDs from using user<x> to led-<x>. Also there is no default-trigger named "mmc0" in the kernel, so use the more generic "disk-activity".
--- arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
arch/arm/boot/dts/vexpress-v2m-rs1.dtsi +8 -8
@@ -51,49 +51,49 @@ leds { compatible = "gpio-leds"; - user1 { + led-1 { label = "v2m:green:user1"; gpios = <&v2m_led_gpios 0 0>; linux,default-trigger = "heartbeat"; }; - user2 { + led-2 { label = "v2m:green:user2"; gpios = <&v2m_led_gpios 1 0>; linux,default-trigger = "disk-activity"; }; - user3 { + led-3 { label = "v2m:green:user3"; gpios = <&v2m_led_gpios 2 0>; linux,default-trigger = "cpu0"; }; - user4 { + led-4 { label = "v2m:green:user4"; gpios = <&v2m_led_gpios 3 0>; linux,default-trigger = "cpu1"; }; - user5 { + led-5 { label = "v2m:green:user5"; gpios = <&v2m_led_gpios 4 0>; linux,default-trigger = "cpu2"; }; - user6 { + led-6 { label = "v2m:green:user6"; gpios = <&v2m_led_gpios 5 0>; linux,default-trigger = "cpu3"; }; - user7 { + led-7 { label = "v2m:green:user7"; gpios = <&v2m_led_gpios 6 0>; linux,default-trigger = "cpu4"; }; - user8 { + led-8 { label = "v2m:green:user8"; gpios = <&v2m_led_gpios 7 0>; linux,default-trigger = "cpu5";
Signature · 1 line
2.17.1
PATCH v3 18/20 arm64: dts: juno: Fix SCPI shared mem node name
In reply to Andre PrzywaraThe SRAM DT binding requires child nodes to use a certain node name scheme.
Change the naming from scp-shmem to scp-sram to comply with that.
--- arch/arm64/boot/dts/arm/juno-base.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/arm/juno-base.dtsi +2 -2
@@ -521,12 +521,12 @@ #size-cells = <1>; ranges = <0 0x0 0x2e000000 0x8000>; - cpu_scp_lpri: scp-shmem@0 { + cpu_scp_lpri: scp-sram@0 { compatible = "arm,juno-scp-shmem"; reg = <0x0 0x200>; }; - cpu_scp_hpri: scp-shmem@200 { + cpu_scp_hpri: scp-sram@200 { compatible = "arm,juno-scp-shmem"; reg = <0x200 0x200>; };
Signature · 1 line
2.17.1
PATCH v3 19/20 dt-bindings: mali-midgard: Allow dma-coherent
In reply to Andre PrzywaraAdd the boolean dma-coherent property to the list of allowed properties, since some boards (Arm Juno) integrate the GPU this way.
--- Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml +2 -0
@@ -87,6 +87,8 @@ properties: "#cooling-cells": const: 2 + dma-coherent: true + required: - compatible - reg
Signature · 6 lines
2.17.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 20/20 dt-bindings: ehci/ohci: Allow iommus property
In reply to Andre PrzywaraA OHCI/EHCI controller could be behind an IOMMU, in which case an iommus property assigns the stream ID for this device.
Allow that property in the DT bindings to fix a complaint about the Arm Juno board's DTS file.
--- Documentation/devicetree/bindings/usb/generic-ehci.yaml | 3 +++ Documentation/devicetree/bindings/usb/generic-ohci.yaml | 3 +++ 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/usb/generic-ehci.yaml +3 -0
@@ -74,6 +74,9 @@ properties: phy-names: const: usb + iommus: + maxItems: 1 + required: - compatible - reg
Documentation/devicetree/bindings/usb/generic-ohci.yaml +3 -0
@@ -73,6 +73,9 @@ properties: phy-names: const: usb + iommus: + maxItems: 1 + required: - compatible - reg
Signature · 1 line
2.17.1
Re: [PATCH v3 02/20] arm64: dts: arm: Fix node address fields
In reply to Andre PrzywaraQuoted 6 lines · Andre Przywara
The Arm Ltd. boards were using an outdated address convention in the DT node names, by separating the high from the low 32-bits of an address by a comma.
Remove the comma from the node name suffix to be DT spec compliant.
As Robin pointed out before, this was the requirement back then. I assume it is no longer true.
Signature · 2 lines
Regards, Sudeep
Re: [PATCH v3 03/20] arm64: dts: arm: fvp: Move fixed devices out of bus node
In reply to Andre PrzywaraQuoted 8 lines · Andre Przywara
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/v2m_refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, and the config bus subtree to the root node, since they do not depend on any busses.
[nit] only if you respin the series, you can drop extra "arm:" in the subject. Also if it contains both fvp and juno change, use fvp/juno.
--
Regards,
Sudeep
Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
In reply to Andre PrzywaraQuoted 5 lines · Andre Przywara
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges property
Quoted 8 lines
Move the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Signed-off-by Andre Przywara <[email protected]>--- arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 308 ++++++++++++------------ 1 file changed, 154 insertions(+), 154 deletions(-)
$subject tells this is arm64 while patch is arm32, I can fix up in case you don't respin.
Signature · 2 lines
Regards, Sudeep
Re: [PATCH v3 08/20] arm64: dts: arm: model: Fix GIC compatible names
In reply to Andre PrzywaraQuoted 19 lines · Andre Przywara
The GIC DT binding only allows certain combinations of DT compatible strings. The somewhat awkward "arm,cortex-a15-gic", "arm,cortex-a9-gic" is not among those.
Drop that combination of different "cortex" based strings used for the models, and replace it with the more useful combination including "arm,gic-400".
Signed-off-by Andre Przywara <[email protected]>--- arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi | 2 +- arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi +0
-0
arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi line 9
Quoted 5 lines
arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi +1
-1@@ -6,7 +6,7 @@ / { gic: interrupt-controller@2c001000 { - compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; + compatible = "arm,gic-400", "arm,cortex-a15-gic";
Do we need to still retain "arm,cortex-a15-gic" ?
Signature · 2 lines
Regards, Sudeep
Re: [PATCH v3 16/20] arm64: dts: juno: Fix GPU interrupt order
In reply to Andre PrzywaraQuoted 4 lines · Andre Przywara
The Mali binding insists on the GPU interrupts to be in ordered as: job, mmu, gpu.
Sort the GPU interrupts and interrupt-names properties accordingly.
I assume this is not a bug fix, just clean up to make it 100% binding compliant. Things work just fine without this too. Just for my info.
Signature · 2 lines
Regards, Sudeep
Re: [PATCH v3 20/20] dt-bindings: ehci/ohci: Allow iommus property
In reply to Andre PrzywaraQuoted 6 lines · Andre Przywara
A OHCI/EHCI controller could be behind an IOMMU, in which case an iommus property assigns the stream ID for this device.
Allow that property in the DT bindings to fix a complaint about the Arm Juno board's DTS file.
I need acks for this and the first dt-binding in order to take it via ARM SoC. Also where ever possible split arm64 and arm DT in case ARM SoC wants different PR. I will ask if you have to respin.
--
Regards,
Sudeep
Re: [PATCH v3 01/20] dt-bindings: arm: gic: Allow combining arm, gic-400 compatible strings
In reply to Andre PrzywaraQuoted 6 lines · Andre Przywara
The arm,gic-400 compatible is probably the best matching string for the GIC in most modern SoCs, but was only introduced later into the kernel. For historic reasons and to keep compatibility, some SoC DTs were thus using a combination of this name and one of the older strings, which currently the binding denies.
Quoted 9 lines
Add a stanza to the DT binding to allow "arm,gic-400", followed by either "arm,cortex-a15-gic" or "arm,cortex-a7-gic". This fixes binding compliance for quite some SoC .dtsi files in the kernel tree.
Signed-off-by Andre Przywara <[email protected]>--- .../devicetree/bindings/interrupt-controller/arm,gic.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Applied, thanks!
Re: [PATCH v3 19/20] dt-bindings: mali-midgard: Allow dma-coherent
In reply to Andre PrzywaraQuoted 8 lines · Andre Przywara
Add the boolean dma-coherent property to the list of allowed properties, since some boards (Arm Juno) integrate the GPU this way.
Signed-off-by Andre Przywara <[email protected]>--- Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks!
Re: [PATCH v3 20/20] dt-bindings: ehci/ohci: Allow iommus property
In reply to Andre PrzywaraQuoted 12 lines · Andre Przywara
A OHCI/EHCI controller could be behind an IOMMU, in which case an iommus property assigns the stream ID for this device.
Allow that property in the DT bindings to fix a complaint about the Arm Juno board's DTS file.
Signed-off-by Andre Przywara <[email protected]>--- Documentation/devicetree/bindings/usb/generic-ehci.yaml | 3 +++ Documentation/devicetree/bindings/usb/generic-ohci.yaml | 3 +++ 2 files changed, 6 insertions(+)
Applied, thanks!
Re: [PATCH v3 08/20] arm64: dts: arm: model: Fix GIC compatible names
In reply to Sudeep HollaQuoted 21 lines · Sudeep Holla
Quoted 20 lines · Andre Przywara
The GIC DT binding only allows certain combinations of DT compatible strings. The somewhat awkward "arm,cortex-a15-gic", "arm,cortex-a9-gic" is not among those.
Drop that combination of different "cortex" based strings used for the models, and replace it with the more useful combination including "arm,gic-400".
Signed-off-by Andre Przywara <[email protected]>--- arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi | 2 +- arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi +0
-0@@ -6,7 +6,7 @@
Quoted 6 lines
arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi line 9
Quoted 4 lines
arch/arm64/boot/dts/arm/foundation-v8-gicv2.dtsi +1
-1/ { gic: interrupt-controller@2c001000 { - compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; + compatible = "arm,gic-400", "arm,cortex-a15-gic";Do we need to still retain "arm,cortex-a15-gic" ?
I'd rather would like to keep that. "arm,gic-400" was introduced only later into Linux as a compatible string, so dropping this would break older kernels. I don't see any difference between a9-gic and a15-gic in term of kernel support, so a9-gic can surely go.
Cheers,
Andre
Re: [PATCH v3 16/20] arm64: dts: juno: Fix GPU interrupt order
In reply to Sudeep HollaOn 13/05/2020 19:24, Sudeep Holla wrote:
Hi,
Quoted 8 lines · Andre Przywara
Quoted 4 lines
The Mali binding insists on the GPU interrupts to be in ordered as: job, mmu, gpu.
Sort the GPU interrupts and interrupt-names properties accordingly.I assume this is not a bug fix, just clean up to make it 100% binding compliant. Things work just fine without this too. Just for my info.
Yes, that's true, it works either way right now.
Originally I was under the impression that the purpose of interrupt-names was to allow any order of interrupts, but according to Rob this is just to support optional IRQs (so having a shorter list). The bindings require a certain order, and the dt-schema validation complains if that differs in the DT.
Cheers,
Andre
Sudeep Holla
AppliedQuoted 11 lines · Andre Przywara
A few updates compared to v2. The most important is to fix the interrupt-maps, triggered by changing the number of address-cells in the GIC node. For this I split the former patch 07/17 into two (09/20 and 10/20), one for the foundation model, the other for Juno. Also I fixed a dtc complaint about device nodes without reg properties being inside simple-bus nodes, those are the new patches 04-06/20. Will took patch 01/17 from v2 already, so I removed this from this series.
The rest of the patches stayed the same.
-----------------------------------
Quoted 1 line
[...]
Applied to sudeep.holla/linux tree (for-next/juno), thanks!
[02/20] arm64: dts: fvp/juno: Fix node address fields
https://git.kernel.org/sudeep.holla/c/bb5cce12ac
[03/20] arm64: dts: fvp: Move fixed devices out of bus node
https://git.kernel.org/sudeep.holla/c/849bfc3dfc [04/20] arm64: dts: vexpress: Move fixed devices out of bus node https://git.kernel.org/sudeep.holla/c/d9258898ad [05/20] arm64: dts: fvp: Move fixed clocks out of bus node https://git.kernel.org/sudeep.holla/c/feebdc3f79 [06/20] arm64: dts: juno: Move fixed devices out of bus node https://git.kernel.org/sudeep.holla/c/948204a1bf [07/20] arm64: dts: juno: Fix mem-timer https://git.kernel.org/sudeep.holla/c/0e529dae51 [08/20] arm64: dts: fvp: Fix GIC compatible names https://git.kernel.org/sudeep.holla/c/336edacfb9 [09/20] arm64: dts: juno: Fix GIC child nodes https://git.kernel.org/sudeep.holla/c/a78aee9e43 [10/20] arm64: dts: fvp: Fix GIC child nodes https://git.kernel.org/sudeep.holla/c/78631aecc5 [11/20] arm64: dts: fvp: Fix ITS node names and #msi-cells https://git.kernel.org/sudeep.holla/c/fac959c93f [12/20] arm64: dts: juno: Use proper DT node name for USB https://git.kernel.org/sudeep.holla/c/17a37ff76e [13/20] arm64: dts: fvp/juno: Fix serial node names https://git.kernel.org/sudeep.holla/c/fa51a2a1ed [14/20] arm64: dts: fvp: Fix SMMU DT node https://git.kernel.org/sudeep.holla/c/19650d681b [15/20] arm64: dts: fvp/juno: Fix bus node names https://git.kernel.org/sudeep.holla/c/b68d15c0e6 [16/20] arm64: dts: juno: Fix GPU interrupt order https://git.kernel.org/sudeep.holla/c/2dd42335f8 [17/20] arm64: dts: vexpress: Fix VExpress LED names https://git.kernel.org/sudeep.holla/c/bf3f0ccf35 [18/20] arm64: dts: juno: Fix SCPI shared mem node name https://git.kernel.org/sudeep.holla/c/93f6027abe
--
Regards,
Sudeep
Sudeep Holla
AppliedQuoted 11 lines · Andre Przywara
A few updates compared to v2. The most important is to fix the interrupt-maps, triggered by changing the number of address-cells in the GIC node. For this I split the former patch 07/17 into two (09/20 and 10/20), one for the foundation model, the other for Juno. Also I fixed a dtc complaint about device nodes without reg properties being inside simple-bus nodes, those are the new patches 04-06/20. Will took patch 01/17 from v2 already, so I removed this from this series.
The rest of the patches stayed the same.
-----------------------------------
Quoted 1 line
[...]
Hi Andre,
Patch 12/20 was missing your Signed-off tags, re-applied adding the same.
Applied to scmi-vexpress-juno (for-next/juno), thanks!
[02/20] arm64: dts: fvp/juno: Fix node address fields
https://git.kernel.org/sudeep.holla/c/bb5cce12ac
[03/20] arm64: dts: fvp: Move fixed devices out of bus node
https://git.kernel.org/sudeep.holla/c/849bfc3dfc [04/20] arm64: dts: vexpress: Move fixed devices out of bus node https://git.kernel.org/sudeep.holla/c/d9258898ad [05/20] arm64: dts: fvp: Move fixed clocks out of bus node https://git.kernel.org/sudeep.holla/c/feebdc3f79 [06/20] arm64: dts: juno: Move fixed devices out of bus node https://git.kernel.org/sudeep.holla/c/948204a1bf [07/20] arm64: dts: juno: Fix mem-timer https://git.kernel.org/sudeep.holla/c/0e529dae51 [08/20] arm64: dts: fvp: Fix GIC compatible names https://git.kernel.org/sudeep.holla/c/336edacfb9 [09/20] arm64: dts: juno: Fix GIC child nodes https://git.kernel.org/sudeep.holla/c/a78aee9e43 [10/20] arm64: dts: fvp: Fix GIC child nodes https://git.kernel.org/sudeep.holla/c/78631aecc5 [11/20] arm64: dts: fvp: Fix ITS node names and #msi-cells https://git.kernel.org/sudeep.holla/c/fac959c93f [12/20] arm64: dts: juno: Use proper DT node name for USB https://git.kernel.org/sudeep.holla/c/a66ab61b2c [13/20] arm64: dts: fvp/juno: Fix serial node names https://git.kernel.org/sudeep.holla/c/1d33445a19 [14/20] arm64: dts: fvp: Fix SMMU DT node https://git.kernel.org/sudeep.holla/c/386270bad0 [15/20] arm64: dts: fvp/juno: Fix bus node names https://git.kernel.org/sudeep.holla/c/48db29f2c9 [16/20] arm64: dts: juno: Fix GPU interrupt order https://git.kernel.org/sudeep.holla/c/90280c4dc0 [17/20] arm64: dts: vexpress: Fix VExpress LED names https://git.kernel.org/sudeep.holla/c/dc6e874179 [18/20] arm64: dts: juno: Fix SCPI shared mem node name https://git.kernel.org/sudeep.holla/c/267c673233
--
Regards,
Sudeep
Re: [PATCH v3 01/20] dt-bindings: arm: gic: Allow combining arm,gic-400 compatible strings
In reply to Andre PrzywaraHi Andre,
Quoted 11 lines · Andre Przywara
The arm,gic-400 compatible is probably the best matching string for the GIC in most modern SoCs, but was only introduced later into the kernel. For historic reasons and to keep compatibility, some SoC DTs were thus using a combination of this name and one of the older strings, which currently the binding denies.
Add a stanza to the DT binding to allow "arm,gic-400", followed by either "arm,cortex-a15-gic" or "arm,cortex-a7-gic". This fixes binding compliance for quite some SoC .dtsi files in the kernel tree.
Signed-off-by Andre Przywara <[email protected]>
Thanks for your patch, I was just looking into this issue ;-)
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml +0
-0@@ -39,6 +39,12 @@ properties: - qcom,msm-8660-qgic - qcom,msm-qgic2
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml properties: · line 50
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml +6
-0+ - items: + - const: arm,gic-400 + - enum: + - arm,cortex-a15-gic + - arm,cortex-a7-gic + - items: - const: arm,arm1176jzf-devchip-gic - const: arm,arm11mp-gic
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/r9a06g032.dtsi#n177
has them in the other order.
What do you think is the preferred solution: reverting the order, or dropping one or the other?
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH v3 01/20] dt-bindings: arm: gic: Allow combining arm,gic-400 compatible strings
On 19/05/2020 08:39, Geert Uytterhoeven wrote:
Hi Geert,
Quoted 34 lines · Andre Przywara
Quoted 11 lines
The arm,gic-400 compatible is probably the best matching string for the GIC in most modern SoCs, but was only introduced later into the kernel. For historic reasons and to keep compatibility, some SoC DTs were thus using a combination of this name and one of the older strings, which currently the binding denies.
Add a stanza to the DT binding to allow "arm,gic-400", followed by either "arm,cortex-a15-gic" or "arm,cortex-a7-gic". This fixes binding compliance for quite some SoC .dtsi files in the kernel tree.
Signed-off-by Andre Przywara <[email protected]>Thanks for your patch, I was just looking into this issue ;-)
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml +0
-0@@ -39,6 +39,12 @@ properties: - qcom,msm-8660-qgic - qcom,msm-qgic2Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml properties: · line 50
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml +6
-0+ - items: + - const: arm,gic-400 + - enum: + - arm,cortex-a15-gic + - arm,cortex-a7-gic + - items: - const: arm,arm1176jzf-devchip-gic - const: arm,arm11mp-gichttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/r9a06g032.dtsi#n177
has them in the other order.
Quoted 2 lines
What do you think is the preferred solution: reverting the order, or dropping one or the other?
Reverting the order would be the right thing. Theoretically this might change what the drivers match against, but there should be no difference between those strings anyway. And certainly Linux does not care which of the many strings it sees.
The proper order is not really obvious here, but the cortex-a{15,7}-gic names serve as the missing "arm,gic-v2" generic fallback string here, I think just for historical reasons.
Cheers,
Andre.
Rob Herring
maintainerRe: [PATCH v3 01/20] dt-bindings: arm: gic: Allow combining arm,gic-400 compatible strings
Quoted 43 lines · André Przywara
On 19/05/2020 08:39, Geert Uytterhoeven wrote:
Hi Geert,
Quoted 34 lines · Andre Przywara
Quoted 11 lines
The arm,gic-400 compatible is probably the best matching string for the GIC in most modern SoCs, but was only introduced later into the kernel. For historic reasons and to keep compatibility, some SoC DTs were thus using a combination of this name and one of the older strings, which currently the binding denies.
Add a stanza to the DT binding to allow "arm,gic-400", followed by either "arm,cortex-a15-gic" or "arm,cortex-a7-gic". This fixes binding compliance for quite some SoC .dtsi files in the kernel tree.
Signed-off-by Andre Przywara <[email protected]>Thanks for your patch, I was just looking into this issue ;-)
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml +0
-0@@ -39,6 +39,12 @@ properties: - qcom,msm-8660-qgic - qcom,msm-qgic2Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml properties: · line 50
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml +6
-0+ - items: + - const: arm,gic-400 + - enum: + - arm,cortex-a15-gic + - arm,cortex-a7-gic + - items: - const: arm,arm1176jzf-devchip-gic - const: arm,arm11mp-gichttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/r9a06g032.dtsi#n177
has them in the other order.Quoted 2 lines
What do you think is the preferred solution: reverting the order, or dropping one or the other?
Quoted 8 lines
Reverting the order would be the right thing. Theoretically this might change what the drivers match against, but there should be no difference between those strings anyway. And certainly Linux does not care which of the many strings it sees.
The proper order is not really obvious here, but the cortex-a{15,7}-gic names serve as the missing "arm,gic-v2" generic fallback string here, I think just for historical reasons.
Really, they probably should have been mutually exclusive given an implementation has one or the other. Since we have both, the order in the schema is correct given gic-400 is a superset (multi-cluster) and the compatible came later in time.
Rob
Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
In reply to Andre PrzywaraQuoted 9 lines · Andre Przywara
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Signed-off-by Andre Przywara <[email protected]>
This patch results in tracebacks when booting the vexpress-a15 machine with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well as the subsequent patches affecting the same file (to avoid revert conflicts) fixes the problem.
Guenter
---
[ 12.744248] ------------[ cut here ]------------ [ 12.744562] WARNING: CPU: 0 PID: 20 at drivers/tty/serial/serial_core.c:471 uart_get_baud_rate+0x100/0x154 [ 12.744607] Modules linked in: [ 12.744785] CPU: 0 PID: 20 Comm: kworker/0:1 Not tainted 5.7.0-rc7-next-20200526 #1 [ 12.744818] Hardware name: ARM-Versatile Express [ 12.745021] Workqueue: events amba_deferred_retry_func [ 12.745155] [<c0312484>] (unwind_backtrace) from [<c030c490>] (show_stack+0x10/0x14) [ 12.745206] [<c030c490>] (show_stack) from [<c0880f04>] (dump_stack+0xc8/0xdc) [ 12.745239] [<c0880f04>] (dump_stack) from [<c0346e44>] (__warn+0xdc/0xf4) [ 12.745270] [<c0346e44>] (__warn) from [<c0346f0c>] (warn_slowpath_fmt+0xb0/0xb8) [ 12.745302] [<c0346f0c>] (warn_slowpath_fmt) from [<c0a6b16c>] (uart_get_baud_rate+0x100/0x154) [ 12.745336] [<c0a6b16c>] (uart_get_baud_rate) from [<c0a7f5ac>] (pl011_set_termios+0x48/0x32c) [ 12.745367] [<c0a7f5ac>] (pl011_set_termios) from [<c0a6bbbc>] (uart_set_options+0x124/0x164) [ 12.745404] [<c0a6bbbc>] (uart_set_options) from [<c1b8c804>] (pl011_console_setup+0x214/0x230) [ 12.745438] [<c1b8c804>] (pl011_console_setup) from [<c03ab0d8>] (try_enable_new_console+0x98/0x138) [ 12.745469] [<c03ab0d8>] (try_enable_new_console) from [<c03acc64>] (register_console+0xe8/0x304) [ 12.745499] [<c03acc64>] (register_console) from [<c0a6c88c>] (uart_add_one_port+0x4c0/0x504) [ 12.745529] [<c0a6c88c>] (uart_add_one_port) from [<c0a80404>] (pl011_register_port+0x5c/0xac) [ 12.745568] [<c0a80404>] (pl011_register_port) from [<c097f5a0>] (amba_probe+0x9c/0x110) [ 12.745602] [<c097f5a0>] (amba_probe) from [<c0b57e84>] (really_probe+0x218/0x348) [ 12.745632] [<c0b57e84>] (really_probe) from [<c0b580c0>] (driver_probe_device+0x5c/0xb4) [ 12.745662] [<c0b580c0>] (driver_probe_device) from [<c0b55ff4>] (bus_for_each_drv+0x58/0xb8) [ 12.745692] [<c0b55ff4>] (bus_for_each_drv) from [<c0b57bf8>] (__device_attach+0xd4/0x140) [ 12.745721] [<c0b57bf8>] (__device_attach) from [<c0b56eb0>] (bus_probe_device+0x88/0x90) [ 12.745751] [<c0b56eb0>] (bus_probe_device) from [<c0b53234>] (device_add+0x3d4/0x6e8) [ 12.745782] [<c0b53234>] (device_add) from [<c097f664>] (amba_device_try_add+0x50/0x2d4) [ 12.745812] [<c097f664>] (amba_device_try_add) from [<c097f924>] (amba_deferred_retry+0x3c/0x98) [ 12.745847] [<c097f924>] (amba_deferred_retry) from [<c097f988>] (amba_deferred_retry_func+0x8/0x40) [ 12.745881] [<c097f988>] (amba_deferred_retry_func) from [<c0365b6c>] (process_one_work+0x2b8/0x6e8) [ 12.745912] [<c0365b6c>] (process_one_work) from [<c0365fe0>] (worker_thread+0x44/0x540) [ 12.745942] [<c0365fe0>] (worker_thread) from [<c036d810>] (kthread+0x16c/0x178) [ 12.745973] [<c036d810>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c) [ 12.746041] Exception stack(0xc73abfb0 to 0xc73abff8) [ 12.746181] bfa0: 00000000 00000000 00000000 00000000 [ 12.746302] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 12.746397] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 12.746651] ---[ end trace 2a3f61da56bd8a49 ]---
---
# bad: [b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8] Add linux-next specific files for 20200526
# good: [9cb1fd0efd195590b828b9b865421ad345a4a145] Linux 5.7-rc7
git bisect start 'next-20200526' 'v5.7-rc7'
# bad: [0c7351ad83670964e48cb9a098ad732c1ecbf804] Merge remote-tracking branch 'crypto/master'
git bisect bad 0c7351ad83670964e48cb9a098ad732c1ecbf804
# bad: [42e11d9b4682229fa7187d129758b8c382f8cd5d] Merge remote-tracking branch 'jc_docs/docs-next'
git bisect bad 42e11d9b4682229fa7187d129758b8c382f8cd5d
# bad: [ab6f501559e9efa687c711a781243cf6651a82d3] Merge remote-tracking branch 'm68k/for-next'
git bisect bad ab6f501559e9efa687c711a781243cf6651a82d3
# bad: [44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5] Merge branch 'arm/drivers' into for-next
git bisect bad 44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5
# good: [1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f] Merge tag 'qcom-arm64-for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/dt git bisect good 1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f
# bad: [ed0c25932fbfafdfe37e9633dee21770d3c5a306] Merge branch 'arm/defconfig' into for-next
git bisect bad ed0c25932fbfafdfe37e9633dee21770d3c5a306
# bad: [9eddc06a3bc79402f50176703237ed045ae77b16] Merge branch 'mmp/fixes' into arm/dt
git bisect bad 9eddc06a3bc79402f50176703237ed045ae77b16
# bad: [87b990ab62722a8a3cb0691107971ab1bd7bddb5] Merge tag 'mvebu-dt64-5.8-1' of git://git.infradead.org/linux-mvebu into arm/dt git bisect bad 87b990ab62722a8a3cb0691107971ab1bd7bddb5
# bad: [94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee] arm64: dts: juno: Fix SCPI shared mem node name
git bisect bad 94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee
# bad: [a78aee9e434932a500db36cc6d88daeff3745e9f] arm64: dts: juno: Fix GIC child nodes
git bisect bad a78aee9e434932a500db36cc6d88daeff3745e9f
# bad: [feebdc3f7950d7e44e914e821f6c04e58e292c74] arm64: dts: fvp: Move fixed clocks out of bus node
git bisect bad feebdc3f7950d7e44e914e821f6c04e58e292c74
# good: [849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3] arm64: dts: fvp: Move fixed devices out of bus node
git bisect good 849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3
# bad: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
git bisect bad d9258898ad49cbb46caffe23af0d4f0b766e67a2
# first bad commit: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
Quoted 9 lines · Guenter Roeck
Quoted 8 lines · Andre Przywara
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Quoted 7 lines
Quoted 1 line
Signed-off-by Andre Przywara <[email protected]>This patch results in tracebacks when booting the vexpress-a15 machine with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well as the subsequent patches affecting the same file (to avoid revert conflicts) fixes the problem.
On top of that, there is this message:
[ 19.817986] vexpress-reset mcc:reboot: Unable to restart (-14) [ 20.818315] Reboot failed -- System halted
which also disappears after the patches have been reverted.
Here is my list of reverts on top of next-20200526:
bdc8a817612b (HEAD -> master) Revert "arm64: dts: vexpress: Move fixed devices out of bus node" 9a1f85df9e1a Revert "arm64: dts: fvp/juno: Fix serial node names"381e0bbe8c00 Revert "arm64: dts: fvp/juno: Fix bus node names"63723f67bf4b Revert "arm64: dts: vexpress: Fix VExpress LED names"
Guenter
Quoted 73 lines
Guenter
---
[ 12.744248] ------------[ cut here ]------------ [ 12.744562] WARNING: CPU: 0 PID: 20 at drivers/tty/serial/serial_core.c:471 uart_get_baud_rate+0x100/0x154 [ 12.744607] Modules linked in: [ 12.744785] CPU: 0 PID: 20 Comm: kworker/0:1 Not tainted 5.7.0-rc7-next-20200526 #1 [ 12.744818] Hardware name: ARM-Versatile Express [ 12.745021] Workqueue: events amba_deferred_retry_func [ 12.745155] [<c0312484>] (unwind_backtrace) from [<c030c490>] (show_stack+0x10/0x14) [ 12.745206] [<c030c490>] (show_stack) from [<c0880f04>] (dump_stack+0xc8/0xdc) [ 12.745239] [<c0880f04>] (dump_stack) from [<c0346e44>] (__warn+0xdc/0xf4) [ 12.745270] [<c0346e44>] (__warn) from [<c0346f0c>] (warn_slowpath_fmt+0xb0/0xb8) [ 12.745302] [<c0346f0c>] (warn_slowpath_fmt) from [<c0a6b16c>] (uart_get_baud_rate+0x100/0x154) [ 12.745336] [<c0a6b16c>] (uart_get_baud_rate) from [<c0a7f5ac>] (pl011_set_termios+0x48/0x32c) [ 12.745367] [<c0a7f5ac>] (pl011_set_termios) from [<c0a6bbbc>] (uart_set_options+0x124/0x164) [ 12.745404] [<c0a6bbbc>] (uart_set_options) from [<c1b8c804>] (pl011_console_setup+0x214/0x230) [ 12.745438] [<c1b8c804>] (pl011_console_setup) from [<c03ab0d8>] (try_enable_new_console+0x98/0x138) [ 12.745469] [<c03ab0d8>] (try_enable_new_console) from [<c03acc64>] (register_console+0xe8/0x304) [ 12.745499] [<c03acc64>] (register_console) from [<c0a6c88c>] (uart_add_one_port+0x4c0/0x504) [ 12.745529] [<c0a6c88c>] (uart_add_one_port) from [<c0a80404>] (pl011_register_port+0x5c/0xac) [ 12.745568] [<c0a80404>] (pl011_register_port) from [<c097f5a0>] (amba_probe+0x9c/0x110) [ 12.745602] [<c097f5a0>] (amba_probe) from [<c0b57e84>] (really_probe+0x218/0x348) [ 12.745632] [<c0b57e84>] (really_probe) from [<c0b580c0>] (driver_probe_device+0x5c/0xb4) [ 12.745662] [<c0b580c0>] (driver_probe_device) from [<c0b55ff4>] (bus_for_each_drv+0x58/0xb8) [ 12.745692] [<c0b55ff4>] (bus_for_each_drv) from [<c0b57bf8>] (__device_attach+0xd4/0x140) [ 12.745721] [<c0b57bf8>] (__device_attach) from [<c0b56eb0>] (bus_probe_device+0x88/0x90) [ 12.745751] [<c0b56eb0>] (bus_probe_device) from [<c0b53234>] (device_add+0x3d4/0x6e8) [ 12.745782] [<c0b53234>] (device_add) from [<c097f664>] (amba_device_try_add+0x50/0x2d4) [ 12.745812] [<c097f664>] (amba_device_try_add) from [<c097f924>] (amba_deferred_retry+0x3c/0x98) [ 12.745847] [<c097f924>] (amba_deferred_retry) from [<c097f988>] (amba_deferred_retry_func+0x8/0x40) [ 12.745881] [<c097f988>] (amba_deferred_retry_func) from [<c0365b6c>] (process_one_work+0x2b8/0x6e8) [ 12.745912] [<c0365b6c>] (process_one_work) from [<c0365fe0>] (worker_thread+0x44/0x540) [ 12.745942] [<c0365fe0>] (worker_thread) from [<c036d810>] (kthread+0x16c/0x178) [ 12.745973] [<c036d810>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c) [ 12.746041] Exception stack(0xc73abfb0 to 0xc73abff8) [ 12.746181] bfa0: 00000000 00000000 00000000 00000000 [ 12.746302] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 12.746397] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 12.746651] ---[ end trace 2a3f61da56bd8a49 ]------
# bad: [b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8] Add linux-next specific files for 20200526
# good: [9cb1fd0efd195590b828b9b865421ad345a4a145] Linux 5.7-rc7
git bisect start 'next-20200526' 'v5.7-rc7'
# bad: [0c7351ad83670964e48cb9a098ad732c1ecbf804] Merge remote-tracking branch 'crypto/master'
git bisect bad0c7351ad83670964e48cb9a098ad732c1ecbf804
# bad: [42e11d9b4682229fa7187d129758b8c382f8cd5d] Merge remote-tracking branch 'jc_docs/docs-next'
git bisect bad42e11d9b4682229fa7187d129758b8c382f8cd5d
# bad: [ab6f501559e9efa687c711a781243cf6651a82d3] Merge remote-tracking branch 'm68k/for-next'
git bisect badab6f501559e9efa687c711a781243cf6651a82d3
# bad: [44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5] Merge branch 'arm/drivers' into for-next
git bisect bad44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5
# good: [1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f] Merge tag 'qcom-arm64-for-5.8' ofgit://git.kernel.org/pub/scm/linux/kernel/git/qcom/linuxinto arm/dt git bisect good1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f
# bad: [ed0c25932fbfafdfe37e9633dee21770d3c5a306] Merge branch 'arm/defconfig' into for-next
git bisect baded0c25932fbfafdfe37e9633dee21770d3c5a306
# bad: [9eddc06a3bc79402f50176703237ed045ae77b16] Merge branch 'mmp/fixes' into arm/dt
git bisect bad9eddc06a3bc79402f50176703237ed045ae77b16
# bad: [87b990ab62722a8a3cb0691107971ab1bd7bddb5] Merge tag 'mvebu-dt64-5.8-1' ofgit://git.infradead.org/linux-mvebuinto arm/dt git bisect bad87b990ab62722a8a3cb0691107971ab1bd7bddb5
# bad: [94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee] arm64: dts: juno: Fix SCPI shared mem node name
git bisect bad94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee
# bad: [a78aee9e434932a500db36cc6d88daeff3745e9f] arm64: dts: juno: Fix GIC child nodes
git bisect bada78aee9e434932a500db36cc6d88daeff3745e9f
# bad: [feebdc3f7950d7e44e914e821f6c04e58e292c74] arm64: dts: fvp: Move fixed clocks out of bus node
git bisect badfeebdc3f7950d7e44e914e821f6c04e58e292c74
# good: [849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3] arm64: dts: fvp: Move fixed devices out of bus node
git bisect good849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3
# bad: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
git bisect badd9258898ad49cbb46caffe23af0d4f0b766e67a2# first bad commit: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
In reply to Guenter RoeckOn 28/05/2020 03:48, Guenter Roeck wrote:
Hi Guenter,
Quoted 9 lines · Andre Przywara
Quoted 8 lines
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Quoted 6 lines
Quoted 1 line
Signed-off-by Andre Przywara <[email protected]>This patch results in tracebacks when booting the vexpress-a15 machine with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well as the subsequent patches affecting the same file (to avoid revert conflicts) fixes the problem.
Many thanks for the heads up! I was able to reproduce it here. On the first glance it looks like the UART is probed before the clocks now, because the traversal of the changed DT leads to a different probe order. I will look into how to fix this.
Cheers,
Andre
Quoted 74 lines
Guenter
---
[ 12.744248] ------------[ cut here ]------------ [ 12.744562] WARNING: CPU: 0 PID: 20 at drivers/tty/serial/serial_core.c:471 uart_get_baud_rate+0x100/0x154 [ 12.744607] Modules linked in: [ 12.744785] CPU: 0 PID: 20 Comm: kworker/0:1 Not tainted 5.7.0-rc7-next-20200526 #1 [ 12.744818] Hardware name: ARM-Versatile Express [ 12.745021] Workqueue: events amba_deferred_retry_func [ 12.745155] [<c0312484>] (unwind_backtrace) from [<c030c490>] (show_stack+0x10/0x14) [ 12.745206] [<c030c490>] (show_stack) from [<c0880f04>] (dump_stack+0xc8/0xdc) [ 12.745239] [<c0880f04>] (dump_stack) from [<c0346e44>] (__warn+0xdc/0xf4) [ 12.745270] [<c0346e44>] (__warn) from [<c0346f0c>] (warn_slowpath_fmt+0xb0/0xb8) [ 12.745302] [<c0346f0c>] (warn_slowpath_fmt) from [<c0a6b16c>] (uart_get_baud_rate+0x100/0x154) [ 12.745336] [<c0a6b16c>] (uart_get_baud_rate) from [<c0a7f5ac>] (pl011_set_termios+0x48/0x32c) [ 12.745367] [<c0a7f5ac>] (pl011_set_termios) from [<c0a6bbbc>] (uart_set_options+0x124/0x164) [ 12.745404] [<c0a6bbbc>] (uart_set_options) from [<c1b8c804>] (pl011_console_setup+0x214/0x230) [ 12.745438] [<c1b8c804>] (pl011_console_setup) from [<c03ab0d8>] (try_enable_new_console+0x98/0x138) [ 12.745469] [<c03ab0d8>] (try_enable_new_console) from [<c03acc64>] (register_console+0xe8/0x304) [ 12.745499] [<c03acc64>] (register_console) from [<c0a6c88c>] (uart_add_one_port+0x4c0/0x504) [ 12.745529] [<c0a6c88c>] (uart_add_one_port) from [<c0a80404>] (pl011_register_port+0x5c/0xac) [ 12.745568] [<c0a80404>] (pl011_register_port) from [<c097f5a0>] (amba_probe+0x9c/0x110) [ 12.745602] [<c097f5a0>] (amba_probe) from [<c0b57e84>] (really_probe+0x218/0x348) [ 12.745632] [<c0b57e84>] (really_probe) from [<c0b580c0>] (driver_probe_device+0x5c/0xb4) [ 12.745662] [<c0b580c0>] (driver_probe_device) from [<c0b55ff4>] (bus_for_each_drv+0x58/0xb8) [ 12.745692] [<c0b55ff4>] (bus_for_each_drv) from [<c0b57bf8>] (__device_attach+0xd4/0x140) [ 12.745721] [<c0b57bf8>] (__device_attach) from [<c0b56eb0>] (bus_probe_device+0x88/0x90) [ 12.745751] [<c0b56eb0>] (bus_probe_device) from [<c0b53234>] (device_add+0x3d4/0x6e8) [ 12.745782] [<c0b53234>] (device_add) from [<c097f664>] (amba_device_try_add+0x50/0x2d4) [ 12.745812] [<c097f664>] (amba_device_try_add) from [<c097f924>] (amba_deferred_retry+0x3c/0x98) [ 12.745847] [<c097f924>] (amba_deferred_retry) from [<c097f988>] (amba_deferred_retry_func+0x8/0x40) [ 12.745881] [<c097f988>] (amba_deferred_retry_func) from [<c0365b6c>] (process_one_work+0x2b8/0x6e8) [ 12.745912] [<c0365b6c>] (process_one_work) from [<c0365fe0>] (worker_thread+0x44/0x540) [ 12.745942] [<c0365fe0>] (worker_thread) from [<c036d810>] (kthread+0x16c/0x178) [ 12.745973] [<c036d810>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c) [ 12.746041] Exception stack(0xc73abfb0 to 0xc73abff8) [ 12.746181] bfa0: 00000000 00000000 00000000 00000000 [ 12.746302] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 12.746397] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 12.746651] ---[ end trace 2a3f61da56bd8a49 ]------
# bad: [b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8] Add linux-next specific files for 20200526
# good: [9cb1fd0efd195590b828b9b865421ad345a4a145] Linux 5.7-rc7
git bisect start 'next-20200526' 'v5.7-rc7'
# bad: [0c7351ad83670964e48cb9a098ad732c1ecbf804] Merge remote-tracking branch 'crypto/master'
git bisect bad0c7351ad83670964e48cb9a098ad732c1ecbf804
# bad: [42e11d9b4682229fa7187d129758b8c382f8cd5d] Merge remote-tracking branch 'jc_docs/docs-next'
git bisect bad42e11d9b4682229fa7187d129758b8c382f8cd5d
# bad: [ab6f501559e9efa687c711a781243cf6651a82d3] Merge remote-tracking branch 'm68k/for-next'
git bisect badab6f501559e9efa687c711a781243cf6651a82d3
# bad: [44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5] Merge branch 'arm/drivers' into for-next
git bisect bad44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5
# good: [1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f] Merge tag 'qcom-arm64-for-5.8' ofgit://git.kernel.org/pub/scm/linux/kernel/git/qcom/linuxinto arm/dt git bisect good1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f
# bad: [ed0c25932fbfafdfe37e9633dee21770d3c5a306] Merge branch 'arm/defconfig' into for-next
git bisect baded0c25932fbfafdfe37e9633dee21770d3c5a306
# bad: [9eddc06a3bc79402f50176703237ed045ae77b16] Merge branch 'mmp/fixes' into arm/dt
git bisect bad9eddc06a3bc79402f50176703237ed045ae77b16
# bad: [87b990ab62722a8a3cb0691107971ab1bd7bddb5] Merge tag 'mvebu-dt64-5.8-1' ofgit://git.infradead.org/linux-mvebuinto arm/dt git bisect bad87b990ab62722a8a3cb0691107971ab1bd7bddb5
# bad: [94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee] arm64: dts: juno: Fix SCPI shared mem node name
git bisect bad94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee
# bad: [a78aee9e434932a500db36cc6d88daeff3745e9f] arm64: dts: juno: Fix GIC child nodes
git bisect bada78aee9e434932a500db36cc6d88daeff3745e9f
# bad: [feebdc3f7950d7e44e914e821f6c04e58e292c74] arm64: dts: fvp: Move fixed clocks out of bus node
git bisect badfeebdc3f7950d7e44e914e821f6c04e58e292c74
# good: [849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3] arm64: dts: fvp: Move fixed devices out of bus node
git bisect good849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3
# bad: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
git bisect badd9258898ad49cbb46caffe23af0d4f0b766e67a2# first bad commit: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
On 28/05/2020 14:30, André Przywara wrote:
Hi,
Quoted 20 lines · Guenter Roeck
Hi Guenter,
Quoted 9 lines · Andre Przywara
Quoted 8 lines
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Quoted 6 lines
Quoted 1 line
Signed-off-by Andre Przywara <[email protected]>This patch results in tracebacks when booting the vexpress-a15 machine with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well as the subsequent patches affecting the same file (to avoid revert conflicts) fixes the problem.
Quoted 4 lines
Many thanks for the heads up! I was able to reproduce it here. On the first glance it looks like the UART is probed before the clocks now, because the traversal of the changed DT leads to a different probe order. I will look into how to fix this.
Turned out to be a bit more complicated:
The arm,vexpress,config-bus driver walks up the device tree to find a arm,vexpress,site property [1]. With this patch the first parent node with that property it finds is now the root node, with the wrong site ID (0xf instead of 0x0). So it queries the wrong clocks (those IDs are actually reserved there), and QEMU reports back "0", consequently [2]. Finding a clock frequency in the range of [0, 0] won't get very far.
Possible solutions are:
1) Just keep the mcc and its children at where it is in mainline right now, so *partly* reverting this patch. This has the problem of still producing a dtc warning, so kind of defeats the purpose of this patch.
2) Add a "arm,vexpress,site = <0>;" line to the "mcc" node itself. Works, but looks somewhat dodgy, as the mcc node should really be a child of the motherboard node, and we should not hack around this.
3) Dig deeper and fix the DT in a way that makes dtc happy. Might involve (dummy?) ranges or reg properties. My gut feeling is that arm,vexpress-sysreg,func should really have been "reg" in the first place, but that's too late to change now, anyway.
I will post 2) as a fix if 3) turns out to be not feasible.
Cheers,
Andre
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/bus/vexpress-config.c#n46
[2]
https://git.qemu.org/?p=qemu.git;a=blob;f=hw/arm/vexpress.c;hb=HEAD#l404
Quoted 79 lines
Cheers,
AndreQuoted 74 lines
Guenter
---
[ 12.744248] ------------[ cut here ]------------ [ 12.744562] WARNING: CPU: 0 PID: 20 at drivers/tty/serial/serial_core.c:471 uart_get_baud_rate+0x100/0x154 [ 12.744607] Modules linked in: [ 12.744785] CPU: 0 PID: 20 Comm: kworker/0:1 Not tainted 5.7.0-rc7-next-20200526 #1 [ 12.744818] Hardware name: ARM-Versatile Express [ 12.745021] Workqueue: events amba_deferred_retry_func [ 12.745155] [<c0312484>] (unwind_backtrace) from [<c030c490>] (show_stack+0x10/0x14) [ 12.745206] [<c030c490>] (show_stack) from [<c0880f04>] (dump_stack+0xc8/0xdc) [ 12.745239] [<c0880f04>] (dump_stack) from [<c0346e44>] (__warn+0xdc/0xf4) [ 12.745270] [<c0346e44>] (__warn) from [<c0346f0c>] (warn_slowpath_fmt+0xb0/0xb8) [ 12.745302] [<c0346f0c>] (warn_slowpath_fmt) from [<c0a6b16c>] (uart_get_baud_rate+0x100/0x154) [ 12.745336] [<c0a6b16c>] (uart_get_baud_rate) from [<c0a7f5ac>] (pl011_set_termios+0x48/0x32c) [ 12.745367] [<c0a7f5ac>] (pl011_set_termios) from [<c0a6bbbc>] (uart_set_options+0x124/0x164) [ 12.745404] [<c0a6bbbc>] (uart_set_options) from [<c1b8c804>] (pl011_console_setup+0x214/0x230) [ 12.745438] [<c1b8c804>] (pl011_console_setup) from [<c03ab0d8>] (try_enable_new_console+0x98/0x138) [ 12.745469] [<c03ab0d8>] (try_enable_new_console) from [<c03acc64>] (register_console+0xe8/0x304) [ 12.745499] [<c03acc64>] (register_console) from [<c0a6c88c>] (uart_add_one_port+0x4c0/0x504) [ 12.745529] [<c0a6c88c>] (uart_add_one_port) from [<c0a80404>] (pl011_register_port+0x5c/0xac) [ 12.745568] [<c0a80404>] (pl011_register_port) from [<c097f5a0>] (amba_probe+0x9c/0x110) [ 12.745602] [<c097f5a0>] (amba_probe) from [<c0b57e84>] (really_probe+0x218/0x348) [ 12.745632] [<c0b57e84>] (really_probe) from [<c0b580c0>] (driver_probe_device+0x5c/0xb4) [ 12.745662] [<c0b580c0>] (driver_probe_device) from [<c0b55ff4>] (bus_for_each_drv+0x58/0xb8) [ 12.745692] [<c0b55ff4>] (bus_for_each_drv) from [<c0b57bf8>] (__device_attach+0xd4/0x140) [ 12.745721] [<c0b57bf8>] (__device_attach) from [<c0b56eb0>] (bus_probe_device+0x88/0x90) [ 12.745751] [<c0b56eb0>] (bus_probe_device) from [<c0b53234>] (device_add+0x3d4/0x6e8) [ 12.745782] [<c0b53234>] (device_add) from [<c097f664>] (amba_device_try_add+0x50/0x2d4) [ 12.745812] [<c097f664>] (amba_device_try_add) from [<c097f924>] (amba_deferred_retry+0x3c/0x98) [ 12.745847] [<c097f924>] (amba_deferred_retry) from [<c097f988>] (amba_deferred_retry_func+0x8/0x40) [ 12.745881] [<c097f988>] (amba_deferred_retry_func) from [<c0365b6c>] (process_one_work+0x2b8/0x6e8) [ 12.745912] [<c0365b6c>] (process_one_work) from [<c0365fe0>] (worker_thread+0x44/0x540) [ 12.745942] [<c0365fe0>] (worker_thread) from [<c036d810>] (kthread+0x16c/0x178) [ 12.745973] [<c036d810>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c) [ 12.746041] Exception stack(0xc73abfb0 to 0xc73abff8) [ 12.746181] bfa0: 00000000 00000000 00000000 00000000 [ 12.746302] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 12.746397] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 12.746651] ---[ end trace 2a3f61da56bd8a49 ]------
# bad: [b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8] Add linux-next specific files for 20200526
# good: [9cb1fd0efd195590b828b9b865421ad345a4a145] Linux 5.7-rc7
git bisect start 'next-20200526' 'v5.7-rc7'
# bad: [0c7351ad83670964e48cb9a098ad732c1ecbf804] Merge remote-tracking branch 'crypto/master'
git bisect bad0c7351ad83670964e48cb9a098ad732c1ecbf804
# bad: [42e11d9b4682229fa7187d129758b8c382f8cd5d] Merge remote-tracking branch 'jc_docs/docs-next'
git bisect bad42e11d9b4682229fa7187d129758b8c382f8cd5d
# bad: [ab6f501559e9efa687c711a781243cf6651a82d3] Merge remote-tracking branch 'm68k/for-next'
git bisect badab6f501559e9efa687c711a781243cf6651a82d3
# bad: [44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5] Merge branch 'arm/drivers' into for-next
git bisect bad44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5
# good: [1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f] Merge tag 'qcom-arm64-for-5.8' ofgit://git.kernel.org/pub/scm/linux/kernel/git/qcom/linuxinto arm/dt git bisect good1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f
# bad: [ed0c25932fbfafdfe37e9633dee21770d3c5a306] Merge branch 'arm/defconfig' into for-next
git bisect baded0c25932fbfafdfe37e9633dee21770d3c5a306
# bad: [9eddc06a3bc79402f50176703237ed045ae77b16] Merge branch 'mmp/fixes' into arm/dt
git bisect bad9eddc06a3bc79402f50176703237ed045ae77b16
# bad: [87b990ab62722a8a3cb0691107971ab1bd7bddb5] Merge tag 'mvebu-dt64-5.8-1' ofgit://git.infradead.org/linux-mvebuinto arm/dt git bisect bad87b990ab62722a8a3cb0691107971ab1bd7bddb5
# bad: [94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee] arm64: dts: juno: Fix SCPI shared mem node name
git bisect bad94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee
# bad: [a78aee9e434932a500db36cc6d88daeff3745e9f] arm64: dts: juno: Fix GIC child nodes
git bisect bada78aee9e434932a500db36cc6d88daeff3745e9f
# bad: [feebdc3f7950d7e44e914e821f6c04e58e292c74] arm64: dts: fvp: Move fixed clocks out of bus node
git bisect badfeebdc3f7950d7e44e914e821f6c04e58e292c74
# good: [849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3] arm64: dts: fvp: Move fixed devices out of bus node
git bisect good849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3
# bad: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
git bisect badd9258898ad49cbb46caffe23af0d4f0b766e67a2# first bad commit: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
Rob Herring
maintainerRe: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
Quoted 47 lines · André Przywara
On 28/05/2020 14:30, André Przywara wrote:
Hi,
Quoted 20 lines · Guenter Roeck
Hi Guenter,
Quoted 9 lines · Andre Przywara
Quoted 8 lines
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Quoted 6 lines
Quoted 1 line
Signed-off-by Andre Przywara <[email protected]>This patch results in tracebacks when booting the vexpress-a15 machine with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well as the subsequent patches affecting the same file (to avoid revert conflicts) fixes the problem.
Quoted 4 lines
Many thanks for the heads up! I was able to reproduce it here. On the first glance it looks like the UART is probed before the clocks now, because the traversal of the changed DT leads to a different probe order. I will look into how to fix this.
Turned out to be a bit more complicated:
The arm,vexpress,config-bus driver walks up the device tree to find a arm,vexpress,site property [1]. With this patch the first parent node with that property it finds is now the root node, with the wrong site ID (0xfinstead of0x0). So it queries the wrong clocks (those IDs are actually reserved there), and QEMU reports back "0", consequently [2]. Finding a clock frequency in the range of [0, 0] won't get very far.Possible solutions are:
1) Just keep the mcc and its children at where it is in mainline right now, so *partly* reverting this patch. This has the problem of still producing a dtc warning, so kind of defeats the purpose of this patch.2) Add a "arm,vexpress,site = <0>;" line to the "mcc" node itself. Works, but looks somewhat dodgy, as the mcc node should really be a child of the motherboard node, and we should not hack around this.
Quoted 6 lines
3) Dig deeper and fix the DT in a way that makes dtc happy. Might involve (dummy?) ranges or reg properties. My gut feeling is that arm,vexpress-sysreg,func should really have been "reg" in the first place, but that's too late to change now, anyway.
I will post 2) as a fix if 3) turns out to be not feasible.
I would just do 1).
To some extent, the warnings are for avoiding poor design on new bindings. We need a way to distinguish between existing boards and new ones. Maybe dts needs to learn some warning disable annotations or we need per target warning settings (DTC_FLAGS_foo.dtb ?). Or maybe this check is just too strict.
Rob
Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
On 02/06/2020 00:12, Rob Herring wrote:
Hi,
Quoted 55 lines · André Przywara
Quoted 47 lines · André Przywara
Hi,
Quoted 20 lines · Guenter Roeck
Hi Guenter,
Quoted 9 lines · Andre Przywara
Quoted 8 lines
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Quoted 6 lines
Quoted 1 line
Signed-off-by Andre Przywara <[email protected]>This patch results in tracebacks when booting the vexpress-a15 machine with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well as the subsequent patches affecting the same file (to avoid revert conflicts) fixes the problem.
Quoted 4 lines
Many thanks for the heads up! I was able to reproduce it here. On the first glance it looks like the UART is probed before the clocks now, because the traversal of the changed DT leads to a different probe order. I will look into how to fix this.
Turned out to be a bit more complicated:
The arm,vexpress,config-bus driver walks up the device tree to find a arm,vexpress,site property [1]. With this patch the first parent node with that property it finds is now the root node, with the wrong site ID (0xfinstead of0x0). So it queries the wrong clocks (those IDs are actually reserved there), and QEMU reports back "0", consequently [2]. Finding a clock frequency in the range of [0, 0] won't get very far.Possible solutions are:
1) Just keep the mcc and its children at where it is in mainline right now, so *partly* reverting this patch. This has the problem of still producing a dtc warning, so kind of defeats the purpose of this patch.2) Add a "arm,vexpress,site = <0>;" line to the "mcc" node itself. Works, but looks somewhat dodgy, as the mcc node should really be a child of the motherboard node, and we should not hack around this.
Quoted 6 lines
3) Dig deeper and fix the DT in a way that makes dtc happy. Might involve (dummy?) ranges or reg properties. My gut feeling is that arm,vexpress-sysreg,func should really have been "reg" in the first place, but that's too late to change now, anyway.
I will post 2) as a fix if 3) turns out to be not feasible.
Quoted 7 lines
I would just do 1).
To some extent, the warnings are for avoiding poor design on new bindings. We need a way to distinguish between existing boards and new ones. Maybe dts needs to learn some warning disable annotations or we need per target warning settings (DTC_FLAGS_foo.dtb ?). Or maybe this check is just too strict.
So I was always wondering about this check, actually. A simple-bus describes a bus which is mapped into the CPU address space (in contrast to say an I2C bus, for instance). So children of this bus node typically have a reg property.
Now also those simple-bus nodes seem to be used to logically group hardware in a DT (see this "motherboard" node here). *If* we go with this, we should also allow other subnodes, for instance fixed-clocks:
after all there is probably an actual fixed crystal oscillator on the motherboard, so it would also belong in there.
I see that (ab)using simple-bus for *just* grouping nodes is probably not a good design, but I don't see why *every* child must be mapped into the address space.
Maybe dtc's simple-bus check should indeed be relaxed, to just require *at least one* child with a reg or ranges property, but also allow other nodes?
Cheers,
Andre
Rob Herring
maintainerRe: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
Quoted 73 lines · André Przywara
On 02/06/2020 00:12, Rob Herring wrote:
Hi,
Quoted 55 lines · André Przywara
Quoted 47 lines · André Przywara
Hi,
Quoted 20 lines · Guenter Roeck
Hi Guenter,
Quoted 9 lines · Andre Przywara
Quoted 8 lines
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Quoted 6 lines
Quoted 1 line
Signed-off-by Andre Przywara <[email protected]>This patch results in tracebacks when booting the vexpress-a15 machine with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well as the subsequent patches affecting the same file (to avoid revert conflicts) fixes the problem.
Quoted 4 lines
Many thanks for the heads up! I was able to reproduce it here. On the first glance it looks like the UART is probed before the clocks now, because the traversal of the changed DT leads to a different probe order. I will look into how to fix this.
Turned out to be a bit more complicated:
The arm,vexpress,config-bus driver walks up the device tree to find a arm,vexpress,site property [1]. With this patch the first parent node with that property it finds is now the root node, with the wrong site ID (0xfinstead of0x0). So it queries the wrong clocks (those IDs are actually reserved there), and QEMU reports back "0", consequently [2]. Finding a clock frequency in the range of [0, 0] won't get very far.Possible solutions are:
1) Just keep the mcc and its children at where it is in mainline right now, so *partly* reverting this patch. This has the problem of still producing a dtc warning, so kind of defeats the purpose of this patch.2) Add a "arm,vexpress,site = <0>;" line to the "mcc" node itself. Works, but looks somewhat dodgy, as the mcc node should really be a child of the motherboard node, and we should not hack around this.
Quoted 6 lines
3) Dig deeper and fix the DT in a way that makes dtc happy. Might involve (dummy?) ranges or reg properties. My gut feeling is that arm,vexpress-sysreg,func should really have been "reg" in the first place, but that's too late to change now, anyway.
I will post 2) as a fix if 3) turns out to be not feasible.
Quoted 7 lines
I would just do 1).
To some extent, the warnings are for avoiding poor design on new bindings. We need a way to distinguish between existing boards and new ones. Maybe dts needs to learn some warning disable annotations or we need per target warning settings (DTC_FLAGS_foo.dtb ?). Or maybe this check is just too strict.
So I was always wondering about this check, actually. A simple-bus describes a bus which is mapped into the CPU address space (in contrast to say an I2C bus, for instance). So children of this bus node typically have a reg property.
Quoted 5 lines
Now also those simple-bus nodes seem to be used to logically group hardware in a DT (see this "motherboard" node here). *If* we go with this, we should also allow other subnodes, for instance fixed-clocks:
after all there is probably an actual fixed crystal oscillator on the motherboard, so it would also belong in there.
Yes, that's probably right. We'd want things grouped if this was something applied as an overlay.
Quoted 7 lines
I see that (ab)using simple-bus for *just* grouping nodes is probably not a good design, but I don't see why *every* child must be mapped into the address space.
Maybe dtc's simple-bus check should indeed be relaxed, to just require *at least one* child with a reg or ranges property, but also allow other nodes?
It's made you think about the proper location, so it's accomplished its goal. Maybe this is one that's not without false positives. It would be good to distinguish between what's for sure a warning and what's maybe a warning as just blindly fixing the warning is not the answer.
Rob
Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
In reply to Guenter RoeckQuoted 18 lines · Guenter Roeck
Quoted 9 lines · Guenter Roeck
Quoted 8 lines · Andre Przywara
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node:
Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
missing or empty reg/ranges propertyMove the fixed clocks, the fixed regulator, the leds and the config bus subtree to the root node, since they do not depend on any busses.
Quoted 7 lines
Quoted 1 line
Signed-off-by Andre Przywara <[email protected]>This patch results in tracebacks when booting the vexpress-a15 machine with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well as the subsequent patches affecting the same file (to avoid revert conflicts) fixes the problem.
Quoted 7 lines
On top of that, there is this message:
[ 19.817986] vexpress-reset mcc:reboot: Unable to restart (-14) [ 20.818315] Reboot failed -- System haltedwhich also disappears after the patches have been reverted.
The problem reported below is still seen in the mainline kernel.
Quoted 7 lines
Here is my list of reverts on top of next-20200526:
bdc8a817612b(HEAD -> master) Revert "arm64: dts: vexpress: Move fixed devices out of bus node"9a1f85df9e1aRevert "arm64: dts: fvp/juno: Fix serial node names"381e0bbe8c00Revert "arm64: dts: fvp/juno: Fix bus node names"63723f67bf4bRevert "arm64: dts: vexpress: Fix VExpress LED names"
Maybe all those patches should be reverted if no fix is in sight ?
Guenter
Quoted 75 lines
Guenter
Quoted 73 lines
Guenter
---
[ 12.744248] ------------[ cut here ]------------ [ 12.744562] WARNING: CPU: 0 PID: 20 at drivers/tty/serial/serial_core.c:471 uart_get_baud_rate+0x100/0x154 [ 12.744607] Modules linked in: [ 12.744785] CPU: 0 PID: 20 Comm: kworker/0:1 Not tainted 5.7.0-rc7-next-20200526 #1 [ 12.744818] Hardware name: ARM-Versatile Express [ 12.745021] Workqueue: events amba_deferred_retry_func [ 12.745155] [<c0312484>] (unwind_backtrace) from [<c030c490>] (show_stack+0x10/0x14) [ 12.745206] [<c030c490>] (show_stack) from [<c0880f04>] (dump_stack+0xc8/0xdc) [ 12.745239] [<c0880f04>] (dump_stack) from [<c0346e44>] (__warn+0xdc/0xf4) [ 12.745270] [<c0346e44>] (__warn) from [<c0346f0c>] (warn_slowpath_fmt+0xb0/0xb8) [ 12.745302] [<c0346f0c>] (warn_slowpath_fmt) from [<c0a6b16c>] (uart_get_baud_rate+0x100/0x154) [ 12.745336] [<c0a6b16c>] (uart_get_baud_rate) from [<c0a7f5ac>] (pl011_set_termios+0x48/0x32c) [ 12.745367] [<c0a7f5ac>] (pl011_set_termios) from [<c0a6bbbc>] (uart_set_options+0x124/0x164) [ 12.745404] [<c0a6bbbc>] (uart_set_options) from [<c1b8c804>] (pl011_console_setup+0x214/0x230) [ 12.745438] [<c1b8c804>] (pl011_console_setup) from [<c03ab0d8>] (try_enable_new_console+0x98/0x138) [ 12.745469] [<c03ab0d8>] (try_enable_new_console) from [<c03acc64>] (register_console+0xe8/0x304) [ 12.745499] [<c03acc64>] (register_console) from [<c0a6c88c>] (uart_add_one_port+0x4c0/0x504) [ 12.745529] [<c0a6c88c>] (uart_add_one_port) from [<c0a80404>] (pl011_register_port+0x5c/0xac) [ 12.745568] [<c0a80404>] (pl011_register_port) from [<c097f5a0>] (amba_probe+0x9c/0x110) [ 12.745602] [<c097f5a0>] (amba_probe) from [<c0b57e84>] (really_probe+0x218/0x348) [ 12.745632] [<c0b57e84>] (really_probe) from [<c0b580c0>] (driver_probe_device+0x5c/0xb4) [ 12.745662] [<c0b580c0>] (driver_probe_device) from [<c0b55ff4>] (bus_for_each_drv+0x58/0xb8) [ 12.745692] [<c0b55ff4>] (bus_for_each_drv) from [<c0b57bf8>] (__device_attach+0xd4/0x140) [ 12.745721] [<c0b57bf8>] (__device_attach) from [<c0b56eb0>] (bus_probe_device+0x88/0x90) [ 12.745751] [<c0b56eb0>] (bus_probe_device) from [<c0b53234>] (device_add+0x3d4/0x6e8) [ 12.745782] [<c0b53234>] (device_add) from [<c097f664>] (amba_device_try_add+0x50/0x2d4) [ 12.745812] [<c097f664>] (amba_device_try_add) from [<c097f924>] (amba_deferred_retry+0x3c/0x98) [ 12.745847] [<c097f924>] (amba_deferred_retry) from [<c097f988>] (amba_deferred_retry_func+0x8/0x40) [ 12.745881] [<c097f988>] (amba_deferred_retry_func) from [<c0365b6c>] (process_one_work+0x2b8/0x6e8) [ 12.745912] [<c0365b6c>] (process_one_work) from [<c0365fe0>] (worker_thread+0x44/0x540) [ 12.745942] [<c0365fe0>] (worker_thread) from [<c036d810>] (kthread+0x16c/0x178) [ 12.745973] [<c036d810>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c) [ 12.746041] Exception stack(0xc73abfb0 to 0xc73abff8) [ 12.746181] bfa0: 00000000 00000000 00000000 00000000 [ 12.746302] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 12.746397] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 12.746651] ---[ end trace 2a3f61da56bd8a49 ]------
# bad: [b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8] Add linux-next specific files for 20200526
# good: [9cb1fd0efd195590b828b9b865421ad345a4a145] Linux 5.7-rc7
git bisect start 'next-20200526' 'v5.7-rc7'
# bad: [0c7351ad83670964e48cb9a098ad732c1ecbf804] Merge remote-tracking branch 'crypto/master'
git bisect bad0c7351ad83670964e48cb9a098ad732c1ecbf804
# bad: [42e11d9b4682229fa7187d129758b8c382f8cd5d] Merge remote-tracking branch 'jc_docs/docs-next'
git bisect bad42e11d9b4682229fa7187d129758b8c382f8cd5d
# bad: [ab6f501559e9efa687c711a781243cf6651a82d3] Merge remote-tracking branch 'm68k/for-next'
git bisect badab6f501559e9efa687c711a781243cf6651a82d3
# bad: [44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5] Merge branch 'arm/drivers' into for-next
git bisect bad44aaa516ca63b3ab2da8ae81e9c6a58656e6acb5
# good: [1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f] Merge tag 'qcom-arm64-for-5.8' ofgit://git.kernel.org/pub/scm/linux/kernel/git/qcom/linuxinto arm/dt git bisect good1cb00f8c3b36e6ae026fb58d1cd2ccd78b81aa9f
# bad: [ed0c25932fbfafdfe37e9633dee21770d3c5a306] Merge branch 'arm/defconfig' into for-next
git bisect baded0c25932fbfafdfe37e9633dee21770d3c5a306
# bad: [9eddc06a3bc79402f50176703237ed045ae77b16] Merge branch 'mmp/fixes' into arm/dt
git bisect bad9eddc06a3bc79402f50176703237ed045ae77b16
# bad: [87b990ab62722a8a3cb0691107971ab1bd7bddb5] Merge tag 'mvebu-dt64-5.8-1' ofgit://git.infradead.org/linux-mvebuinto arm/dt git bisect bad87b990ab62722a8a3cb0691107971ab1bd7bddb5
# bad: [94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee] arm64: dts: juno: Fix SCPI shared mem node name
git bisect bad94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee
# bad: [a78aee9e434932a500db36cc6d88daeff3745e9f] arm64: dts: juno: Fix GIC child nodes
git bisect bada78aee9e434932a500db36cc6d88daeff3745e9f
# bad: [feebdc3f7950d7e44e914e821f6c04e58e292c74] arm64: dts: fvp: Move fixed clocks out of bus node
git bisect badfeebdc3f7950d7e44e914e821f6c04e58e292c74
# good: [849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3] arm64: dts: fvp: Move fixed devices out of bus node
git bisect good849bfc3dfc13cde6ec04fbcf32af553ded9f7ec3
# bad: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
git bisect badd9258898ad49cbb46caffe23af0d4f0b766e67a2# first bad commit: [d9258898ad49cbb46caffe23af0d4f0b766e67a2] arm64: dts: vexpress: Move fixed devices out of bus node
Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
Quoted 5 lines · Guenter Roeck
The problem reported below is still seen in the mainline kernel.
Quoted 2 lines
Here is my list of reverts on top of next-20200526:
Quoted 8 lines
Quoted 5 lines
bdc8a817612b(HEAD -> master) Revert "arm64: dts: vexpress: Move fixed devices out of bus node"9a1f85df9e1aRevert "arm64: dts: fvp/juno: Fix serial node names"381e0bbe8c00Revert "arm64: dts: fvp/juno: Fix bus node names"63723f67bf4bRevert "arm64: dts: vexpress: Fix VExpress LED names"Maybe all those patches should be reverted if no fix is in sight ?
I have pushed the fix to -next already more than 2 weeks ago and sent the pull request to Arm SoC team. I see it just landed in main over the weekend. Arm SoC team tend to wait until enough fixes get accumulate.
--
Regards,
Sudeep
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel