Skip to contentSkip to conversation

pinctrl: sh-pfc: r8a7794: add R8A7745 support

PATCH Superseded Sergei Shtylyov 4 participants 6 messages Apr 13, 2017 – Apr 20, 2017 1 message not in the archive

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pinctrl: sh-pfc: r8a7794: add R8A7745 support

Renesas RZ/G1E (R8A7745) is pin compatible with R-Car E2 (R8A7794), however it doesn't have several automotive specific peripherals. Annotate all the items that only exist on the R-Car SoCs and only supply the pin groups/functions existing on a given SoC (that required splitting of the AVB function)...

---
This patch is against the 'devel' branch of Linus Walleij's 'linux-pinctrl.git' repo plus R8A7794 PFC fix and R8A7743 PFC support patch...

Changes in version 2:
- fixed indentation to use tabs instead of spaces;
- updated the PFC bindings.

 Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt |    1 
 drivers/pinctrl/sh-pfc/Kconfig                                    |    5 
 drivers/pinctrl/sh-pfc/Makefile                                   |    1 
 drivers/pinctrl/sh-pfc/core.c                                     |    6 
 drivers/pinctrl/sh-pfc/pfc-r8a7794.c                              | 1970 +++++-----
 drivers/pinctrl/sh-pfc/sh_pfc.h                                   |    1 
 6 files changed, 1140 insertions(+), 844 deletions(-)
Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt +1 -0
Index: linux-pinctrl/Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt
===================================================================
@@ -14,6 +14,7 @@ Required Properties:
     - "renesas,pfc-r8a73a4": for R8A73A4 (R-Mobile APE6) compatible pin-controller.
     - "renesas,pfc-r8a7740": for R8A7740 (R-Mobile A1) compatible pin-controller.
     - "renesas,pfc-r8a7743": for R8A7743 (RZ/G1M) compatible pin-controller.
+    - "renesas,pfc-r8a7745": for R8A7745 (RZ/G1E) compatible pin-controller.
     - "renesas,pfc-r8a7778": for R8A7778 (R-Mobile M1) compatible pin-controller.
     - "renesas,pfc-r8a7779": for R8A7779 (R-Car H1) compatible pin-controller.
     - "renesas,pfc-r8a7790": for R8A7790 (R-Car H2) compatible pin-controller.
drivers/pinctrl/sh-pfc/Kconfig +5 -0
Index: linux-pinctrl/drivers/pinctrl/sh-pfc/Kconfig
===================================================================
@@ -39,6 +39,11 @@ config PINCTRL_PFC_R8A7743
 	depends on ARCH_R8A7743
 	select PINCTRL_SH_PFC
 
+config PINCTRL_PFC_R8A7745
+        def_bool y
+        depends on ARCH_R8A7745
+        select PINCTRL_SH_PFC
+
 config PINCTRL_PFC_R8A7778
 	def_bool y
 	depends on ARCH_R8A7778
drivers/pinctrl/sh-pfc/Makefile +1 -0
Index: linux-pinctrl/drivers/pinctrl/sh-pfc/Makefile
===================================================================
@@ -4,6 +4,7 @@ obj-$(CONFIG_PINCTRL_PFC_EMEV2)	+= pfc-e
 obj-$(CONFIG_PINCTRL_PFC_R8A73A4)	+= pfc-r8a73a4.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7740)	+= pfc-r8a7740.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7743)	+= pfc-r8a7791.o
+obj-$(CONFIG_PINCTRL_PFC_R8A7745)	+= pfc-r8a7794.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7778)	+= pfc-r8a7778.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7779)	+= pfc-r8a7779.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7790)	+= pfc-r8a7790.o
drivers/pinctrl/sh-pfc/core.c +6 -0
Index: linux-pinctrl/drivers/pinctrl/sh-pfc/core.c
===================================================================
@@ -491,6 +491,12 @@ static const struct of_device_id sh_pfc_
 		.data = &r8a7743_pinmux_info,
 	},
 #endif
+#ifdef CONFIG_PINCTRL_PFC_R8A7745
+	{
+		.compatible = "renesas,pfc-r8a7745",
+		.data = &r8a7745_pinmux_info,
+	},
+#endif
 #ifdef CONFIG_PINCTRL_PFC_R8A7778
 	{
 		.compatible = "renesas,pfc-r8a7778",
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +1126 -844

2,560 lines not on this page · raw message

drivers/pinctrl/sh-pfc/sh_pfc.h +1 -0
Index: linux-pinctrl/drivers/pinctrl/sh-pfc/sh_pfc.h
===================================================================
@@ -260,6 +260,7 @@ extern const struct sh_pfc_soc_info emev
 extern const struct sh_pfc_soc_info r8a73a4_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7740_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7743_pinmux_info;
+extern const struct sh_pfc_soc_info r8a7745_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7778_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7779_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7790_pinmux_info;
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 2 lines · Sergei Shtylyov

Renesas RZ/G1E (R8A7745) is pin compatible with R-Car E2 (R8A7794), however it doesn't have several automotive specific peripherals.

Is a single space between words really so hard for you? You've been told to write proper sentences multiple times.

Yes, kernel developers suffer from OCD. Sorry.

Quoted 10 lines

Annotate all the items that only exist on the R-Car SoCs and only supply the pin groups/functions existing on a given SoC (that required splitting of the AVB function)...

---
This patch is against the 'devel' branch of Linus Walleij's 'linux-pinctrl.git' repo plus R8A7794 PFC fix and R8A7743 PFC support patch...

Quoted 5 lines

Changes in version 2:
- fixed indentation to use tabs instead of spaces;
- updated the PFC bindings.

 Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt |    1 

But given it's a one line DT change:

Quoted 6 lines
 drivers/pinctrl/sh-pfc/Kconfig                                    |    5 
 drivers/pinctrl/sh-pfc/Makefile                                   |    1 
 drivers/pinctrl/sh-pfc/core.c                                     |    6 
 drivers/pinctrl/sh-pfc/pfc-r8a7794.c                              | 1970 +++++-----
 drivers/pinctrl/sh-pfc/sh_pfc.h                                   |    1 
 6 files changed, 1140 insertions(+), 844 deletions(-)
#2 lore raw

Hi Rob,

Quoted 8 lines · Rob Herring
Quoted 2 lines · Sergei Shtylyov

Renesas RZ/G1E (R8A7745) is pin compatible with R-Car E2 (R8A7794), however it doesn't have several automotive specific peripherals.

Is a single space between words really so hard for you? You've been told to write proper sentences multiple times.

Yes, kernel developers suffer from OCD. Sorry.

No problem, my OCD corrects the spacing while applying...

Quoted 10 lines
Quoted 10 lines

Annotate all the items that only exist on the R-Car SoCs and only supply the pin groups/functions existing on a given SoC (that required splitting of the AVB function)...

---
This patch is against the 'devel' branch of Linus Walleij's 'linux-pinctrl.git' repo plus R8A7794 PFC fix and R8A7743 PFC support patch...

Quoted 7 lines
Quoted 5 lines

Changes in version 2:
- fixed indentation to use tabs instead of spaces;
- updated the PFC bindings.

 Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt |    1

But given it's a one line DT change:

Which is always correct ;-)

Quoted 1 line

Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Rob Herring
Quoted 5 lines · Rob Herring
Quoted 2 lines

Renesas RZ/G1E (R8A7745) is pin compatible with R-Car E2 (R8A7794), however it doesn't have several automotive specific peripherals.

Is a single space between words really so hard for you? You've been told to write proper sentences multiple times.

Nobody else but suffer from "double spaces". I just failed to remember
that once you are included into the patch addresses (I forget to update the bindings in v1), you'll suffer from it again...

Quoted 1 line

