devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node
@ 2022-07-26 13:05 Marco Felsch
  2022-07-26 13:05 ` [PATCH 2/4] ARM: dts: imx6qdl-kontron-samx6i: remove duplicated node Marco Felsch
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marco Felsch @ 2022-07-26 13:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, shawnguo
  Cc: kernel, festevam, linux-imx, devicetree

Add ethernet-phy node so we can drop the deprecated fec phy-reset-gpios
property. The reset-assert-us value is taken from the existing logic
since the fec driver will add an 1ms assert delay per default if
phy-reset-gpios is used and phy-reset-duration is not specified.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
index 095c9143d99a..7001c8c5e19b 100644
--- a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
@@ -270,7 +270,19 @@ &fec {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_enet>;
 	phy-mode = "rgmii";
-	phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
+	phy-handle = <&ethphy>;
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethphy: ethernet-phy@1 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			reg = <1>;
+			reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
+			reset-assert-us = <1000>;
+		};
+	};
 };
 
 &i2c_intern {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] ARM: dts: imx6qdl-kontron-samx6i: remove duplicated node
  2022-07-26 13:05 [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Marco Felsch
@ 2022-07-26 13:05 ` Marco Felsch
  2022-07-26 13:05 ` [PATCH 3/4] ARM: dts: imx6qdl-kontron-samx6i: fix spi-flash compatible Marco Felsch
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Marco Felsch @ 2022-07-26 13:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, shawnguo
  Cc: kernel, festevam, linux-imx, devicetree

The regulator node 'regulator-3p3v-s0' was dupplicated. Remove it to
clean the DTS.

Fixes: 2a51f9dae13d ("ARM: dts: imx6qdl-kontron-samx6i: Add iMX6-based Kontron SMARC-sAMX6i module")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
index 7001c8c5e19b..d8a0f743ae77 100644
--- a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
@@ -51,16 +51,6 @@ reg_3p3v_s0: regulator-3p3v-s0 {
 		vin-supply = <&reg_3p3v_s5>;
 	};
 
-	reg_3p3v_s0: regulator-3p3v-s0 {
-		compatible = "regulator-fixed";
-		regulator-name = "V_3V3_S0";
-		regulator-min-microvolt = <3300000>;
-		regulator-max-microvolt = <3300000>;
-		regulator-always-on;
-		regulator-boot-on;
-		vin-supply = <&reg_3p3v_s5>;
-	};
-
 	reg_3p3v_s5: regulator-3p3v-s5 {
 		compatible = "regulator-fixed";
 		regulator-name = "V_3V3_S5";
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] ARM: dts: imx6qdl-kontron-samx6i: fix spi-flash compatible
  2022-07-26 13:05 [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Marco Felsch
  2022-07-26 13:05 ` [PATCH 2/4] ARM: dts: imx6qdl-kontron-samx6i: remove duplicated node Marco Felsch
@ 2022-07-26 13:05 ` Marco Felsch
  2022-07-26 13:05 ` [PATCH 4/4] ARM: dts: imx6qdl-kontron-samx6i: hook up DDC i2c bus Marco Felsch
  2022-08-21 12:25 ` [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Shawn Guo
  3 siblings, 0 replies; 5+ messages in thread
From: Marco Felsch @ 2022-07-26 13:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, shawnguo
  Cc: kernel, festevam, linux-imx, devicetree

Drop the "winbond,w25q16dw" compatible since it causes to set the
MODALIAS to w25q16dw which is not specified within spi-nor id table.
Fix this by use the common "jedec,spi-nor" compatible.

Fixes: 2125212785c9 ("ARM: dts: imx6qdl-kontron-samx6i: add Kontron SMARC SoM Support")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
index d8a0f743ae77..158344bc13d1 100644
--- a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
@@ -249,7 +249,7 @@ &ecspi4 {
 
 	/* default boot source: workaround #1 for errata ERR006282 */
 	smarc_flash: flash@0 {
-		compatible = "winbond,w25q16dw", "jedec,spi-nor";
+		compatible = "jedec,spi-nor";
 		reg = <0>;
 		spi-max-frequency = <20000000>;
 	};
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] ARM: dts: imx6qdl-kontron-samx6i: hook up DDC i2c bus
  2022-07-26 13:05 [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Marco Felsch
  2022-07-26 13:05 ` [PATCH 2/4] ARM: dts: imx6qdl-kontron-samx6i: remove duplicated node Marco Felsch
  2022-07-26 13:05 ` [PATCH 3/4] ARM: dts: imx6qdl-kontron-samx6i: fix spi-flash compatible Marco Felsch
@ 2022-07-26 13:05 ` Marco Felsch
  2022-08-21 12:25 ` [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Shawn Guo
  3 siblings, 0 replies; 5+ messages in thread
From: Marco Felsch @ 2022-07-26 13:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, shawnguo
  Cc: kernel, festevam, linux-imx, devicetree

From: Lucas Stach <l.stach@pengutronix.de>

i2c2 is routed to the pins dedicated as DDC in the module standard.
Reduce clock rate to 100kHz to be in line with VESA standard and hook
this bus up to the HDMI node.

Fixes: 708ed2649ad8 ("ARM: dts: imx6qdl-kontron-samx6i: increase i2c-frequency")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
[m.felsch@pengutronix.de: add fixes line]
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
index 158344bc13d1..85aeebc9485d 100644
--- a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
@@ -275,6 +275,10 @@ ethphy: ethernet-phy@1 {
 	};
 };
 
+&hdmi {
+	ddc-i2c-bus = <&i2c2>;
+};
+
 &i2c_intern {
 	pmic@8 {
 		compatible = "fsl,pfuze100";
@@ -399,7 +403,7 @@ &i2c1 {
 
 /* HDMI_CTRL */
 &i2c2 {
-	clock-frequency = <375000>;
+	clock-frequency = <100000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c2>;
 };
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node
  2022-07-26 13:05 [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Marco Felsch
                   ` (2 preceding siblings ...)
  2022-07-26 13:05 ` [PATCH 4/4] ARM: dts: imx6qdl-kontron-samx6i: hook up DDC i2c bus Marco Felsch
@ 2022-08-21 12:25 ` Shawn Guo
  3 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2022-08-21 12:25 UTC (permalink / raw)
  To: Marco Felsch
  Cc: robh+dt, krzysztof.kozlowski+dt, kernel, festevam, linux-imx,
	devicetree

On Tue, Jul 26, 2022 at 03:05:20PM +0200, Marco Felsch wrote:
> Add ethernet-phy node so we can drop the deprecated fec phy-reset-gpios
> property. The reset-assert-us value is taken from the existing logic
> since the fec driver will add an 1ms assert delay per default if
> phy-reset-gpios is used and phy-reset-duration is not specified.
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>

Applied all, thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-21 12:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 13:05 [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Marco Felsch
2022-07-26 13:05 ` [PATCH 2/4] ARM: dts: imx6qdl-kontron-samx6i: remove duplicated node Marco Felsch
2022-07-26 13:05 ` [PATCH 3/4] ARM: dts: imx6qdl-kontron-samx6i: fix spi-flash compatible Marco Felsch
2022-07-26 13:05 ` [PATCH 4/4] ARM: dts: imx6qdl-kontron-samx6i: hook up DDC i2c bus Marco Felsch
2022-08-21 12:25 ` [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).