arm64: dts: meson: g12a: enable pinctrl
Subsystems (2)
Jerome Brunet
reviewercover arm64: dts: meson: g12a: enable pinctrl
This patchset enables pinctrl on the g12a and adds the necessary pinctrl settings to the u200 uart
Kevin, please note that this patchset depends on the:
* dts bus fixup: [0]
* pinctrl region fixes [1].
[0]: https://lkml.kernel.org/r/[email protected]
[1]: https://lkml.kernel.org/r/[email protected]
Cheers.
Jerome Brunet (2):
arm64: dts: meson: g12a: add pinctrl support controllers
arm64: dts: meson: g12a: add uart_ao_a pinctrl
.../boot/dts/amlogic/meson-g12a-u200.dts | 2 + arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 67 +++++++++++++++++++ 2 files changed, 69 insertions(+)
Signature · 1 line
2.20.1
Jerome Brunet
reviewerPATCH 1/2 arm64: dts: meson: g12a: add pinctrl support controllers
Add the peripheral and always-on pinctrl controllers to the g12a soc.
--- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 49 +++++++++++++++++++++ 1 file changed, 49 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +49 -0
@@ -84,6 +84,29 @@ #address-cells = <2>; #size-cells = <2>; ranges = <0x0 0x0 0x0 0xff634400 0x0 0x400>; + + periphs_pinctrl: pinctrl@40 { + compatible = "amlogic,meson-g12a-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@40 { + reg = <0x0 0x40 0x0 0x4c>, + <0x0 0xe8 0x0 0x18>, + <0x0 0x120 0x0 0x18>, + <0x0 0x2c0 0x0 0x40>, + <0x0 0x340 0x0 0x1c>; + reg-names = "gpio", + "pull", + "pull-enable", + "mux", + "ds"; + gpio-controller; + #gpio-cells = <2>; + }; + + }; }; hiu: bus@ff63c000 {
@@ -94,6 +117,32 @@ ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1400>; }; + rti: bus@ff800000 { + compatible = "simple-bus"; + reg = <0x0 0xff800000 0x0 0x1000>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0xff800000 0x0 0x1000>; + + ao_pinctrl: pinctrl@14 { + compatible = "amlogic,meson-g12a-aobus-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio_ao: bank@14 { + reg = <0x0 0x14 0x0 0x8>, + <0x0 0x1c 0x0 0x8>, + <0x0 0x24 0x0 0x14>; + reg-names = "mux", + "ds", + "gpio"; + gpio-controller; + #gpio-cells = <2>; + }; + }; + }; + uart_AO: serial@ff803000 { compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
Signature · 1 line
2.20.1
Jerome Brunet
reviewerPATCH 2/2 arm64: dts: meson: g12a: add uart_ao_a pinctrl
In reply to Jerome BrunetAdd the always on UART pinctrl setting to the g12a soc DT and use it for the u200 reference design
--- .../arm64/boot/dts/amlogic/meson-g12a-u200.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts +2 -0
@@ -25,5 +25,7 @@ &uart_AO { status = "okay"; + pinctrl-0 = <&uart_ao_a_pins>; + pinctrl-names = "default"; };
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +18 -0
@@ -140,6 +140,24 @@ gpio-controller; #gpio-cells = <2>; }; + + uart_ao_a_pins: uart_a_ao { + mux { + groups = "uart_ao_a_tx", + "uart_ao_a_rx"; + function = "uart_ao_a"; + bias-disable; + }; + }; + + uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts { + mux { + groups = "uart_ao_a_cts", + "uart_ao_a_rts"; + function = "uart_ao_a"; + bias-disable; + }; + }; }; };
Signature · 1 line
2.20.1
Jerome Brunet
reviewerQuoted 11 lines · Jerome Brunet
This patchset enables pinctrl on the g12a and adds the necessary pinctrl settings to the u200 uart
Kevin, please note that this patchset depends on the:
* dts bus fixup: [0]
* pinctrl region fixes [1].[0]: https://lkml.kernel.org/r/[email protected]
[1]: https://lkml.kernel.org/r/[email protected]Cheers.
Hi Kevin,
Please ignore this series. It is missing gpio-ranges. I'll add it in the v2
Quoted 9 lines
Jerome Brunet (2):
arm64: dts: meson: g12a: add pinctrl support controllers
arm64: dts: meson: g12a: adduart_ao_apinctrl.../boot/dts/amlogic/meson-g12a-u200.dts | 2 + arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 67 +++++++++++++++++++ 2 files changed, 69 insertions(+)