arm64: dts: mediatek: mt8195: Fix dtbs_check error for tphy
Subsystems (2)
PATCH v2 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.
This is because MediaTek tphy dose not need to add mtcmos. It is not necessary to add 'power-domains'. If the power of the tphy is turned off, it will affect other functions. From the current USB hardware design perspective, even if mtcmos is added to the phy, it is always on.
--- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 - 1 file changed, 1 deletion(-)
Changes for v2:
- Add detail description of the tphy design for explaining the reason of this change.
arch/arm64/boot/dts/mediatek/mt8195.dtsi +0 -1
@@ -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
Il 08/10/24 09:15, Macpaul Lin ha scritto:
Quoted 6 lines
The u3phy1 node in
mt8195.dtsiwas triggering adtbs_checkerror. 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.
Quoted 7 lines
This is because MediaTek tphy dose not need to add mtcmos. It is not necessary to add 'power-domains'. If the power of the tphy is turned off, it will affect other functions. From the current USB hardware design perspective, even if mtcmos is added to the phy, it is always on.
Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")Signed-off-by Macpaul Lin <[email protected]>
Quoted 20 lines
--- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 - 1 file changed, 1 deletion(-)Changes for v2:
- Add detail description of the tphy design for explaining the reason of this change.arch/arm64/boot/dts/mediatek/mt8195.dtsi +0
-1@@ -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 {
Quoted 12 lines · AngeloGioacchino Del Regno
Il 08/10/24 09:15, Macpaul Lin ha scritto:
Quoted 11 lines
The u3phy1 node in
mt8195.dtsiwas triggering adtbs_checkerror. 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.This is because MediaTek tphy dose not need to add mtcmos. It is not necessary to add 'power-domains'. If the power of the tphy is turned off, it will affect other functions. From the current USB hardware design perspective, even if mtcmos is added to the phy, it is always on.
Quoted 4 lines
Quoted 2 lines
Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")Signed-off-by Macpaul Lin <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>
Sorry for bothering, it seems MediaTek internal still have some discussion about according to Conor's suggestion:
Please don't to pick this patch until if MediaTek could have some conclusions.
Quoted 8 lines
Quoted 8 lines
---
arch/arm64/boot/dts/mediatek/mt8195.dtsi| 1 -1 file changed, 1 deletion(-)Changes for v2:
- Add detail description of the tphy design for explaining the reason of this change.
Quoted 13 lines
arch/arm64/boot/dts/mediatek/mt8195.dtsi u3phy1: t-phy@11e30000 { · line 1924
Quoted 11 lines
arch/arm64/boot/dts/mediatek/mt8195.dtsi +0
-1@@ -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 {
Thanks!
Macpaul Lin
Quoted 20 lines · Macpaul Lin
Quoted 12 lines · AngeloGioacchino Del Regno
Il 08/10/24 09:15, Macpaul Lin ha scritto:
Quoted 11 lines
The u3phy1 node in
mt8195.dtsiwas triggering adtbs_checkerror. 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.This is because MediaTek tphy dose not need to add mtcmos. It is not necessary to add 'power-domains'. If the power of the tphy is turned off, it will affect other functions. From the current USB hardware design perspective, even if mtcmos is added to the phy, it is always on.
Quoted 4 lines
Quoted 2 lines
Fixes 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")Signed-off-by Macpaul Lin <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>
Quoted 8 lines
Sorry for bothering, it seems MediaTek internal still have some discussion about according to Conor's suggestion:
Please don't to pick this patch until if MediaTek could have some conclusions.
Update: This patch could be dropped since the correct fix in TPHY's DT Schema has been accepted.
[2] https://lore.kernel.org/all/[email protected]/
Quoted 22 lines
Quoted 8 lines
Quoted 8 lines
---
arch/arm64/boot/dts/mediatek/mt8195.dtsi| 1 -1 file changed, 1 deletion(-)Changes for v2:
- Add detail description of the tphy design for explaining the reason of this change.Quoted 13 lines
arch/arm64/boot/dts/mediatek/mt8195.dtsi u3phy1: t-phy@11e30000 { · line 1924
Quoted 11 lines
arch/arm64/boot/dts/mediatek/mt8195.dtsi +0
-1@@ -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 {
Quoted 2 lines
Thanks!
Macpaul Lin
Thanks!
Macpaul Lin