From: Andre Przywara <andre.przywara@arm.com>
To: Justin Suess <utilityemal77@gmail.com>
Cc: Sean Young <sean@mess.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Ripard <mripard@kernel.org>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, Sashiko <sashiko-bot@kernel.org>
Subject: Re: [PATCH v2 2/3] arm64: dts: allwinner: a523: add IR receiver nodes
Date: Wed, 22 Jul 2026 23:56:48 +0200 [thread overview]
Message-ID: <20260722235648.40350459@ryzen.lan> (raw)
In-Reply-To: <20260722201717.2205609-3-utilityemal77@gmail.com>
On Wed, 22 Jul 2026 16:17:16 -0400
Justin Suess <utilityemal77@gmail.com> wrote:
Hi Justin,
thanks for the update!
> The A523 has two CIR receivers, both compatible with the A31 CIR: one
> in the CPUX domain, clocked from the main CCU, and one in the RTC
> power domain, clocked from the R-CCU.
>
> Add nodes for both instances, disabled by default. Since the RX signal
> of each instance can be routed to more than one pin, boards with an IR
> receiver are expected to add the pinctrl properties next to where they
> enable the node. Keep the PL11 pin description in the dtsi, as boards
> commonly use that pin for the RTC domain instance.
>
> Cc: Andre Przywara <andre.przywara@arm.com>
> Signed-off-by: Justin Suess <utilityemal77@gmail.com>
I compared the values against the manual, and can confirm that they
match. Also tested both interfaces. Just one nit below, but regardless:
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
> ---
> .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 28 +++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> index ca6a16807049..19771aac68e5 100644
> --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
> @@ -327,6 +327,17 @@ ccu: clock-controller@2001000 {
> #reset-cells = <1>;
> };
>
> + ir: ir@2005000 {
> + compatible = "allwinner,sun55i-a523-ir",
> + "allwinner,sun6i-a31-ir";
> + reg = <0x02005000 0x400>;
> + interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&ccu CLK_BUS_IR_RX>, <&ccu CLK_IR_RX>;
> + clock-names = "apb", "ir";
> + resets = <&ccu RST_BUS_IR_RX>;
> + status = "disabled";
> + };
> +
> ledc: led-controller@2008000 {
> compatible = "allwinner,sun55i-a523-ledc",
> "allwinner,sun50i-a100-ledc";
> @@ -927,6 +938,23 @@ r_i2c_pins: r-i2c-pins {
> allwinner,pinmux = <2>;
> function = "r_i2c0";
> };
> +
> + r_ir_rx_pin: r-ir-rx-pin {
> + pins = "PL11";
> + allwinner,pinmux = <2>;
> + function = "s_cir";
I think the function name should be "s_cir_rx", as there are IR TX pins
as well. And we used "{s_,}[c]ir_rx" for previous SoCs already.
Cheers,
Andre
> + };
> + };
> +
> + r_ir: ir@7040000 {
> + compatible = "allwinner,sun55i-a523-ir",
> + "allwinner,sun6i-a31-ir";
> + reg = <0x07040000 0x400>;
> + interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&r_ccu CLK_BUS_R_IR_RX>, <&r_ccu CLK_R_IR_RX>;
> + clock-names = "apb", "ir";
> + resets = <&r_ccu RST_BUS_R_IR_RX>;
> + status = "disabled";
> };
>
> pck600: power-controller@7060000 {
next prev parent reply other threads:[~2026-07-22 22:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 20:17 [PATCH v2 0/3] media: rc: sunxi-cir: support the A523/H728/T527 IR receiver Justin Suess
2026-07-22 20:17 ` [PATCH v2 1/3] media: dt-bindings: allwinner,sun4i-a10-ir: add A523 compatible Justin Suess
2026-07-22 20:17 ` [PATCH v2 2/3] arm64: dts: allwinner: a523: add IR receiver nodes Justin Suess
2026-07-22 21:56 ` Andre Przywara [this message]
2026-07-22 20:17 ` [PATCH v2 3/3] arm64: dts: allwinner: a523: enable IR receiver on the X96Q Pro+ Justin Suess
2026-07-22 21:59 ` Andre Przywara
2026-07-22 22:31 ` [PATCH v2 0/3] media: rc: sunxi-cir: support the A523/H728/T527 IR receiver Andre Przywara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260722235648.40350459@ryzen.lan \
--to=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=sashiko-bot@kernel.org \
--cc=sean@mess.org \
--cc=utilityemal77@gmail.com \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox