Skip to contentSkip to conversation

riscv: dts: microchip: fix the mpfs' mailbox regs

PATCH Applied Conor Dooley 2 participants 3 messages Mar 7, 2023 – Mar 15, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: dts: microchip: fix the mpfs' mailbox regs

From: Conor Dooley <[email protected]>

The mailbox on PolarFire SoC should really have three reg properties, not two. Without splitting into three sections, the system controller's QSPI cannot be accessed as it sits inside the current first range. The driver & binding have been adapted to account for both two & three ranges, so fix the dts too.

---
 arch/riscv/boot/dts/microchip/mpfs.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/riscv/boot/dts/microchip/mpfs.dtsi +2 -1
index 0a9bb84af438..62b1aec4ffff 100644
@@ -498,7 +498,8 @@ usb: usb@20201000 {
 
 		mbox: mailbox@37020000 {
 			compatible = "microchip,mpfs-mailbox";
-			reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318C 0x0 0x40>;
+			reg = <0x0 0x37020000 0x0 0x58>, <0x0 0x2000318C 0x0 0x40>,
+			      <0x0 0x37020800 0x0 0x100>;
 			interrupt-parent = <&plic>;
 			interrupts = <96>;
 			#mbox-cells = <1>;
Signature · 7 lines
2.39.2


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Conor Dooley

From: Conor Dooley <[email protected]>

The mailbox on PolarFire SoC should really have three reg properties, not two. Without splitting into three sections, the system controller's QSPI cannot be accessed as it sits inside the current first range. The driver & binding have been adapted to account for both two & three ranges, so fix the dts too.

---
 arch/riscv/boot/dts/microchip/mpfs.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/riscv/boot/dts/microchip/mpfs.dtsi +0 -0
index 0a9bb84af438..62b1aec4ffff 100644

arch/riscv/boot/dts/microchip/mpfs.dtsi usb: usb@20201000 { · line 505

Quoted 9 lines
arch/riscv/boot/dts/microchip/mpfs.dtsi +2 -1
@@ -498,7 +498,8 @@ usb: usb@20201000 {
 
 		mbox: mailbox@37020000 {
 			compatible = "microchip,mpfs-mailbox";
-			reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318C 0x0 0x40>;
+			reg = <0x0 0x37020000 0x0 0x58>, <0x0 0x2000318C 0x0 0x40>,
+			      <0x0 0x37020800 0x0 0x100>;
 			interrupt-parent = <&plic>;
 			interrupts = <96>;
 			#mbox-cells = <1>;

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

author Applied
#2 lore raw
In reply to Conor Dooley

From: Conor Dooley <[email protected]>

Quoted 8 lines · Conor Dooley

The mailbox on PolarFire SoC should really have three reg properties, not two. Without splitting into three sections, the system controller's QSPI cannot be accessed as it sits inside the current first range. The driver & binding have been adapted to account for both two & three ranges, so fix the dts too.

[...]

Applied to riscv-dt-for-next, thanks!

[1/1] riscv: dts: microchip: fix the mpfs' mailbox regs

      https://git.kernel.org/conor/c/e77da13b8e36

Thanks,
Conor.

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