diff mbox series

[4/8] pinctrl: sh-pfc: rcar-gen3: Remove HDMI CEC pins, groups, and functions

Message ID 20190329152942.13995-5-geert+renesas@glider.be (mailing list archive)
State Accepted
Delegated to: Geert Uytterhoeven
Headers show
Series pinctrl: sh-pfc: Errata Updates | expand

Commit Message

Geert Uytterhoeven March 29, 2019, 3:29 p.m. UTC
From: Takeshi Kihara <takeshi.kihara.df@renesas.com>

This reverts commit 7793ac664c5ebebdb021c4ec66ff9d174d58e98e.

The HDMI CEC function is not supported by the R-Car Gen3 Hardware Manual
Rev 1.00. Therefore, delete the corresponding pin groups and functions,
and rename the HDMI[01]_CEC definitions to match their GPIO
functionality.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
[geert: Squashed several commits]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c | 44 +++++-------------------
 drivers/pinctrl/sh-pfc/pfc-r8a7795.c     | 44 +++++-------------------
 drivers/pinctrl/sh-pfc/pfc-r8a7796.c     | 27 ++++-----------
 drivers/pinctrl/sh-pfc/pfc-r8a77965.c    |  8 ++---
 4 files changed, 26 insertions(+), 97 deletions(-)

Comments

Simon Horman April 1, 2019, 10:14 a.m. UTC | #1
On Fri, Mar 29, 2019 at 04:29:38PM +0100, Geert Uytterhoeven wrote:
> From: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> 
> This reverts commit 7793ac664c5ebebdb021c4ec66ff9d174d58e98e.
> 
> The HDMI CEC function is not supported by the R-Car Gen3 Hardware Manual
> Rev 1.00. Therefore, delete the corresponding pin groups and functions,
> and rename the HDMI[01]_CEC definitions to match their GPIO
> functionality.
> 
> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> [geert: Squashed several commits]

Ok, but it now does a lot more than revert
7793ac664c5ebebdb021c4ec66ff9d174d58e98e.
That confused me a bit.

> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c | 44 +++++-------------------
>  drivers/pinctrl/sh-pfc/pfc-r8a7795.c     | 44 +++++-------------------
>  drivers/pinctrl/sh-pfc/pfc-r8a7796.c     | 27 ++++-----------
>  drivers/pinctrl/sh-pfc/pfc-r8a77965.c    |  8 ++---
>  4 files changed, 26 insertions(+), 97 deletions(-)
> 
> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c
> index 50d82f0fa4260530..95fa082ae4439f16 100644
> --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c
> @@ -199,8 +199,8 @@
>  #define GPSR6_0		F_(SSI_SCK01239,	IP13_23_20)
>  
>  /* GPSR7 */
> -#define GPSR7_3		FM(HDMI1_CEC)
> -#define GPSR7_2		FM(HDMI0_CEC)
> +#define GPSR7_3		FM(GP7_03)
> +#define GPSR7_2		FM(GP7_02)
>  #define GPSR7_1		FM(AVS2)
>  #define GPSR7_0		FM(AVS1)
>  
> @@ -577,8 +577,8 @@ static const u16 pinmux_data[] = {
>  
>  	PINMUX_SINGLE(AVS1),
>  	PINMUX_SINGLE(AVS2),
> -	PINMUX_SINGLE(HDMI0_CEC),
> -	PINMUX_SINGLE(HDMI1_CEC),
> +	PINMUX_SINGLE(GP7_02),
> +	PINMUX_SINGLE(GP7_03),
>  	PINMUX_SINGLE(MSIOF0_RXD),
>  	PINMUX_SINGLE(MSIOF0_SCK),
>  	PINMUX_SINGLE(MSIOF0_TXD),
> @@ -2072,22 +2072,6 @@ static const unsigned int du_disp_pins[] = {
>  static const unsigned int du_disp_mux[] = {
>  	DU_DISP_MARK,
>  };
> -/* - HDMI ------------------------------------------------------------------- */
> -static const unsigned int hdmi0_cec_pins[] = {
> -	/* HDMI0_CEC */
> -	RCAR_GP_PIN(7, 2),
> -};
> -static const unsigned int hdmi0_cec_mux[] = {
> -	HDMI0_CEC_MARK,
> -};
> -static const unsigned int hdmi1_cec_pins[] = {
> -	/* HDMI1_CEC */
> -	RCAR_GP_PIN(7, 3),
> -};
> -static const unsigned int hdmi1_cec_mux[] = {
> -	HDMI1_CEC_MARK,
> -};
> -
>  /* - HSCIF0 ----------------------------------------------------------------- */
>  static const unsigned int hscif0_data_pins[] = {
>  	/* RX, TX */
> @@ -3945,8 +3929,6 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
>  	SH_PFC_PIN_GROUP(du_oddf),
>  	SH_PFC_PIN_GROUP(du_cde),
>  	SH_PFC_PIN_GROUP(du_disp),
> -	SH_PFC_PIN_GROUP(hdmi0_cec),
> -	SH_PFC_PIN_GROUP(hdmi1_cec),
>  	SH_PFC_PIN_GROUP(hscif0_data),
>  	SH_PFC_PIN_GROUP(hscif0_clk),
>  	SH_PFC_PIN_GROUP(hscif0_ctrl),
> @@ -4300,14 +4282,6 @@ static const char * const du_groups[] = {
>  	"du_disp",
>  };
>  
> -static const char * const hdmi0_groups[] = {
> -	"hdmi0_cec",
> -};
> -
> -static const char * const hdmi1_groups[] = {
> -	"hdmi1_cec",
> -};
> -
>  static const char * const hscif0_groups[] = {
>  	"hscif0_data",
>  	"hscif0_clk",
> @@ -4695,8 +4669,6 @@ static const struct sh_pfc_function pinmux_functions[] = {
>  	SH_PFC_FUNCTION(drif2),
>  	SH_PFC_FUNCTION(drif3),
>  	SH_PFC_FUNCTION(du),
> -	SH_PFC_FUNCTION(hdmi0),
> -	SH_PFC_FUNCTION(hdmi1),
>  	SH_PFC_FUNCTION(hscif0),
>  	SH_PFC_FUNCTION(hscif1),
>  	SH_PFC_FUNCTION(hscif2),
> @@ -5415,8 +5387,8 @@ static const struct pinmux_drive_reg pinmux_drive_regs[] = {
>  		{ RCAR_GP_PIN(0, 15),   24, 3 },	/* D15 */
>  		{ RCAR_GP_PIN(7,  0),   20, 3 },	/* AVS1 */
>  		{ RCAR_GP_PIN(7,  1),   16, 3 },	/* AVS2 */
> -		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* HDMI0_CEC */
> -		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* HDMI1_CEC */
> +		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* GP7_02 */
> +		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* GP7_03 */
>  		{ PIN_A_NUMBER('P', 7),  4, 2 },	/* DU_DOTCLKIN0 */
>  		{ PIN_A_NUMBER('P', 8),  0, 2 },	/* DU_DOTCLKIN1 */
>  	} },
> @@ -5673,8 +5645,8 @@ static const struct pinmux_bias_reg pinmux_bias_regs[] = {
>  		[25] = RCAR_GP_PIN(0, 15),	/* D15 */
>  		[26] = RCAR_GP_PIN(7,  0),	/* AVS1 */
>  		[27] = RCAR_GP_PIN(7,  1),	/* AVS2 */
> -		[28] = RCAR_GP_PIN(7,  2),	/* HDMI0_CEC */
> -		[29] = RCAR_GP_PIN(7,  3),	/* HDMI1_CEC */
> +		[28] = RCAR_GP_PIN(7,  2),	/* GP7_02 */
> +		[29] = RCAR_GP_PIN(7,  3),	/* GP7_03 */
>  		[30] = PIN_A_NUMBER('P', 7),	/* DU_DOTCLKIN0 */
>  		[31] = PIN_A_NUMBER('P', 8),	/* DU_DOTCLKIN1 */
>  	} },
> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
> index 7c19dde43e35369b..63d0eb2cd879a68f 100644
> --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
> @@ -201,8 +201,8 @@
>  #define GPSR6_0		F_(SSI_SCK01239,		IP14_23_20)
>  
>  /* GPSR7 */
> -#define GPSR7_3		FM(HDMI1_CEC)
> -#define GPSR7_2		FM(HDMI0_CEC)
> +#define GPSR7_3		FM(GP7_03)
> +#define GPSR7_2		FM(GP7_02)
>  #define GPSR7_1		FM(AVS2)
>  #define GPSR7_0		FM(AVS1)
>  
> @@ -591,8 +591,8 @@ static const u16 pinmux_data[] = {
>  	PINMUX_SINGLE(AVS1),
>  	PINMUX_SINGLE(AVS2),
>  	PINMUX_SINGLE(CLKOUT),
> -	PINMUX_SINGLE(HDMI0_CEC),
> -	PINMUX_SINGLE(HDMI1_CEC),
> +	PINMUX_SINGLE(GP7_02),
> +	PINMUX_SINGLE(GP7_03),
>  	PINMUX_SINGLE(MSIOF0_RXD),
>  	PINMUX_SINGLE(MSIOF0_SCK),
>  	PINMUX_SINGLE(MSIOF0_TXD),
> @@ -2132,22 +2132,6 @@ static const unsigned int du_disp_mux[] = {
>  	DU_DISP_MARK,
>  };
>  
> -/* - HDMI ------------------------------------------------------------------- */
> -static const unsigned int hdmi0_cec_pins[] = {
> -	/* HDMI0_CEC */
> -	RCAR_GP_PIN(7, 2),
> -};
> -static const unsigned int hdmi0_cec_mux[] = {
> -	HDMI0_CEC_MARK,
> -};
> -static const unsigned int hdmi1_cec_pins[] = {
> -	/* HDMI1_CEC */
> -	RCAR_GP_PIN(7, 3),
> -};
> -static const unsigned int hdmi1_cec_mux[] = {
> -	HDMI1_CEC_MARK,
> -};
> -
>  /* - HSCIF0 ----------------------------------------------------------------- */
>  static const unsigned int hscif0_data_pins[] = {
>  	/* RX, TX */
> @@ -4226,8 +4210,6 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
>  	SH_PFC_PIN_GROUP(du_oddf),
>  	SH_PFC_PIN_GROUP(du_cde),
>  	SH_PFC_PIN_GROUP(du_disp),
> -	SH_PFC_PIN_GROUP(hdmi0_cec),
> -	SH_PFC_PIN_GROUP(hdmi1_cec),
>  	SH_PFC_PIN_GROUP(hscif0_data),
>  	SH_PFC_PIN_GROUP(hscif0_clk),
>  	SH_PFC_PIN_GROUP(hscif0_ctrl),
> @@ -4612,14 +4594,6 @@ static const char * const du_groups[] = {
>  	"du_disp",
>  };
>  
> -static const char * const hdmi0_groups[] = {
> -	"hdmi0_cec",
> -};
> -
> -static const char * const hdmi1_groups[] = {
> -	"hdmi1_cec",
> -};
> -
>  static const char * const hscif0_groups[] = {
>  	"hscif0_data",
>  	"hscif0_clk",
> @@ -5038,8 +5012,6 @@ static const struct sh_pfc_function pinmux_functions[] = {
>  	SH_PFC_FUNCTION(drif2),
>  	SH_PFC_FUNCTION(drif3),
>  	SH_PFC_FUNCTION(du),
> -	SH_PFC_FUNCTION(hdmi0),
> -	SH_PFC_FUNCTION(hdmi1),
>  	SH_PFC_FUNCTION(hscif0),
>  	SH_PFC_FUNCTION(hscif1),
>  	SH_PFC_FUNCTION(hscif2),
> @@ -5766,8 +5738,8 @@ static const struct pinmux_drive_reg pinmux_drive_regs[] = {
>  		{ RCAR_GP_PIN(0, 15),   24, 3 },	/* D15 */
>  		{ RCAR_GP_PIN(7,  0),   20, 3 },	/* AVS1 */
>  		{ RCAR_GP_PIN(7,  1),   16, 3 },	/* AVS2 */
> -		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* HDMI0_CEC */
> -		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* HDMI1_CEC */
> +		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* GP7_02 */
> +		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* GP7_03 */
>  		{ PIN_A_NUMBER('P', 7),  4, 2 },	/* DU_DOTCLKIN0 */
>  		{ PIN_A_NUMBER('P', 8),  0, 2 },	/* DU_DOTCLKIN1 */
>  	} },
> @@ -6023,8 +5995,8 @@ static const struct pinmux_bias_reg pinmux_bias_regs[] = {
>  		[25] = RCAR_GP_PIN(0, 15),	/* D15 */
>  		[26] = RCAR_GP_PIN(7,  0),	/* AVS1 */
>  		[27] = RCAR_GP_PIN(7,  1),	/* AVS2 */
> -		[28] = RCAR_GP_PIN(7,  2),	/* HDMI0_CEC */
> -		[29] = RCAR_GP_PIN(7,  3),	/* HDMI1_CEC */
> +		[28] = RCAR_GP_PIN(7,  2),	/* GP7_02 */
> +		[29] = RCAR_GP_PIN(7,  3),	/* GP7_03 */
>  		[30] = PIN_A_NUMBER('P', 7),	/* DU_DOTCLKIN0 */
>  		[31] = PIN_A_NUMBER('P', 8),	/* DU_DOTCLKIN1 */
>  	} },
> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
> index 57faa52d06a70bcb..b463062b77fecbdb 100644
> --- a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
> @@ -207,7 +207,7 @@
>  
>  /* GPSR7 */
>  #define GPSR7_3		FM(GP7_03)
> -#define GPSR7_2		FM(HDMI0_CEC)
> +#define GPSR7_2		FM(GP7_02)
>  #define GPSR7_1		FM(AVS2)
>  #define GPSR7_0		FM(AVS1)
>  
> @@ -598,7 +598,7 @@ static const u16 pinmux_data[] = {
>  	PINMUX_SINGLE(AVS2),
>  	PINMUX_SINGLE(CLKOUT),
>  	PINMUX_SINGLE(GP7_03),
> -	PINMUX_SINGLE(HDMI0_CEC),
> +	PINMUX_SINGLE(GP7_02),
>  	PINMUX_SINGLE(MSIOF0_RXD),
>  	PINMUX_SINGLE(MSIOF0_SCK),
>  	PINMUX_SINGLE(MSIOF0_TXD),
> @@ -2141,15 +2141,6 @@ static const unsigned int du_disp_mux[] = {
>  	DU_DISP_MARK,
>  };
>  
> -/* - HDMI ------------------------------------------------------------------- */
> -static const unsigned int hdmi0_cec_pins[] = {
> -	/* HDMI0_CEC */
> -	RCAR_GP_PIN(7, 2),
> -};
> -static const unsigned int hdmi0_cec_mux[] = {
> -	HDMI0_CEC_MARK,
> -};
> -
>  /* - HSCIF0 ----------------------------------------------------------------- */
>  static const unsigned int hscif0_data_pins[] = {
>  	/* RX, TX */
> @@ -4125,7 +4116,7 @@ static const unsigned int vin5_clk_mux[] = {
>  };
>  
>  static const struct {
> -	struct sh_pfc_pin_group common[313];
> +	struct sh_pfc_pin_group common[312];
>  	struct sh_pfc_pin_group automotive[30];
>  } pinmux_groups = {
>  	.common = {
> @@ -4172,7 +4163,6 @@ static const struct {
>  		SH_PFC_PIN_GROUP(du_oddf),
>  		SH_PFC_PIN_GROUP(du_cde),
>  		SH_PFC_PIN_GROUP(du_disp),
> -		SH_PFC_PIN_GROUP(hdmi0_cec),
>  		SH_PFC_PIN_GROUP(hscif0_data),
>  		SH_PFC_PIN_GROUP(hscif0_clk),
>  		SH_PFC_PIN_GROUP(hscif0_ctrl),
> @@ -4586,10 +4576,6 @@ static const char * const du_groups[] = {
>  	"du_disp",
>  };
>  
> -static const char * const hdmi0_groups[] = {
> -	"hdmi0_cec",
> -};
> -
>  static const char * const hscif0_groups[] = {
>  	"hscif0_data",
>  	"hscif0_clk",
> @@ -4983,7 +4969,7 @@ static const char * const vin5_groups[] = {
>  };
>  
>  static const struct {
> -	struct sh_pfc_function common[50];
> +	struct sh_pfc_function common[49];
>  	struct sh_pfc_function automotive[4];
>  } pinmux_functions = {
>  	.common = {
> @@ -4995,7 +4981,6 @@ static const struct {
>  		SH_PFC_FUNCTION(canfd0),
>  		SH_PFC_FUNCTION(canfd1),
>  		SH_PFC_FUNCTION(du),
> -		SH_PFC_FUNCTION(hdmi0),
>  		SH_PFC_FUNCTION(hscif0),
>  		SH_PFC_FUNCTION(hscif1),
>  		SH_PFC_FUNCTION(hscif2),
> @@ -5725,7 +5710,7 @@ static const struct pinmux_drive_reg pinmux_drive_regs[] = {
>  		{ RCAR_GP_PIN(0, 15),   24, 3 },	/* D15 */
>  		{ RCAR_GP_PIN(7,  0),   20, 3 },	/* AVS1 */
>  		{ RCAR_GP_PIN(7,  1),   16, 3 },	/* AVS2 */
> -		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* HDMI0_CEC */
> +		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* GP7_02 */
>  		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* GP7_03 */
>  		{ PIN_A_NUMBER('P', 7),  4, 2 },	/* DU_DOTCLKIN0 */
>  		{ PIN_A_NUMBER('P', 8),  0, 2 },	/* DU_DOTCLKIN1 */
> @@ -5981,7 +5966,7 @@ static const struct pinmux_bias_reg pinmux_bias_regs[] = {
>  		[25] = RCAR_GP_PIN(0, 15),	/* D15 */
>  		[26] = RCAR_GP_PIN(7,  0),	/* AVS1 */
>  		[27] = RCAR_GP_PIN(7,  1),	/* AVS2 */
> -		[28] = RCAR_GP_PIN(7,  2),	/* HDMI0_CEC */
> +		[28] = RCAR_GP_PIN(7,  2),	/* GP7_02 */
>  		[29] = RCAR_GP_PIN(7,  3),	/* GP7_03 */
>  		[30] = PIN_A_NUMBER('P', 7),	/* DU_DOTCLKIN0 */
>  		[31] = PIN_A_NUMBER('P', 8),	/* DU_DOTCLKIN1 */
> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
> index d2390e3bae6738b1..396ef8335bb8cfd8 100644
> --- a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
> @@ -208,7 +208,7 @@
>  
>  /* GPSR7 */
>  #define GPSR7_3		FM(GP7_03)
> -#define GPSR7_2		FM(HDMI0_CEC)
> +#define GPSR7_2		FM(GP7_02)
>  #define GPSR7_1		FM(AVS2)
>  #define GPSR7_0		FM(AVS1)
>  
> @@ -595,7 +595,7 @@ static const u16 pinmux_data[] = {
>  	PINMUX_SINGLE(AVS2),
>  	PINMUX_SINGLE(CLKOUT),
>  	PINMUX_SINGLE(GP7_03),
> -	PINMUX_SINGLE(HDMI0_CEC),
> +	PINMUX_SINGLE(GP7_02),
>  	PINMUX_SINGLE(MSIOF0_RXD),
>  	PINMUX_SINGLE(MSIOF0_SCK),
>  	PINMUX_SINGLE(MSIOF0_TXD),
> @@ -5882,7 +5882,7 @@ static const struct pinmux_drive_reg pinmux_drive_regs[] = {
>  		{ RCAR_GP_PIN(0, 15),   24, 3 },	/* D15 */
>  		{ RCAR_GP_PIN(7,  0),   20, 3 },	/* AVS1 */
>  		{ RCAR_GP_PIN(7,  1),   16, 3 },	/* AVS2 */
> -		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* HDMI0_CEC */
> +		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* GP7_02 */
>  		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* GP7_03 */
>  		{ PIN_A_NUMBER('P', 7),  4, 2 },	/* DU_DOTCLKIN0 */
>  		{ PIN_A_NUMBER('P', 8),  0, 2 },	/* DU_DOTCLKIN1 */
> @@ -6138,7 +6138,7 @@ static const struct pinmux_bias_reg pinmux_bias_regs[] = {
>  		[25] = RCAR_GP_PIN(0, 15),	/* D15 */
>  		[26] = RCAR_GP_PIN(7,  0),	/* AVS1 */
>  		[27] = RCAR_GP_PIN(7,  1),	/* AVS2 */
> -		[28] = RCAR_GP_PIN(7,  2),	/* HDMI0_CEC */
> +		[28] = RCAR_GP_PIN(7,  2),	/* GP7_02 */
>  		[29] = RCAR_GP_PIN(7,  3),	/* GP7_03 */
>  		[30] = PIN_A_NUMBER('P', 7),	/* DU_DOTCLKIN0 */
>  		[31] = PIN_A_NUMBER('P', 8),	/* DU_DOTCLKIN1 */
> -- 
> 2.17.1
>
Simon Horman April 1, 2019, 10:25 a.m. UTC | #2
On Mon, Apr 01, 2019 at 12:14:26PM +0200, Simon Horman wrote:
> On Fri, Mar 29, 2019 at 04:29:38PM +0100, Geert Uytterhoeven wrote:
> > From: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> > 
> > This reverts commit 7793ac664c5ebebdb021c4ec66ff9d174d58e98e.
> > 
> > The HDMI CEC function is not supported by the R-Car Gen3 Hardware Manual
> > Rev 1.00. Therefore, delete the corresponding pin groups and functions,
> > and rename the HDMI[01]_CEC definitions to match their GPIO
> > functionality.
> > 
> > Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> > [geert: Squashed several commits]
> 
> Ok, but it now does a lot more than revert
> 7793ac664c5ebebdb021c4ec66ff9d174d58e98e.
> That confused me a bit.

That notwithstanding,

Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Geert Uytterhoeven April 1, 2019, 10:58 a.m. UTC | #3
Hi Simon,

On Mon, Apr 1, 2019 at 12:25 PM Simon Horman <horms@verge.net.au> wrote:
> On Mon, Apr 01, 2019 at 12:14:26PM +0200, Simon Horman wrote:
> > On Fri, Mar 29, 2019 at 04:29:38PM +0100, Geert Uytterhoeven wrote:
> > > From: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> > >
> > > This reverts commit 7793ac664c5ebebdb021c4ec66ff9d174d58e98e.
> > >
> > > The HDMI CEC function is not supported by the R-Car Gen3 Hardware Manual
> > > Rev 1.00. Therefore, delete the corresponding pin groups and functions,
> > > and rename the HDMI[01]_CEC definitions to match their GPIO
> > > functionality.
> > >
> > > Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> > > [geert: Squashed several commits]
> >
> > Ok, but it now does a lot more than revert
> > 7793ac664c5ebebdb021c4ec66ff9d174d58e98e.
> > That confused me a bit.

Sorry, I forgot to remove that line when squashing the commits.
Will fix when queuing.

> That notwithstanding,
>
> Reviewed-by: Simon Horman <horms+renesas@verge.net.au>

Thanks!

Gr{oetje,eeting}s,

                        Geert
Simon Horman April 3, 2019, 8:37 a.m. UTC | #4
On Mon, Apr 01, 2019 at 12:58:13PM +0200, Geert Uytterhoeven wrote:
> Hi Simon,
> 
> On Mon, Apr 1, 2019 at 12:25 PM Simon Horman <horms@verge.net.au> wrote:
> > On Mon, Apr 01, 2019 at 12:14:26PM +0200, Simon Horman wrote:
> > > On Fri, Mar 29, 2019 at 04:29:38PM +0100, Geert Uytterhoeven wrote:
> > > > From: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> > > >
> > > > This reverts commit 7793ac664c5ebebdb021c4ec66ff9d174d58e98e.
> > > >
> > > > The HDMI CEC function is not supported by the R-Car Gen3 Hardware Manual
> > > > Rev 1.00. Therefore, delete the corresponding pin groups and functions,
> > > > and rename the HDMI[01]_CEC definitions to match their GPIO
> > > > functionality.
> > > >
> > > > Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
> > > > [geert: Squashed several commits]
> > >
> > > Ok, but it now does a lot more than revert
> > > 7793ac664c5ebebdb021c4ec66ff9d174d58e98e.
> > > That confused me a bit.
> 
> Sorry, I forgot to remove that line when squashing the commits.
> Will fix when queuing.

Great, thanks!

> > That notwithstanding,
> >
> > Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
> 
> Thanks!
> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> -- 
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> 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
>
diff mbox series

Patch

diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c
index 50d82f0fa4260530..95fa082ae4439f16 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c
@@ -199,8 +199,8 @@ 
 #define GPSR6_0		F_(SSI_SCK01239,	IP13_23_20)
 
 /* GPSR7 */
-#define GPSR7_3		FM(HDMI1_CEC)
-#define GPSR7_2		FM(HDMI0_CEC)
+#define GPSR7_3		FM(GP7_03)
+#define GPSR7_2		FM(GP7_02)
 #define GPSR7_1		FM(AVS2)
 #define GPSR7_0		FM(AVS1)
 
@@ -577,8 +577,8 @@  static const u16 pinmux_data[] = {
 
 	PINMUX_SINGLE(AVS1),
 	PINMUX_SINGLE(AVS2),
-	PINMUX_SINGLE(HDMI0_CEC),
-	PINMUX_SINGLE(HDMI1_CEC),
+	PINMUX_SINGLE(GP7_02),
+	PINMUX_SINGLE(GP7_03),
 	PINMUX_SINGLE(MSIOF0_RXD),
 	PINMUX_SINGLE(MSIOF0_SCK),
 	PINMUX_SINGLE(MSIOF0_TXD),
@@ -2072,22 +2072,6 @@  static const unsigned int du_disp_pins[] = {
 static const unsigned int du_disp_mux[] = {
 	DU_DISP_MARK,
 };
-/* - HDMI ------------------------------------------------------------------- */
-static const unsigned int hdmi0_cec_pins[] = {
-	/* HDMI0_CEC */
-	RCAR_GP_PIN(7, 2),
-};
-static const unsigned int hdmi0_cec_mux[] = {
-	HDMI0_CEC_MARK,
-};
-static const unsigned int hdmi1_cec_pins[] = {
-	/* HDMI1_CEC */
-	RCAR_GP_PIN(7, 3),
-};
-static const unsigned int hdmi1_cec_mux[] = {
-	HDMI1_CEC_MARK,
-};
-
 /* - HSCIF0 ----------------------------------------------------------------- */
 static const unsigned int hscif0_data_pins[] = {
 	/* RX, TX */
@@ -3945,8 +3929,6 @@  static const struct sh_pfc_pin_group pinmux_groups[] = {
 	SH_PFC_PIN_GROUP(du_oddf),
 	SH_PFC_PIN_GROUP(du_cde),
 	SH_PFC_PIN_GROUP(du_disp),
-	SH_PFC_PIN_GROUP(hdmi0_cec),
-	SH_PFC_PIN_GROUP(hdmi1_cec),
 	SH_PFC_PIN_GROUP(hscif0_data),
 	SH_PFC_PIN_GROUP(hscif0_clk),
 	SH_PFC_PIN_GROUP(hscif0_ctrl),
@@ -4300,14 +4282,6 @@  static const char * const du_groups[] = {
 	"du_disp",
 };
 
-static const char * const hdmi0_groups[] = {
-	"hdmi0_cec",
-};
-
-static const char * const hdmi1_groups[] = {
-	"hdmi1_cec",
-};
-
 static const char * const hscif0_groups[] = {
 	"hscif0_data",
 	"hscif0_clk",
@@ -4695,8 +4669,6 @@  static const struct sh_pfc_function pinmux_functions[] = {
 	SH_PFC_FUNCTION(drif2),
 	SH_PFC_FUNCTION(drif3),
 	SH_PFC_FUNCTION(du),
-	SH_PFC_FUNCTION(hdmi0),
-	SH_PFC_FUNCTION(hdmi1),
 	SH_PFC_FUNCTION(hscif0),
 	SH_PFC_FUNCTION(hscif1),
 	SH_PFC_FUNCTION(hscif2),
@@ -5415,8 +5387,8 @@  static const struct pinmux_drive_reg pinmux_drive_regs[] = {
 		{ RCAR_GP_PIN(0, 15),   24, 3 },	/* D15 */
 		{ RCAR_GP_PIN(7,  0),   20, 3 },	/* AVS1 */
 		{ RCAR_GP_PIN(7,  1),   16, 3 },	/* AVS2 */
-		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* HDMI0_CEC */
-		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* HDMI1_CEC */
+		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* GP7_02 */
+		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* GP7_03 */
 		{ PIN_A_NUMBER('P', 7),  4, 2 },	/* DU_DOTCLKIN0 */
 		{ PIN_A_NUMBER('P', 8),  0, 2 },	/* DU_DOTCLKIN1 */
 	} },
@@ -5673,8 +5645,8 @@  static const struct pinmux_bias_reg pinmux_bias_regs[] = {
 		[25] = RCAR_GP_PIN(0, 15),	/* D15 */
 		[26] = RCAR_GP_PIN(7,  0),	/* AVS1 */
 		[27] = RCAR_GP_PIN(7,  1),	/* AVS2 */
-		[28] = RCAR_GP_PIN(7,  2),	/* HDMI0_CEC */
-		[29] = RCAR_GP_PIN(7,  3),	/* HDMI1_CEC */
+		[28] = RCAR_GP_PIN(7,  2),	/* GP7_02 */
+		[29] = RCAR_GP_PIN(7,  3),	/* GP7_03 */
 		[30] = PIN_A_NUMBER('P', 7),	/* DU_DOTCLKIN0 */
 		[31] = PIN_A_NUMBER('P', 8),	/* DU_DOTCLKIN1 */
 	} },
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
index 7c19dde43e35369b..63d0eb2cd879a68f 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
@@ -201,8 +201,8 @@ 
 #define GPSR6_0		F_(SSI_SCK01239,		IP14_23_20)
 
 /* GPSR7 */
-#define GPSR7_3		FM(HDMI1_CEC)
-#define GPSR7_2		FM(HDMI0_CEC)
+#define GPSR7_3		FM(GP7_03)
+#define GPSR7_2		FM(GP7_02)
 #define GPSR7_1		FM(AVS2)
 #define GPSR7_0		FM(AVS1)
 
@@ -591,8 +591,8 @@  static const u16 pinmux_data[] = {
 	PINMUX_SINGLE(AVS1),
 	PINMUX_SINGLE(AVS2),
 	PINMUX_SINGLE(CLKOUT),
-	PINMUX_SINGLE(HDMI0_CEC),
-	PINMUX_SINGLE(HDMI1_CEC),
+	PINMUX_SINGLE(GP7_02),
+	PINMUX_SINGLE(GP7_03),
 	PINMUX_SINGLE(MSIOF0_RXD),
 	PINMUX_SINGLE(MSIOF0_SCK),
 	PINMUX_SINGLE(MSIOF0_TXD),
@@ -2132,22 +2132,6 @@  static const unsigned int du_disp_mux[] = {
 	DU_DISP_MARK,
 };
 
-/* - HDMI ------------------------------------------------------------------- */
-static const unsigned int hdmi0_cec_pins[] = {
-	/* HDMI0_CEC */
-	RCAR_GP_PIN(7, 2),
-};
-static const unsigned int hdmi0_cec_mux[] = {
-	HDMI0_CEC_MARK,
-};
-static const unsigned int hdmi1_cec_pins[] = {
-	/* HDMI1_CEC */
-	RCAR_GP_PIN(7, 3),
-};
-static const unsigned int hdmi1_cec_mux[] = {
-	HDMI1_CEC_MARK,
-};
-
 /* - HSCIF0 ----------------------------------------------------------------- */
 static const unsigned int hscif0_data_pins[] = {
 	/* RX, TX */
@@ -4226,8 +4210,6 @@  static const struct sh_pfc_pin_group pinmux_groups[] = {
 	SH_PFC_PIN_GROUP(du_oddf),
 	SH_PFC_PIN_GROUP(du_cde),
 	SH_PFC_PIN_GROUP(du_disp),
-	SH_PFC_PIN_GROUP(hdmi0_cec),
-	SH_PFC_PIN_GROUP(hdmi1_cec),
 	SH_PFC_PIN_GROUP(hscif0_data),
 	SH_PFC_PIN_GROUP(hscif0_clk),
 	SH_PFC_PIN_GROUP(hscif0_ctrl),
@@ -4612,14 +4594,6 @@  static const char * const du_groups[] = {
 	"du_disp",
 };
 
-static const char * const hdmi0_groups[] = {
-	"hdmi0_cec",
-};
-
-static const char * const hdmi1_groups[] = {
-	"hdmi1_cec",
-};
-
 static const char * const hscif0_groups[] = {
 	"hscif0_data",
 	"hscif0_clk",
@@ -5038,8 +5012,6 @@  static const struct sh_pfc_function pinmux_functions[] = {
 	SH_PFC_FUNCTION(drif2),
 	SH_PFC_FUNCTION(drif3),
 	SH_PFC_FUNCTION(du),
-	SH_PFC_FUNCTION(hdmi0),
-	SH_PFC_FUNCTION(hdmi1),
 	SH_PFC_FUNCTION(hscif0),
 	SH_PFC_FUNCTION(hscif1),
 	SH_PFC_FUNCTION(hscif2),
@@ -5766,8 +5738,8 @@  static const struct pinmux_drive_reg pinmux_drive_regs[] = {
 		{ RCAR_GP_PIN(0, 15),   24, 3 },	/* D15 */
 		{ RCAR_GP_PIN(7,  0),   20, 3 },	/* AVS1 */
 		{ RCAR_GP_PIN(7,  1),   16, 3 },	/* AVS2 */
-		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* HDMI0_CEC */
-		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* HDMI1_CEC */
+		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* GP7_02 */
+		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* GP7_03 */
 		{ PIN_A_NUMBER('P', 7),  4, 2 },	/* DU_DOTCLKIN0 */
 		{ PIN_A_NUMBER('P', 8),  0, 2 },	/* DU_DOTCLKIN1 */
 	} },
@@ -6023,8 +5995,8 @@  static const struct pinmux_bias_reg pinmux_bias_regs[] = {
 		[25] = RCAR_GP_PIN(0, 15),	/* D15 */
 		[26] = RCAR_GP_PIN(7,  0),	/* AVS1 */
 		[27] = RCAR_GP_PIN(7,  1),	/* AVS2 */
-		[28] = RCAR_GP_PIN(7,  2),	/* HDMI0_CEC */
-		[29] = RCAR_GP_PIN(7,  3),	/* HDMI1_CEC */
+		[28] = RCAR_GP_PIN(7,  2),	/* GP7_02 */
+		[29] = RCAR_GP_PIN(7,  3),	/* GP7_03 */
 		[30] = PIN_A_NUMBER('P', 7),	/* DU_DOTCLKIN0 */
 		[31] = PIN_A_NUMBER('P', 8),	/* DU_DOTCLKIN1 */
 	} },
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
index 57faa52d06a70bcb..b463062b77fecbdb 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
@@ -207,7 +207,7 @@ 
 
 /* GPSR7 */
 #define GPSR7_3		FM(GP7_03)
-#define GPSR7_2		FM(HDMI0_CEC)
+#define GPSR7_2		FM(GP7_02)
 #define GPSR7_1		FM(AVS2)
 #define GPSR7_0		FM(AVS1)
 
@@ -598,7 +598,7 @@  static const u16 pinmux_data[] = {
 	PINMUX_SINGLE(AVS2),
 	PINMUX_SINGLE(CLKOUT),
 	PINMUX_SINGLE(GP7_03),
-	PINMUX_SINGLE(HDMI0_CEC),
+	PINMUX_SINGLE(GP7_02),
 	PINMUX_SINGLE(MSIOF0_RXD),
 	PINMUX_SINGLE(MSIOF0_SCK),
 	PINMUX_SINGLE(MSIOF0_TXD),
@@ -2141,15 +2141,6 @@  static const unsigned int du_disp_mux[] = {
 	DU_DISP_MARK,
 };
 
-/* - HDMI ------------------------------------------------------------------- */
-static const unsigned int hdmi0_cec_pins[] = {
-	/* HDMI0_CEC */
-	RCAR_GP_PIN(7, 2),
-};
-static const unsigned int hdmi0_cec_mux[] = {
-	HDMI0_CEC_MARK,
-};
-
 /* - HSCIF0 ----------------------------------------------------------------- */
 static const unsigned int hscif0_data_pins[] = {
 	/* RX, TX */
@@ -4125,7 +4116,7 @@  static const unsigned int vin5_clk_mux[] = {
 };
 
 static const struct {
-	struct sh_pfc_pin_group common[313];
+	struct sh_pfc_pin_group common[312];
 	struct sh_pfc_pin_group automotive[30];
 } pinmux_groups = {
 	.common = {
@@ -4172,7 +4163,6 @@  static const struct {
 		SH_PFC_PIN_GROUP(du_oddf),
 		SH_PFC_PIN_GROUP(du_cde),
 		SH_PFC_PIN_GROUP(du_disp),
-		SH_PFC_PIN_GROUP(hdmi0_cec),
 		SH_PFC_PIN_GROUP(hscif0_data),
 		SH_PFC_PIN_GROUP(hscif0_clk),
 		SH_PFC_PIN_GROUP(hscif0_ctrl),
@@ -4586,10 +4576,6 @@  static const char * const du_groups[] = {
 	"du_disp",
 };
 
-static const char * const hdmi0_groups[] = {
-	"hdmi0_cec",
-};
-
 static const char * const hscif0_groups[] = {
 	"hscif0_data",
 	"hscif0_clk",
@@ -4983,7 +4969,7 @@  static const char * const vin5_groups[] = {
 };
 
 static const struct {
-	struct sh_pfc_function common[50];
+	struct sh_pfc_function common[49];
 	struct sh_pfc_function automotive[4];
 } pinmux_functions = {
 	.common = {
@@ -4995,7 +4981,6 @@  static const struct {
 		SH_PFC_FUNCTION(canfd0),
 		SH_PFC_FUNCTION(canfd1),
 		SH_PFC_FUNCTION(du),
-		SH_PFC_FUNCTION(hdmi0),
 		SH_PFC_FUNCTION(hscif0),
 		SH_PFC_FUNCTION(hscif1),
 		SH_PFC_FUNCTION(hscif2),
@@ -5725,7 +5710,7 @@  static const struct pinmux_drive_reg pinmux_drive_regs[] = {
 		{ RCAR_GP_PIN(0, 15),   24, 3 },	/* D15 */
 		{ RCAR_GP_PIN(7,  0),   20, 3 },	/* AVS1 */
 		{ RCAR_GP_PIN(7,  1),   16, 3 },	/* AVS2 */
-		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* HDMI0_CEC */
+		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* GP7_02 */
 		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* GP7_03 */
 		{ PIN_A_NUMBER('P', 7),  4, 2 },	/* DU_DOTCLKIN0 */
 		{ PIN_A_NUMBER('P', 8),  0, 2 },	/* DU_DOTCLKIN1 */
@@ -5981,7 +5966,7 @@  static const struct pinmux_bias_reg pinmux_bias_regs[] = {
 		[25] = RCAR_GP_PIN(0, 15),	/* D15 */
 		[26] = RCAR_GP_PIN(7,  0),	/* AVS1 */
 		[27] = RCAR_GP_PIN(7,  1),	/* AVS2 */
-		[28] = RCAR_GP_PIN(7,  2),	/* HDMI0_CEC */
+		[28] = RCAR_GP_PIN(7,  2),	/* GP7_02 */
 		[29] = RCAR_GP_PIN(7,  3),	/* GP7_03 */
 		[30] = PIN_A_NUMBER('P', 7),	/* DU_DOTCLKIN0 */
 		[31] = PIN_A_NUMBER('P', 8),	/* DU_DOTCLKIN1 */
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
index d2390e3bae6738b1..396ef8335bb8cfd8 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
@@ -208,7 +208,7 @@ 
 
 /* GPSR7 */
 #define GPSR7_3		FM(GP7_03)
-#define GPSR7_2		FM(HDMI0_CEC)
+#define GPSR7_2		FM(GP7_02)
 #define GPSR7_1		FM(AVS2)
 #define GPSR7_0		FM(AVS1)
 
@@ -595,7 +595,7 @@  static const u16 pinmux_data[] = {
 	PINMUX_SINGLE(AVS2),
 	PINMUX_SINGLE(CLKOUT),
 	PINMUX_SINGLE(GP7_03),
-	PINMUX_SINGLE(HDMI0_CEC),
+	PINMUX_SINGLE(GP7_02),
 	PINMUX_SINGLE(MSIOF0_RXD),
 	PINMUX_SINGLE(MSIOF0_SCK),
 	PINMUX_SINGLE(MSIOF0_TXD),
@@ -5882,7 +5882,7 @@  static const struct pinmux_drive_reg pinmux_drive_regs[] = {
 		{ RCAR_GP_PIN(0, 15),   24, 3 },	/* D15 */
 		{ RCAR_GP_PIN(7,  0),   20, 3 },	/* AVS1 */
 		{ RCAR_GP_PIN(7,  1),   16, 3 },	/* AVS2 */
-		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* HDMI0_CEC */
+		{ RCAR_GP_PIN(7,  2),   12, 3 },	/* GP7_02 */
 		{ RCAR_GP_PIN(7,  3),    8, 3 },	/* GP7_03 */
 		{ PIN_A_NUMBER('P', 7),  4, 2 },	/* DU_DOTCLKIN0 */
 		{ PIN_A_NUMBER('P', 8),  0, 2 },	/* DU_DOTCLKIN1 */
@@ -6138,7 +6138,7 @@  static const struct pinmux_bias_reg pinmux_bias_regs[] = {
 		[25] = RCAR_GP_PIN(0, 15),	/* D15 */
 		[26] = RCAR_GP_PIN(7,  0),	/* AVS1 */
 		[27] = RCAR_GP_PIN(7,  1),	/* AVS2 */
-		[28] = RCAR_GP_PIN(7,  2),	/* HDMI0_CEC */
+		[28] = RCAR_GP_PIN(7,  2),	/* GP7_02 */
 		[29] = RCAR_GP_PIN(7,  3),	/* GP7_03 */
 		[30] = PIN_A_NUMBER('P', 7),	/* DU_DOTCLKIN0 */
 		[31] = PIN_A_NUMBER('P', 8),	/* DU_DOTCLKIN1 */