dt: add pinctrl driver for Meson-AXG SoC
Subsystems (4)
v4 cover dt: add pinctrl driver for Meson-AXG SoC
This is DT part patchset for adding pinctrl support for the Amlogic's Meson-AXG SoC.
Changes since v3 at [3]
-- rebase to khilman's v4.16/dt64 branch and re-send -- add Rob's Ack
Changes since v2 at [2]:
-- Resend this patch series due to fail to send patch [2/2]
Changes since v1 at [1]:
-- Separate DT part patches
-- Add Neil Armstrong's Ack
[3]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005392.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005393.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005394.html
[2]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005390.html
[1]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005270.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005271.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005272.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005273.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005274.html
Xingyu Chen (2):
documentation: Add compatibles for Amlogic Meson AXG pin controllers
ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
.../devicetree/bindings/pinctrl/meson,pinctrl.txt | 2 + arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 ++++++++++++++++++++++ 2 files changed, 46 insertions(+)
Signature · 1 line
2.15.1
PATCH v4 1/2 documentation: Add compatibles for Amlogic Meson AXG pin controllers
From: Xingyu Chen <[email protected]>
Add compatibles for Amlogic Meson AXG pin controllers
--- Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt +2 -0
@@ -9,6 +9,8 @@ Required properties for the root node: "amlogic,meson-gxbb-aobus-pinctrl" "amlogic,meson-gxl-periphs-pinctrl" "amlogic,meson-gxl-aobus-pinctrl" + "amlogic,meson-axg-periphs-pinctrl" + "amlogic,meson-axg-aobus-pinctrl" - reg: address and size of registers controlling irq functionality === GPIO sub-nodes ===
Signature · 1 line
2.15.1
PATCH v4 2/2 ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
In reply to Yixun LanFrom: Xingyu Chen <[email protected]>
Add new pinctrl DT info for the Amlogic's Meson-AXG SoC.
--- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
arch/arm64/boot/dts/amlogic/meson-axg.dtsi +44 -0
@@ -7,6 +7,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/gpio/meson-axg-gpio.h> / { compatible = "amlogic,meson-axg";
@@ -157,6 +158,32 @@ #mbox-cells = <1>; }; + periphs: periphs at ff634000 { + compatible = "simple-bus"; + reg = <0x0 0xff634000 0x0 0x2000>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>; + + pinctrl_periphs: pinctrl at 480 { + compatible = "amlogic,meson-axg-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank at 480 { + reg = <0x0 0x00480 0x0 0x40>, + <0x0 0x004e8 0x0 0x14>, + <0x0 0x00520 0x0 0x14>, + <0x0 0x00430 0x0 0x3c>; + reg-names = "mux", "pull", "pull-enable", "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_periphs 0 0 86>; + }; + }; + }; + sram: sram at fffc0000 { compatible = "amlogic,meson-axg-sram", "mmio-sram"; reg = <0x0 0xfffc0000 0x0 0x20000>;
@@ -182,6 +209,23 @@ #size-cells = <2>; ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>; + pinctrl_aobus: pinctrl at 14 { + compatible = "amlogic,meson-axg-aobus-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio_ao: bank at 14 { + reg = <0x0 0x00014 0x0 0x8>, + <0x0 0x0002c 0x0 0x4>, + <0x0 0x00024 0x0 0x8>; + reg-names = "mux", "pull", "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_aobus 0 0 15>; + }; + }; + uart_AO: serial at 3000 { compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; reg = <0x0 0x3000 0x0 0x18>;
Signature · 1 line
2.15.1
Quoted 29 lines · Yixun Lan
This is DT part patchset for adding pinctrl support for the Amlogic's Meson-AXG SoC.
Changes since v3 at [3]
-- rebase to khilman's v4.16/dt64 branch and re-send -- add Rob's AckChanges since v2 at [2]:
-- Resend this patch series due to fail to send patch [2/2]Changes since v1 at [1]:
-- Separate DT part patches
-- Add Neil Armstrong's Ack[3]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005392.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005393.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005394.html[2]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005390.html[1]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005270.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005271.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005272.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005273.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005274.html
Quoted 3 lines
Xingyu Chen (2):
documentation: Add compatibles for Amlogic Meson AXG pin controllers
ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
Applied both to v4.14/dt64
Normally, the documentation patch should go with the driver, but since Linus has already merged the driver, this time I'll take it with the DT itself.
Kevin
Kevin Hilman
maintainerRe: [PATCH v4 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
In reply to Yixun LanQuoted 16 lines · Yixun Lan
From: Xingyu Chen <[email protected]>
Add new pinctrl DT info for the Amlogic's Meson-AXG SoC.
Reviewed-by Neil Armstrong <[email protected]>Signed-off-by Xingyu Chen <[email protected]>Signed-off-by Yixun Lan <[email protected]>--- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)arch/arm64/boot/dts/amlogic/meson-axg.dtsi +0
-0
arch/arm64/boot/dts/amlogic/meson-axg.dtsi line 10
Quoted 4 lines
arch/arm64/boot/dts/amlogic/meson-axg.dtsi +1
-0@@ -7,6 +7,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/gpio/meson-axg-gpio.h>
FYI: I dropped this line, since it's not used (yet) and it causes an unncessary dependency on an external tree. It can be added back as soon as there are users.
Kevin
Quoted 35 lines · Kevin Hilman
Quoted 29 lines · Yixun Lan
This is DT part patchset for adding pinctrl support for the Amlogic's Meson-AXG SoC.
Changes since v3 at [3]
-- rebase to khilman's v4.16/dt64 branch and re-send -- add Rob's AckChanges since v2 at [2]:
-- Resend this patch series due to fail to send patch [2/2]Changes since v1 at [1]:
-- Separate DT part patches
-- Add Neil Armstrong's Ack[3]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005392.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005393.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005394.html[2]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005390.html[1]
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005270.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005271.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005272.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005273.html
http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005274.htmlQuoted 3 lines
Xingyu Chen (2):
documentation: Add compatibles for Amlogic Meson AXG pin controllers
ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
Quoted 6 lines
Applied both to v4.14/dt64
Normally, the documentation patch should go with the driver, but since Linus has already merged the driver, this time I'll take it with the DT itself.
Hi Kevin
sorry, I just checked Linus' pinctrl tree - the for-next branch, the
documentation patch is already taken there. so probably you could drop it here?
Yixun