Yes, kernel developers suffer from OCD. Sorry.

Obsessive-compulsive disorder, you mean? I feel your pain then... B-)

Quoted 14 lines
Quoted 14 lines

Annotate all the items that only exist on the R-Car SoCs and only supply the pin groups/functions existing on a given SoC (that required splitting of the AVB function)...

---
This patch is against the 'devel' branch of Linus Walleij's 'linux-pinctrl.git' repo plus R8A7794 PFC fix and R8A7743 PFC support patch...

Changes in version 2:
- fixed indentation to use tabs instead of spaces;
- updated the PFC bindings.

Quoted 5 lines
Quoted 1 line
 Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt |    1

But given it's a one line DT change:

Thank you!

MBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170413201932.890107963-M4DtvfQ/[email protected]

#5 lore raw

Hi Sergei,

Quoted 8 lines · Sergei Shtylyov

Renesas RZ/G1E (R8A7745) is pin compatible with R-Car E2 (R8A7794), however it doesn't have several automotive specific peripherals. Annotate all the items that only exist on the R-Car SoCs and only supply the pin groups/functions existing on a given SoC (that required splitting of the AVB function)...

Quoted 7 lines

---
This patch is against the 'devel' branch of Linus Walleij's 'linux-pinctrl.git' repo plus R8A7794 PFC fix and R8A7743 PFC support patch...

Changes in version 2:
- fixed indentation to use tabs instead of spaces;
- updated the PFC bindings.

Thanks for the update!

