Skip to contentSkip to conversation

powerpc/44x/fsp2: correct dtb reg property for /sdhci@020c0000

PATCH In review Ian Campbell 2 participants 3 messages Jul 15, 2017 – Jul 21, 2017

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

PATCH 1/1 powerpc/44x/fsp2: correct dtb reg property for /sdhci@020c0000

Building the split device-tree tree[0] highlighted that upstream commit 9eec6cb142bd ("powerpc/44x/fsp2: Add device tree for FSP2 board") introduced this warning when building the device tree:

$ make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc fsp2.dtb
  CHK     scripts/mod/devicetable-offsets.h
  DTC     arch/powerpc/boot/fsp2.dtb
arch/powerpc/boot/fsp2.dtb: Warning (reg_format): "reg" property in /sdhci@020c0000 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)

This commit adds the second adress cell as zeroes to resolve the warning. Note:
I have no access to or information about this platform so this is purely a guess as to the fix. An alternative would be to adjust #address-cells, but whether that is correct or not depends on the platform.

[0] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/

Cc Ivan Mikhaylov <[email protected]>
Cc Michael Ellerman <mpe-Gsx/[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc linuxppc-dev-uLR06cmDAlY/[email protected]
Cc Rob Herring <[email protected]>
Cc Mark Rutland <[email protected]>
---
 arch/powerpc/boot/dts/fsp2.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/boot/dts/fsp2.dts +1 -1
index 475953ada707..ab6d2346527f 100644
@@ -362,7 +362,7 @@
 	mmc0: sdhci@020c0000 {
 		compatible	= "st,sdhci-stih407", "st,sdhci";
 		status		= "disabled";
-		reg		= <0x020c0000 0x20000>;
+		reg		= <0x00000000 0x020c0000 0x20000>;
 		reg-names	= "mmc";
 		interrupt-parent = <&UIC1_3>;
 		interrupts	= <21 0x4 22 0x4>;
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

Hi Ian,

Quoted 9 lines

Building the split device-tree tree[0] highlighted that upstream commit 9eec6cb142bd ("powerpc/44x/fsp2: Add device tree for FSP2 board") introduced this warning when building the device tree:

$ make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc fsp2.dtb
 CHK     scripts/mod/devicetable-offsets.h
 DTC     arch/powerpc/boot/fsp2.dtb
arch/powerpc/boot/fsp2.dtb: Warning (reg_format): "reg" property in /sdhci@020c0000 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
Quoted 4 lines

This commit adds the second adress cell as zeroes to resolve the warning. Note:
I have no access to or information about this platform so this is purely a guess as to the fix. An alternative would be to adjust #address-cells, but whether that is correct or not depends on the platform.

Yes, this problem exists on this tag but it is already fixed and waiting for review by this https://patchwork.kernel.org/patch/9819379/ . You can check it if you want, anyways it will go to powerpc next branch first.

Thank you.

#2 lore raw
Quoted 10 lines · Ivan Mikhaylov

Hi Ian,

Quoted 9 lines

Building the split device-tree tree[0] highlighted that upstream commit 9eec6cb142bd ("powerpc/44x/fsp2: Add device tree for FSP2 board") introduced this warning when building the device tree:

$ make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc fsp2.dtb
 CHK     scripts/mod/devicetable-offsets.h
 DTC     arch/powerpc/boot/fsp2.dtb
Quoted 1 line
Quoted 1 line

arch/powerpc/boot/fsp2.dtb: Warning (reg_format): "reg" property in /sdhci@020c0000 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)

Quoted 8 lines
Quoted 4 lines

This commit adds the second adress cell as zeroes to resolve the warning. Note:
I have no access to or information about this platform so this is purely a guess as to the fix. An alternative would be to adjust #address-cells, but whether that is correct or not depends on the platform.

Yes, this problem exists on this tag but it is already fixed and waiting for

Quoted 1 line

review by this https://patchwork.kernel.org/patch/9819379/ . You can check it

if you want, anyways it will go to powerpc next branch first.

Great, thanks for the info.