imx: iomux-v3: provide MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC
Subsystems (2)
PATCH 1/1 imx: iomux-v3: provide MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC
MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK is in its currently RGMII_RXC. Fix this by providing RX_CLK with properly setting the DAISY value and MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC which did the "previous" setting. There should be no fallout because there no in tree users of MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK.
--- arch/arm/dts/imx7d-pinfunc.h | 3 ++- arch/arm/include/asm/arch-mx7/mx7d_pins.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/dts/imx7d-pinfunc.h +2 -1
@@ -1123,7 +1123,8 @@#define MX7D_PAD_ENET1_TX_CLK__GPIO7_IO12 0x025C 0x04CC 0x0000 0x5 0x0#define MX7D_PAD_ENET1_TX_CLK__CCM_EXT_CLK1 0x025C 0x04CC 0x04E4 0x6 0x2#define MX7D_PAD_ENET1_TX_CLK__CSU_ALARM_AUT0 0x025C 0x04CC 0x0000 0x7 0x0 -#define MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK 0x0260 0x04D0 0x056C 0x0 0x0 +#define MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC 0x0260 0x04D0 0x056C 0x0 0x0 +#define MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK 0x0260 0x04D0 0x056C 0x0 0x1#define MX7D_PAD_ENET1_RX_CLK__WDOG2_WDOG_B 0x0260 0x04D0 0x0000 0x1 0x0#define MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK 0x0260 0x04D0 0x06A8 0x2 0x1#define MX7D_PAD_ENET1_RX_CLK__GPT2_CLK 0x0260 0x04D0 0x0000 0x3 0x0
arch/arm/include/asm/arch-mx7/mx7d_pins.h +2 -1
@@ -1278,7 +1278,8 @@ enum {MX7D_PAD_ENET1_TX_CLK__CCM_EXT_CLK1 =IOMUX_PAD (0x04CC ,0x025C ,6 ,0x04E4 ,2 ,0 ),MX7D_PAD_ENET1_TX_CLK__CSU_ALARM_AUT0 =IOMUX_PAD (0x04CC ,0x025C ,7 ,0x0000 ,0 ,0 ), -MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK =IOMUX_PAD (0x04D0 ,0x0260 ,0 ,0x056C ,0 ,0 ), +MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC =IOMUX_PAD (0x04D0 ,0x0260 ,0 ,0x056C ,0 ,0 ), +MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK =IOMUX_PAD (0x04D0 ,0x0260 ,0 ,0x056C ,1 ,0 ),MX7D_PAD_ENET1_RX_CLK__WDOG2_WDOG_B =IOMUX_PAD (0x04D0 ,0x0260 ,1 ,0x0000 ,0 ,0 ),MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK =IOMUX_PAD (0x04D0 ,0x0260 ,2 ,0x06A8 ,1 ,0 ), MX7D_PAD_ENET1_RX_CLK__GPT2_CLK = IOMUX_PAD(0x04D0, 0x0260, 3, 0x0000, 0, 0),
Signature · 1 line
2.10.2
PATCH 1/1 imx: iomux-v3: provide MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC
Quoted 5 lines · Sebastian Andrzej Siewior
MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLKis in its currentlyRGMII_RXC. Fix this by providingRX_CLKwith properly setting the DAISY value andMX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXCwhich did the "previous" setting. There should be no fallout because there no in tree users ofMX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK.
Are you sure this is correct? According to my data sheet Rev 0.1, 08/2016, 0x240 is ALT0_ENET1_RGMII_RXC... 0x260 only mentions ALT0_ENET1_RX_CLK. I don't think that muxing 0x0260 to 0 and 0x056C (daisy chain) to 0 is a sensible configuration.
The daisy chaining seems wrong, though, for both pinmux, but this should lead to a fix like this:
(shortened a bit so that it fits into 80 characters):
-#de MX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC 0x0240 0x04B0 0x0000 0x0 0x0
+#de MX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC 0x0240 0x04B0 0x056C 0x0 0x0
-#de MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK 0x0260 0x04D0 0x056C 0x00x0
+#de MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK 0x0260 0x04D0 0x056C 0x00x1
--
Stefan
Quoted 53 lines
Signed-off-by Sebastian Andrzej Siewior <[email protected]>--- arch/arm/dts/imx7d-pinfunc.h | 3 ++- arch/arm/include/asm/arch-mx7/mx7d_pins.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)arch/arm/dts/imx7d-pinfunc.h +0
-0@@ -1123,7 +1123,8 @@#define MX7D_PAD_ENET1_TX_CLK__GPIO7_IO12
0x025C0x04CC0x00000x50x0
#defineMX7D_PAD_ENET1_TX_CLK__CCM_EXT_CLK10x025C0x04CC0x04E40x60x2
#defineMX7D_PAD_ENET1_TX_CLK__CSU_ALARM_AUT00x025C0x04CC0x00000x70x0
-#defineMX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK0x02600x04D00x056C0x00x0
+#defineMX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC0x02600x04D00x056C0x00x0
+#defineMX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK0x02600x04D00x056C0x00x1
#defineMX7D_PAD_ENET1_RX_CLK__WDOG2_WDOG_B0x02600x04D00x00000x10x0
#defineMX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK0x02600x04D00x06A80x20x1
#defineMX7D_PAD_ENET1_RX_CLK__GPT2_CLK0x02600x04D00x00000x30x0arch/arm/include/asm/arch-mx7/mx7d_pins.h +1
-1@@ -1278,7 +1278,8 @@ enum {MX7D_PAD_ENET1_TX_CLK__CCM_EXT_CLK1 =IOMUX_PAD (0x04CC ,0x025C ,6 ,0x04E4 ,2 ,0 ),MX7D_PAD_ENET1_TX_CLK__CSU_ALARM_AUT0 =IOMUX_PAD (0x04CC ,0x025C ,7 ,0x0000 ,0 ,0 ), -MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK =IOMUX_PAD (0x04D0 ,0x0260 ,0 ,0x056C ,0 ,0 ), + MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC =
IOMUX_PAD(0x04D0, 0x0260, 0, 0x056C, 0, 0),arch/arm/include/asm/arch-mx7/mx7d_pins.h +1
-0+ MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK =
IOMUX_PAD(0x04D0, 0x0260, 0, 0x056C, 1, 0),
MX7D_PAD_ENET1_RX_CLK__WDOG2_WDOG_B=IOMUX_PAD(0x04D0, 0x0260, 1, 0x0000, 0, 0),
MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK=IOMUX_PAD(0x04D0, 0x0260, 2, 0x06A8, 1, 0),
MX7D_PAD_ENET1_RX_CLK__GPT2_CLK=IOMUX_PAD(0x04D0, 0x0260, 3, 0x0000, 0, 0),
PATCH 1/1 imx: iomux-v3: provide MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC
Quoted 11 lines · Stefan Agner
Quoted 5 lines · Sebastian Andrzej Siewior
MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLKis in its currentlyRGMII_RXC. Fix this by providingRX_CLKwith properly setting the DAISY value andMX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXCwhich did the "previous" setting. There should be no fallout because there no in tree users ofMX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK.Are you sure this is correct? According to my data sheet Rev 0.1, 08/2016,
0x240isALT0_ENET1_RGMII_RXC...0x260only mentionsALT0_ENET1_RX_CLK. I don't think that muxing0x0260to 0 and0x056C(daisy chain) to 0 is a sensible configuration.
8.2.7.343 ENET1_RX_CLK_SELECT_INPUT DAISY Register (IOMUXC_ENET1_RX_CLK_SELECT_INPUT) says:
|0 ENET1_RGMII_RXC_ALT0 - Selecting Pad: ENET1_RGMII_RXC Mode: | ALT0 for ENET1_RGMII_RXC |1 ENET1_RX_CLK_ALT0 - Selecting Pad: ENET1_RX_CLK Mode: ALT0 | for ENET1_RX_CLK
and I would like the 1 in daisy.
Quoted 11 lines
The daisy chaining seems wrong, though, for both pinmux, but this should lead to a fix like this:
(shortened a bit so that it fits into 80 characters):
-#de
MX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC0x02400x04B00x00000x00x0
+#deMX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC0x02400x04B00x056C0x00x0
Quoted 4 lines
-#de
MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK0x02600x04D00x056C0x00x0
+#deMX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK0x02600x04D00x056C0x00x1
If you send me a proper patch I could test if it works. The part I sent is what I use atm on a 100Mbit MII PHY.
Sebastian
PATCH 1/1 imx: iomux-v3: provide MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC
In reply to Sebastian Andrzej SiewiorHi Sebastian,
Quoted 6 lines · Sebastian Andrzej Siewior
MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLKis in its currentlyRGMII_RXC. Fix this by providingRX_CLKwith properly setting the DAISY value andMX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXCwhich did the "previous" setting. There should be no fallout because there no in tree users ofMX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK.
Right - I do not see any use case, and we do not break any board.
Quoted 26 lines
Signed-off-by Sebastian Andrzej Siewior <[email protected]>--- arch/arm/dts/imx7d-pinfunc.h | 3 ++- arch/arm/include/asm/arch-mx7/mx7d_pins.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)arch/arm/dts/imx7d-pinfunc.h +2
-1@@ -1123,7 +1123,8 @@#define MX7D_PAD_ENET1_TX_CLK__GPIO7_IO12 0x025C 0x04CC 0x0000 0x5 0x0#define MX7D_PAD_ENET1_TX_CLK__CCM_EXT_CLK1 0x025C 0x04CC 0x04E4 0x6 0x2#define MX7D_PAD_ENET1_TX_CLK__CSU_ALARM_AUT0 0x025C 0x04CC 0x0000 0x7 0x0 -#define MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK 0x0260 0x04D0 0x056C 0x0 0x0 +#define MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC 0x0260 0x04D0 0x056C 0x0 0x0 +#define MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK 0x0260 0x04D0 0x056C 0x0 0x1#define MX7D_PAD_ENET1_RX_CLK__WDOG2_WDOG_B 0x0260 0x04D0 0x0000 0x1 0x0#define MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK 0x0260 0x04D0 0x06A8 0x2 0x1#define MX7D_PAD_ENET1_RX_CLK__GPT2_CLK 0x0260 0x04D0 0x0000 0x3 0x0arch/arm/include/asm/arch-mx7/mx7d_pins.h +0
-0
arch/arm/include/asm/arch-mx7/mx7d_pins.h enum { · line 1285
Quoted 9 lines
arch/arm/include/asm/arch-mx7/mx7d_pins.h +2
-1@@ -1278,7 +1278,8 @@ enum {MX7D_PAD_ENET1_TX_CLK__CCM_EXT_CLK1 =IOMUX_PAD (0x04CC ,0x025C ,6 ,0x04E4 ,2 ,0 ),MX7D_PAD_ENET1_TX_CLK__CSU_ALARM_AUT0 =IOMUX_PAD (0x04CC ,0x025C ,7 ,0x0000 ,0 ,0 ), -MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK =IOMUX_PAD (0x04D0 ,0x0260 ,0 ,0x056C ,0 ,0 ), +MX7D_PAD_ENET1_RX_CLK__ENET1_RGMII_RXC =IOMUX_PAD (0x04D0 ,0x0260 ,0 ,0x056C ,0 ,0 ), +MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK =IOMUX_PAD (0x04D0 ,0x0260 ,0 ,0x056C ,1 ,0 ),MX7D_PAD_ENET1_RX_CLK__WDOG2_WDOG_B =IOMUX_PAD (0x04D0 ,0x0260 ,1 ,0x0000 ,0 ,0 ),MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK =IOMUX_PAD (0x04D0 ,0x0260 ,2 ,0x06A8 ,1 ,0 ), MX7D_PAD_ENET1_RX_CLK__GPT2_CLK = IOMUX_PAD(0x04D0, 0x0260, 3, 0x0000, 0, 0),
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================