Skip to contentSkip to conversation

pinctrl: sh-pfc: r8a77990: Add TMU pins, groups and functions

PATCH/RFT Yoshihiro Kaneko 2 participants 2 messages Jan 15, 2019 – Jan 16, 2019 Pin control

lore
Share & tools
lore
#0 lore raw

From: Takeshi Kihara <[email protected]>

This patch adds TMU TCLK{1,2} pins, groups and functions to the R8A77990 SoC.

---

This patch is based on the sh-pfc branch of Geert Uytterhoeven's renesas-drivers tree.

 drivers/pinctrl/sh-pfc/pfc-r8a77990.c | 53 +++++++++++++++++++++++++++++++++--
 1 file changed, 51 insertions(+), 2 deletions(-)
drivers/pinctrl/sh-pfc/pfc-r8a77990.c +51 -2
index 5fc50f4..e69a7ef 100644
@@ -3436,6 +3436,43 @@ enum {
 	SSI_SCK9_B_MARK, SSI_WS9_B_MARK,
 };
 
+/* - TMU -------------------------------------------------------------------- */
+static const unsigned int tmu_tclk1_a_pins[] = {
+	/* TCLK */
+	RCAR_GP_PIN(3, 12),
+};
+
+static const unsigned int tmu_tclk1_a_mux[] = {
+	TCLK1_A_MARK,
+};
+
+static const unsigned int tmu_tclk1_b_pins[] = {
+	/* TCLK */
+	RCAR_GP_PIN(5, 17),
+};
+
+static const unsigned int tmu_tclk1_b_mux[] = {
+	TCLK1_B_MARK,
+};
+
+static const unsigned int tmu_tclk2_a_pins[] = {
+	/* TCLK */
+	RCAR_GP_PIN(3, 13),
+};
+
+static const unsigned int tmu_tclk2_a_mux[] = {
+	TCLK2_A_MARK,
+};
+
+static const unsigned int tmu_tclk2_b_pins[] = {
+	/* TCLK */
+	RCAR_GP_PIN(5, 18),
+};
+
+static const unsigned int tmu_tclk2_b_mux[] = {
+	TCLK2_B_MARK,
+};
+
 /* - USB0 ------------------------------------------------------------------- */
 static const unsigned int usb0_a_pins[] = {
 	/* PWEN, OVC */
@@ -3716,7 +3753,7 @@ enum {
 };
 
 static const struct {
-	struct sh_pfc_pin_group common[262];
+	struct sh_pfc_pin_group common[266];
 	struct sh_pfc_pin_group automotive[2];
 } pinmux_groups = {
 	.common = {
@@ -3949,6 +3986,10 @@ enum {
 		SH_PFC_PIN_GROUP(ssi9_data),
 		SH_PFC_PIN_GROUP(ssi9_ctrl_a),
 		SH_PFC_PIN_GROUP(ssi9_ctrl_b),
+		SH_PFC_PIN_GROUP(tmu_tclk1_a),
+		SH_PFC_PIN_GROUP(tmu_tclk1_b),
+		SH_PFC_PIN_GROUP(tmu_tclk2_a),
+		SH_PFC_PIN_GROUP(tmu_tclk2_b),
 		SH_PFC_PIN_GROUP(usb0_a),
 		SH_PFC_PIN_GROUP(usb0_b),
 		SH_PFC_PIN_GROUP(usb0_id),
@@ -4358,6 +4399,13 @@ enum {
 	"ssi9_ctrl_b",
 };
 
+static const char * const tmu_groups[] = {
+	"tmu_tclk1_a",
+	"tmu_tclk1_b",
+	"tmu_tclk2_a",
+	"tmu_tclk2_b",
+};
+
 static const char * const usb0_groups[] = {
 	"usb0_a",
 	"usb0_b",
@@ -4404,7 +4452,7 @@ enum {
 };
 
 static const struct {
-	struct sh_pfc_function common[48];
+	struct sh_pfc_function common[49];
 	struct sh_pfc_function automotive[2];
 } pinmux_functions = {
 	.common = {
@@ -4452,6 +4500,7 @@ enum {
 		SH_PFC_FUNCTION(sdhi1),
 		SH_PFC_FUNCTION(sdhi3),
 		SH_PFC_FUNCTION(ssi),
+		SH_PFC_FUNCTION(tmu),
 		SH_PFC_FUNCTION(usb0),
 		SH_PFC_FUNCTION(usb30),
 		SH_PFC_FUNCTION(vin4),
Signature · 1 line
1.9.1
Reviewed-by
#1 lore raw

Hi Kaneko-san,

Quoted 7 lines · Yoshihiro Kaneko

From: Takeshi Kihara <[email protected]>

This patch adds TMU TCLK{1,2} pins, groups and functions to the R8A77990 SoC.

i.e. will queue in sh-pfc-for-v5.1...

Thanks!

drivers/pinctrl/sh-pfc/pfc-r8a77990.c enum { · line 3756

Quoted 9 lines
drivers/pinctrl/sh-pfc/pfc-r8a77990.c +1 -1
@@ -3716,7 +3753,7 @@ enum {
 };
 
 static const struct {
-       struct sh_pfc_pin_group common[262];
+       struct sh_pfc_pin_group common[266];

... with the array limits updated due to the deferred DRIF patch.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
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