Quoted 7 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +0 -0
@@ -110,10 +110,12 @@ enum {
        FN_I2C1_SDA_B, FN_D10, FN_HSCIF2_HSCK, FN_SCIF1_SCK_C, FN_IRQ6,
        FN_PWM5_C, FN_D11, FN_HSCIF2_HCTS_N, FN_SCIF1_RXD_C, FN_I2C1_SCL_D,
        FN_D12, FN_HSCIF2_HRTS_N, FN_SCIF1_TXD_C, FN_I2C1_SDA_D, FN_D13,

drivers/pinctrl/sh-pfc/pfc-r8a7794.c enum { · line 118

Quoted 10 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +6 -4
-       FN_SCIFA1_SCK, FN_TANS1, FN_PWM2_C, FN_TCLK2_B, FN_D14, FN_SCIFA1_RXD,
-       FN_IIC0_SCL_B, FN_D15, FN_SCIFA1_TXD, FN_IIC0_SDA_B, FN_A0,
-       FN_SCIFB1_SCK, FN_PWM3_B, FN_A1, FN_SCIFB1_TXD, FN_A3, FN_SCIFB0_SCK,
-       FN_A4, FN_SCIFB0_TXD, FN_A5, FN_SCIFB0_RXD, FN_PWM4_B, FN_TPUTO3_C,
+       FN_SCIFA1_SCK, FN_TANS1 /* R8A7794 only */, FN_PWM2_C, FN_TCLK2_B,
+       FN_D14, FN_SCIFA1_RXD, FN_IIC0_SCL_B,
+       FN_D15, FN_SCIFA1_TXD, FN_IIC0_SDA_B,
+       FN_A0, FN_SCIFB1_SCK, FN_PWM3_B, FN_A1, FN_SCIFB1_TXD,
+       FN_A3, FN_SCIFB0_SCK, FN_A4, FN_SCIFB0_TXD,
+       FN_A5, FN_SCIFB0_RXD, FN_PWM4_B, FN_TPUTO3_C,

I still have mixed feelings about adding all these annotations. IMHO the groups and functions provide sufficient documentation, and not adding the annotations means less code has to be changed now, and perhaps in the future.

Quoted 7 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +0 -3
@@ -123,77 +125,139 @@ enum {
        FN_A12, FN_MSIOF1_SS1, FN_SCIFA5_RXD_B, FN_A13, FN_MSIOF1_SS2,
        FN_SCIFA5_TXD_B, FN_A14, FN_MSIOF2_RXD, FN_HSCIF0_HRX_B, FN_DREQ1_N,
        FN_A15, FN_MSIOF2_TXD, FN_HSCIF0_HTX_B, FN_DACK1, FN_A16,
-       FN_MSIOF2_SCK, FN_HSCIF0_HSCK_B, FN_SPEEDIN, FN_VSP, FN_CAN_CLK_C,
-       FN_TPUTO2_B, FN_A17, FN_MSIOF2_SYNC, FN_SCIF4_RXD_E, FN_CAN1_RX_B,
-       FN_AVB_AVTP_CAPTURE_B, FN_A18, FN_MSIOF2_SS1, FN_SCIF4_TXD_E,

drivers/pinctrl/sh-pfc/pfc-r8a7794.c enum { · line 135

Quoted 10 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +8 -2
-       FN_CAN1_TX_B, FN_AVB_AVTP_MATCH_B, FN_A19, FN_MSIOF2_SS2, FN_PWM4,
-       FN_TPUTO2, FN_MOUT0, FN_A20, FN_SPCLK, FN_MOUT1,
+       FN_MSIOF2_SCK, FN_HSCIF0_HSCK_B, FN_SPEEDIN /* R8A7794 only */,
+       FN_VSP /* R8A7794 only */, FN_CAN_CLK_C, FN_TPUTO2_B,
+       FN_A17, FN_MSIOF2_SYNC, FN_SCIF4_RXD_E, FN_CAN1_RX_B,
+       FN_AVB_AVTP_CAPTURE_B /* R8A7794 only */,
+       FN_A18, FN_MSIOF2_SS1, FN_SCIF4_TXD_E, FN_CAN1_TX_B,
+       FN_AVB_AVTP_MATCH_B /* R8A7794 only */,
+       FN_A19, FN_MSIOF2_SS2, FN_PWM4, FN_TPUTO2, FN_MOUT0 /* R8A7794 only */,
+       FN_A20, FN_SPCLK, FN_MOUT1 /* R8A7794 only */,

Interestingly, the AVB_AVTP bits are marked "reserved" in revision 1.10 of the R-Car E2 user manual as well.
The only remnants are in Table 5.2, for GP5[11] and GP5[12].

Quoted 25 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +4 -1
 static const struct sh_pfc_pin pinmux_pins[] = {
@@ -1660,6 +1898,7 @@ static const unsigned int avb_gmii_mux[]
        AVB_TX_EN_MARK, AVB_TX_ER_MARK, AVB_TX_CLK_MARK,
        AVB_COL_MARK,
 };
+/* - AVB AVTP (R8A7794 only) ------------------------------------------------ */
 static const unsigned int avb_avtp_capture_pins[] = {
        RCAR_GP_PIN(5, 11),
 };
@@ -3809,6 +4055,9 @@ static const char * const avb_groups[] =
        "avb_mdio",
        "avb_mii",
        "avb_gmii",
+};
+
+static const char * const avb_avtp_groups[] = {
        "avb_avtp_capture",
        "avb_avtp_match",
        "avb_avtp_capture_b",
@@ -4183,50 +4432,58 @@ static const char * const vin1_groups[]
        "vin1_clk",
 };
 
-static const struct sh_pfc_function pinmux_functions[] = {

[...]

Quoted 4 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +4 -0
+static const struct {
+       struct sh_pfc_function common[43];
+       struct sh_pfc_function r8a7794[1];
+} pinmux_functions = {

[...]

drivers/pinctrl/sh-pfc/pfc-r8a7794.c static const char * const vin1_groups[] · line 4486

Quoted 3 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +3 -0
+       .r8a7794 = {
+               SH_PFC_FUNCTION(avb_avtp),
+       }

This changes the user-visible name of the pinctrl function from "avb" to "avb_avtp", which is part of the DT ABI.

Combined with the above, I'm inclined to not touch AVB_AVTP for now.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
Quoted 21 lines · Geert Uytterhoeven
Quoted 8 lines

Renesas RZ/G1E (R8A7745) is pin compatible with R-Car E2 (R8A7794), however it doesn't have several automotive specific peripherals. Annotate all the items that only exist on the R-Car SoCs and only supply the pin groups/functions existing on a given SoC (that required splitting of the AVB function)...

Quoted 7 lines

---
This patch is against the 'devel' branch of Linus Walleij's 'linux-pinctrl.git' repo plus R8A7794 PFC fix and R8A7743 PFC support patch...

Changes in version 2:
- fixed indentation to use tabs instead of spaces;
- updated the PFC bindings.

Thanks for the update!

Quoted 2 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +0 -0
Quoted 16 lines
Quoted 4 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +0 -0
@@ -110,10 +110,12 @@ enum {
        FN_I2C1_SDA_B, FN_D10, FN_HSCIF2_HSCK, FN_SCIF1_SCK_C, FN_IRQ6,
        FN_PWM5_C, FN_D11, FN_HSCIF2_HCTS_N, FN_SCIF1_RXD_C, FN_I2C1_SCL_D,
        FN_D12, FN_HSCIF2_HRTS_N, FN_SCIF1_TXD_C, FN_I2C1_SDA_D, FN_D13,

drivers/pinctrl/sh-pfc/pfc-r8a7794.c enum { · line 118

Quoted 10 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +6 -4
-       FN_SCIFA1_SCK, FN_TANS1, FN_PWM2_C, FN_TCLK2_B, FN_D14, FN_SCIFA1_RXD,
-       FN_IIC0_SCL_B, FN_D15, FN_SCIFA1_TXD, FN_IIC0_SDA_B, FN_A0,
-       FN_SCIFB1_SCK, FN_PWM3_B, FN_A1, FN_SCIFB1_TXD, FN_A3, FN_SCIFB0_SCK,
-       FN_A4, FN_SCIFB0_TXD, FN_A5, FN_SCIFB0_RXD, FN_PWM4_B, FN_TPUTO3_C,
+       FN_SCIFA1_SCK, FN_TANS1 /* R8A7794 only */, FN_PWM2_C, FN_TCLK2_B,
+       FN_D14, FN_SCIFA1_RXD, FN_IIC0_SCL_B,
+       FN_D15, FN_SCIFA1_TXD, FN_IIC0_SDA_B,
+       FN_A0, FN_SCIFB1_SCK, FN_PWM3_B, FN_A1, FN_SCIFB1_TXD,
+       FN_A3, FN_SCIFB0_SCK, FN_A4, FN_SCIFB0_TXD,
+       FN_A5, FN_SCIFB0_RXD, FN_PWM4_B, FN_TPUTO3_C,

I still have mixed feelings about adding all these annotations.

I don't. With the R-Car gen2 manuals not publicly available, this info
seems crucial enough...

Quoted 1 line

IMHO the groups and functions provide sufficient documentation, and not adding

Not when adding the new ones!

Quoted 2 lines

the annotations means less code has to be changed now, and perhaps in the future.

No, I won't give in! B-)

Quoted 13 lines
Quoted 13 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +4 -5
@@ -123,77 +125,139 @@ enum {
        FN_A12, FN_MSIOF1_SS1, FN_SCIFA5_RXD_B, FN_A13, FN_MSIOF1_SS2,
        FN_SCIFA5_TXD_B, FN_A14, FN_MSIOF2_RXD, FN_HSCIF0_HRX_B, FN_DREQ1_N,
        FN_A15, FN_MSIOF2_TXD, FN_HSCIF0_HTX_B, FN_DACK1, FN_A16,
-       FN_MSIOF2_SCK, FN_HSCIF0_HSCK_B, FN_SPEEDIN, FN_VSP, FN_CAN_CLK_C,
-       FN_TPUTO2_B, FN_A17, FN_MSIOF2_SYNC, FN_SCIF4_RXD_E, FN_CAN1_RX_B,
-       FN_AVB_AVTP_CAPTURE_B, FN_A18, FN_MSIOF2_SS1, FN_SCIF4_TXD_E,
-       FN_CAN1_TX_B, FN_AVB_AVTP_MATCH_B, FN_A19, FN_MSIOF2_SS2, FN_PWM4,
-       FN_TPUTO2, FN_MOUT0, FN_A20, FN_SPCLK, FN_MOUT1,
+       FN_MSIOF2_SCK, FN_HSCIF0_HSCK_B, FN_SPEEDIN /* R8A7794 only */,
+       FN_VSP /* R8A7794 only */, FN_CAN_CLK_C, FN_TPUTO2_B,
+       FN_A17, FN_MSIOF2_SYNC, FN_SCIF4_RXD_E, FN_CAN1_RX_B,
+       FN_AVB_AVTP_CAPTURE_B /* R8A7794 only */,
Quoted 8 lines

drivers/pinctrl/sh-pfc/pfc-r8a7794.c enum { · line 135

Quoted 4 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +4 -0
+       FN_A18, FN_MSIOF2_SS1, FN_SCIF4_TXD_E, FN_CAN1_TX_B,
+       FN_AVB_AVTP_MATCH_B /* R8A7794 only */,
+       FN_A19, FN_MSIOF2_SS2, FN_PWM4, FN_TPUTO2, FN_MOUT0 /* R8A7794 only */,
+       FN_A20, FN_SPCLK, FN_MOUT1 /* R8A7794 only */,

Interestingly, the AVB_AVTP bits are marked "reserved" in revision 1.10 of the R-Car E2 user manual as well.
The only remnants are in Table 5.2, for GP5[11] and GP5[12].

Hum, indeed!

Quoted 35 lines
Quoted 25 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +4 -1
 static const struct sh_pfc_pin pinmux_pins[] = {
@@ -1660,6 +1898,7 @@ static const unsigned int avb_gmii_mux[]
        AVB_TX_EN_MARK, AVB_TX_ER_MARK, AVB_TX_CLK_MARK,
        AVB_COL_MARK,
 };
+/* - AVB AVTP (R8A7794 only) ------------------------------------------------ */
 static const unsigned int avb_avtp_capture_pins[] = {
        RCAR_GP_PIN(5, 11),
 };
@@ -3809,6 +4055,9 @@ static const char * const avb_groups[] =
        "avb_mdio",
        "avb_mii",
        "avb_gmii",
+};
+
+static const char * const avb_avtp_groups[] = {
        "avb_avtp_capture",
        "avb_avtp_match",
        "avb_avtp_capture_b",
@@ -4183,50 +4432,58 @@ static const char * const vin1_groups[]
        "vin1_clk",
 };
 
-static const struct sh_pfc_function pinmux_functions[] = {

[...]

Quoted 4 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +4 -0
+static const struct {
+       struct sh_pfc_function common[43];
+       struct sh_pfc_function r8a7794[1];
+} pinmux_functions = {

[...]

Quoted 6 lines

drivers/pinctrl/sh-pfc/pfc-r8a7794.c static const char * const vin1_groups[] · line 4486

Quoted 3 lines
drivers/pinctrl/sh-pfc/pfc-r8a7794.c +3 -0
+       .r8a7794 = {
+               SH_PFC_FUNCTION(avb_avtp),
+       }

This changes the user-visible name of the pinctrl function from "avb" to "avb_avtp", which is part of the DT ABI.

I couldn't invent anything better...

Quoted 1 line

Combined with the above, I'm inclined to not touch AVB_AVTP for now.

Indeed. However the 1.10 manual seems to suggest that they should just be
removed for good. Would you agree?

Quoted 4 lines

Gr{oetje,eeting}s,

Geert

MBR, Sergei