Skip to contentSkip to conversation

riscv: dts: microchip: remove icicle memory clocks

PATCH In review Conor Dooley 1 participant 3 messages Apr 25, 2022 – Apr 29, 2022

Subsystems (3)
lore
Share & tools
lore

Conor Dooley

author maintainer
#0 lore raw

PATCH 1/2 riscv: dts: microchip: remove icicle memory clocks

The clock properties in the icicle kit's memory entries cause dtbs_check
errors:
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dtb: /: memory@80000000: 'clocks' does not match any of the regexes: 'pinctrl-[0-9]+'

Get rid of the clocks to avoid the errors.

Fixes 0fa6107eca41 ("RISC-V: Initial DTS for Microchip ICICLE board")
Fixes 5b28df37d311 ("riscv: dts: microchip: update peripherals in icicle kit device tree")
---
 arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts | 2 --
 1 file changed, 2 deletions(-)
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +0 -2
index cd2fe80fa81a..ffe683d3f528 100644
@@ -32,14 +32,12 @@ cpus {
 	ddrc_cache_lo: memory@80000000 {
 		device_type = "memory";
 		reg = <0x0 0x80000000 0x0 0x2e000000>;
-		clocks = <&clkcfg CLK_DDRC>;
 		status = "okay";
 	};
 
 	ddrc_cache_hi: memory@1000000000 {
 		device_type = "memory";
 		reg = <0x10 0x0 0x0 0x40000000>;
-		clocks = <&clkcfg CLK_DDRC>;
 		status = "okay";
 	};
 };
Signature · 1 line
2.35.2
author maintainer
#1 lore raw

PATCH 2/2 riscv: dts: microchip: move sysctrlr out of soc bus

The MPFS system controller has no registers of its own, so move it out
of the soc node to avoid dtbs_check warnings:
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dtb: soc: syscontroller: {'compatible': ['microchip,mpfs-sys-controller'], 'mboxes': [[15, 0]], 'status': ['okay']} should not be valid under {'type': 'object'}

Fixes 528a5b1f2556 ("riscv: dts: microchip: add new peripherals to icicle kit device tree")

---
Rob: I assume the Suggested-by tag is appropriate here since you told me to do it this way?

 arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +5 -5
index c5c9d1360de0..bb420ed6965e 100644
@@ -146,6 +146,11 @@ refclk: msspllclk {
 		#clock-cells = <0>;
 	};
 
+	syscontroller: syscontroller {
+		compatible = "microchip,mpfs-sys-controller";
+		mboxes = <&mbox 0>;
+	};
+
 	soc {
 		#address-cells = <2>;
 		#size-cells = <2>;
@@ -446,10 +451,5 @@ mbox: mailbox@37020000 {
 			#mbox-cells = <1>;
 			status = "disabled";
 		};
-
-		syscontroller: syscontroller {
-			compatible = "microchip,mpfs-sys-controller";
-			mboxes = <&mbox 0>;
-		};
 	};
 };
Signature · 1 line
2.35.2
author maintainer
#2 lore raw
In reply to Conor Dooley

Hey Palmer,

Please consider this superseded by today's patchset:
https://lore.kernel.org/linux-riscv/[email protected]/T/#t

Thanks,
Conor.

Quoted 23 lines · Conor Dooley

The clock properties in the icicle kit's memory entries cause dtbs_check
errors:
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dtb: /: memory@80000000: 'clocks' does not match any of the regexes: 'pinctrl-[0-9]+'

Get rid of the clocks to avoid the errors.

Fixes 0fa6107eca41 ("RISC-V: Initial DTS for Microchip ICICLE board")
Fixes 5b28df37d311 ("riscv: dts: microchip: update peripherals in icicle kit device tree")
---
  arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts | 2 --
  1 file changed, 2 deletions(-)
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +0 -1
index cd2fe80fa81a..ffe683d3f528 100644
@@ -32,14 +32,12 @@ cpus {
  	ddrc_cache_lo: memory@80000000 {
  		device_type = "memory";
  		reg = <0x0 0x80000000 0x0 0x2e000000>;
-		clocks = <&clkcfg CLK_DDRC>;

arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts cpus { · line 43

Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +0 -1
  		status = "okay";
  	};
 
  	ddrc_cache_hi: memory@1000000000 {
  		device_type = "memory";
  		reg = <0x10 0x0 0x0 0x40000000>;
-		clocks = <&clkcfg CLK_DDRC>;
  		status = "okay";
  	};
  };

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv