* [PATCH v2 0/2] ir: support IR for Amlogic A9 SoC
@ 2026-07-09 3:30 Xianwei Zhao via B4 Relay
2026-07-09 3:30 ` [PATCH v2 1/2] dt-bindings: media: meson6-ir: Add Amlogic A9 IR compatible Xianwei Zhao via B4 Relay
2026-07-09 3:30 ` [PATCH v2 2/2] arm64: dts: amlogic: a9: Add IR controller support Xianwei Zhao via B4 Relay
0 siblings, 2 replies; 4+ messages in thread
From: Xianwei Zhao via B4 Relay @ 2026-07-09 3:30 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Neil Armstrong, Kevin Hilman, Jerome Brunet,
Martin Blumenstingl
Cc: linux-media, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel, Xianwei Zhao, Krzysztof Kozlowski
Document the Amlogic A9 IR controller compatible string and
add the IR controller node for the Amlogic A9 SoC.
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
---
Changes in v2:
- Rename the IR input pinctrl group and its phandle from remote_pins to remote_input_ao_pins.
- Link to v1: https://lore.kernel.org/r/20260706-a9-ir-v1-0-4f082ca8aaf1@amlogic.com
---
Xianwei Zhao (2):
dt-bindings: media: meson6-ir: Add Amlogic A9 IR compatible
arm64: dts: amlogic: a9: Add IR controller support
.../devicetree/bindings/media/amlogic,meson6-ir.yaml | 4 ++++
arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts | 6 ++++++
arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi | 14 ++++++++++++++
3 files changed, 24 insertions(+)
---
base-commit: 4336e970ec6890fbd424128c352564a9c1dd514a
change-id: 20260706-a9-ir-354fb297e716
Best regards,
--
Xianwei Zhao <xianwei.zhao@amlogic.com>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2 1/2] dt-bindings: media: meson6-ir: Add Amlogic A9 IR compatible
2026-07-09 3:30 [PATCH v2 0/2] ir: support IR for Amlogic A9 SoC Xianwei Zhao via B4 Relay
@ 2026-07-09 3:30 ` Xianwei Zhao via B4 Relay
2026-07-09 3:30 ` [PATCH v2 2/2] arm64: dts: amlogic: a9: Add IR controller support Xianwei Zhao via B4 Relay
1 sibling, 0 replies; 4+ messages in thread
From: Xianwei Zhao via B4 Relay @ 2026-07-09 3:30 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Neil Armstrong, Kevin Hilman, Jerome Brunet,
Martin Blumenstingl
Cc: linux-media, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel, Xianwei Zhao, Krzysztof Kozlowski
From: Xianwei Zhao <xianwei.zhao@amlogic.com>
Document the Amlogic A9 IR controller compatible string. The A9 IR
controller shares the same implementation as the Meson S4 IR block,
so add "amlogic,a9-ir" with "amlogic,meson-s4-ir" as the fallback
compatible.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
---
Documentation/devicetree/bindings/media/amlogic,meson6-ir.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/amlogic,meson6-ir.yaml b/Documentation/devicetree/bindings/media/amlogic,meson6-ir.yaml
index 0f95fe8dd9ac..db9387e43eff 100644
--- a/Documentation/devicetree/bindings/media/amlogic,meson6-ir.yaml
+++ b/Documentation/devicetree/bindings/media/amlogic,meson6-ir.yaml
@@ -23,6 +23,10 @@ properties:
- items:
- const: amlogic,meson-gx-ir
- const: amlogic,meson-gxbb-ir
+ - items:
+ - enum:
+ - amlogic,a9-ir
+ - const: amlogic,meson-s4-ir
reg:
maxItems: 1
--
2.52.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v2 2/2] arm64: dts: amlogic: a9: Add IR controller support
2026-07-09 3:30 [PATCH v2 0/2] ir: support IR for Amlogic A9 SoC Xianwei Zhao via B4 Relay
2026-07-09 3:30 ` [PATCH v2 1/2] dt-bindings: media: meson6-ir: Add Amlogic A9 IR compatible Xianwei Zhao via B4 Relay
@ 2026-07-09 3:30 ` Xianwei Zhao via B4 Relay
2026-07-09 3:38 ` sashiko-bot
1 sibling, 1 reply; 4+ messages in thread
From: Xianwei Zhao via B4 Relay @ 2026-07-09 3:30 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Neil Armstrong, Kevin Hilman, Jerome Brunet,
Martin Blumenstingl
Cc: linux-media, devicetree, linux-arm-kernel, linux-amlogic,
linux-kernel, Xianwei Zhao
From: Xianwei Zhao <xianwei.zhao@amlogic.com>
Add the IR controller node for the Amlogic A9 SoC and describe the
corresponding remote input pin configuration.
Enable the IR controller on the Amlogic A9 A311Y3 BY401 board with the
proper pinctrl setting.
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
---
arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts | 6 ++++++
arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi | 14 ++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts b/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts
index a6b380ca47a5..389c9de3dc3c 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts
+++ b/arch/arm64/boot/dts/amlogic/amlogic-a9-a311y3-by401.dts
@@ -38,3 +38,9 @@ secmon_reserved: secmon@5000000 {
&uart_b {
status = "okay";
};
+
+&ir {
+ status = "okay";
+ pinctrl-0 = <&remote_input_ao_pins>;
+ pinctrl-names = "default";
+};
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
index b0e0fadeed82..aa89b31bfe30 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
+++ b/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
@@ -241,6 +241,13 @@ test_n: gpio@c0 {
#gpio-cells = <2>;
gpio-ranges = <&aobus_pinctrl 0 (AMLOGIC_GPIO_TEST_N<<8) 1>;
};
+
+ func-ir-in {
+ remote_input_ao_pins: group-remote-input-ao-pins {
+ pinmux = <AML_PINMUX(AMLOGIC_GPIO_D, 5, 1)>;
+ bias-disable;
+ };
+ };
};
gpio_ao_intc: interrupt-controller@4080 {
@@ -254,6 +261,13 @@ gpio_ao_intc: interrupt-controller@4080 {
394 395 396 397 398 399 400 401 402 403>;
};
+ ir: ir@14080 {
+ compatible = "amlogic,a9-ir", "amlogic,meson-s4-ir";
+ reg = <0x0 0x14080 0x0 0x30>;
+ interrupts = <GIC_SPI 413 IRQ_TYPE_EDGE_RISING>;
+ status = "disabled";
+ };
+
uart_b: serial@1e000 {
compatible = "amlogic,a9-uart",
"amlogic,meson-s4-uart";
--
2.52.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2 2/2] arm64: dts: amlogic: a9: Add IR controller support
2026-07-09 3:30 ` [PATCH v2 2/2] arm64: dts: amlogic: a9: Add IR controller support Xianwei Zhao via B4 Relay
@ 2026-07-09 3:38 ` sashiko-bot
0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-07-09 3:38 UTC (permalink / raw)
To: Xianwei Zhao; +Cc: conor+dt, robh, neil.armstrong, devicetree, linux-amlogic
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Incorrect indentation in the newly added `func-ir-in` DT node.
--
--- Patch [2]: [PATCH v2 2/2] arm64: dts: amlogic: a9: Add IR controller support ---
commit 170115242b4dcc46e2461f78dbc3a0882a8e80f1
Author: Xianwei Zhao <xianwei.zhao@amlogic.com>
arm64: dts: amlogic: a9: Add IR controller support
This commit adds the IR controller node for the Amlogic A9 SoC and describes
the remote input pin configuration. It also enables the IR controller on the
Amlogic A9 A311Y3 BY401 board with the appropriate pinctrl settings.
> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
> index b0e0fadeed820..aa89b31bfe30d 100644
> --- a/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/amlogic-a9.dtsi
[ ... ]
> @@ -241,6 +241,13 @@ test_n: gpio@c0 {
> #gpio-cells = <2>;
> gpio-ranges = <&aobus_pinctrl 0 (AMLOGIC_GPIO_TEST_N<<8) 1>;
> };
> +
> + func-ir-in {
> + remote_input_ao_pins: group-remote-input-ao-pins {
[Severity: Low]
This isn't a bug, but does this indentation align with standard device tree
formatting? It looks like the remote_input_ao_pins node is indented with an
extra tab compared to the surrounding nodes and its own internal properties.
> + pinmux = <AML_PINMUX(AMLOGIC_GPIO_D, 5, 1)>;
> + bias-disable;
> + };
> + };
> };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260709-a9-ir-v2-0-42c21d7a6ffc@amlogic.com?part=2
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-09 3:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09 3:30 [PATCH v2 0/2] ir: support IR for Amlogic A9 SoC Xianwei Zhao via B4 Relay
2026-07-09 3:30 ` [PATCH v2 1/2] dt-bindings: media: meson6-ir: Add Amlogic A9 IR compatible Xianwei Zhao via B4 Relay
2026-07-09 3:30 ` [PATCH v2 2/2] arm64: dts: amlogic: a9: Add IR controller support Xianwei Zhao via B4 Relay
2026-07-09 3:38 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox