Re: [RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
On Wed, Dec 6, 2017 at 5:44 PM, Yixun Lanwrote: > Hi Kevin > > > On 12/07/17 04:18, Kevin Hilman wrote: >> Yixun Lan writes: >> >>> From: Xingyu Chen >>> >>> Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. >>> >>> Reviewed-by: Neil Armstrong >>> Signed-off-by: Xingyu Chen >>> Signed-off-by: Yixun Lan >>> --- >>> arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 >>> ++ >>> 1 file changed, 44 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >>> b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >>> index 5fc33b76b91c..e0fb860e12c5 100644 >>> --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >>> +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >>> @@ -9,6 +9,7 @@ >>> #include >>> #include >>> #include >> >> This doesn't apply because this aoclkc.h header does not exist in >> mainline. >> >> Kevin >> > > this is due to I create the patch in serial sequence (first clk, then > pinctrl), I probably will fix my work flow next time - to rebase all the > patch separately on the -rc version > > but here, the pinctrl DT part has no dependency on DT clk patch.. > you could drop the above two #include and just apply the reset > > could you amend & apply this? or do you want me to send another updated > version? I prefer that you rebase (either on -rc or my v4.16/dt64 branch[1]) and resend. Thanks, Kevin [1] https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git/log/?h=v4.16/dt64
Re: [RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
On Wed, Dec 6, 2017 at 5:44 PM, Yixun Lan wrote: > Hi Kevin > > > On 12/07/17 04:18, Kevin Hilman wrote: >> Yixun Lan writes: >> >>> From: Xingyu Chen >>> >>> Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. >>> >>> Reviewed-by: Neil Armstrong >>> Signed-off-by: Xingyu Chen >>> Signed-off-by: Yixun Lan >>> --- >>> arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 >>> ++ >>> 1 file changed, 44 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >>> b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >>> index 5fc33b76b91c..e0fb860e12c5 100644 >>> --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >>> +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >>> @@ -9,6 +9,7 @@ >>> #include >>> #include >>> #include >> >> This doesn't apply because this aoclkc.h header does not exist in >> mainline. >> >> Kevin >> > > this is due to I create the patch in serial sequence (first clk, then > pinctrl), I probably will fix my work flow next time - to rebase all the > patch separately on the -rc version > > but here, the pinctrl DT part has no dependency on DT clk patch.. > you could drop the above two #include and just apply the reset > > could you amend & apply this? or do you want me to send another updated > version? I prefer that you rebase (either on -rc or my v4.16/dt64 branch[1]) and resend. Thanks, Kevin [1] https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git/log/?h=v4.16/dt64
Re: [RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
Hi Kevin On 12/07/17 04:18, Kevin Hilman wrote: > Yixun Lanwrites: > >> From: Xingyu Chen >> >> Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. >> >> Reviewed-by: Neil Armstrong >> Signed-off-by: Xingyu Chen >> Signed-off-by: Yixun Lan >> --- >> arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 >> ++ >> 1 file changed, 44 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >> b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >> index 5fc33b76b91c..e0fb860e12c5 100644 >> --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >> +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >> @@ -9,6 +9,7 @@ >> #include >> #include >> #include > > This doesn't apply because this aoclkc.h header does not exist in > mainline. > > Kevin > this is due to I create the patch in serial sequence (first clk, then pinctrl), I probably will fix my work flow next time - to rebase all the patch separately on the -rc version but here, the pinctrl DT part has no dependency on DT clk patch.. you could drop the above two #include and just apply the reset could you amend & apply this? or do you want me to send another updated version? >> +#include >> >> / { >> compatible = "amlogic,meson-axg"; >> @@ -173,6 +174,32 @@ >> #mbox-cells = <1>; >> }; >> >> +periphs: periphs@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@480 { >> +compatible = >> "amlogic,meson-axg-periphs-pinctrl"; >> +#address-cells = <2>; >> +#size-cells = <2>; >> +ranges; >> + >> +gpio: bank@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 = <_periphs 0 0 86>; >> +}; >> +}; >> +}; >> + >> sram: sram@fffc { >> compatible = "amlogic,meson-axg-sram", "mmio-sram"; >> reg = <0x0 0xfffc 0x0 0x2>; >> @@ -209,6 +236,23 @@ >> }; >> }; >> >> +pinctrl_aobus: pinctrl@14 { >> +compatible = "amlogic,meson-axg-aobus-pinctrl"; >> +#address-cells = <2>; >> +#size-cells = <2>; >> +ranges; >> + >> +gpio_ao: bank@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 = <_aobus 0 0 15>; >> +}; >> +}; >> + >> uart_AO: serial@3000 { >> compatible = "amlogic,meson-gx-uart", >> "amlogic,meson-ao-uart"; >> reg = <0x0 0x3000 0x0 0x18>; > > . >
Re: [RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
Hi Kevin On 12/07/17 04:18, Kevin Hilman wrote: > Yixun Lan writes: > >> From: Xingyu Chen >> >> Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. >> >> Reviewed-by: Neil Armstrong >> Signed-off-by: Xingyu Chen >> Signed-off-by: Yixun Lan >> --- >> arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 >> ++ >> 1 file changed, 44 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >> b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >> index 5fc33b76b91c..e0fb860e12c5 100644 >> --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >> +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi >> @@ -9,6 +9,7 @@ >> #include >> #include >> #include > > This doesn't apply because this aoclkc.h header does not exist in > mainline. > > Kevin > this is due to I create the patch in serial sequence (first clk, then pinctrl), I probably will fix my work flow next time - to rebase all the patch separately on the -rc version but here, the pinctrl DT part has no dependency on DT clk patch.. you could drop the above two #include and just apply the reset could you amend & apply this? or do you want me to send another updated version? >> +#include >> >> / { >> compatible = "amlogic,meson-axg"; >> @@ -173,6 +174,32 @@ >> #mbox-cells = <1>; >> }; >> >> +periphs: periphs@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@480 { >> +compatible = >> "amlogic,meson-axg-periphs-pinctrl"; >> +#address-cells = <2>; >> +#size-cells = <2>; >> +ranges; >> + >> +gpio: bank@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 = <_periphs 0 0 86>; >> +}; >> +}; >> +}; >> + >> sram: sram@fffc { >> compatible = "amlogic,meson-axg-sram", "mmio-sram"; >> reg = <0x0 0xfffc 0x0 0x2>; >> @@ -209,6 +236,23 @@ >> }; >> }; >> >> +pinctrl_aobus: pinctrl@14 { >> +compatible = "amlogic,meson-axg-aobus-pinctrl"; >> +#address-cells = <2>; >> +#size-cells = <2>; >> +ranges; >> + >> +gpio_ao: bank@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 = <_aobus 0 0 15>; >> +}; >> +}; >> + >> uart_AO: serial@3000 { >> compatible = "amlogic,meson-gx-uart", >> "amlogic,meson-ao-uart"; >> reg = <0x0 0x3000 0x0 0x18>; > > . >
Re: [RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
Yixun Lanwrites: > From: Xingyu Chen > > Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. > > Reviewed-by: Neil Armstrong > Signed-off-by: Xingyu Chen > Signed-off-by: Yixun Lan > --- > arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 > ++ > 1 file changed, 44 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > index 5fc33b76b91c..e0fb860e12c5 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > @@ -9,6 +9,7 @@ > #include > #include > #include This doesn't apply because this aoclkc.h header does not exist in mainline. Kevin > +#include > > / { > compatible = "amlogic,meson-axg"; > @@ -173,6 +174,32 @@ > #mbox-cells = <1>; > }; > > + periphs: periphs@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@480 { > + compatible = > "amlogic,meson-axg-periphs-pinctrl"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + gpio: bank@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 = <_periphs 0 0 86>; > + }; > + }; > + }; > + > sram: sram@fffc { > compatible = "amlogic,meson-axg-sram", "mmio-sram"; > reg = <0x0 0xfffc 0x0 0x2>; > @@ -209,6 +236,23 @@ > }; > }; > > + pinctrl_aobus: pinctrl@14 { > + compatible = "amlogic,meson-axg-aobus-pinctrl"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + gpio_ao: bank@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 = <_aobus 0 0 15>; > + }; > + }; > + > uart_AO: serial@3000 { > compatible = "amlogic,meson-gx-uart", > "amlogic,meson-ao-uart"; > reg = <0x0 0x3000 0x0 0x18>;
Re: [RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
Yixun Lan writes: > From: Xingyu Chen > > Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. > > Reviewed-by: Neil Armstrong > Signed-off-by: Xingyu Chen > Signed-off-by: Yixun Lan > --- > arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 > ++ > 1 file changed, 44 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > index 5fc33b76b91c..e0fb860e12c5 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > @@ -9,6 +9,7 @@ > #include > #include > #include This doesn't apply because this aoclkc.h header does not exist in mainline. Kevin > +#include > > / { > compatible = "amlogic,meson-axg"; > @@ -173,6 +174,32 @@ > #mbox-cells = <1>; > }; > > + periphs: periphs@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@480 { > + compatible = > "amlogic,meson-axg-periphs-pinctrl"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + gpio: bank@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 = <_periphs 0 0 86>; > + }; > + }; > + }; > + > sram: sram@fffc { > compatible = "amlogic,meson-axg-sram", "mmio-sram"; > reg = <0x0 0xfffc 0x0 0x2>; > @@ -209,6 +236,23 @@ > }; > }; > > + pinctrl_aobus: pinctrl@14 { > + compatible = "amlogic,meson-axg-aobus-pinctrl"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + gpio_ao: bank@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 = <_aobus 0 0 15>; > + }; > + }; > + > uart_AO: serial@3000 { > compatible = "amlogic,meson-gx-uart", > "amlogic,meson-ao-uart"; > reg = <0x0 0x3000 0x0 0x18>;
[RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
From: Xingyu ChenAdd new pinctrl DT info for the Amlogic's Meson-AXG SoC. Reviewed-by: Neil Armstrong Signed-off-by: Xingyu Chen Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 ++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 5fc33b76b91c..e0fb860e12c5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include / { compatible = "amlogic,meson-axg"; @@ -173,6 +174,32 @@ #mbox-cells = <1>; }; + periphs: periphs@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@480 { + compatible = "amlogic,meson-axg-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@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 = <_periphs 0 0 86>; + }; + }; + }; + sram: sram@fffc { compatible = "amlogic,meson-axg-sram", "mmio-sram"; reg = <0x0 0xfffc 0x0 0x2>; @@ -209,6 +236,23 @@ }; }; + pinctrl_aobus: pinctrl@14 { + compatible = "amlogic,meson-axg-aobus-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio_ao: bank@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 = <_aobus 0 0 15>; + }; + }; + uart_AO: serial@3000 { compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; reg = <0x0 0x3000 0x0 0x18>; -- 2.15.0
[RESEND PATCH v3 2/2] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
From: Xingyu Chen Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. Reviewed-by: Neil Armstrong Signed-off-by: Xingyu Chen Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 44 ++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 5fc33b76b91c..e0fb860e12c5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include / { compatible = "amlogic,meson-axg"; @@ -173,6 +174,32 @@ #mbox-cells = <1>; }; + periphs: periphs@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@480 { + compatible = "amlogic,meson-axg-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@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 = <_periphs 0 0 86>; + }; + }; + }; + sram: sram@fffc { compatible = "amlogic,meson-axg-sram", "mmio-sram"; reg = <0x0 0xfffc 0x0 0x2>; @@ -209,6 +236,23 @@ }; }; + pinctrl_aobus: pinctrl@14 { + compatible = "amlogic,meson-axg-aobus-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio_ao: bank@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 = <_aobus 0 0 15>; + }; + }; + uart_AO: serial@3000 { compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; reg = <0x0 0x3000 0x0 0x18>; -- 2.15.0