Message ID | 20230914054525.1180595-4-huqiang.qin@amlogic.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Add pinctrl driver support for Amlogic T7 SoCs | expand |
On 14/09/2023 07:45, Huqiang Qin wrote: > Add pinctrl device. > > Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com> > --- > arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > index dae3465bd39b..a03c7667d2b6 100644 > --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > @@ -155,6 +155,22 @@ watchdog@2100 { > clocks = <&xtal>; > }; > > + periphs_pinctrl: pinctrl@4000 { > + compatible = "amlogic,t7-periphs-pinctrl"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + gpio: bank@4000 { > + reg = <0x0 0x4000 0x0 0x0064>, > + <0x0 0x40c0 0x0 0x0220>; > + reg-names = "mux", "gpio"; > + gpio-controller; > + #gpio-cells = <2>; > + gpio-ranges = <&periphs_pinctrl 0 0 157>; > + }; > + }; > + > uart_a: serial@78000 { > compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart"; > reg = <0x0 0x78000 0x0 0x18>; Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi index dae3465bd39b..a03c7667d2b6 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -155,6 +155,22 @@ watchdog@2100 { clocks = <&xtal>; }; + periphs_pinctrl: pinctrl@4000 { + compatible = "amlogic,t7-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@4000 { + reg = <0x0 0x4000 0x0 0x0064>, + <0x0 0x40c0 0x0 0x0220>; + reg-names = "mux", "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&periphs_pinctrl 0 0 157>; + }; + }; + uart_a: serial@78000 { compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart"; reg = <0x0 0x78000 0x0 0x18>;
Add pinctrl device. Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com> --- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)