All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995
@ 2017-10-03  2:21 Kuninori Morimoto
  2017-10-03  2:22 ` [RFC][PATCH 1/4] pinctrl: sh-pfc: r8a7795: add Audio clock pin support Kuninori Morimoto
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-03  2:21 UTC (permalink / raw)
  To: Simon, Geert Uytterhoeven; +Cc: Magnus, Linux-Renesas


Hi Simon, Geert

These are AUDIO/SSI pin support for r8a7795/r8a77995.
But, I2C is not yet supported on H3 ES2.0 "PFC",
and not yet supported on D3 "DT".
Sound Codec needs I2C access, thus, these are not yet tested.
I added [RFC] on these patches.

Kuninori Morimoto (4):
  pinctrl: sh-pfc: r8a7795: add Audio clock pin support
  pinctrl: sh-pfc: r8a7795: add Audio SSI pin support
  pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  pinctrl: sh-pfc: r8a77995: add Audio SSI pin support

 drivers/pinctrl/sh-pfc/pfc-r8a7795.c  | 390 ++++++++++++++++++++++++++++++++++
 drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 102 +++++++++
 2 files changed, 492 insertions(+)

-- 
1.9.1



Best regards
---
Kuninori Morimoto

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

* [RFC][PATCH 1/4] pinctrl: sh-pfc: r8a7795: add Audio clock pin support
  2017-10-03  2:21 [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Kuninori Morimoto
@ 2017-10-03  2:22 ` Kuninori Morimoto
  2017-10-04 13:23   ` Geert Uytterhoeven
  2017-10-03  2:23 ` [RFC][PATCH 2/4] pinctrl: sh-pfc: r8a7795: add Audio SSI " Kuninori Morimoto
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-03  2:22 UTC (permalink / raw)
  To: Simon, Geert Uytterhoeven; +Cc: Magnus, Linux-Renesas


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 159 +++++++++++++++++++++++++++++++++++
 1 file changed, 159 insertions(+)

diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
index 9e420f7..def0c8b 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
@@ -1572,6 +1572,127 @@ enum {
 	SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('T'), 30, ASEBRK, CFG_FLAGS),
 };
 
+/* - AUDIO CLOCK ------------------------------------------------------------ */
+static const unsigned int audio_clk_a_a_pins[] = {
+	/* CLK A */
+	RCAR_GP_PIN(6, 22),
+};
+static const unsigned int audio_clk_a_a_mux[] = {
+	AUDIO_CLKA_A_MARK,
+};
+static const unsigned int audio_clk_a_b_pins[] = {
+	/* CLK A */
+	RCAR_GP_PIN(5, 4),
+};
+static const unsigned int audio_clk_a_b_mux[] = {
+	AUDIO_CLKA_B_MARK,
+};
+static const unsigned int audio_clk_a_c_pins[] = {
+	/* CLK A */
+	RCAR_GP_PIN(5, 19),
+};
+static const unsigned int audio_clk_a_c_mux[] = {
+	AUDIO_CLKA_C_MARK,
+};
+static const unsigned int audio_clk_b_a_pins[] = {
+	/* CLK B */
+	RCAR_GP_PIN(5, 12),
+};
+static const unsigned int audio_clk_b_a_mux[] = {
+	AUDIO_CLKB_A_MARK,
+};
+static const unsigned int audio_clk_b_b_pins[] = {
+	/* CLK B */
+	RCAR_GP_PIN(6, 23),
+};
+static const unsigned int audio_clk_b_b_mux[] = {
+	AUDIO_CLKB_B_MARK,
+};
+static const unsigned int audio_clk_c_a_pins[] = {
+	/* CLK C */
+	RCAR_GP_PIN(5, 21),
+};
+static const unsigned int audio_clk_c_a_mux[] = {
+	AUDIO_CLKC_A_MARK,
+};
+static const unsigned int audio_clk_c_b_pins[] = {
+	/* CLK C */
+	RCAR_GP_PIN(5, 0),
+};
+static const unsigned int audio_clk_c_b_mux[] = {
+	AUDIO_CLKC_B_MARK,
+};
+static const unsigned int audio_clkout_a_pins[] = {
+	/* CLKOUT */
+	RCAR_GP_PIN(5, 18),
+};
+static const unsigned int audio_clkout_a_mux[] = {
+	AUDIO_CLKOUT_A_MARK,
+};
+static const unsigned int audio_clkout_b_pins[] = {
+	/* CLKOUT */
+	RCAR_GP_PIN(6, 28),
+};
+static const unsigned int audio_clkout_b_mux[] = {
+	AUDIO_CLKOUT_B_MARK,
+};
+static const unsigned int audio_clkout_c_pins[] = {
+	/* CLKOUT */
+	RCAR_GP_PIN(5, 3),
+};
+static const unsigned int audio_clkout_c_mux[] = {
+	AUDIO_CLKOUT_C_MARK,
+};
+static const unsigned int audio_clkout_d_pins[] = {
+	/* CLKOUT */
+	RCAR_GP_PIN(5, 21),
+};
+static const unsigned int audio_clkout_d_mux[] = {
+	AUDIO_CLKOUT_D_MARK,
+};
+static const unsigned int audio_clkout1_a_pins[] = {
+	/* CLKOUT1 */
+	RCAR_GP_PIN(5, 15),
+};
+static const unsigned int audio_clkout1_a_mux[] = {
+	AUDIO_CLKOUT1_A_MARK,
+};
+static const unsigned int audio_clkout1_b_pins[] = {
+	/* CLKOUT1 */
+	RCAR_GP_PIN(6, 29),
+};
+static const unsigned int audio_clkout1_b_mux[] = {
+	AUDIO_CLKOUT1_B_MARK,
+};
+static const unsigned int audio_clkout2_a_pins[] = {
+	/* CLKOUT2 */
+	RCAR_GP_PIN(5, 16),
+};
+static const unsigned int audio_clkout2_a_mux[] = {
+	AUDIO_CLKOUT2_A_MARK,
+};
+static const unsigned int audio_clkout2_b_pins[] = {
+	/* CLKOUT2 */
+	RCAR_GP_PIN(6, 30),
+};
+static const unsigned int audio_clkout2_b_mux[] = {
+	AUDIO_CLKOUT2_B_MARK,
+};
+static const unsigned int audio_clkout3_a_pins[] = {
+	/* CLKOUT3 */
+	RCAR_GP_PIN(5, 19),
+};
+static const unsigned int audio_clkout3_a_mux[] = {
+	AUDIO_CLKOUT3_A_MARK,
+};
+static const unsigned int audio_clkout3_b_pins[] = {
+	/* CLKOUT3 */
+	RCAR_GP_PIN(6, 31),
+};
+static const unsigned int audio_clkout3_b_mux[] = {
+	AUDIO_CLKOUT3_B_MARK,
+};
+
 /* - EtherAVB --------------------------------------------------------------- */
 static const unsigned int avb_link_pins[] = {
 	/* AVB_LINK */
@@ -3206,6 +3327,23 @@ enum {
 };
 
 static const struct sh_pfc_pin_group pinmux_groups[] = {
+	SH_PFC_PIN_GROUP(audio_clk_a_a),
+	SH_PFC_PIN_GROUP(audio_clk_a_b),
+	SH_PFC_PIN_GROUP(audio_clk_a_c),
+	SH_PFC_PIN_GROUP(audio_clk_b_a),
+	SH_PFC_PIN_GROUP(audio_clk_b_b),
+	SH_PFC_PIN_GROUP(audio_clk_c_a),
+	SH_PFC_PIN_GROUP(audio_clk_c_b),
+	SH_PFC_PIN_GROUP(audio_clkout_a),
+	SH_PFC_PIN_GROUP(audio_clkout_b),
+	SH_PFC_PIN_GROUP(audio_clkout_c),
+	SH_PFC_PIN_GROUP(audio_clkout_d),
+	SH_PFC_PIN_GROUP(audio_clkout1_a),
+	SH_PFC_PIN_GROUP(audio_clkout1_b),
+	SH_PFC_PIN_GROUP(audio_clkout2_a),
+	SH_PFC_PIN_GROUP(audio_clkout2_b),
+	SH_PFC_PIN_GROUP(audio_clkout3_a),
+	SH_PFC_PIN_GROUP(audio_clkout3_b),
 	SH_PFC_PIN_GROUP(avb_link),
 	SH_PFC_PIN_GROUP(avb_magic),
 	SH_PFC_PIN_GROUP(avb_phy_int),
@@ -3427,6 +3565,26 @@ enum {
 	SH_PFC_PIN_GROUP(usb2_ch3),
 };
 
+static const char * const audio_clk_groups[] = {
+	"audio_clk_a_a",
+	"audio_clk_a_b",
+	"audio_clk_a_c",
+	"audio_clk_b_a",
+	"audio_clk_b_b",
+	"audio_clk_c_a",
+	"audio_clk_c_b",
+	"audio_clkout_a",
+	"audio_clkout_b",
+	"audio_clkout_c",
+	"audio_clkout_d",
+	"audio_clkout1_a",
+	"audio_clkout1_b",
+	"audio_clkout2_a",
+	"audio_clkout2_b",
+	"audio_clkout3_a",
+	"audio_clkout3_b",
+};
+
 static const char * const avb_groups[] = {
 	"avb_link",
 	"avb_magic",
@@ -3743,6 +3901,7 @@ enum {
 };
 
 static const struct sh_pfc_function pinmux_functions[] = {
+	SH_PFC_FUNCTION(audio_clk),
 	SH_PFC_FUNCTION(avb),
 	SH_PFC_FUNCTION(drif0),
 	SH_PFC_FUNCTION(drif1),
-- 
1.9.1

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

* [RFC][PATCH 2/4] pinctrl: sh-pfc: r8a7795: add Audio SSI pin support
  2017-10-03  2:21 [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Kuninori Morimoto
  2017-10-03  2:22 ` [RFC][PATCH 1/4] pinctrl: sh-pfc: r8a7795: add Audio clock pin support Kuninori Morimoto
@ 2017-10-03  2:23 ` Kuninori Morimoto
  2017-10-04 13:36   ` Geert Uytterhoeven
  2017-10-03  2:23 ` [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock " Kuninori Morimoto
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-03  2:23 UTC (permalink / raw)
  To: Simon, Geert Uytterhoeven; +Cc: Magnus, Linux-Renesas


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 231 +++++++++++++++++++++++++++++++++++
 1 file changed, 231 insertions(+)

diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
index def0c8b..0969b9c 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
@@ -3277,6 +3277,183 @@ enum {
 	SD3_DS_MARK,
 };
 
+/* - SSI -------------------------------------------------------------------- */
+static const unsigned int ssi0_data_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 2),
+};
+static const unsigned int ssi0_data_mux[] = {
+	SSI_SDATA0_MARK,
+};
+static const unsigned int ssi01239_ctrl_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
+};
+static const unsigned int ssi01239_ctrl_mux[] = {
+	SSI_SCK01239_MARK, SSI_WS01239_MARK,
+};
+static const unsigned int ssi1_data_a_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 3),
+};
+static const unsigned int ssi1_data_a_mux[] = {
+	SSI_SDATA1_A_MARK,
+};
+static const unsigned int ssi1_data_b_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(5, 12),
+};
+static const unsigned int ssi1_data_b_mux[] = {
+	SSI_SDATA1_B_MARK,
+};
+static const unsigned int ssi1_ctrl_a_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
+};
+static const unsigned int ssi1_ctrl_a_mux[] = {
+	SSI_SCK1_A_MARK, SSI_WS1_A_MARK,
+};
+static const unsigned int ssi1_ctrl_b_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 21),
+};
+static const unsigned int ssi1_ctrl_b_mux[] = {
+	SSI_SCK1_B_MARK, SSI_WS1_B_MARK,
+};
+static const unsigned int ssi2_data_a_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 4),
+};
+static const unsigned int ssi2_data_a_mux[] = {
+	SSI_SDATA2_A_MARK,
+};
+static const unsigned int ssi2_data_b_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(5, 13),
+};
+static const unsigned int ssi2_data_b_mux[] = {
+	SSI_SDATA2_B_MARK,
+};
+static const unsigned int ssi2_ctrl_a_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 21),
+};
+static const unsigned int ssi2_ctrl_a_mux[] = {
+	SSI_SCK2_A_MARK, SSI_WS2_A_MARK,
+};
+static const unsigned int ssi2_ctrl_b_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
+};
+static const unsigned int ssi2_ctrl_b_mux[] = {
+	SSI_SCK2_B_MARK, SSI_WS2_B_MARK,
+};
+static const unsigned int ssi3_data_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 7),
+};
+static const unsigned int ssi3_data_mux[] = {
+	SSI_SDATA3_MARK,
+};
+static const unsigned int ssi349_ctrl_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 6),
+};
+static const unsigned int ssi349_ctrl_mux[] = {
+	SSI_SCK349_MARK, SSI_WS349_MARK,
+};
+static const unsigned int ssi4_data_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 10),
+};
+static const unsigned int ssi4_data_mux[] = {
+	SSI_SDATA4_MARK,
+};
+static const unsigned int ssi4_ctrl_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
+};
+static const unsigned int ssi4_ctrl_mux[] = {
+	SSI_SCK4_MARK, SSI_WS4_MARK,
+};
+static const unsigned int ssi5_data_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 13),
+};
+static const unsigned int ssi5_data_mux[] = {
+	SSI_SDATA5_MARK,
+};
+static const unsigned int ssi5_ctrl_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
+};
+static const unsigned int ssi5_ctrl_mux[] = {
+	SSI_SCK5_MARK, SSI_WS5_MARK,
+};
+static const unsigned int ssi6_data_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 16),
+};
+static const unsigned int ssi6_data_mux[] = {
+	SSI_SDATA6_MARK,
+};
+static const unsigned int ssi6_ctrl_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
+};
+static const unsigned int ssi6_ctrl_mux[] = {
+	SSI_SCK6_MARK, SSI_WS6_MARK,
+};
+static const unsigned int ssi7_data_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 19),
+};
+static const unsigned int ssi7_data_mux[] = {
+	SSI_SDATA7_MARK,
+};
+static const unsigned int ssi78_ctrl_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
+};
+static const unsigned int ssi78_ctrl_mux[] = {
+	SSI_SCK78_MARK, SSI_WS78_MARK,
+};
+static const unsigned int ssi8_data_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 20),
+};
+static const unsigned int ssi8_data_mux[] = {
+	SSI_SDATA8_MARK,
+};
+static const unsigned int ssi9_data_a_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(6, 21),
+};
+static const unsigned int ssi9_data_a_mux[] = {
+	SSI_SDATA9_A_MARK,
+};
+static const unsigned int ssi9_data_b_pins[] = {
+	/* SDATA */
+	RCAR_GP_PIN(5, 14),
+};
+static const unsigned int ssi9_data_b_mux[] = {
+	SSI_SDATA9_B_MARK,
+};
+static const unsigned int ssi9_ctrl_a_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
+};
+static const unsigned int ssi9_ctrl_a_mux[] = {
+	SSI_SCK9_A_MARK, SSI_WS9_A_MARK,
+};
+static const unsigned int ssi9_ctrl_b_pins[] = {
+	/* SCK, WS */
+	RCAR_GP_PIN(6, 30), RCAR_GP_PIN(6, 31),
+};
+static const unsigned int ssi9_ctrl_b_mux[] = {
+	SSI_SCK9_B_MARK, SSI_WS9_B_MARK,
+};
+
 /* - SCIF Clock ------------------------------------------------------------- */
 static const unsigned int scif_clk_a_pins[] = {
 	/* SCIF_CLK */
@@ -3559,6 +3736,31 @@ enum {
 	SH_PFC_PIN_GROUP(sdhi3_cd),
 	SH_PFC_PIN_GROUP(sdhi3_wp),
 	SH_PFC_PIN_GROUP(sdhi3_ds),
+	SH_PFC_PIN_GROUP(ssi0_data),
+	SH_PFC_PIN_GROUP(ssi01239_ctrl),
+	SH_PFC_PIN_GROUP(ssi1_data_a),
+	SH_PFC_PIN_GROUP(ssi1_data_b),
+	SH_PFC_PIN_GROUP(ssi1_ctrl_a),
+	SH_PFC_PIN_GROUP(ssi1_ctrl_b),
+	SH_PFC_PIN_GROUP(ssi2_data_a),
+	SH_PFC_PIN_GROUP(ssi2_data_b),
+	SH_PFC_PIN_GROUP(ssi2_ctrl_a),
+	SH_PFC_PIN_GROUP(ssi2_ctrl_b),
+	SH_PFC_PIN_GROUP(ssi3_data),
+	SH_PFC_PIN_GROUP(ssi349_ctrl),
+	SH_PFC_PIN_GROUP(ssi4_data),
+	SH_PFC_PIN_GROUP(ssi4_ctrl),
+	SH_PFC_PIN_GROUP(ssi5_data),
+	SH_PFC_PIN_GROUP(ssi5_ctrl),
+	SH_PFC_PIN_GROUP(ssi6_data),
+	SH_PFC_PIN_GROUP(ssi6_ctrl),
+	SH_PFC_PIN_GROUP(ssi7_data),
+	SH_PFC_PIN_GROUP(ssi78_ctrl),
+	SH_PFC_PIN_GROUP(ssi8_data),
+	SH_PFC_PIN_GROUP(ssi9_data_a),
+	SH_PFC_PIN_GROUP(ssi9_data_b),
+	SH_PFC_PIN_GROUP(ssi9_ctrl_a),
+	SH_PFC_PIN_GROUP(ssi9_ctrl_b),
 	SH_PFC_PIN_GROUP(usb0),
 	SH_PFC_PIN_GROUP(usb1),
 	SH_PFC_PIN_GROUP(usb2),
@@ -3884,6 +4086,34 @@ enum {
 	"sdhi3_ds",
 };
 
+static const char * const ssi_groups[] = {
+	"ssi0_data",
+	"ssi01239_ctrl",
+	"ssi1_data_a",
+	"ssi1_data_b",
+	"ssi1_ctrl_a",
+	"ssi1_ctrl_b",
+	"ssi2_data_a",
+	"ssi2_data_b",
+	"ssi2_ctrl_a",
+	"ssi2_ctrl_b",
+	"ssi3_data",
+	"ssi349_ctrl",
+	"ssi4_data",
+	"ssi4_ctrl",
+	"ssi5_data",
+	"ssi5_ctrl",
+	"ssi6_data",
+	"ssi6_ctrl",
+	"ssi7_data",
+	"ssi78_ctrl",
+	"ssi8_data",
+	"ssi9_data_a",
+	"ssi9_data_b",
+	"ssi9_ctrl_a",
+	"ssi9_ctrl_b",
+};
+
 static const char * const usb0_groups[] = {
 	"usb0",
 };
@@ -3930,6 +4160,7 @@ enum {
 	SH_PFC_FUNCTION(sdhi1),
 	SH_PFC_FUNCTION(sdhi2),
 	SH_PFC_FUNCTION(sdhi3),
+	SH_PFC_FUNCTION(ssi),
 	SH_PFC_FUNCTION(usb0),
 	SH_PFC_FUNCTION(usb1),
 	SH_PFC_FUNCTION(usb2),
-- 
1.9.1

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

* [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  2017-10-03  2:21 [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Kuninori Morimoto
  2017-10-03  2:22 ` [RFC][PATCH 1/4] pinctrl: sh-pfc: r8a7795: add Audio clock pin support Kuninori Morimoto
  2017-10-03  2:23 ` [RFC][PATCH 2/4] pinctrl: sh-pfc: r8a7795: add Audio SSI " Kuninori Morimoto
@ 2017-10-03  2:23 ` Kuninori Morimoto
  2017-10-03  4:09   ` Kuninori Morimoto
  2017-10-03  2:23 ` [RFC][PATCH 4/4] pinctrl: sh-pfc: r8a77995: add Audio SSI " Kuninori Morimoto
  2017-10-05 20:48 ` [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Wolfram Sang
  4 siblings, 1 reply; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-03  2:23 UTC (permalink / raw)
  To: Simon, Geert Uytterhoeven; +Cc: Magnus, Linux-Renesas


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 42 +++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
index 4f5ee1d..2b56253 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
@@ -936,6 +936,36 @@ enum {
 	PINMUX_GPIO_GP_ALL(),
 };
 
+/* - AUDIO CLOCK ------------------------------------------------------------- */
+static const unsigned int audio_clka_pins[] = {
+	/* CLK A */
+	RCAR_GP_PIN(4, 1),
+};
+static const unsigned int audio_clka_mux[] = {
+	AUDIO_CLKA_MARK,
+};
+static const unsigned int audio_clkb_pins[] = {
+	/* CLK B */
+	RCAR_GP_PIN(2, 27),
+};
+static const unsigned int audio_clkb_mux[] = {
+	AUDIO_CLKB_MARK,
+};
+static const unsigned int audio_clkout_pins[] = {
+	/* CLKOUT */
+	RCAR_GP_PIN(4, 5),
+};
+static const unsigned int audio_clkout_mux[] = {
+	AUDIO_CLKOUT_MARK,
+};
+static const unsigned int audio_clkout1_pins[] = {
+	/* CLKOUT1 */
+	RCAR_GP_PIN(4, 22),
+};
+static const unsigned int audio_clkout1_mux[] = {
+	AUDIO_CLKOUT1_MARK,
+};
+
 /* - I2C -------------------------------------------------------------------- */
 static const unsigned int i2c0_pins[] = {
 	/* SCL, SDA */
@@ -1203,6 +1233,10 @@ enum {
 };
 
 static const struct sh_pfc_pin_group pinmux_groups[] = {
+	SH_PFC_PIN_GROUP(audio_clka),
+	SH_PFC_PIN_GROUP(audio_clkb),
+	SH_PFC_PIN_GROUP(audio_clkout),
+	SH_PFC_PIN_GROUP(audio_clkout1),
 	SH_PFC_PIN_GROUP(i2c0),
 	SH_PFC_PIN_GROUP(i2c1),
 	SH_PFC_PIN_GROUP(i2c2_a),
@@ -1240,6 +1274,13 @@ enum {
 	SH_PFC_PIN_GROUP(scif_clk),
 };
 
+static const char * const audio_clk_groups[] = {
+	"audio_clka",
+	"audio_clkb",
+	"audio_clkout",
+	"audio_clkout1",
+};
+
 static const char * const i2c0_groups[] = {
 	"i2c0",
 };
@@ -1311,6 +1352,7 @@ enum {
 };
 
 static const struct sh_pfc_function pinmux_functions[] = {
+	SH_PFC_FUNCTION(audio_clk),
 	SH_PFC_FUNCTION(i2c0),
 	SH_PFC_FUNCTION(i2c1),
 	SH_PFC_FUNCTION(i2c2),
-- 
1.9.1

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

* [RFC][PATCH 4/4] pinctrl: sh-pfc: r8a77995: add Audio SSI pin support
  2017-10-03  2:21 [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Kuninori Morimoto
                   ` (2 preceding siblings ...)
  2017-10-03  2:23 ` [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock " Kuninori Morimoto
@ 2017-10-03  2:23 ` Kuninori Morimoto
  2017-10-03  9:36   ` Sergei Shtylyov
  2017-10-05 20:48 ` [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Wolfram Sang
  4 siblings, 1 reply; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-03  2:23 UTC (permalink / raw)
  To: Simon, Geert Uytterhoeven; +Cc: Magnus, Linux-Renesas


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 60 +++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
index 2b56253..1a5c5a7 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
@@ -1232,6 +1232,50 @@ enum {
 	SCIF_CLK_MARK,
 };
 
+/* - SSI ---------------------------------------------------------------*/
+static const unsigned int ssi3_data_pins[] = {
+	/* SDATA3 */
+	RCAR_GP_PIN(4, 3),
+};
+static const unsigned int ssi3_data_mux[] = {
+	SSI_SDATA3_MARK,
+};
+static const unsigned int ssi34_ctrl_pins[] = {
+	/* SCK34,  WS34 */
+	RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 4),
+};
+static const unsigned int ssi34_ctrl_mux[] = {
+	SSI_SCK34_MARK, SSI_WS34_MARK,
+};
+static const unsigned int ssi4_ctrl_a_pins[] = {
+	/* SCK4_A, WS4_A */
+	RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 7),
+};
+static const unsigned int ssi4_ctrl_a_mux[] = {
+	SSI_SCK4_A_MARK, SSI_WS4_A_MARK,
+};
+static const unsigned int ssi4_data_a_pins[] = {
+	/* SDATA4_A */
+	RCAR_GP_PIN(4, 6),
+};
+static const unsigned int ssi4_data_a_mux[] = {
+	SSI_SDATA4_A_MARK,
+};
+static const unsigned int ssi4_ctrl_b_pins[] = {
+	/* SCK4_B, WS4_B */
+	RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 20),
+};
+static const unsigned int ssi4_ctrl_b_mux[] = {
+	SSI_SCK4_B_MARK, SSI_WS4_B_MARK,
+};
+static const unsigned int ssi4_data_b_pins[] = {
+	/* SDATA4_B */
+	RCAR_GP_PIN(2, 16),
+};
+static const unsigned int ssi4_data_b_mux[] = {
+	SSI_SDATA4_B_MARK,
+};
+
 static const struct sh_pfc_pin_group pinmux_groups[] = {
 	SH_PFC_PIN_GROUP(audio_clka),
 	SH_PFC_PIN_GROUP(audio_clkb),
@@ -1272,6 +1316,12 @@ enum {
 	SH_PFC_PIN_GROUP(scif5_data_b),
 	SH_PFC_PIN_GROUP(scif5_clk_b),
 	SH_PFC_PIN_GROUP(scif_clk),
+	SH_PFC_PIN_GROUP(ssi3_data),
+	SH_PFC_PIN_GROUP(ssi34_ctrl),
+	SH_PFC_PIN_GROUP(ssi4_ctrl_a),
+	SH_PFC_PIN_GROUP(ssi4_data_a),
+	SH_PFC_PIN_GROUP(ssi4_ctrl_b),
+	SH_PFC_PIN_GROUP(ssi4_data_b),
 };
 
 static const char * const audio_clk_groups[] = {
@@ -1351,6 +1401,15 @@ enum {
 	"scif_clk",
 };
 
+static const char * const ssi_groups[] = {
+	"ssi3_data",
+	"ssi34_ctrl",
+	"ssi4_ctrl_a",
+	"ssi4_data_a",
+	"ssi4_ctrl_b",
+	"ssi4_data_b",
+};
+
 static const struct sh_pfc_function pinmux_functions[] = {
 	SH_PFC_FUNCTION(audio_clk),
 	SH_PFC_FUNCTION(i2c0),
@@ -1365,6 +1424,7 @@ enum {
 	SH_PFC_FUNCTION(scif4),
 	SH_PFC_FUNCTION(scif5),
 	SH_PFC_FUNCTION(scif_clk),
+	SH_PFC_FUNCTION(ssi),
 };
 
 static const struct pinmux_cfg_reg pinmux_config_regs[] = {
-- 
1.9.1

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

* Re: [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  2017-10-03  2:23 ` [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock " Kuninori Morimoto
@ 2017-10-03  4:09   ` Kuninori Morimoto
  2017-10-04 13:47     ` Geert Uytterhoeven
  0 siblings, 1 reply; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-03  4:09 UTC (permalink / raw)
  To: Simon, Geert Uytterhoeven; +Cc: Magnus, Linux-Renesas


Hi

> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
(snip)
> +static const char * const audio_clk_groups[] = {
> +	"audio_clka",
> +	"audio_clkb",
> +	"audio_clkout",
> +	"audio_clkout1",
> +};

Oops, we want to have this ?

 - audio_clka
 - audio_clkb
 + audio_clk_a
 + audio_clk_b


Best regards
---
Kuninori Morimoto

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

* Re: [RFC][PATCH 4/4] pinctrl: sh-pfc: r8a77995: add Audio SSI pin support
  2017-10-03  2:23 ` [RFC][PATCH 4/4] pinctrl: sh-pfc: r8a77995: add Audio SSI " Kuninori Morimoto
@ 2017-10-03  9:36   ` Sergei Shtylyov
  2017-10-04 13:50     ` Geert Uytterhoeven
  0 siblings, 1 reply; 17+ messages in thread
From: Sergei Shtylyov @ 2017-10-03  9:36 UTC (permalink / raw)
  To: Kuninori Morimoto, Simon, Geert Uytterhoeven; +Cc: Magnus, Linux-Renesas

Hello!

On 10/3/2017 5:23 AM, Kuninori Morimoto wrote:

> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>   drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 60 +++++++++++++++++++++++++++++++++++
>   1 file changed, 60 insertions(+)
> 
> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
> index 2b56253..1a5c5a7 100644
> --- a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
> @@ -1232,6 +1232,50 @@ enum {
>   	SCIF_CLK_MARK,
>   };
>   
> +/* - SSI ---------------------------------------------------------------*/
> +static const unsigned int ssi3_data_pins[] = {
> +	/* SDATA3 */
> +	RCAR_GP_PIN(4, 3),
> +};
> +static const unsigned int ssi3_data_mux[] = {
> +	SSI_SDATA3_MARK,
> +};
> +static const unsigned int ssi34_ctrl_pins[] = {
> +	/* SCK34,  WS34 */
> +	RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 4),
> +};
> +static const unsigned int ssi34_ctrl_mux[] = {
> +	SSI_SCK34_MARK, SSI_WS34_MARK,
> +};
> +static const unsigned int ssi4_ctrl_a_pins[] = {
> +	/* SCK4_A, WS4_A */

    Why these sudden A/B suffixes in the comments?
We haven't had them yet, I think.

> +	RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 7),
> +};
> +static const unsigned int ssi4_ctrl_a_mux[] = {
> +	SSI_SCK4_A_MARK, SSI_WS4_A_MARK,
> +};
> +static const unsigned int ssi4_data_a_pins[] = {
> +	/* SDATA4_A */
> +	RCAR_GP_PIN(4, 6),
> +};
> +static const unsigned int ssi4_data_a_mux[] = {
> +	SSI_SDATA4_A_MARK,
> +};
> +static const unsigned int ssi4_ctrl_b_pins[] = {
> +	/* SCK4_B, WS4_B */
> +	RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 20),
> +};
> +static const unsigned int ssi4_ctrl_b_mux[] = {
> +	SSI_SCK4_B_MARK, SSI_WS4_B_MARK,
> +};
> +static const unsigned int ssi4_data_b_pins[] = {
> +	/* SDATA4_B */
> +	RCAR_GP_PIN(2, 16),
> +};
> +static const unsigned int ssi4_data_b_mux[] = {
> +	SSI_SDATA4_B_MARK,
> +};
> +
>   static const struct sh_pfc_pin_group pinmux_groups[] = {
>   	SH_PFC_PIN_GROUP(audio_clka),
>   	SH_PFC_PIN_GROUP(audio_clkb),
[...]

MBR, Sergei

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

* Re: [RFC][PATCH 1/4] pinctrl: sh-pfc: r8a7795: add Audio clock pin support
  2017-10-03  2:22 ` [RFC][PATCH 1/4] pinctrl: sh-pfc: r8a7795: add Audio clock pin support Kuninori Morimoto
@ 2017-10-04 13:23   ` Geert Uytterhoeven
  0 siblings, 0 replies; 17+ messages in thread
From: Geert Uytterhoeven @ 2017-10-04 13:23 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Simon, Magnus, Linux-Renesas

On Tue, Oct 3, 2017 at 4:22 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in sh-pfc-for-v4.15.

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

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

* Re: [RFC][PATCH 2/4] pinctrl: sh-pfc: r8a7795: add Audio SSI pin support
  2017-10-03  2:23 ` [RFC][PATCH 2/4] pinctrl: sh-pfc: r8a7795: add Audio SSI " Kuninori Morimoto
@ 2017-10-04 13:36   ` Geert Uytterhoeven
  0 siblings, 0 replies; 17+ messages in thread
From: Geert Uytterhoeven @ 2017-10-04 13:36 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Simon, Magnus, Linux-Renesas

On Tue, Oct 3, 2017 at 4:23 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in sh-pfc-for-v4.15.

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

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

* Re: [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  2017-10-03  4:09   ` Kuninori Morimoto
@ 2017-10-04 13:47     ` Geert Uytterhoeven
  2017-10-10  0:07       ` Kuninori Morimoto
  0 siblings, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2017-10-04 13:47 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Simon, Magnus, Linux-Renesas

Hi Morimoto-san,

On Tue, Oct 3, 2017 at 6:09 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
>> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>>
>> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>> ---
> (snip)
>> +static const char * const audio_clk_groups[] = {
>> +     "audio_clka",
>> +     "audio_clkb",
>> +     "audio_clkout",
>> +     "audio_clkout1",
>> +};
>
> Oops, we want to have this ?
>
>  - audio_clka
>  - audio_clkb
>  + audio_clk_a
>  + audio_clk_b

It's debatable.
The datasheet uses "CLKA" and "CLKOUT", while the pinctrl drivers tend
to use "clk_a" (with underscore) and "clkout" (without underscore).

Except for r8a7794, which uses the "clka" form. Oops...
As this is DT ABI, we cannot easily change it. But if you want, we can add
aliases.

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

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

* Re: [RFC][PATCH 4/4] pinctrl: sh-pfc: r8a77995: add Audio SSI pin support
  2017-10-03  9:36   ` Sergei Shtylyov
@ 2017-10-04 13:50     ` Geert Uytterhoeven
  0 siblings, 0 replies; 17+ messages in thread
From: Geert Uytterhoeven @ 2017-10-04 13:50 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: Kuninori Morimoto, Simon, Magnus, Linux-Renesas

Hi Sergei, Morimoto-san,

On Tue, Oct 3, 2017 at 11:36 AM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> On 10/3/2017 5:23 AM, Kuninori Morimoto wrote:
>> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>>
>> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>> ---
>>   drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 60
>> +++++++++++++++++++++++++++++++++++
>>   1 file changed, 60 insertions(+)
>>
>> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
>> b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
>> index 2b56253..1a5c5a7 100644
>> --- a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
>> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
>> @@ -1232,6 +1232,50 @@ enum {
>>         SCIF_CLK_MARK,
>>   };
>>   +/* - SSI
>> ---------------------------------------------------------------*/
>> +static const unsigned int ssi3_data_pins[] = {
>> +       /* SDATA3 */
>> +       RCAR_GP_PIN(4, 3),
>> +};
>> +static const unsigned int ssi3_data_mux[] = {
>> +       SSI_SDATA3_MARK,
>> +};
>> +static const unsigned int ssi34_ctrl_pins[] = {
>> +       /* SCK34,  WS34 */
>> +       RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 4),
>> +};
>> +static const unsigned int ssi34_ctrl_mux[] = {
>> +       SSI_SCK34_MARK, SSI_WS34_MARK,
>> +};
>> +static const unsigned int ssi4_ctrl_a_pins[] = {
>> +       /* SCK4_A, WS4_A */
>
>
>    Why these sudden A/B suffixes in the comments?
> We haven't had them yet, I think.

Indeed. Other drivers don't even have the numerical suffixes, except for
R-Car H2 and E2.

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

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

* Re: [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995
  2017-10-03  2:21 [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Kuninori Morimoto
                   ` (3 preceding siblings ...)
  2017-10-03  2:23 ` [RFC][PATCH 4/4] pinctrl: sh-pfc: r8a77995: add Audio SSI " Kuninori Morimoto
@ 2017-10-05 20:48 ` Wolfram Sang
  4 siblings, 0 replies; 17+ messages in thread
From: Wolfram Sang @ 2017-10-05 20:48 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Simon, Geert Uytterhoeven, Magnus, Linux-Renesas

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

Morimoto-san,

> But, I2C is not yet supported on H3 ES2.0 "PFC",

This is out now:

[PATCH] pinctrl: sh-pfc: r8a7795: add I2C pin support

and Geert already picked it up.

Regards,

   Wolfram


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  2017-10-04 13:47     ` Geert Uytterhoeven
@ 2017-10-10  0:07       ` Kuninori Morimoto
  2017-10-10  6:48         ` Geert Uytterhoeven
  0 siblings, 1 reply; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-10  0:07 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Simon, Magnus, Linux-Renesas


Hi Geert

> >  - audio_clka
> >  - audio_clkb
> >  + audio_clk_a
> >  + audio_clk_b
> 
> It's debatable.
> The datasheet uses "CLKA" and "CLKOUT", while the pinctrl drivers tend
> to use "clk_a" (with underscore) and "clkout" (without underscore).
> 
> Except for r8a7794, which uses the "clka" form. Oops...
> As this is DT ABI, we cannot easily change it. But if you want, we can add
> aliases.

I have no strong opinion about this "clka" vs "clk_a".
I will do nothing if you are OK on this current patch (= "clka"),
I will post v2 patch if you say "clk_a" is good.

Best regards
---
Kuninori Morimoto

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

* Re: [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  2017-10-10  0:07       ` Kuninori Morimoto
@ 2017-10-10  6:48         ` Geert Uytterhoeven
  2017-10-10  7:06           ` Kuninori Morimoto
  0 siblings, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2017-10-10  6:48 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Simon, Magnus, Linux-Renesas

Hi Morimoto-san,

On Tue, Oct 10, 2017 at 2:07 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
>> >  - audio_clka
>> >  - audio_clkb
>> >  + audio_clk_a
>> >  + audio_clk_b
>>
>> It's debatable.
>> The datasheet uses "CLKA" and "CLKOUT", while the pinctrl drivers tend
>> to use "clk_a" (with underscore) and "clkout" (without underscore).
>>
>> Except for r8a7794, which uses the "clka" form. Oops...
>> As this is DT ABI, we cannot easily change it. But if you want, we can add
>> aliases.
>
> I have no strong opinion about this "clka" vs "clk_a".
> I will do nothing if you are OK on this current patch (= "clka"),
> I will post v2 patch if you say "clk_a" is good.

I think it's best to follow what's done in the other R-Car Gen3 SoCs.
Else we may end up in trouble if a board shows up that can support both
R-Car D3 and another R-Car Gen3 SoC (cfr. Salvator-X(S) and ULCB
with R-Car H3 and M3-W).

Do you agree?

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

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

* Re: [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  2017-10-10  6:48         ` Geert Uytterhoeven
@ 2017-10-10  7:06           ` Kuninori Morimoto
  2017-10-10  7:10             ` Geert Uytterhoeven
  0 siblings, 1 reply; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-10  7:06 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Simon, Magnus, Linux-Renesas


Hi Geert

> >> >  - audio_clka
> >> >  - audio_clkb
> >> >  + audio_clk_a
> >> >  + audio_clk_b
> >>
> >> It's debatable.
> >> The datasheet uses "CLKA" and "CLKOUT", while the pinctrl drivers tend
> >> to use "clk_a" (with underscore) and "clkout" (without underscore).
> >>
> >> Except for r8a7794, which uses the "clka" form. Oops...
> >> As this is DT ABI, we cannot easily change it. But if you want, we can add
> >> aliases.
> >
> > I have no strong opinion about this "clka" vs "clk_a".
> > I will do nothing if you are OK on this current patch (= "clka"),
> > I will post v2 patch if you say "clk_a" is good.
> 
> I think it's best to follow what's done in the other R-Car Gen3 SoCs.
> Else we may end up in trouble if a board shows up that can support both
> R-Car D3 and another R-Car Gen3 SoC (cfr. Salvator-X(S) and ULCB
> with R-Car H3 and M3-W).

Yeah agree.
But unfortunately, both "clka" / "clk_a" are already used, right ?
I think we want to have "clk_a" ?

Best regards
---
Kuninori Morimoto

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

* Re: [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  2017-10-10  7:06           ` Kuninori Morimoto
@ 2017-10-10  7:10             ` Geert Uytterhoeven
  2017-10-10  7:38               ` Kuninori Morimoto
  0 siblings, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2017-10-10  7:10 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Simon, Magnus, Linux-Renesas

Hi Morimoto-san,

On Tue, Oct 10, 2017 at 9:06 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
>> >> >  - audio_clka
>> >> >  - audio_clkb
>> >> >  + audio_clk_a
>> >> >  + audio_clk_b
>> >>
>> >> It's debatable.
>> >> The datasheet uses "CLKA" and "CLKOUT", while the pinctrl drivers tend
>> >> to use "clk_a" (with underscore) and "clkout" (without underscore).
>> >>
>> >> Except for r8a7794, which uses the "clka" form. Oops...
>> >> As this is DT ABI, we cannot easily change it. But if you want, we can add
>> >> aliases.
>> >
>> > I have no strong opinion about this "clka" vs "clk_a".
>> > I will do nothing if you are OK on this current patch (= "clka"),
>> > I will post v2 patch if you say "clk_a" is good.
>>
>> I think it's best to follow what's done in the other R-Car Gen3 SoCs.
>> Else we may end up in trouble if a board shows up that can support both
>> R-Car D3 and another R-Car Gen3 SoC (cfr. Salvator-X(S) and ULCB
>> with R-Car H3 and M3-W).
>
> Yeah agree.
> But unfortunately, both "clka" / "clk_a" are already used, right ?
> I think we want to have "clk_a" ?

Yes. "clk_a" is what used on all R-Car SoCs, except for R-Car E2.

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

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

* Re: [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock pin support
  2017-10-10  7:10             ` Geert Uytterhoeven
@ 2017-10-10  7:38               ` Kuninori Morimoto
  0 siblings, 0 replies; 17+ messages in thread
From: Kuninori Morimoto @ 2017-10-10  7:38 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Simon, Magnus, Linux-Renesas


Hi Geert

> >> I think it's best to follow what's done in the other R-Car Gen3 SoCs.
> >> Else we may end up in trouble if a board shows up that can support both
> >> R-Car D3 and another R-Car Gen3 SoC (cfr. Salvator-X(S) and ULCB
> >> with R-Car H3 and M3-W).
> >
> > Yeah agree.
> > But unfortunately, both "clka" / "clk_a" are already used, right ?
> > I think we want to have "clk_a" ?
> 
> Yes. "clk_a" is what used on all R-Car SoCs, except for R-Car E2.

OK, will post v2

Best regards
---
Kuninori Morimoto

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

end of thread, other threads:[~2017-10-10  7:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-03  2:21 [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Kuninori Morimoto
2017-10-03  2:22 ` [RFC][PATCH 1/4] pinctrl: sh-pfc: r8a7795: add Audio clock pin support Kuninori Morimoto
2017-10-04 13:23   ` Geert Uytterhoeven
2017-10-03  2:23 ` [RFC][PATCH 2/4] pinctrl: sh-pfc: r8a7795: add Audio SSI " Kuninori Morimoto
2017-10-04 13:36   ` Geert Uytterhoeven
2017-10-03  2:23 ` [RFC][PATCH 3/4] pinctrl: sh-pfc: r8a77995: add Audio clock " Kuninori Morimoto
2017-10-03  4:09   ` Kuninori Morimoto
2017-10-04 13:47     ` Geert Uytterhoeven
2017-10-10  0:07       ` Kuninori Morimoto
2017-10-10  6:48         ` Geert Uytterhoeven
2017-10-10  7:06           ` Kuninori Morimoto
2017-10-10  7:10             ` Geert Uytterhoeven
2017-10-10  7:38               ` Kuninori Morimoto
2017-10-03  2:23 ` [RFC][PATCH 4/4] pinctrl: sh-pfc: r8a77995: add Audio SSI " Kuninori Morimoto
2017-10-03  9:36   ` Sergei Shtylyov
2017-10-04 13:50     ` Geert Uytterhoeven
2017-10-05 20:48 ` [RFC][PATCH 0/4] Audio/SSI pin supprt for r8a7795/r8a77995 Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.