* [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC
@ 2018-04-22 10:53 Martin Blumenstingl
2018-04-22 10:53 ` [PATCH 1/3] dt-bindings: " Martin Blumenstingl
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Martin Blumenstingl @ 2018-04-22 10:53 UTC (permalink / raw)
To: linus-amlogic
The Meson8m2 SoC is a variant of Meson8 with some updates from Meson8b
(such as the Gigabit capable DesignWare MAC).
It is mostly pin compatible with Meson8, only 10 (existing) CBUS pins
get an additional function. Four of these are Ethernet RXD2, RXD3, TXD2
and TXD3 (GPIOZ_0..GPIOZ_3) which are required when the board uses an
RGMII PHY. GPIODV_24 and GPIODV_25 provide "VGA" support on Meson8,
which doesn't seem to be supported on Meson8m2 anymore.
The other 4 are GPIOH_9 (reg 3 bit 19), CARD_4 (reg 8 bit 8),
CARD_5 (reg 8 bit 7) and GPIOY_3 (reg 3 bit 11). Their function is
currently unknown.
The AOBUS pins seem to be identical on Meson8 and Meson8m2. However,
since there's no official documentation I decided to add a new compatible
string.
Martin Blumenstingl (3):
dt-bindings: pinctrl: meson: add support for the Meson8m2 SoC
pinctrl: meson: meson8: add support for the Meson8m2 SoC
pinctrl: meson: meson8: add the RGMII RXD2/RXD3 and TXD2/TXD3 signals
.../bindings/pinctrl/meson,pinctrl.txt | 2 ++
drivers/pinctrl/meson/pinctrl-meson8.c | 23 +++++++++++++++++--
2 files changed, 23 insertions(+), 2 deletions(-)
--
2.17.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/3] dt-bindings: pinctrl: meson: add support for the Meson8m2 SoC
2018-04-22 10:53 [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC Martin Blumenstingl
@ 2018-04-22 10:53 ` Martin Blumenstingl
2018-04-27 21:15 ` Rob Herring
2018-04-30 8:52 ` Linus Walleij
2018-04-22 10:53 ` [PATCH 2/3] pinctrl: meson: meson8: " Martin Blumenstingl
` (2 subsequent siblings)
3 siblings, 2 replies; 9+ messages in thread
From: Martin Blumenstingl @ 2018-04-22 10:53 UTC (permalink / raw)
To: linus-amlogic
The Meson8m2 SoC is a variant of Meson8 with some updates from Meson8b
(such as the Gigabit capable DesignWare MAC).
It is mostly pin compatible with Meson8, only 10 (existing) CBUS pins
get an additional function (four of these are Ethernet RXD2, RXD3, TXD2
and TXD3 which are required when the board uses an RGMII PHY).
The AOBUS pins seem to be identical on Meson8 and Meson8m2.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt
index 2c12f9789116..54ecb8ab7788 100644
--- a/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt
@@ -3,8 +3,10 @@
Required properties for the root node:
- compatible: one of "amlogic,meson8-cbus-pinctrl"
"amlogic,meson8b-cbus-pinctrl"
+ "amlogic,meson8m2-cbus-pinctrl"
"amlogic,meson8-aobus-pinctrl"
"amlogic,meson8b-aobus-pinctrl"
+ "amlogic,meson8m2-aobus-pinctrl"
"amlogic,meson-gxbb-periphs-pinctrl"
"amlogic,meson-gxbb-aobus-pinctrl"
"amlogic,meson-gxl-periphs-pinctrl"
--
2.17.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/3] pinctrl: meson: meson8: add support for the Meson8m2 SoC
2018-04-22 10:53 [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC Martin Blumenstingl
2018-04-22 10:53 ` [PATCH 1/3] dt-bindings: " Martin Blumenstingl
@ 2018-04-22 10:53 ` Martin Blumenstingl
2018-04-30 8:54 ` Linus Walleij
2018-04-22 10:53 ` [PATCH 3/3] pinctrl: meson: meson8: add the RGMII RXD2/RXD3 and TXD2/TXD3 signals Martin Blumenstingl
2018-04-27 19:11 ` [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC Kevin Hilman
3 siblings, 1 reply; 9+ messages in thread
From: Martin Blumenstingl @ 2018-04-22 10:53 UTC (permalink / raw)
To: linus-amlogic
Add Meson8m2 support to the existing Meson8 pinctrl driver. Since there
are only very few changes (Meson8m2 has an extra signal on 10 CBUS pins,
no other differences were found so far).
Add the new compatible strings for Meson8m2 to the existing Meson8
driver so we don't have to duplicate the whole driver.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
drivers/pinctrl/meson/pinctrl-meson8.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/pinctrl/meson/pinctrl-meson8.c b/drivers/pinctrl/meson/pinctrl-meson8.c
index 49c7ce03547b..086082aeb796 100644
--- a/drivers/pinctrl/meson/pinctrl-meson8.c
+++ b/drivers/pinctrl/meson/pinctrl-meson8.c
@@ -1,5 +1,5 @@
/*
- * Pin controller and GPIO driver for Amlogic Meson8.
+ * Pin controller and GPIO driver for Amlogic Meson8 and Meson8m2.
*
* Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com>
*
@@ -1080,6 +1080,14 @@ static const struct of_device_id meson8_pinctrl_dt_match[] = {
.compatible = "amlogic,meson8-aobus-pinctrl",
.data = &meson8_aobus_pinctrl_data,
},
+ {
+ .compatible = "amlogic,meson8m2-cbus-pinctrl",
+ .data = &meson8_cbus_pinctrl_data,
+ },
+ {
+ .compatible = "amlogic,meson8m2-aobus-pinctrl",
+ .data = &meson8_aobus_pinctrl_data,
+ },
{ },
};
--
2.17.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 3/3] pinctrl: meson: meson8: add the RGMII RXD2/RXD3 and TXD2/TXD3 signals
2018-04-22 10:53 [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC Martin Blumenstingl
2018-04-22 10:53 ` [PATCH 1/3] dt-bindings: " Martin Blumenstingl
2018-04-22 10:53 ` [PATCH 2/3] pinctrl: meson: meson8: " Martin Blumenstingl
@ 2018-04-22 10:53 ` Martin Blumenstingl
2018-04-30 8:55 ` Linus Walleij
2018-04-27 19:11 ` [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC Kevin Hilman
3 siblings, 1 reply; 9+ messages in thread
From: Martin Blumenstingl @ 2018-04-22 10:53 UTC (permalink / raw)
To: linus-amlogic
These are only available on the Meson8m2 SoC (which uses the same
DesignWare Ethernet MAC as Meson8b).
The "eth_tx_clk_50m" signal either provides a 50MHz clock for the RMII
PHYs or the RGMII TX clock (as far as we know the frequency is
controlled by the PRG_ETHERNET registers in the Ethernet MAC "glue" IP
block).
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
drivers/pinctrl/meson/pinctrl-meson8.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/drivers/pinctrl/meson/pinctrl-meson8.c b/drivers/pinctrl/meson/pinctrl-meson8.c
index 086082aeb796..c6d79315218f 100644
--- a/drivers/pinctrl/meson/pinctrl-meson8.c
+++ b/drivers/pinctrl/meson/pinctrl-meson8.c
@@ -299,6 +299,10 @@ static const unsigned int spi_mosi_1_pins[] = { GPIOZ_12 };
static const unsigned int spi_miso_1_pins[] = { GPIOZ_13 };
static const unsigned int spi_ss2_1_pins[] = { GPIOZ_14 };
+static const unsigned int eth_txd3_pins[] = { GPIOZ_0 };
+static const unsigned int eth_txd2_pins[] = { GPIOZ_1 };
+static const unsigned int eth_rxd3_pins[] = { GPIOZ_2 };
+static const unsigned int eth_rxd2_pins[] = { GPIOZ_3 };
static const unsigned int eth_tx_clk_50m_pins[] = { GPIOZ_4 };
static const unsigned int eth_tx_en_pins[] = { GPIOZ_5 };
static const unsigned int eth_txd1_pins[] = { GPIOZ_6 };
@@ -650,6 +654,12 @@ static struct meson_pmx_group meson8_cbus_groups[] = {
GROUP(eth_mdio, 6, 6),
GROUP(eth_mdc, 6, 5),
+ /* NOTE: the following four groups are only available on Meson8m2: */
+ GROUP(eth_rxd2, 6, 3),
+ GROUP(eth_rxd3, 6, 2),
+ GROUP(eth_txd2, 6, 1),
+ GROUP(eth_txd3, 6, 0),
+
GROUP(i2c_sda_a0, 5, 31),
GROUP(i2c_sck_a0, 5, 30),
@@ -877,7 +887,8 @@ static const char * const spi_groups[] = {
static const char * const ethernet_groups[] = {
"eth_tx_clk_50m", "eth_tx_en", "eth_txd1",
"eth_txd0", "eth_rx_clk_in", "eth_rx_dv",
- "eth_rxd1", "eth_rxd0", "eth_mdio", "eth_mdc"
+ "eth_rxd1", "eth_rxd0", "eth_mdio", "eth_mdc", "eth_rxd2",
+ "eth_rxd3", "eth_txd2", "eth_txd3"
};
static const char * const i2c_a_groups[] = {
--
2.17.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC
2018-04-22 10:53 [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC Martin Blumenstingl
` (2 preceding siblings ...)
2018-04-22 10:53 ` [PATCH 3/3] pinctrl: meson: meson8: add the RGMII RXD2/RXD3 and TXD2/TXD3 signals Martin Blumenstingl
@ 2018-04-27 19:11 ` Kevin Hilman
3 siblings, 0 replies; 9+ messages in thread
From: Kevin Hilman @ 2018-04-27 19:11 UTC (permalink / raw)
To: linus-amlogic
Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:
> The Meson8m2 SoC is a variant of Meson8 with some updates from Meson8b
> (such as the Gigabit capable DesignWare MAC).
> It is mostly pin compatible with Meson8, only 10 (existing) CBUS pins
> get an additional function. Four of these are Ethernet RXD2, RXD3, TXD2
> and TXD3 (GPIOZ_0..GPIOZ_3) which are required when the board uses an
> RGMII PHY. GPIODV_24 and GPIODV_25 provide "VGA" support on Meson8,
> which doesn't seem to be supported on Meson8m2 anymore.
> The other 4 are GPIOH_9 (reg 3 bit 19), CARD_4 (reg 8 bit 8),
> CARD_5 (reg 8 bit 7) and GPIOY_3 (reg 3 bit 11). Their function is
> currently unknown.
>
> The AOBUS pins seem to be identical on Meson8 and Meson8m2. However,
> since there's no official documentation I decided to add a new compatible
> string.
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/3] dt-bindings: pinctrl: meson: add support for the Meson8m2 SoC
2018-04-22 10:53 ` [PATCH 1/3] dt-bindings: " Martin Blumenstingl
@ 2018-04-27 21:15 ` Rob Herring
2018-04-30 8:52 ` Linus Walleij
1 sibling, 0 replies; 9+ messages in thread
From: Rob Herring @ 2018-04-27 21:15 UTC (permalink / raw)
To: linus-amlogic
On Sun, Apr 22, 2018 at 12:53:28PM +0200, Martin Blumenstingl wrote:
> The Meson8m2 SoC is a variant of Meson8 with some updates from Meson8b
> (such as the Gigabit capable DesignWare MAC).
> It is mostly pin compatible with Meson8, only 10 (existing) CBUS pins
> get an additional function (four of these are Ethernet RXD2, RXD3, TXD2
> and TXD3 which are required when the board uses an RGMII PHY).
> The AOBUS pins seem to be identical on Meson8 and Meson8m2.
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
> Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/3] dt-bindings: pinctrl: meson: add support for the Meson8m2 SoC
2018-04-22 10:53 ` [PATCH 1/3] dt-bindings: " Martin Blumenstingl
2018-04-27 21:15 ` Rob Herring
@ 2018-04-30 8:52 ` Linus Walleij
1 sibling, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2018-04-30 8:52 UTC (permalink / raw)
To: linus-amlogic
On Sun, Apr 22, 2018 at 12:53 PM, Martin Blumenstingl
<martin.blumenstingl@googlemail.com> wrote:
> The Meson8m2 SoC is a variant of Meson8 with some updates from Meson8b
> (such as the Gigabit capable DesignWare MAC).
> It is mostly pin compatible with Meson8, only 10 (existing) CBUS pins
> get an additional function (four of these are Ethernet RXD2, RXD3, TXD2
> and TXD3 which are required when the board uses an RGMII PHY).
> The AOBUS pins seem to be identical on Meson8 and Meson8m2.
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Patch applied with Rob's and Kevin's ACKs.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/3] pinctrl: meson: meson8: add support for the Meson8m2 SoC
2018-04-22 10:53 ` [PATCH 2/3] pinctrl: meson: meson8: " Martin Blumenstingl
@ 2018-04-30 8:54 ` Linus Walleij
0 siblings, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2018-04-30 8:54 UTC (permalink / raw)
To: linus-amlogic
On Sun, Apr 22, 2018 at 12:53 PM, Martin Blumenstingl
<martin.blumenstingl@googlemail.com> wrote:
> Add Meson8m2 support to the existing Meson8 pinctrl driver. Since there
> are only very few changes (Meson8m2 has an extra signal on 10 CBUS pins,
> no other differences were found so far).
> Add the new compatible strings for Meson8m2 to the existing Meson8
> driver so we don't have to duplicate the whole driver.
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Patch applied with Kevin's ACK.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 3/3] pinctrl: meson: meson8: add the RGMII RXD2/RXD3 and TXD2/TXD3 signals
2018-04-22 10:53 ` [PATCH 3/3] pinctrl: meson: meson8: add the RGMII RXD2/RXD3 and TXD2/TXD3 signals Martin Blumenstingl
@ 2018-04-30 8:55 ` Linus Walleij
0 siblings, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2018-04-30 8:55 UTC (permalink / raw)
To: linus-amlogic
On Sun, Apr 22, 2018 at 12:53 PM, Martin Blumenstingl
<martin.blumenstingl@googlemail.com> wrote:
> These are only available on the Meson8m2 SoC (which uses the same
> DesignWare Ethernet MAC as Meson8b).
> The "eth_tx_clk_50m" signal either provides a 50MHz clock for the RMII
> PHYs or the RGMII TX clock (as far as we know the frequency is
> controlled by the PRG_ETHERNET registers in the Ethernet MAC "glue" IP
> block).
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Patch applied with Kevin's ACK.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-04-30 8:55 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-22 10:53 [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC Martin Blumenstingl
2018-04-22 10:53 ` [PATCH 1/3] dt-bindings: " Martin Blumenstingl
2018-04-27 21:15 ` Rob Herring
2018-04-30 8:52 ` Linus Walleij
2018-04-22 10:53 ` [PATCH 2/3] pinctrl: meson: meson8: " Martin Blumenstingl
2018-04-30 8:54 ` Linus Walleij
2018-04-22 10:53 ` [PATCH 3/3] pinctrl: meson: meson8: add the RGMII RXD2/RXD3 and TXD2/TXD3 signals Martin Blumenstingl
2018-04-30 8:55 ` Linus Walleij
2018-04-27 19:11 ` [PATCH 0/3] pinctrl: meson: add support for the Meson8m2 SoC Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®