ARM: dts: vt8500: Minor fixups and L2 cache on WM8850
Subsystems (2)
Alexey Charkov
maintainerv2 cover ARM: dts: vt8500: Minor fixups and L2 cache on WM8850
Small fixups for VT8500 related device trees to improve correctness in light of current guidelines.
While at that, also include a DT node for the PL310 cache controller present in WM8850/WM8950.
---
Alexey Charkov (5):
ARM: dts: vt8500: Add node address and reg in CPU nodes
ARM: dts: vt8500: Move memory nodes to board dts and fix addr/size
ARM: dts: vt8500: Use generic node name for the SD/MMC controller
ARM: dts: vt8500: Fix the unit address of the VT8500 LCD controller
ARM: dts: vt8500: Add L2 cache controller on WM8850/WM8950
arch/arm/boot/dts/vt8500/vt8500-bv07.dts | 5 +++++ arch/arm/boot/dts/vt8500/vt8500.dtsi | 12 ++++-------- arch/arm/boot/dts/vt8500/wm8505-ref.dts | 5 +++++ arch/arm/boot/dts/vt8500/wm8505.dtsi | 12 ++++-------- arch/arm/boot/dts/vt8500/wm8650-mid.dts | 5 +++++ arch/arm/boot/dts/vt8500/wm8650.dtsi | 12 ++++-------- arch/arm/boot/dts/vt8500/wm8750-apc8750.dts | 5 +++++ arch/arm/boot/dts/vt8500/wm8750.dtsi | 12 ++++-------- arch/arm/boot/dts/vt8500/wm8850-w70v2.dts | 5 +++++ arch/arm/boot/dts/vt8500/wm8850.dtsi | 21 +++++++++++++++------ 10 files changed, 56 insertions(+), 38 deletions(-)
---
base-commit: 484803582c77061b470ac64a634f25f89715be3f
change-id: 20250425-wmt-dts-updates-e457813cecfb
Best regards,
Signature · 1 line
Alexey Charkov <[email protected]>
Alexey Charkov
maintainerPATCH v2 1/5 ARM: dts: vt8500: Add node address and reg in CPU nodes
Adjust CPU nodes according to current guidelines, including address and reg. Set #address-cells accordingly.
--- arch/arm/boot/dts/vt8500/vt8500.dtsi | 5 +++-- arch/arm/boot/dts/vt8500/wm8505.dtsi | 5 +++-- arch/arm/boot/dts/vt8500/wm8650.dtsi | 5 +++-- arch/arm/boot/dts/vt8500/wm8750.dtsi | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-)
arch/arm/boot/dts/vt8500/vt8500.dtsi +3 -2
@@ -11,12 +11,13 @@ / { compatible = "via,vt8500"; cpus { - #address-cells = <0>; + #address-cells = <1>; #size-cells = <0>; - cpu { + cpu@0 { device_type = "cpu"; compatible = "arm,arm926ej-s"; + reg = <0x0>; }; };
arch/arm/boot/dts/vt8500/wm8505.dtsi +3 -2
@@ -11,12 +11,13 @@ / { compatible = "wm,wm8505"; cpus { - #address-cells = <0>; + #address-cells = <1>; #size-cells = <0>; - cpu { + cpu@0 { device_type = "cpu"; compatible = "arm,arm926ej-s"; + reg = <0x0>; }; };
arch/arm/boot/dts/vt8500/wm8650.dtsi +3 -2
@@ -11,12 +11,13 @@ / { compatible = "wm,wm8650"; cpus { - #address-cells = <0>; + #address-cells = <1>; #size-cells = <0>; - cpu { + cpu@0 { device_type = "cpu"; compatible = "arm,arm926ej-s"; + reg = <0x0>; }; };
arch/arm/boot/dts/vt8500/wm8750.dtsi +3 -2
@@ -11,12 +11,13 @@ / { compatible = "wm,wm8750"; cpus { - #address-cells = <0>; + #address-cells = <1>; #size-cells = <0>; - cpu { + cpu@0 { device_type = "cpu"; compatible = "arm,arm1176jzf"; + reg = <0x0>; }; };
Signature · 1 line
2.49.0
Alexey Charkov
maintainerPATCH v2 2/5 ARM: dts: vt8500: Move memory nodes to board dts and fix addr/size
In reply to Alexey CharkovVIA/WonderMedia SoCs don't have on-chip memory, so their memory nodes are better placed in per-board dts rather than per-SoC dtsi.
Move them accordingly, and also add correct node addresses and sizes for each of the boards. Some boards were also available with more memory than included in this commit - those would need a separate DT or an appropriate kernel cmdline argument to reflect it, as the bootloader on these devices doesn't handle DT at all nor does it any runtime discovery of available memory size.
--- arch/arm/boot/dts/vt8500/vt8500-bv07.dts | 5 +++++ arch/arm/boot/dts/vt8500/vt8500.dtsi | 5 ----- arch/arm/boot/dts/vt8500/wm8505-ref.dts | 5 +++++ arch/arm/boot/dts/vt8500/wm8505.dtsi | 5 ----- arch/arm/boot/dts/vt8500/wm8650-mid.dts | 5 +++++ arch/arm/boot/dts/vt8500/wm8650.dtsi | 5 ----- arch/arm/boot/dts/vt8500/wm8750-apc8750.dts | 5 +++++ arch/arm/boot/dts/vt8500/wm8750.dtsi | 5 ----- arch/arm/boot/dts/vt8500/wm8850-w70v2.dts | 5 +++++ arch/arm/boot/dts/vt8500/wm8850.dtsi | 5 ----- 10 files changed, 25 insertions(+), 25 deletions(-)
arch/arm/boot/dts/vt8500/vt8500-bv07.dts +5 -0
@@ -10,6 +10,11 @@ / { model = "Benign BV07 Netbook"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; }; &fb {
arch/arm/boot/dts/vt8500/vt8500.dtsi +0 -5
@@ -21,11 +21,6 @@ cpu@0 { }; }; - memory { - device_type = "memory"; - reg = <0x0 0x0>; - }; - aliases { serial0 = &uart0; serial1 = &uart1;
arch/arm/boot/dts/vt8500/wm8505-ref.dts +5 -0
@@ -10,6 +10,11 @@ / { model = "Wondermedia WM8505 Netbook"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x8000000>; + }; }; &fb {
arch/arm/boot/dts/vt8500/wm8505.dtsi +0 -5
@@ -21,11 +21,6 @@ cpu@0 { }; }; - memory { - device_type = "memory"; - reg = <0x0 0x0>; - }; - aliases { serial0 = &uart0; serial1 = &uart1;
arch/arm/boot/dts/vt8500/wm8650-mid.dts +5 -0
@@ -10,6 +10,11 @@ / { model = "Wondermedia WM8650-MID Tablet"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x10000000>; + }; }; &fb {
arch/arm/boot/dts/vt8500/wm8650.dtsi +0 -5
@@ -21,11 +21,6 @@ cpu@0 { }; }; - memory { - device_type = "memory"; - reg = <0x0 0x0>; - }; - aliases { serial0 = &uart0; serial1 = &uart1;
arch/arm/boot/dts/vt8500/wm8750-apc8750.dts +5 -0
@@ -11,6 +11,11 @@ / { model = "VIA APC8750"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x20000000>; + }; }; &pinctrl {
arch/arm/boot/dts/vt8500/wm8750.dtsi +0 -5
@@ -21,11 +21,6 @@ cpu@0 { }; }; - memory { - device_type = "memory"; - reg = <0x0 0x0>; - }; - aliases { serial0 = &uart0; serial1 = &uart1;
arch/arm/boot/dts/vt8500/wm8850-w70v2.dts +5 -0
@@ -22,6 +22,11 @@ backlight { brightness-levels = <0 40 60 80 100 130 190 255>; default-brightness-level = <5>; }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x20000000>; + }; }; &fb {
arch/arm/boot/dts/vt8500/wm8850.dtsi +0 -5
@@ -21,11 +21,6 @@ cpu@0 { }; }; - memory { - device_type = "memory"; - reg = <0x0 0x0>; - }; - aliases { serial0 = &uart0; serial1 = &uart1;
Signature · 1 line
2.49.0
Alexey Charkov
maintainerPATCH v2 3/5 ARM: dts: vt8500: Use generic node name for the SD/MMC controller
In reply to Alexey CharkovCurrent guidelines recommend mmc@ node names, so use that instead.
--- arch/arm/boot/dts/vt8500/wm8505.dtsi | 2 +- arch/arm/boot/dts/vt8500/wm8650.dtsi | 2 +- arch/arm/boot/dts/vt8500/wm8750.dtsi | 2 +- arch/arm/boot/dts/vt8500/wm8850.dtsi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/vt8500/wm8505.dtsi +1 -1
@@ -284,7 +284,7 @@ rtc@d8100000 { interrupts = <48>; }; - sdhc@d800a000 { + mmc@d800a000 { compatible = "wm,wm8505-sdhc"; reg = <0xd800a000 0x400>; interrupts = <20>, <21>;
arch/arm/boot/dts/vt8500/wm8650.dtsi +1 -1
@@ -192,7 +192,7 @@ usb@d8007b00 { interrupts = <43>; }; - sdhc@d800a000 { + mmc@d800a000 { compatible = "wm,wm8505-sdhc"; reg = <0xd800a000 0x400>; interrupts = <20>, <21>;
arch/arm/boot/dts/vt8500/wm8750.dtsi +1 -1
@@ -324,7 +324,7 @@ rtc@d8100000 { interrupts = <48>; }; - sdhc@d800a000 { + mmc@d800a000 { compatible = "wm,wm8505-sdhc"; reg = <0xd800a000 0x1000>; interrupts = <20 21>;
arch/arm/boot/dts/vt8500/wm8850.dtsi +1 -1
@@ -294,7 +294,7 @@ rtc@d8100000 { interrupts = <48>; }; - sdhc@d800a000 { + mmc@d800a000 { compatible = "wm,wm8505-sdhc"; reg = <0xd800a000 0x1000>; interrupts = <20 21>;
Signature · 1 line
2.49.0
Alexey Charkov
maintainerPATCH v2 4/5 ARM: dts: vt8500: Fix the unit address of the VT8500 LCD controller
In reply to Alexey CharkovSet correct unit address of d800e400 for the via,vt8500-fb node in vt8500.dtsi. Note that the reg property contained a correct address, so it must have been a copy and paste error earlier.
While here, also update its node name to a generic one.
--- arch/arm/boot/dts/vt8500/vt8500.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/vt8500/vt8500.dtsi +1 -1
@@ -122,7 +122,7 @@ usb@d8007b00 { interrupts = <43>; }; - fb: fb@d8050800 { + fb: lcd-controller@d800e400 { compatible = "via,vt8500-fb"; reg = <0xd800e400 0x400>; interrupts = <12>;
Signature · 1 line
2.49.0
Alexey Charkov
maintainerPATCH v2 5/5 ARM: dts: vt8500: Add L2 cache controller on WM8850/WM8950
In reply to Alexey CharkovWonderMedia WM8850/WM8950 uses an ARM PL310 cache controller for its L2 cache, add it.
The parameters have been deduced from vendor's U-boot environment variables, which the downstream code uses to initialize the controller. They set the following register values:
aux = 0x3e440000prefetch_ctrl = 0x70000007
Their initialization code also unconditionally sets the flags L2X0_DYNAMIC_CLK_GATING_EN | L2X0_STNDBY_MODE_EN, so encode those too
--- arch/arm/boot/dts/vt8500/wm8850.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/vt8500/wm8850.dtsi +14 -0
@@ -18,6 +18,7 @@ cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0x0>; + next-level-cache = <&l2_cache>; }; };
@@ -308,5 +309,18 @@ ethernet@d8004000 { reg = <0xd8004000 0x100>; interrupts = <10>; }; + + l2_cache: cache-controller@d9000000 { + compatible = "arm,pl310-cache"; + reg = <0xd9000000 0x1000>; + arm,double-linefill = <1>; + arm,dynamic-clock-gating = <1>; + arm,shared-override; + arm,standby-mode = <1>; + cache-level = <2>; + cache-unified; + prefetch-data = <1>; + prefetch-instr = <1>; + }; }; };
Signature · 1 line
2.49.0
Alexey Charkov
maintainerQuoted 7 lines · Alexey Charkov
Small fixups for VT8500 related device trees to improve correctness in light of current guidelines.
While at that, also include a DT node for the PL310 cache controller present in WM8850/WM8950.
Quoted 8 lines
Signed-off-by Alexey Charkov <[email protected]>---
Alexey Charkov (5):
ARM: dts: vt8500: Add node address and reg in CPU nodes
ARM: dts: vt8500: Move memory nodes to board dts and fix addr/size
ARM: dts: vt8500: Use generic node name for the SD/MMC controller
ARM: dts: vt8500: Fix the unit address of the VT8500 LCD controller
ARM: dts: vt8500: Add L2 cache controller on WM8850/WM8950
Krzysztof, could you please pick these up for 6.16?
No big deal here, but W=1 builds and DTBS_CHECK become somewhat happier.
Thanks a lot,
Alexey
Krzysztof Kozlowski
maintainerQuoted 17 lines · Alexey Charkov
Quoted 7 lines · Alexey Charkov
Small fixups for VT8500 related device trees to improve correctness in light of current guidelines.
While at that, also include a DT node for the PL310 cache controller present in WM8850/WM8950.
Quoted 8 lines
Signed-off-by Alexey Charkov <[email protected]>---
Alexey Charkov (5):
ARM: dts: vt8500: Add node address and reg in CPU nodes
ARM: dts: vt8500: Move memory nodes to board dts and fix addr/size
ARM: dts: vt8500: Use generic node name for the SD/MMC controller
ARM: dts: vt8500: Fix the unit address of the VT8500 LCD controller
ARM: dts: vt8500: Add L2 cache controller on WM8850/WM8950
Quoted 1 line
Krzysztof, could you please pick these up for 6.16?
No, we are at RC7. I closed my tree two weeks ago and sent pull requests already way too late - a week ago.
Best regards,
Krzysztof
Alexey Charkov
maintainerQuoted 19 lines · Krzysztof Kozlowski
Quoted 17 lines · Alexey Charkov
Quoted 15 lines · Alexey Charkov
Small fixups for VT8500 related device trees to improve correctness in light of current guidelines.
While at that, also include a DT node for the PL310 cache controller present in WM8850/WM8950.
Signed-off-by Alexey Charkov <[email protected]>---
Alexey Charkov (5):
ARM: dts: vt8500: Add node address and reg in CPU nodes
ARM: dts: vt8500: Move memory nodes to board dts and fix addr/size
ARM: dts: vt8500: Use generic node name for the SD/MMC controller
ARM: dts: vt8500: Fix the unit address of the VT8500 LCD controller
ARM: dts: vt8500: Add L2 cache controller on WM8850/WM8950
Quoted 4 lines
Quoted 1 line
Krzysztof, could you please pick these up for 6.16?
No, we are at RC7. I closed my tree two weeks ago and sent pull requests already way too late - a week ago.
Got it, thank you. Note taken on the expected cut-off time.
Best regards,
Alexey
Krzysztof Kozlowski
AppliedQuoted 8 lines · Alexey Charkov
Small fixups for VT8500 related device trees to improve correctness in light of current guidelines.
While at that, also include a DT node for the PL310 cache controller present in WM8850/WM8950.
[...]
Applied, thanks!
[1/5] ARM: dts: vt8500: Add node address and reg in CPU nodes
https://git.kernel.org/krzk/linux-dt/c/4ce310e733d8e520e52772099ebeb980fd491cec [2/5] ARM: dts: vt8500: Move memory nodes to board dts and fix addr/size https://git.kernel.org/krzk/linux-dt/c/ab46710603aba03ec6881152219ee7de27d20eff [3/5] ARM: dts: vt8500: Use generic node name for the SD/MMC controller https://git.kernel.org/krzk/linux-dt/c/8b37e3c425c3fa8439ec2e100521cb1e9651741e [4/5] ARM: dts: vt8500: Fix the unit address of the VT8500 LCD controller https://git.kernel.org/krzk/linux-dt/c/1918e51321c0c34341397644512568ac3451e416 [5/5] ARM: dts: vt8500: Add L2 cache controller on WM8850/WM8950 https://git.kernel.org/krzk/linux-dt/c/6cd594ed969d5cfc7f97029f8ca0d240637ebb8d
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>