Skip to contentSkip to conversation

arm64: dts: mediatek: mt8195: Fix dtbs_check error for tphy

PATCH Superseded Macpaul Lin 3 participants 5 messages Oct 8, 2024 – Oct 9, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: mediatek: mt8195: Fix dtbs_check error for tphy

The u3phy1 node in mt8195.dtsi was triggering a dtbs_check error. The error message was:
t-phy@11e30000: 'power-domains' does not match any of the regexes:

    '^(usb|pcie|sata)-phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Fix this issue by dropping 'power-domains' of u3phy1 node.

Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")
---
 arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8195.dtsi +0 -1
index ade685ed2190..1c6f08dde31c 100644
@@ -1920,7 +1920,6 @@ u3phy1: t-phy@11e30000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
 			ranges = <0 0 0x11e30000 0xe00>;
-			power-domains = <&spm MT8195_POWER_DOMAIN_SSUSB_PCIE_PHY>;
 			status = "disabled";
 
 			u2port1: usb-phy@0 {
Signature · 1 line
2.45.2
#1 lore raw
Quoted 6 lines · Macpaul Lin

The u3phy1 node in mt8195.dtsi was triggering a dtbs_check error. The error message was:
t-phy@11e30000: 'power-domains' does not match any of the regexes:

    '^(usb|pcie|sata)-phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Fix this issue by dropping 'power-domains' of u3phy1 node.

You should also mention why this fix is correct from a hardware viewpoint, i.e. why removing the power domain won't break the device.

Quoted 21 lines
Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")
---
 arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8195.dtsi +0 -2
index ade685ed2190..1c6f08dde31c 100644
@@ -1920,7 +1920,6 @@ u3phy1: t-phy@11e30000 {
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0 0 0x11e30000 0xe00>;
-                       power-domains = <&spm MT8195_POWER_DOMAIN_SSUSB_PCIE_PHY>;
                        status = "disabled";
 
                        u2port1: usb-phy@0 {
--

2.45.2

#2 lore raw
In reply to Macpaul Lin
Quoted 10 lines · Macpaul Lin

The u3phy1 node in mt8195.dtsi was triggering a dtbs_check error. The error message was:
t-phy@11e30000: 'power-domains' does not match any of the regexes:

    '^(usb|pcie|sata)-phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Fix this issue by dropping 'power-domains' of u3phy1 node.

Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")

---

Apart from this, can you or Chunfeng confirm if we should make a similar change for MT8188[1]?

[1]: https://lore.kernel.org/all/[email protected]/

Regards,
Fei

#3 lore raw
Quoted 16 lines · Fei Shao

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 10 lines · Macpaul Lin

The u3phy1 node in mt8195.dtsi was triggering a dtbs_check error. The error message was:
t-phy@11e30000: 'power-domains' does not match any of the regexes:

    '^(usb|pcie|sata)-phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Fix this issue by dropping 'power-domains' of u3phy1 node.

Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")

---

Quoted 8 lines

Apart from this, can you or Chunfeng confirm if we should make a similar change for MT8188[1]?

[1]: https://lore.kernel.org/all/[email protected]/

Regards,
Fei

According to the suggestion and discussion in

[1]: https://lore.kernel.org/lkml/20241008-disorder-slacking-d8196ceb68f7@spud/T/#mccf978d76f52cc26970f3f3be6120055e4698fe6

I think adding 'power-domains' to PCIE node of MT8188 is okay.

Thanks
Macpaul Lin

#4 lore raw
Quoted 27 lines · Macpaul Lin
Quoted 16 lines · Fei Shao

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 10 lines · Macpaul Lin

The u3phy1 node in mt8195.dtsi was triggering a dtbs_check error. The error message was:
t-phy@11e30000: 'power-domains' does not match any of the regexes:

    '^(usb|pcie|sata)-phy@[0-9a-f]+$', 'pinctrl-[0-9]+'

Fix this issue by dropping 'power-domains' of u3phy1 node.

Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")

---

Quoted 8 lines

Apart from this, can you or Chunfeng confirm if we should make a similar change for MT8188[1]?

[1]: https://lore.kernel.org/all/[email protected]/

Regards,
Fei

Quoted 7 lines

According to the suggestion and discussion in

[1]:
https://lore.kernel.org/lkml/20241008-disorder-slacking-d8196ceb68f7@spud/T/#mccf978d76f52cc26970f3f3be6120055e4698fe6

I think adding 'power-domains' to PCIE node of MT8188 is okay.

Acked, thanks!

Fei