2022-03-14 23:49:52

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH] ARM: dts: exynos: drop deprecated SFR region from MIPI phy

Commit e4b3d38088df ("phy: exynos-video-mipi: Fix regression by adding
support for PMU regmap") deprecated the usage of unit address in MIPI
phy node, in favor of a syscon phandle. Deprecating was a correct
approach because that unit address was actually coming from Power
Management Unit SFR range so its usage here caused overlapped memory
mapping.

In 2016 commit 26dbadba495f ("phy: exynos-mipi-video: Drop support for
direct access to PMU") fully removed support for parsing that MIPI phy
unit address (SFR range) but the address stayed in Exynos5250 DTSI for
compatibility reasons.

Remove that deprecated unit address from Exynos5250 MIPI phy, because it
has been almost 6 years since it was deprecated and it causes now DT
schema validation warnings:

video-phy@10040710: 'reg' does not match any of the regexes: 'pinctrl-[0-9]+'

Any out-of-tree users of Exynos5250 DTSI, should update their code to
use newer syscon property.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
arch/arm/boot/dts/exynos5250.dtsi | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
index 5baaa7eb71a4..d8d401b5ca48 100644
--- a/arch/arm/boot/dts/exynos5250.dtsi
+++ b/arch/arm/boot/dts/exynos5250.dtsi
@@ -817,15 +817,14 @@ mixer: mixer@14450000 {
status = "disabled";
};

- dp_phy: video-phy {
+ dp_phy: video-phy-0 {
compatible = "samsung,exynos5250-dp-video-phy";
samsung,pmu-syscon = <&pmu_system_controller>;
#phy-cells = <0>;
};

- mipi_phy: video-phy@10040710 {
+ mipi_phy: video-phy-1 {
compatible = "samsung,s5pv210-mipi-video-phy";
- reg = <0x10040710 0x100>;
#phy-cells = <1>;
syscon = <&pmu_system_controller>;
};
--
2.32.0


2022-03-15 08:44:35

by Alim Akhtar

[permalink] [raw]
Subject: RE: [PATCH] ARM: dts: exynos: drop deprecated SFR region from MIPI phy

Hi Krzysztof,

>-----Original Message-----
>From: Krzysztof Kozlowski [mailto:[email protected]]
>Sent: Tuesday, March 15, 2022 12:11 AM
>To: Rob Herring <[email protected]>; Krzysztof Kozlowski
><[email protected]>; Alim Akhtar <[email protected]>;
>[email protected]; [email protected]; linux-
>[email protected]; [email protected]
>Cc: Marek Szyprowski <[email protected]>; Sylwester Nawrocki
><[email protected]>; Krzysztof Kozlowski
><[email protected]>
>Subject: [PATCH] ARM: dts: exynos: drop deprecated SFR region from MIPI
>phy
>
>Commit e4b3d38088df ("phy: exynos-video-mipi: Fix regression by adding
>support for PMU regmap") deprecated the usage of unit address in MIPI phy
>node, in favor of a syscon phandle. Deprecating was a correct approach
>because that unit address was actually coming from Power Management Unit
>SFR range so its usage here caused overlapped memory mapping.
>
>In 2016 commit 26dbadba495f ("phy: exynos-mipi-video: Drop support for
>direct access to PMU") fully removed support for parsing that MIPI phy unit
>address (SFR range) but the address stayed in Exynos5250 DTSI for
>compatibility reasons.
>
>Remove that deprecated unit address from Exynos5250 MIPI phy, because it
>has been almost 6 years since it was deprecated and it causes now DT schema
>validation warnings:
>
> video-phy@10040710: 'reg' does not match any of the regexes: 'pinctrl-[0-
>9]+'
>
>Any out-of-tree users of Exynos5250 DTSI, should update their code to use
>newer syscon property.
>
>Signed-off-by: Krzysztof Kozlowski <[email protected]>
>---

Reviewed-by: Alim Akhtar<[email protected]>

> arch/arm/boot/dts/exynos5250.dtsi | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
>diff --git a/arch/arm/boot/dts/exynos5250.dtsi
>b/arch/arm/boot/dts/exynos5250.dtsi
>index 5baaa7eb71a4..d8d401b5ca48 100644
>--- a/arch/arm/boot/dts/exynos5250.dtsi
>+++ b/arch/arm/boot/dts/exynos5250.dtsi
>@@ -817,15 +817,14 @@ mixer: mixer@14450000 {
> status = "disabled";
> };
>
>- dp_phy: video-phy {
>+ dp_phy: video-phy-0 {
> compatible = "samsung,exynos5250-dp-video-phy";
> samsung,pmu-syscon = <&pmu_system_controller>;
> #phy-cells = <0>;
> };
>
>- mipi_phy: video-phy@10040710 {
>+ mipi_phy: video-phy-1 {
> compatible = "samsung,s5pv210-mipi-video-phy";
>- reg = <0x10040710 0x100>;
> #phy-cells = <1>;
> syscon = <&pmu_system_controller>;
> };
>--
>2.32.0


2022-04-05 02:40:17

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: exynos: drop deprecated SFR region from MIPI phy

On Mon, 14 Mar 2022 19:41:13 +0100, Krzysztof Kozlowski wrote:
> Commit e4b3d38088df ("phy: exynos-video-mipi: Fix regression by adding
> support for PMU regmap") deprecated the usage of unit address in MIPI
> phy node, in favor of a syscon phandle. Deprecating was a correct
> approach because that unit address was actually coming from Power
> Management Unit SFR range so its usage here caused overlapped memory
> mapping.
>
> [...]

Applied, thanks!

[1/1] ARM: dts: exynos: drop deprecated SFR region from MIPI phy
commit: 04398e04173f1be0b21d7cd50c54e8affcebe106

Best regards,
--
Krzysztof Kozlowski <[email protected]>