All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Hershberger <joe.hershberger@ni.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/7] ARM: k2g-ice: Add pinmux support for rgmii interface
Date: Mon, 25 Feb 2019 18:24:42 +0000	[thread overview]
Message-ID: <CANr=Z=au-+uNsvuYMEsHuizRGPWgGi7Xx78bKJgc9GiVmKR3Ag@mail.gmail.com> (raw)
In-Reply-To: <20190221170207.17808-2-m-karicheri2@ti.com>

On Thu, Feb 21, 2019 at 11:03 AM Murali Karicheri <m-karicheri2@ti.com> wrote:
>
> This add pinmux configuration for rgmii interface so that network
> driver can be supported on K2G ICE boards. The pinmux configurations
> for this are generated using the pinmux tool at
> https://dev.ti.com/pinmux/app.html#/default
>
> As this required some BUFFER_CLASS definitions, same is re-used
> from the linux defnitions in include/dt-bindings/pinctrl/keystone.h
>
> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---
>  arch/arm/mach-keystone/include/mach/mux-k2g.h |  5 +++++
>  board/ti/ks2_evm/mux-k2g.h                    | 19 +++++++++++++++++++
>  2 files changed, 24 insertions(+)
>
> diff --git a/arch/arm/mach-keystone/include/mach/mux-k2g.h b/arch/arm/mach-keystone/include/mach/mux-k2g.h
> index 809b72d5bf..67d47f8172 100644
> --- a/arch/arm/mach-keystone/include/mach/mux-k2g.h
> +++ b/arch/arm/mach-keystone/include/mach/mux-k2g.h
> @@ -27,6 +27,11 @@
>  #define PIN_PTU        (1 << 17) /* pull up */
>  #define PIN_PTD        (0 << 17) /* pull down */
>
> +#define BUFFER_CLASS_B (0 << 19)
> +#define BUFFER_CLASS_C (1 << 19)
> +#define BUFFER_CLASS_D (2 << 19)
> +#define BUFFER_CLASS_E (3 << 19)
> +
>  #define MODE(m)        ((m) & 0x7)
>  #define MAX_PIN_N      260
>
> diff --git a/board/ti/ks2_evm/mux-k2g.h b/board/ti/ks2_evm/mux-k2g.h
> index 706fb7e838..8c184a85ae 100644
> --- a/board/ti/ks2_evm/mux-k2g.h
> +++ b/board/ti/ks2_evm/mux-k2g.h
> @@ -346,6 +346,25 @@ struct pin_cfg k2g_ice_evm_pin_cfg[] = {
>         { 133,  MODE(0) },      /* SOC_QSPI_D2 */
>         { 134,  MODE(0) },      /* SOC_QSPI_D3 */
>         { 135,  MODE(0) },      /* SOC_QSPI_CSN0 */
> +
> +       /* EMAC */
> +       { 79,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_RXD1 */
> +       { 78,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_RXD2 */
> +       { 77,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_RXD3 */
> +       { 80,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_RXD0 */
> +       { 94,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_TXD0 */
> +       { 93,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_TXD1 */
> +       { 92,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_TXD2 */
> +       { 91,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_TXD3 */
> +       { 85,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_TXC */
> +       { 95,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_TXCTL */
> +       { 72,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_RXC */
> +       { 81,   BUFFER_CLASS_D | PIN_PDIS | MODE(1) },  /* RGMII_RXCTL */

Actually... please sort these by pin number.

Thanks,
-Joe

> +
> +       /* MDIO */
> +       { 99,   BUFFER_CLASS_B | PIN_PDIS | MODE(0) },  /* MDIO_CLK */
> +       { 98,   BUFFER_CLASS_B | PIN_PDIS | MODE(0) },  /* MDIO_DATA */
> +
>         { MAX_PIN_N, }
>  };
>
> --
> 2.17.0
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot

  reply	other threads:[~2019-02-25 18:24 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-21 17:02 [U-Boot] [PATCH v3 0/7] Add netcp networking support on K2G ICE EVM Murali Karicheri
2019-02-21 17:02 ` [U-Boot] [PATCH v3 1/7] ARM: k2g-ice: Add pinmux support for rgmii interface Murali Karicheri
2019-02-25 18:24   ` Joe Hershberger [this message]
2019-02-25 18:29   ` Joe Hershberger
2019-04-12 16:29   ` [U-Boot] [U-Boot, v3, " Tom Rini
2019-02-21 17:02 ` [U-Boot] [PATCH v3 2/7] ARM: k2g-gp-evm: update to rgmii pinmux configuration Murali Karicheri
2019-02-25 18:25   ` Joe Hershberger
2019-04-12 16:29   ` [U-Boot] [U-Boot, v3, " Tom Rini
2019-02-21 17:02 ` [U-Boot] [PATCH v3 3/7] net: netcp: add support for phy with rgmii ids Murali Karicheri
2019-02-25 18:26   ` Joe Hershberger
2019-04-12 16:29   ` [U-Boot] [U-Boot, v3, " Tom Rini
2019-02-21 17:02 ` [U-Boot] [PATCH v3 4/7] ARM: k2g: add a workaround to reset the phy Murali Karicheri
2019-02-25 18:28   ` Joe Hershberger
2019-04-12 16:29   ` [U-Boot] [U-Boot, v3, " Tom Rini
2019-02-21 17:02 ` [U-Boot] [PATCH v3 5/7] ARM: dts: k2g-evm: remove unused phy-mode property from phy node Murali Karicheri
2019-02-25 18:36   ` Joe Hershberger
2019-04-12 16:29   ` [U-Boot] [U-Boot, v3, " Tom Rini
2019-02-21 17:02 ` [U-Boot] [PATCH v3 6/7] k2g: config enable ti phy dp83867 for k2g Murali Karicheri
2019-02-21 23:10   ` Tom Rini
2019-02-25 18:35   ` Joe Hershberger
2019-04-12 16:30   ` [U-Boot] [U-Boot, v3, " Tom Rini
2019-02-21 17:02 ` [U-Boot] [PATCH v3 7/7] ARM: dts: k2g-ice: add dt node for netcp Murali Karicheri
2019-02-25 18:30   ` Joe Hershberger
2019-04-12 16:30   ` [U-Boot] [U-Boot, v3, " Tom Rini
2019-02-25 16:18 ` [U-Boot] [PATCH v3 0/7] Add netcp networking support on K2G ICE EVM Murali Karicheri

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='CANr=Z=au-+uNsvuYMEsHuizRGPWgGi7Xx78bKJgc9GiVmKR3Ag@mail.gmail.com' \
    --to=joe.hershberger@ni.com \
    --cc=u-boot@lists.denx.de \
    /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 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.