From: Jacopo Mondi <jacopo+renesas@jmondi.org>
To: geert@linux-m68k.org, horms@verge.net.au, magnus.damm@gmail.com,
robh+dt@kernel.org, mark.rutland@arm.com
Cc: Jacopo Mondi <jacopo+renesas@jmondi.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 14/15] pinctrl: sh-pfc: r8a77965: Add EtherAVB groups/functions
Date: Tue, 13 Feb 2018 10:46:01 +0100 [thread overview]
Message-ID: <1518515162-23663-15-git-send-email-jacopo+renesas@jmondi.org> (raw)
In-Reply-To: <1518515162-23663-1-git-send-email-jacopo+renesas@jmondi.org>
Add EtherAVB groups and functions definitions for R-Car M3-N.
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
---
drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 110 ++++++++++++++++++++++++++++++++++
1 file changed, 110 insertions(+)
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
index 6989db2..ac260d4 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c
@@ -1577,6 +1577,92 @@ static const struct sh_pfc_pin pinmux_pins[] = {
SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('T'), 30, ASEBRK, CFG_FLAGS),
};
+/* - EtherAVB --------------------------------------------------------------- */
+static const unsigned int avb_link_pins[] = {
+ /* AVB_LINK */
+ RCAR_GP_PIN(2, 12),
+};
+static const unsigned int avb_link_mux[] = {
+ AVB_LINK_MARK,
+};
+static const unsigned int avb_magic_pins[] = {
+ /* AVB_MAGIC_ */
+ RCAR_GP_PIN(2, 10),
+};
+static const unsigned int avb_magic_mux[] = {
+ AVB_MAGIC_MARK,
+};
+static const unsigned int avb_phy_int_pins[] = {
+ /* AVB_PHY_INT */
+ RCAR_GP_PIN(2, 11),
+};
+static const unsigned int avb_phy_int_mux[] = {
+ AVB_PHY_INT_MARK,
+};
+static const unsigned int avb_mdc_pins[] = {
+ /* AVB_MDC, AVB_MDIO */
+ RCAR_GP_PIN(2, 9), PIN_NUMBER('A', 9),
+};
+static const unsigned int avb_mdc_mux[] = {
+ AVB_MDC_MARK, AVB_MDIO_MARK,
+};
+static const unsigned int avb_mii_pins[] = {
+ /*
+ * AVB_TX_CTL, AVB_TXC, AVB_TD0,
+ * AVB_TD1, AVB_TD2, AVB_TD3,
+ * AVB_RX_CTL, AVB_RXC, AVB_RD0,
+ * AVB_RD1, AVB_RD2, AVB_RD3,
+ * AVB_TXCREFCLK
+ */
+ PIN_NUMBER('A', 8), PIN_NUMBER('A', 19), PIN_NUMBER('A', 18),
+ PIN_NUMBER('B', 18), PIN_NUMBER('A', 17), PIN_NUMBER('B', 17),
+ PIN_NUMBER('A', 16), PIN_NUMBER('B', 19), PIN_NUMBER('A', 13),
+ PIN_NUMBER('B', 13), PIN_NUMBER('A', 14), PIN_NUMBER('B', 14),
+ PIN_NUMBER('A', 12),
+
+};
+static const unsigned int avb_mii_mux[] = {
+ AVB_TX_CTL_MARK, AVB_TXC_MARK, AVB_TD0_MARK,
+ AVB_TD1_MARK, AVB_TD2_MARK, AVB_TD3_MARK,
+ AVB_RX_CTL_MARK, AVB_RXC_MARK, AVB_RD0_MARK,
+ AVB_RD1_MARK, AVB_RD2_MARK, AVB_RD3_MARK,
+ AVB_TXCREFCLK_MARK,
+};
+static const unsigned int avb_avtp_pps_pins[] = {
+ /* AVB_AVTP_PPS */
+ RCAR_GP_PIN(2, 6),
+};
+static const unsigned int avb_avtp_pps_mux[] = {
+ AVB_AVTP_PPS_MARK,
+};
+static const unsigned int avb_avtp_match_a_pins[] = {
+ /* AVB_AVTP_MATCH_A */
+ RCAR_GP_PIN(2, 13),
+};
+static const unsigned int avb_avtp_match_a_mux[] = {
+ AVB_AVTP_MATCH_A_MARK,
+};
+static const unsigned int avb_avtp_capture_a_pins[] = {
+ /* AVB_AVTP_CAPTURE_A */
+ RCAR_GP_PIN(2, 14),
+};
+static const unsigned int avb_avtp_capture_a_mux[] = {
+ AVB_AVTP_CAPTURE_A_MARK,
+};
+static const unsigned int avb_avtp_match_b_pins[] = {
+ /* AVB_AVTP_MATCH_B */
+ RCAR_GP_PIN(1, 8),
+};
+static const unsigned int avb_avtp_match_b_mux[] = {
+ AVB_AVTP_MATCH_B_MARK,
+};
+static const unsigned int avb_avtp_capture_b_pins[] = {
+ /* AVB_AVTP_CAPTURE_B */
+ RCAR_GP_PIN(1, 11),
+};
+static const unsigned int avb_avtp_capture_b_mux[] = {
+ AVB_AVTP_CAPTURE_B_MARK,
+};
/* - SCIF0 ------------------------------------------------------------------ */
static const unsigned int scif0_data_pins[] = {
/* RX, TX */
@@ -1789,6 +1875,16 @@ static const unsigned int scif_clk_b_mux[] = {
};
static const struct sh_pfc_pin_group pinmux_groups[] = {
+ SH_PFC_PIN_GROUP(avb_link),
+ SH_PFC_PIN_GROUP(avb_magic),
+ SH_PFC_PIN_GROUP(avb_phy_int),
+ SH_PFC_PIN_GROUP(avb_mdc),
+ SH_PFC_PIN_GROUP(avb_mii),
+ SH_PFC_PIN_GROUP(avb_avtp_pps),
+ SH_PFC_PIN_GROUP(avb_avtp_match_a),
+ SH_PFC_PIN_GROUP(avb_avtp_capture_a),
+ SH_PFC_PIN_GROUP(avb_avtp_match_b),
+ SH_PFC_PIN_GROUP(avb_avtp_capture_b),
SH_PFC_PIN_GROUP(scif0_data),
SH_PFC_PIN_GROUP(scif0_clk),
SH_PFC_PIN_GROUP(scif0_ctrl),
@@ -1820,6 +1916,19 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(scif_clk_b),
};
+static const char * const avb_groups[] = {
+ "avb_link",
+ "avb_magic",
+ "avb_phy_int",
+ "avb_mdc",
+ "avb_mii",
+ "avb_avtp_pps",
+ "avb_avtp_match_a",
+ "avb_avtp_capture_a",
+ "avb_avtp_match_b",
+ "avb_avtp_capture_b",
+};
+
static const char * const scif0_groups[] = {
"scif0_data",
"scif0_clk",
@@ -1870,6 +1979,7 @@ static const char * const scif_clk_groups[] = {
};
static const struct sh_pfc_function pinmux_functions[] = {
+ SH_PFC_FUNCTION(avb),
SH_PFC_FUNCTION(scif0),
SH_PFC_FUNCTION(scif1),
SH_PFC_FUNCTION(scif2),
--
2.7.4
next prev parent reply other threads:[~2018-02-13 9:47 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-13 9:45 [PATCH 00/15] R-Car M3-N initial support Jacopo Mondi
2018-02-13 9:45 ` [PATCH 01/15] Documentation: devicetree: R-Car M3-N SoC DT bindings Jacopo Mondi
2018-02-14 10:01 ` Simon Horman
2018-02-19 2:52 ` Rob Herring
2018-02-19 9:19 ` Simon Horman
2018-02-14 10:36 ` Geert Uytterhoeven
2018-02-13 9:45 ` [PATCH 02/15] clk: renesas: cpg-msr: Add support for R-Car M3-N Jacopo Mondi
2018-02-13 11:48 ` Kieran Bingham
2018-02-14 11:03 ` Geert Uytterhoeven
2018-02-15 15:31 ` Simon Horman
2018-02-16 9:03 ` Geert Uytterhoeven
2018-02-19 2:53 ` Rob Herring
2018-02-13 9:45 ` [PATCH 03/15] soc: renesas: Add R-Car M3-N support Jacopo Mondi
2018-02-14 12:48 ` Geert Uytterhoeven
2018-02-15 15:34 ` Simon Horman
2018-02-20 10:10 ` jacopo mondi
2018-02-13 9:45 ` [PATCH 04/15] pinctrl: sh-pfc: Initial " Jacopo Mondi
2018-02-14 13:37 ` Geert Uytterhoeven
2018-02-14 13:53 ` jacopo mondi
2018-02-14 14:25 ` Geert Uytterhoeven
2018-02-19 2:57 ` Rob Herring
2018-02-13 9:45 ` [PATCH 05/15] ARM64: dts: Add R-Car Salvator-x " Jacopo Mondi
2018-02-14 13:58 ` Geert Uytterhoeven
2018-02-14 21:22 ` Philippe Ombredanne
2018-02-15 15:38 ` Simon Horman
2018-02-16 9:20 ` Geert Uytterhoeven
2018-02-16 9:36 ` Geert Uytterhoeven
2018-02-13 9:45 ` [PATCH 06/15] Documentation: devicetree: dma: Add r8a77965 dmac Jacopo Mondi
2018-02-14 13:59 ` Geert Uytterhoeven
2018-02-15 15:39 ` Simon Horman
2018-02-15 15:56 ` Simon Horman
2018-02-16 9:01 ` Geert Uytterhoeven
2018-02-16 13:40 ` Simon Horman
2018-02-19 2:58 ` Rob Herring
2018-02-13 9:45 ` [PATCH 07/15] ARM64: dts: r8a77965: Add dmac device nods Jacopo Mondi
2018-02-14 14:08 ` Geert Uytterhoeven
2018-02-13 9:45 ` [PATCH 08/15] Documentation: devicetree: renesas,sci: Add r8a77965 Jacopo Mondi
2018-02-14 14:03 ` Geert Uytterhoeven
2018-02-15 15:47 ` Simon Horman
2018-02-19 2:59 ` Rob Herring
2018-02-13 9:45 ` [PATCH 09/15] pinctrl: sh-pfc: r8a77965: Add SCIFs groups/functions Jacopo Mondi
2018-02-14 14:42 ` Geert Uytterhoeven
2018-02-13 9:45 ` [PATCH 10/15] ARM64: dts: r8a77965: Add SCIF device nodes Jacopo Mondi
2018-02-14 14:13 ` Geert Uytterhoeven
2018-02-13 9:45 ` [PATCH 11/15] gpio: rcar: Add R-Car M3-N compatible string Jacopo Mondi
2018-02-14 14:05 ` Geert Uytterhoeven
2018-02-20 13:35 ` jacopo mondi
2018-02-20 13:40 ` Geert Uytterhoeven
2018-02-13 9:45 ` [PATCH 12/15] ARM64: dts: r8a77965: Add GPIO nodes Jacopo Mondi
2018-02-14 14:10 ` Geert Uytterhoeven
2018-02-13 9:46 ` [PATCH 13/15] Documentation: devicetree: ravb: Add r8a77965 Jacopo Mondi
2018-02-14 14:06 ` Geert Uytterhoeven
2018-02-14 15:02 ` Sergei Shtylyov
2018-02-15 15:45 ` Simon Horman
2018-02-19 3:01 ` Rob Herring
2018-02-13 9:46 ` Jacopo Mondi [this message]
2018-02-14 14:47 ` [PATCH 14/15] pinctrl: sh-pfc: r8a77965: Add EtherAVB groups/functions Geert Uytterhoeven
2018-02-13 9:46 ` [PATCH 15/15] ARM64: dts: r8a77965: Add EtherAVB device node Jacopo Mondi
2018-02-14 14:48 ` Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1518515162-23663-15-git-send-email-jacopo+renesas@jmondi.org \
--to=jacopo+renesas@jmondi.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).