* [PATCH V2] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs
@ 2023-07-20 11:46 Huqiang Qin
2023-07-20 19:47 ` Dmitry Rokosov
2023-07-31 9:47 ` Neil Armstrong
0 siblings, 2 replies; 3+ messages in thread
From: Huqiang Qin @ 2023-07-20 11:46 UTC (permalink / raw)
To: neil.armstrong, khilman, jbrunet, martin.blumenstingl, robh+dt,
krzysztof.kozlowski+dt, conor+dt
Cc: linux-arm-kernel, linux-amlogic, devicetree, linux-kernel,
Huqiang Qin
Add gpio interrupt controller device and pinctrl device.
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
---
V1 -> V2: Nodes are sorted by address offset.
arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 26 +++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
index 60ad4f3eef9d..5a3725f6cf3d 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
+++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
@@ -72,6 +72,32 @@ apb4: bus@fe000000 {
#size-cells = <2>;
ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>;
+ periphs_pinctrl: pinctrl@4000 {
+ compatible = "amlogic,c3-periphs-pinctrl";
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ gpio: bank@4000 {
+ reg = <0x0 0x4000 0x0 0x004c>,
+ <0x0 0x4100 0x0 0x01de>;
+ reg-names = "mux", "gpio";
+ gpio-controller;
+ #gpio-cells = <2>;
+ gpio-ranges = <&periphs_pinctrl 0 0 55>;
+ };
+ };
+
+ gpio_intc: interrupt-controller@4080 {
+ compatible = "amlogic,meson-gpio-intc",
+ "amlogic,c3-gpio-intc";
+ reg = <0x0 0x4080 0x0 0x0020>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ amlogic,channel-interrupts =
+ <10 11 12 13 14 15 16 17 18 19 20 21>;
+ };
+
uart_b: serial@7a000 {
compatible = "amlogic,meson-s4-uart",
"amlogic,meson-ao-uart";
--
2.37.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V2] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs
2023-07-20 11:46 [PATCH V2] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs Huqiang Qin
@ 2023-07-20 19:47 ` Dmitry Rokosov
2023-07-31 9:47 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Rokosov @ 2023-07-20 19:47 UTC (permalink / raw)
To: Huqiang Qin
Cc: neil.armstrong, khilman, jbrunet, martin.blumenstingl, robh+dt,
krzysztof.kozlowski+dt, conor+dt, linux-arm-kernel, linux-amlogic,
devicetree, linux-kernel
On Thu, Jul 20, 2023 at 07:46:39PM +0800, Huqiang Qin wrote:
> Add gpio interrupt controller device and pinctrl device.
>
> Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
Reviewed-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
> ---
>
> V1 -> V2: Nodes are sorted by address offset.
>
> arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 26 +++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
> index 60ad4f3eef9d..5a3725f6cf3d 100644
> --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
> @@ -72,6 +72,32 @@ apb4: bus@fe000000 {
> #size-cells = <2>;
> ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>;
>
> + periphs_pinctrl: pinctrl@4000 {
> + compatible = "amlogic,c3-periphs-pinctrl";
> + #address-cells = <2>;
> + #size-cells = <2>;
> + ranges;
> +
> + gpio: bank@4000 {
> + reg = <0x0 0x4000 0x0 0x004c>,
> + <0x0 0x4100 0x0 0x01de>;
> + reg-names = "mux", "gpio";
> + gpio-controller;
> + #gpio-cells = <2>;
> + gpio-ranges = <&periphs_pinctrl 0 0 55>;
> + };
> + };
> +
> + gpio_intc: interrupt-controller@4080 {
> + compatible = "amlogic,meson-gpio-intc",
> + "amlogic,c3-gpio-intc";
> + reg = <0x0 0x4080 0x0 0x0020>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + amlogic,channel-interrupts =
> + <10 11 12 13 14 15 16 17 18 19 20 21>;
> + };
> +
> uart_b: serial@7a000 {
> compatible = "amlogic,meson-s4-uart",
> "amlogic,meson-ao-uart";
> --
> 2.37.1
>
>
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic
--
Thank you,
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V2] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs
2023-07-20 11:46 [PATCH V2] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs Huqiang Qin
2023-07-20 19:47 ` Dmitry Rokosov
@ 2023-07-31 9:47 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2023-07-31 9:47 UTC (permalink / raw)
To: khilman, jbrunet, martin.blumenstingl, robh+dt,
krzysztof.kozlowski+dt, conor+dt, Huqiang Qin
Cc: linux-arm-kernel, linux-amlogic, devicetree, linux-kernel
Hi,
On Thu, 20 Jul 2023 19:46:39 +0800, Huqiang Qin wrote:
> Add gpio interrupt controller device and pinctrl device.
>
>
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.6/arm64-dt)
[1/1] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs
https://git.kernel.org/amlogic/c/cac34b2b3f5a9d4471a2660ec52599b6015bfc51
These changes has been applied on the intermediate git tree [1].
The v6.6/arm64-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers
for inclusion in their intermediate git branches in order to be sent to Linus during
the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate
kernel and as soon they appear on the Linux master branch they will be
backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3],
people are encouraged testing these pre-release kernels and report issues on the
relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert
patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
--
Neil
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-31 9:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-20 11:46 [PATCH V2] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs Huqiang Qin
2023-07-20 19:47 ` Dmitry Rokosov
2023-07-31 9:47 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).