From nobody Thu Nov 28 06:39:24 2024 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [195.130.132.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E87519D067 for ; Thu, 3 Oct 2024 14:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964284; cv=none; b=CQUT9JbT2Heoyhsu8cQCiFmFS6XHqlSCVJPWi5h07Ef7EznErC4okRL/LXnHTGaePusg/SIkSDEszv12Q/tBZ/H+PdPgKFOcKiywrSNH9M9ZzxwkzAXiOSbG0H4T+bl+rem/D+r2LSdfVzHlQzuGOMH0wq27Fd3/5DraH7vI/Sk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964284; c=relaxed/simple; bh=IN7VUIPHXWbspVhLBD+cYSc0OvefiWRv/4MBxp7NEAY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bmowdKfQjVvnYkcL45LdnTM75jDFA8pzLUa67Ex13am1oOPqcz+qcdA83kMJEVNkhsuYP0+NJxREZqp7bkL+G6EVdjEGtlCkcQJx2eCNao4axpE3eNSbf/CgOYJtd+Dw3eFOrTAwSil6oQA8NzymNKqHD5v2wRKCpk1Vid1B9Lw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:d4db:7463:4f08:3c82]) by xavier.telenet-ops.be with cmsmtp id Kq4d2D0095K8SYz01q4dMx; Thu, 03 Oct 2024 16:04:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1swMRR-001CGU-2z; Thu, 03 Oct 2024 16:04:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1swMRZ-006e9f-B0; Thu, 03 Oct 2024 16:04:37 +0200 From: Geert Uytterhoeven To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Yoshihiro Shimoda , Arnd Bergmann Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 resend 1/7] dt-bindings: fuse: Move renesas,rcar-{efuse,otp} to nvmem Date: Thu, 3 Oct 2024 16:04:25 +0200 Message-Id: <425648901d724b3db81329f98988d0532257eb89.1727963347.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The R-Car E-FUSE blocks can be modelled better using the nvmem framework. Replace the R-Car V3U example by an R-Car S4-8 ES1.2 example, to show the definition of nvmem cells. While at it, drop unneeded labels from the examples, and fix indentation. Add an entry to the MAINTAINERS file. Reported-by: Arnd Bergmann Signed-off-by: Geert Uytterhoeven Reviewed-by: Rob Herring (Arm) --- v3: - New. --- .../{fuse =3D> nvmem}/renesas,rcar-efuse.yaml | 35 +++++++++++++------ .../{fuse =3D> nvmem}/renesas,rcar-otp.yaml | 17 +++++---- MAINTAINERS | 1 + 3 files changed, 36 insertions(+), 17 deletions(-) rename Documentation/devicetree/bindings/{fuse =3D> nvmem}/renesas,rcar-ef= use.yaml (54%) rename Documentation/devicetree/bindings/{fuse =3D> nvmem}/renesas,rcar-ot= p.yaml (60%) diff --git a/Documentation/devicetree/bindings/fuse/renesas,rcar-efuse.yaml= b/Documentation/devicetree/bindings/nvmem/renesas,rcar-efuse.yaml similarity index 54% rename from Documentation/devicetree/bindings/fuse/renesas,rcar-efuse.yaml rename to Documentation/devicetree/bindings/nvmem/renesas,rcar-efuse.yaml index d7e289244e72cce1..ce7d65afa4602537 100644 --- a/Documentation/devicetree/bindings/fuse/renesas,rcar-efuse.yaml +++ b/Documentation/devicetree/bindings/nvmem/renesas,rcar-efuse.yaml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/fuse/renesas,rcar-efuse.yaml# +$id: http://devicetree.org/schemas/nvmem/renesas,rcar-efuse.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 title: R-Car E-FUSE connected to PFC @@ -13,6 +13,9 @@ description: The E-FUSE is a type of non-volatile memory, which is accessible through= the Pin Function Controller (PFC) on some R-Car Gen4 SoCs. =20 +allOf: + - $ref: nvmem.yaml# + properties: compatible: enum: @@ -39,17 +42,27 @@ required: - power-domains - resets =20 -additionalProperties: false +unevaluatedProperties: false =20 examples: - | - #include - #include - - fuse: fuse@e6078800 { - compatible =3D "renesas,r8a779a0-efuse"; - reg =3D <0xe6078800 0x100>; - clocks =3D <&cpg CPG_MOD 916>; - power-domains =3D <&sysc R8A779A0_PD_ALWAYS_ON>; - resets =3D <&cpg 916>; + #include + #include + + fuse@e6078800 { + compatible =3D "renesas,r8a779f0-efuse"; + reg =3D <0xe6078800 0x200>; + clocks =3D <&cpg CPG_MOD 915>; + power-domains =3D <&sysc R8A779F0_PD_ALWAYS_ON>; + resets =3D <&cpg 915>; + + nvmem-layout { + compatible =3D "fixed-layout"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + calib@144 { + reg =3D <0x144 0x08>; + }; + }; }; diff --git a/Documentation/devicetree/bindings/fuse/renesas,rcar-otp.yaml b= /Documentation/devicetree/bindings/nvmem/renesas,rcar-otp.yaml similarity index 60% rename from Documentation/devicetree/bindings/fuse/renesas,rcar-otp.yaml rename to Documentation/devicetree/bindings/nvmem/renesas,rcar-otp.yaml index d74872ae9ff378f9..3313c03ea68dfd57 100644 --- a/Documentation/devicetree/bindings/fuse/renesas,rcar-otp.yaml +++ b/Documentation/devicetree/bindings/nvmem/renesas,rcar-otp.yaml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/fuse/renesas,rcar-otp.yaml# +$id: http://devicetree.org/schemas/nvmem/renesas,rcar-otp.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 title: R-Car E-FUSE connected to OTP_MEM @@ -13,6 +13,9 @@ description: The E-FUSE is a type of non-volatile memory, which is accessible through= the One-Time Programmable Memory (OTP_MEM) module on some R-Car Gen4 SoCs. =20 +allOf: + - $ref: nvmem.yaml# + properties: compatible: enum: @@ -22,17 +25,19 @@ properties: reg: items: - description: OTP_MEM_0 - - description: OTP_MEM_1 + - description: OTP_MEM_1. + The addresses of cells defined under the optional nvmem-layout + subnode are relative to this register bank. =20 required: - compatible - reg =20 -additionalProperties: false +unevaluatedProperties: false =20 examples: - | - otp: otp@e61be000 { - compatible =3D "renesas,r8a779g0-otp"; - reg =3D <0xe61be000 0x1000>, <0xe61bf000 0x1000>; + otp@e61be000 { + compatible =3D "renesas,r8a779g0-otp"; + reg =3D <0xe61be000 0x1000>, <0xe61bf000 0x1000>; }; diff --git a/MAINTAINERS b/MAINTAINERS index ca10c94405f3a43d..2437c49c19440a96 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2922,6 +2922,7 @@ Q: http://patchwork.kernel.org/project/linux-renesas-= soc/list/ C: irc://irc.libera.chat/renesas-soc T: git git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.g= it next F: Documentation/devicetree/bindings/hwinfo/renesas,prr.yaml +F: Documentation/devicetree/bindings/nvmem/renesas,* F: Documentation/devicetree/bindings/soc/renesas/ F: arch/arm/boot/dts/renesas/ F: arch/arm/configs/shmobile_defconfig --=20 2.34.1 From nobody Thu Nov 28 06:39:24 2024 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [195.130.132.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DA491A0BCC for ; Thu, 3 Oct 2024 14:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964288; cv=none; b=kDxk4qKo8oJzxMCYdHeraZ5B/O0RfGzUYjdKILxhqX+o+AkpKYVVjsK3OGGy8l/KxLGoE1OUbj2bzSxbQ3h+d1752LEPxw/2f4X4jS6/ECDEPokYMDF5SDSIYKk7MOh3gXv4StSbLxkZyHZ81nqYHIOaV1FBcf+tbXloShCGjJg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964288; c=relaxed/simple; bh=hOxylLVaYXdqYeZ6bRMoXYpQnP+Ov4wputxrANxU09s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PMj/c7vSYDE3vbs4XyBJgUkdZE+9BgLBPdCHgDZkXtLwnKrGqZxkGxT08/L7UJZyURz2CBM6o0mJygxBggn7eP2f/drrWGoiSpvQR+pkSaEqJClQtjKL+MWVMwSYmC/HUBSqCB/qS1beXu77q104DAVzCBavsCDhwoqO6QiL7WQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:d4db:7463:4f08:3c82]) by baptiste.telenet-ops.be with cmsmtp id Kq4d2D0085K8SYz01q4d5G; Thu, 03 Oct 2024 16:04:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1swMRR-001CGX-3b; Thu, 03 Oct 2024 16:04:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1swMRZ-006e9j-CQ; Thu, 03 Oct 2024 16:04:37 +0200 From: Geert Uytterhoeven To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Yoshihiro Shimoda , Arnd Bergmann Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 resend 2/7] nvmem: Add R-Car E-FUSE driver Date: Thu, 3 Oct 2024 16:04:26 +0200 Message-Id: <563d35a3613c3356536978c0e5dc5ad5e47bbd7d.1727963347.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" R-Car Gen4 SoCs contain fuses indicating hardware support or hardware (e.g. tuning) parameters. Add a driver to access the state of the fuses. This supports two types of hardware fuse providers: 1. E-FUSE non-volatile memory accessible through the Pin Function Controller on R-Car V3U and S4-8, 2. E-FUSE non-volatile memory accessible through OTP_MEM on R-Car V4H and V4M. The state of the cells can be read using the NVMEM framework, either from kernel space (e.g. by the Renesas UFSHCD driver), or from userspace. Signed-off-by: Geert Uytterhoeven Reviewed-by: Yoshihiro Shimoda --- v3: - Drop superfluous semicolon, - Drop the custom rcar_fuse_read() kernel API, in favor of the standard nvmem_cell_*() API, - Drop support for explicitly-instantiated platform devices with accompanying platform data, which would be needed to support fuses tightly integrated with the Pin Function Controller on R-Car Gen3 SoCs. It can be added when a use case shows up. - Move from drivers/soc/renesas/ to drivers/nvmem/, - Register the full register block that contains the E-FUSE data registers with the nvmem subsystem, but use keepouts to ignore all registers before the first or after the last documented data register. Undocumented registers in between are still accessible. - Replace offset/nregs in rcar_fuse_data by start/end, - Use __ioread32_copy() helper, - Initialize most fields of struct nvmem_config in its declaration, - Rename nvmem device from "fuse" to "rcar-fuse", - Use NVMEM_DEVID_NONE, - Add an entry to the MAINTAINERS file, v2: - Add Reviewed-by. --- MAINTAINERS | 1 + drivers/nvmem/Kconfig | 11 +++ drivers/nvmem/Makefile | 2 + drivers/nvmem/rcar-efuse.c | 142 +++++++++++++++++++++++++++++++++++++ 4 files changed, 156 insertions(+) create mode 100644 drivers/nvmem/rcar-efuse.c diff --git a/MAINTAINERS b/MAINTAINERS index 2437c49c19440a96..b7ef2becb402f921 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2930,6 +2930,7 @@ F: arch/arm/mach-shmobile/ F: arch/arm/mach-shmobile/ F: arch/arm64/boot/dts/renesas/ F: arch/riscv/boot/dts/renesas/ +F: drivers/nvmem/rcar-efuse.c F: drivers/pmdomain/renesas/ F: drivers/soc/renesas/ F: include/linux/soc/renesas/ diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index d2c384f58028dce4..8671b7c974b933e1 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -246,6 +246,17 @@ config NVMEM_RAVE_SP_EEPROM help Say y here to enable Rave SP EEPROM support. =20 +config NVMEM_RCAR_EFUSE + tristate "Renesas R-Car Gen4 E-FUSE support" + depends on (ARCH_RENESAS && ARM64) || COMPILE_TEST + depends on NVMEM + help + Enable support for reading the fuses in the E-FUSE or OTP + non-volatile memory block on Renesas R-Car Gen4 SoCs. + + This driver can also be built as a module. If so, the module + will be called nvmem-rcar-efuse. + config NVMEM_RMEM tristate "Reserved Memory Based Driver Support" depends on HAS_IOMEM diff --git a/drivers/nvmem/Makefile b/drivers/nvmem/Makefile index cdd01fbf1313b58c..5b77bbb6488bf89b 100644 --- a/drivers/nvmem/Makefile +++ b/drivers/nvmem/Makefile @@ -52,6 +52,8 @@ obj-$(CONFIG_NVMEM_QCOM_SEC_QFPROM) +=3D nvmem_sec_qfprom= .o nvmem_sec_qfprom-y :=3D sec-qfprom.o obj-$(CONFIG_NVMEM_RAVE_SP_EEPROM) +=3D nvmem-rave-sp-eeprom.o nvmem-rave-sp-eeprom-y :=3D rave-sp-eeprom.o +obj-$(CONFIG_NVMEM_RCAR_EFUSE) +=3D nvmem-rcar-efuse.o +nvmem-rcar-efuse-y :=3D rcar-efuse.o obj-$(CONFIG_NVMEM_RMEM) +=3D nvmem-rmem.o nvmem-rmem-y :=3D rmem.o obj-$(CONFIG_NVMEM_ROCKCHIP_EFUSE) +=3D nvmem_rockchip_efuse.o diff --git a/drivers/nvmem/rcar-efuse.c b/drivers/nvmem/rcar-efuse.c new file mode 100644 index 0000000000000000..f24bdb9cb5a7296f --- /dev/null +++ b/drivers/nvmem/rcar-efuse.c @@ -0,0 +1,142 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Renesas R-Car E-FUSE/OTP Driver + * + * Copyright (C) 2024 Glider bv + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +struct rcar_fuse { + struct nvmem_keepout keepouts[2]; + struct nvmem_device *nvmem; + struct device *dev; + void __iomem *base; +}; + +struct rcar_fuse_data { + unsigned int bank; /* 0: PFC + E-FUSE, 1: OPT_MEM + E-FUSE */ + unsigned int start; /* inclusive */ + unsigned int end; /* exclusive */ +}; + +static int rcar_fuse_reg_read(void *priv, unsigned int offset, void *val, + size_t bytes) +{ + struct rcar_fuse *fuse =3D priv; + int ret; + + ret =3D pm_runtime_resume_and_get(fuse->dev); + if (ret < 0) + return ret; + + __ioread32_copy(val, fuse->base + offset, bytes / 4); + + pm_runtime_put(fuse->dev); + + return 0; +} + +static int rcar_fuse_probe(struct platform_device *pdev) +{ + struct device *dev =3D &pdev->dev; + const struct rcar_fuse_data *data =3D device_get_match_data(dev); + struct nvmem_config config =3D { + .dev =3D dev, + .name =3D "rcar-fuse", + .id =3D NVMEM_DEVID_NONE, + .owner =3D THIS_MODULE, + .type =3D NVMEM_TYPE_OTP, + .read_only =3D true, + .root_only =3D true, + .reg_read =3D rcar_fuse_reg_read, + .word_size =3D 4, + .stride =3D 4, + }; + struct rcar_fuse *fuse; + struct resource *res; + int ret; + + ret =3D devm_pm_runtime_enable(dev); + if (ret < 0) + return ret; + + fuse =3D devm_kzalloc(dev, sizeof(*fuse), GFP_KERNEL); + if (!fuse) + return -ENOMEM; + + fuse->base =3D devm_platform_get_and_ioremap_resource(pdev, data->bank, + &res); + if (IS_ERR(fuse->base)) + return PTR_ERR(fuse->base); + + fuse->dev =3D dev; + fuse->keepouts[0].start =3D 0; + fuse->keepouts[0].end =3D data->start; + fuse->keepouts[1].start =3D data->end; + fuse->keepouts[1].end =3D resource_size(res); + + config.keepout =3D fuse->keepouts; + config.nkeepout =3D ARRAY_SIZE(fuse->keepouts); + config.size =3D resource_size(res); + config.priv =3D fuse; + + fuse->nvmem =3D devm_nvmem_register(dev, &config); + if (IS_ERR(fuse->nvmem)) + return dev_err_probe(dev, PTR_ERR(fuse->nvmem), + "Failed to register NVMEM device\n"); + + return 0; +} + +static const struct rcar_fuse_data rcar_fuse_v3u =3D { + .bank =3D 0, + .start =3D 0x0c0, + .end =3D 0x0e8, +}; + +static const struct rcar_fuse_data rcar_fuse_s4 =3D { + .bank =3D 0, + .start =3D 0x0c0, + .end =3D 0x14c, +}; + +static const struct rcar_fuse_data rcar_fuse_v4h =3D { + .bank =3D 1, + .start =3D 0x100, + .end =3D 0x1a0, +}; + +static const struct rcar_fuse_data rcar_fuse_v4m =3D { + .bank =3D 1, + .start =3D 0x100, + .end =3D 0x110, +}; + +static const struct of_device_id rcar_fuse_match[] =3D { + { .compatible =3D "renesas,r8a779a0-efuse", .data =3D &rcar_fuse_v3u }, + { .compatible =3D "renesas,r8a779f0-efuse", .data =3D &rcar_fuse_s4 }, + { .compatible =3D "renesas,r8a779g0-otp", .data =3D &rcar_fuse_v4h }, + { .compatible =3D "renesas,r8a779h0-otp", .data =3D &rcar_fuse_v4m }, + { /* sentinel */ } +}; + +static struct platform_driver rcar_fuse_driver =3D { + .probe =3D rcar_fuse_probe, + .driver =3D { + .name =3D "rcar_fuse", + .of_match_table =3D rcar_fuse_match, + }, +}; +module_platform_driver(rcar_fuse_driver); + +MODULE_DESCRIPTION("Renesas R-Car E-FUSE/OTP driver"); +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Geert Uytterhoeven"); --=20 2.34.1 From nobody Thu Nov 28 06:39:24 2024 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [195.130.132.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44E1719D095 for ; Thu, 3 Oct 2024 14:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964285; cv=none; b=US1tKFbbXmFoK5FmIjxNIURfxQoMONXyveV5CzItja03IQSqJSRaucHjrpYWMXdIcQINeEG8Y2uMCOoxmwq+yhItqErw6CIl25+slOaxXJ98DNOoKHJ903Aa7iCQk7Nm3t7fubkMHxAfbRjFHz0qpz/yMseOaF5oZjELAQ/BYPk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964285; c=relaxed/simple; bh=S79zNgT+2/mn+IoKPouUDYDiOXIIDGAPy4k5qbtL3l8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VCzbX+b4c8AE7aMLkEjci/HlsXA+ETynsDaaB1AYlzrjgSHkqYeGdJGEeNL2Wwi7q2g4Lwqhiwhu4zrHai3pz2303ZjJsp8D0MFHm8uvrxcatOS6Nb/bH3BiBK5nRR7ZDUK7LsCcd1QznQXEeocwws/S9odopcKBGOOJDdvDxGY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:d4db:7463:4f08:3c82]) by xavier.telenet-ops.be with cmsmtp id Kq4d2D00A5K8SYz01q4dMy; Thu, 03 Oct 2024 16:04:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1swMRR-001CGb-4l; Thu, 03 Oct 2024 16:04:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1swMRZ-006e9n-DR; Thu, 03 Oct 2024 16:04:37 +0200 From: Geert Uytterhoeven To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Yoshihiro Shimoda , Arnd Bergmann Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 resend 3/7] arm64: dts: renesas: r8a779a0: Add E-FUSE node Date: Thu, 3 Oct 2024 16:04:27 +0200 Message-Id: <3b1d9939d2bcff9c5112d419b98b70377cf31db4.1727963347.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a device node for the System Group Fuse Control and Monitor block of the Pin Function Controller (PFC) on the R-Car V3U (R8A779A0) SoC, which provides E-FUSE services. Signed-off-by: Geert Uytterhoeven Reviewed-by: Yoshihiro Shimoda --- v3: - No changes, v2: - Add Reviewed-by. --- arch/arm64/boot/dts/renesas/r8a779a0.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi b/arch/arm64/boot/dt= s/renesas/r8a779a0.dtsi index 1f4ab27acc339895..7156b1a542e8a38a 100644 --- a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi @@ -245,6 +245,14 @@ gpio9: gpio@e6069980 { #interrupt-cells =3D <2>; }; =20 + fuse: fuse@e6078800 { + compatible =3D "renesas,r8a779a0-efuse"; + reg =3D <0 0xe6078800 0 0x100>; + clocks =3D <&cpg CPG_MOD 916>; + power-domains =3D <&sysc R8A779A0_PD_ALWAYS_ON>; + resets =3D <&cpg 916>; + }; + cmt0: timer@e60f0000 { compatible =3D "renesas,r8a779a0-cmt0", "renesas,rcar-gen4-cmt0"; --=20 2.34.1 From nobody Thu Nov 28 06:39:24 2024 Received: from albert.telenet-ops.be (albert.telenet-ops.be [195.130.137.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37CBC19CC3A for ; Thu, 3 Oct 2024 14:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.90 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964284; cv=none; b=Uto0TYqIE/0raxas1T3aJ4ZE0JNeETcFnr1c3lv41I7VTQ0pxK2AsB0XCSkFB5+UHRb4+iFaKtJrzooUJ985E+UPViKlsUTh8UdmRw9liRCCzB4pH90Bl7eclQsULsYGXUIJjW/9t3OAmDN54dws6ki0Y+3N7yGlDLcOq8rmxck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964284; c=relaxed/simple; bh=cnqWTpDQyDMAetZAw6MLJ8dI8Id06dyIeRu+kxRfc4Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tQpy82d6zF0bgAfkv05WylvOsB+BC9pZh8hk15JJuRLhi6L9bRWj74O54k9yhZMrw/T8i6XIZayFEEKCxIbA91yDEDof3gd0rK0xF5pEc/vPFVPWcK5W1xCeO0V4Fp071RL+8KalAvAFXGiGX+EGEi5DOODBnPGbEoakZCTzmgo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.90 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:d4db:7463:4f08:3c82]) by albert.telenet-ops.be with cmsmtp id Kq4d2D00H5K8SYz06q4d4F; Thu, 03 Oct 2024 16:04:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1swMRR-001CGi-6H; Thu, 03 Oct 2024 16:04:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1swMRZ-006e9r-E9; Thu, 03 Oct 2024 16:04:37 +0200 From: Geert Uytterhoeven To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Yoshihiro Shimoda , Arnd Bergmann Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 resend 4/7] arm64: dts: renesas: r8a779f0: Add E-FUSE node Date: Thu, 3 Oct 2024 16:04:28 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a device node for the System Group Fuse Control and Monitor block of the Pin Function Controller (PFC) on the R-Car S4-8 (R8A779F0) SoC, which provides E-FUSE services. Signed-off-by: Geert Uytterhoeven Reviewed-by: Yoshihiro Shimoda --- v3: - Fix reg size, v2: - s/r8a779g0/r8a779f0/ in one-line summary, - Add Reviewed-by. --- arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi b/arch/arm64/boot/dt= s/renesas/r8a779f0.dtsi index 9629adb47d99f142..054498e54730b49c 100644 --- a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi @@ -377,6 +377,14 @@ gpio3: gpio@e6051980 { #interrupt-cells =3D <2>; }; =20 + fuse: fuse@e6078800 { + compatible =3D "renesas,r8a779f0-efuse"; + reg =3D <0 0xe6078800 0 0x200>; + clocks =3D <&cpg CPG_MOD 915>; + power-domains =3D <&sysc R8A779F0_PD_ALWAYS_ON>; + resets =3D <&cpg 915>; + }; + cmt0: timer@e60f0000 { compatible =3D "renesas,r8a779f0-cmt0", "renesas,rcar-gen4-cmt0"; --=20 2.34.1 From nobody Thu Nov 28 06:39:24 2024 Received: from albert.telenet-ops.be (albert.telenet-ops.be [195.130.137.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37C1F19CC27 for ; Thu, 3 Oct 2024 14:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.90 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964283; cv=none; b=J0VyLk6uES3QAPCMpiC3Fm0I37jQvlxQ6YoZgQR22I2VXpgWPL9/RAH/nJ+kPmG7NmOweBhJT2WjuS8okiU0AEmw0zQZwXbA4OvSy2IZSJ+W9mrncVbcezBZgLZ98jJ7S3dyHT017VZh/8V0BzSXmWiVyMVDo0/X4OiR3jzQkJk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964283; c=relaxed/simple; bh=47fe7Fwb0yXTDKoNl2wd/u4e8OnEK9iPFbqci4doMh0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=siyOslFEfmPq007cJpnH4BHp8iMFPFOx7zkxl/N0lCz4FbmrRoj/tsLmEj04WtbX8+fSeLfjLBRyEBQIPSAE+oHDhN/EPSa84Z9ngmVBWik2D445qXMA3tgavzzydE2GtPQzkamSUsqfPrKP4wCJPKvVaVzDGC18/8vCw5rNciw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.90 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:d4db:7463:4f08:3c82]) by albert.telenet-ops.be with cmsmtp id Kq4d2D00J5K8SYz06q4d4G; Thu, 03 Oct 2024 16:04:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1swMRR-001CGk-74; Thu, 03 Oct 2024 16:04:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1swMRZ-006e9w-F1; Thu, 03 Oct 2024 16:04:37 +0200 From: Geert Uytterhoeven To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Yoshihiro Shimoda , Arnd Bergmann Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 resend 5/7] arm64: dts: renesas: r8a779f4: Add UFS tuning parameters in E-FUSE Date: Thu, 3 Oct 2024 16:04:29 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Describe the location in the E-FUSE block of the PLL and AFE tuning parameters for the Universal Flash Storage controller. Signed-off-by: Geert Uytterhoeven --- v3: - New. After adding: &ufs { nvmem-cells =3D <&ufs_tune>; nvmem-cell-names =3D "calibration"; }; The calibration data can be retrieved using the following sample code: #include static int nvmem_dump_cell(struct platform_device *pdev, const char *na= me) { struct device *dev =3D &pdev->dev; struct nvmem_cell *cell; int res =3D 0; void *data; size_t len; cell =3D nvmem_cell_get(dev, name); if (IS_ERR(cell)) return dev_err_probe(dev, PTR_ERR(cell), "Failed to get cell %s\n", name); data =3D nvmem_cell_read(cell, &len); if (IS_ERR(data)) { res =3D dev_err_probe(dev, PTR_ERR(data), "Failed to read cell %s\n", name); goto put; } pr_info("Cell %s contains %zu bytes of data\n", name, len); print_hex_dump(KERN_INFO, "| ", DUMP_PREFIX_NONE, 32, 1, data, len, 0); kfree(data); put: nvmem_cell_put(cell); return res; } Calling nvmem_dump_cell(pdev, "calibration") from ufs_renesas_probe() on the R-Car S4 Starter Kit development board gives: Cell calibration contains 8 bytes of data | 23 51 23 51 52 98 52 98 --- arch/arm64/boot/dts/renesas/r8a779f4.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779f4.dtsi b/arch/arm64/boot/dt= s/renesas/r8a779f4.dtsi index ebed41892df3346c..dfa3c015e04b740c 100644 --- a/arch/arm64/boot/dts/renesas/r8a779f4.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779f4.dtsi @@ -10,3 +10,15 @@ / { compatible =3D "renesas,r8a779f4", "renesas,r8a779f0"; }; + +&fuse { + nvmem-layout { + compatible =3D "fixed-layout"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + ufs_tune: calib@144 { + reg =3D <0x144 0x08>; + }; + }; +}; --=20 2.34.1 From nobody Thu Nov 28 06:39:24 2024 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [195.130.132.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37D3C19D062 for ; Thu, 3 Oct 2024 14:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964284; cv=none; b=aJq0r5FcOd7sKvh0FBnbHQrADI1NjFknd+f6KUxU1yNDrMANPTQyavvNkJ24aU7+jL8Z2KTBDQnp9fGEb7aMC079x2p8OCnyxGMesydf34h2Bv4x8W1G4FqmGwE62ek/DQpGavyd3bkU9+2blr9lgb0pVq0N6aI0X1H5vYIW3Aw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964284; c=relaxed/simple; bh=kyfZbCjQZdw/uIQAn4keSGzXfbV7LKhfTIJNIxZC7lc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sYjiDZScv5B+epMC0ne1HNghv2uSbu7DLkK2LYBJVHL5VvPcYJyjs/xgO0LRplDhOYBRrSrec83Xhj8uKNOdjRPvxyD8JiJMvcODdLoDCkjSUukIfjXIEYBvdfQ3t/jDUOUnp9CxD0HHDrQEjKVH/6XzpoupsqxGbDo/MNUAzIs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:d4db:7463:4f08:3c82]) by xavier.telenet-ops.be with cmsmtp id Kq4d2D00B5K8SYz01q4dMz; Thu, 03 Oct 2024 16:04:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1swMRR-001CGo-7s; Thu, 03 Oct 2024 16:04:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1swMRZ-006eA2-Gi; Thu, 03 Oct 2024 16:04:37 +0200 From: Geert Uytterhoeven To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Yoshihiro Shimoda , Arnd Bergmann Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 resend 6/7] arm64: dts: renesas: r8a779g0: Add OTP_MEM node Date: Thu, 3 Oct 2024 16:04:30 +0200 Message-Id: <5a8d065dd782d3ede07928f5ad44b84396f9c71d.1727963347.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a device node for the OTP non-volatile memory on the R-Car V4H (R8A779G0) SoC, which provides E-FUSE services. Signed-off-by: Geert Uytterhoeven Reviewed-by: Yoshihiro Shimoda --- v3: - No changes, v2: - Add Reviewed-by. --- arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dt= s/renesas/r8a779g0.dtsi index 12900ebd098b0b78..61c6b8022ffdc3b2 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi @@ -477,6 +477,11 @@ tsc: thermal@e6198000 { #thermal-sensor-cells =3D <1>; }; =20 + otp: otp@e61be000 { + compatible =3D "renesas,r8a779g0-otp"; + reg =3D <0 0xe61be000 0 0x1000>, <0 0xe61bf000 0 0x1000>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible =3D "renesas,intc-ex-r8a779g0", "renesas,irqc"; #interrupt-cells =3D <2>; --=20 2.34.1 From nobody Thu Nov 28 06:39:24 2024 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [195.130.132.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D9C41A0B1F for ; Thu, 3 Oct 2024 14:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964288; cv=none; b=IV7hnJUZtUDIAhltc2bUPwzEYEz6KnODeIt/t2/DiNFJs3WjQtH1d8aFybdCYsLD5hUPoKc8fdmzeUYD/PPV6BGfdSiQMt5J97yi1JrKkDsYLY+/Uvp/GFxRZX/Wo50KmHsDuKASRkozqtCXX/eIGB2TRJTJNinjMQ0o0aG7am4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727964288; c=relaxed/simple; bh=C4V6T2aVyKekBd9PQ8pK0W/AJpZ2Y+ZTxQIdH6O2HBE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OByMLCdkuEXtsWqqFwKZeixm2YH0aP6Ecloik2MJRNlC4z5yY1sCVTkAZrOP1yN7axWoseTtpHIP3rwBQN1Ct3uIXSl2bSdY8NrpZh0wHFk1HbTq5Z+l7MvgFaPn6HPaT/wQk9sd3XXJ0T12U/IXqhabjyHreveXLQPe4kC90gU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:d4db:7463:4f08:3c82]) by baptiste.telenet-ops.be with cmsmtp id Kq4d2D00A5K8SYz01q4d5J; Thu, 03 Oct 2024 16:04:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1swMRR-001CGs-8e; Thu, 03 Oct 2024 16:04:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1swMRZ-006eA7-HT; Thu, 03 Oct 2024 16:04:37 +0200 From: Geert Uytterhoeven To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Yoshihiro Shimoda , Arnd Bergmann Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 resend 7/7] arm64: dts: renesas: r8a779h0: Add OTP_MEM node Date: Thu, 3 Oct 2024 16:04:31 +0200 Message-Id: <7d22eda0f4720d873dab5f6a63da7df3d0dcd662.1727963347.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a device node for the OTP non-volatile memory on the R-Car V4M (R8A779H0) SoC, which provides E-FUSE services. Signed-off-by: Geert Uytterhoeven Reviewed-by: Yoshihiro Shimoda --- v3: - No changes, v2: - Add Reviewed-by. --- arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi b/arch/arm64/boot/dt= s/renesas/r8a779h0.dtsi index 9fe5fd142bf48ed6..facfff4b9cdca155 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi @@ -424,6 +424,11 @@ tsc: thermal@e6198000 { #thermal-sensor-cells =3D <1>; }; =20 + otp: otp@e61be000 { + compatible =3D "renesas,r8a779h0-otp"; + reg =3D <0 0xe61be000 0 0x1000>, <0 0xe61bf000 0 0x1000>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible =3D "renesas,intc-ex-r8a779h0", "renesas,irqc"; #interrupt-cells =3D <2>; --=20 2.34.1