From: Jonas Karlman <jonas@kwiboo.se>
To: Srinivas Kandagatla <srini@kernel.org>, Heiko Stuebner <heiko@sntech.de>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Jonas Karlman <jonas@kwiboo.se>
Subject: [PATCH 0/3] nvmem: rockchip-otp: Add support for RK3506
Date: Sat, 28 Nov 2026 22:17:09 +0000 [thread overview]
Message-ID: <20261128221713.47445-1-jonas@kwiboo.se> (raw)
This series adds support for the OTP controller in Rockchip RK3506 SoC.
The OTP controller is very similar to the one in RK3528, except that
trying to read data from byte offset 120-127 result in an ECC error:
rockchip-otp ff4f0000.efuse: ecc check error during read setup
So, size have been limited to 120 bytes instead of RK3528's 128 bytes.
The final devicetree patch depends on the series "ARM: dts: rockchip:
Add Luckfox Lyra boards" [1] for a clean apply.
hexdump from an ArmSoM Forge1 RK3506J board:
> hexdump -C /sys/devices/platform/soc/ff4f0000.efuse/rockchip-otp0/nvmem
00000000 52 4b 35 06 32 00 ff 00 0a 01 4d 34 53 33 37 34 |RK5.2.....M4S374|
00000010 00 00 00 00 00 00 00 04 0f 3a 00 00 00 00 03 04 |.........:......|
00000020 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000030 00 00 00 00 3d 00 00 00 00 00 00 00 00 00 00 00 |....=...........|
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000070 00 00 00 00 00 00 00 00 |........|
00000078
[1] https://patch.msgid.link/20261125214421.1580359-1-jonas@kwiboo.se/
Jonas Karlman (3):
dt-bindings: nvmem: rockchip,otp: Add compatible for RK3506
nvmem: rockchip-otp: Add support for RK3506
ARM: dts: rockchip: Enable OTP controller for RK3506
.../bindings/nvmem/rockchip,otp.yaml | 2 +
arch/arm/boot/dts/rockchip/rk3506.dtsi | 43 +++++++++++++++++++
drivers/nvmem/rockchip-otp.c | 12 ++++++
3 files changed, 57 insertions(+)
---
Based-on: <20261125214421.1580359-1-jonas@kwiboo.se>
--
2.56.1
next reply other threads:[~2026-11-28 22:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 22:17 Jonas Karlman [this message]
2026-11-28 22:17 ` [PATCH 1/3] dt-bindings: nvmem: rockchip,otp: Add compatible for RK3506 Jonas Karlman
2026-11-28 22:17 ` [PATCH 2/3] nvmem: rockchip-otp: Add support " Jonas Karlman
2026-11-28 22:17 ` [PATCH 3/3] ARM: dts: rockchip: Enable OTP controller " Jonas Karlman
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=20261128221713.47445-1-jonas@kwiboo.se \
--to=jonas@kwiboo.se \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
--cc=srini@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