From: Otavio Salvador <otavio@ossystems.com.br>
To: Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Srinivas Kandagatla <srini@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: Maxime Ripard <mripard@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
Otavio Salvador <otavio@ossystems.com.br>
Subject: [PATCH 0/2] Add SID and THS calibration for Allwinner R40
Date: Fri, 2 Oct 2026 22:25:34 -0300 [thread overview]
Message-ID: <20261003012534.418820-3-otavio@ossystems.com.br> (raw)
The R40 thermal sensor node has no calibration data. The THS driver
then keeps the calibration registers at their reset value (0x800), and
the reported temperatures have a chip-dependent offset.
This series adds the R40 SID (eFuse) controller and connects the THS
node to its factory calibration at eFuse offset 0x40.
Patch 1 adds the R40 compatible to the SID binding, with the A64
compatible as fallback. The SID driver needs no change.
Patch 2 adds the SID node to sun8i-r40.dtsi and the nvmem cell for the
THS calibration.
Checked with dt_binding_check, and with dtbs_check on all R40, V40 and
T3 board DTBs. No warnings. Tested on two Boardcon EMA40i (A40i) boards.
Otavio Salvador (2):
dt-bindings: nvmem: SID: Add binding for R40 SID controller
ARM: dts: sun8i-r40: Add SID node and THS calibration
.../bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 +
arch/arm/boot/dts/allwinner/sun8i-r40.dtsi | 15 ++++++++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
base-commit: ff47652a4b66c067c765a7ad464d930b5a9367cc
--
2.55.0
next reply other threads:[~2026-10-03 1:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-03 1:25 Otavio Salvador [this message]
2026-10-03 1:25 ` [PATCH 1/2] dt-bindings: nvmem: SID: Add binding for R40 SID controller Otavio Salvador
2026-10-03 1:25 ` [PATCH 2/2] ARM: dts: sun8i-r40: Add SID node and THS calibration Otavio Salvador
2026-10-05 9:02 ` Andre Przywara
2026-10-05 15:49 ` Otavio Salvador
2026-10-05 17:54 ` 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=20261003012534.418820-3-otavio@ossystems.com.br \
--to=otavio@ossystems.com.br \
--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-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=srini@kernel.org \
--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