From nobody Mon Sep 16 19:25:42 2024 Received: from andre.telenet-ops.be (andre.telenet-ops.be [195.130.132.53]) (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 72BF517C228 for ; Fri, 26 Jul 2024 13:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001106; cv=none; b=t3q48RbrpYhzDsIxzCKP7mUY3JgpAfnFJtOlw8IHaZvuIBFvYkdcOCJgcSOvOO0XBZfF/3FzwuEvbDBp7NenjR6ZJ+GBtm9fAbK7rTOn5yYynOJnwJJG0AqeCRW/4RQSTnRQb6HHakOMout4k3zXwF589TMoogEsg+BMS+II7uQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001106; c=relaxed/simple; bh=IXfAVBJha6O3Zh7HSFhjOKoC8w06/OB1c3mV0auwAxY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TvXEnLrABs+GoIjn4M6EeH5C/UyzuzJZfHfvjAVHq1h4yBfFW7Oi1c5UlOVP4vVjeLfWzI6MnR38Kj4cPPBjrNCDb47zGVRGF4Ye1Yqu1OiCfkGnYSyP22KnVxie0YPRYXdHDXPt1QxesuMm6/qTY7FQ6Fob9n4PF07i8n++Shc= 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.53 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:3d94:87cf:603a:d7ae]) by andre.telenet-ops.be with bizsmtp id sDeE2C0041mGjv501DeEKr; Fri, 26 Jul 2024 15:38:15 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sXL8p-003cLz-Qo; Fri, 26 Jul 2024 15:38:13 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sXL9B-004G6G-Ja; Fri, 26 Jul 2024 15:38:13 +0200 From: Geert Uytterhoeven To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Srinivas Kandagatla , 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 1/7] dt-bindings: fuse: Move renesas,rcar-{efuse,otp} to nvmem Date: Fri, 26 Jul 2024 15:38:06 +0200 Message-Id: <1a3d4ff8ce34a5e676d1cb1fafd40525378e29a4.1721999833.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 --- v3: - New. I would expect that the calib@144 node needs: #nvmem-cell-cells =3D <0>; but after adding that, "make dt_binding_check" starts complaining: Documentation/devicetree/bindings/nvmem/renesas,rcar-efuse.example.dtb:= fuse@e6078800: nvmem-layout: 'oneOf' conditional failed, one must be fixed: '#address-cells', '#size-cells', 'calib@144' do not match any of the r= egexes: 'pinctrl-[0-9]+' Unevaluated properties are not allowed ('nvmem-cell-cells' was unexpec= ted) 'kontron,sl28-vpd' was expected 'onie,tlv-layout' was expected from schema $id: http://devicetree.org/schemas/nvmem/renesas,rcar-efus= e.yaml# Documentation/devicetree/bindings/nvmem/renesas,rcar-efuse.example.dtb:= fuse@e6078800: nvmem-layout: Unevaluated properties are not allowed ('#add= ress-cells', '#size-cells', 'calib@144' were unexpected) from schema $id: http://devicetree.org/schemas/nvmem/renesas,rcar-efus= e.yaml# Documentation/devicetree/bindings/nvmem/renesas,rcar-efuse.example.dtb:= fuse@e6078800: Unevaluated properties are not allowed ('nvmem-layout' was = unexpected) from schema $id: http://devicetree.org/schemas/nvmem/renesas,rcar-efus= e.yaml# --- .../{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 990aced7e7a57e1f..8da9c4ee231b4db4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2794,6 +2794,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 Mon Sep 16 19:25:42 2024 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [195.130.137.89]) (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 A25FB1E4B0 for ; Fri, 26 Jul 2024 13:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001106; cv=none; b=uQjycYi7DRZRu0zgSyMHV0+R5OOrVHPHcv+xigu70ZPM9r9Ry+y1I+KEHqU3BU6dzqD4mr4vY3U2mbggF8TwoV2dAxxX/QDqY2P7il9oVcwzGz+y4cxBUYrh3rw5p3Mrn/2gYzSnzOSydzH/Ub+wtMqNGKtn0FQ46NSo2qT8NiU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001106; c=relaxed/simple; bh=c0QJusAxP5dOfvfL9mRfUFCS79xP76Q4+6WOV2k+k0Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ACiYFTboZ6n3zB5EL+V6sASQGRXAI0i94pd5os5KvyR/TdYnlRXX6384x7PxTNPbSqGOfKNUEpSqHGzjzjIuSgluvX5wnxEEY2ZLASeQaivh5G6wZBe9BzA7URo5Nhl0v1CQ2m3wAocxTDVxRX2qHhmgS888xehl5LebkGcp5Cw= 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.89 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:3d94:87cf:603a:d7ae]) by laurent.telenet-ops.be with bizsmtp id sDeD2C00S1mGjv501DeDkH; Fri, 26 Jul 2024 15:38:15 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sXL8p-003cM2-R8; Fri, 26 Jul 2024 15:38:13 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sXL9B-004G6J-KE; Fri, 26 Jul 2024 15:38:13 +0200 From: Geert Uytterhoeven To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Srinivas Kandagatla , 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 2/7] nvmem: Add R-Car E-FUSE driver Date: Fri, 26 Jul 2024 15:38:07 +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" 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 8da9c4ee231b4db4..142e1ecf88c19773 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2802,6 +2802,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 283134498fbc3315..567baf73be90375e 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 Mon Sep 16 19:25:42 2024 Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) (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 CE6C917C217 for ; Fri, 26 Jul 2024 13:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001106; cv=none; b=rgbXsx3O6NQkPNEGquEpMbiSufQgcN1ADX8M8xHAuW38qS5g9WVFdvEAaE/oItuItfjyeuslhZbaKagdaqFDphlvPpUJ+xFWfn+2ISAmxb1PLx3/DxRdWKIHK3vs2p7Dk+iKVsOwCCVBIQB0ou/CqramSrXthnOOuCwE+Ofo4fA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001106; c=relaxed/simple; bh=+5yTt3e5KltgbPhBYwoQdQ1rvutxIVcLkfXXrd6lD9w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IOvRHeRhmK/h5yXXCJJybHpShLzPLWBmcV/1Hq5W9Nn4X4x7swFUY/P12nys1MlGP4bKaarr0ESKclhJM06/n8TWcSeS3vU0nZU5bFrcE2dizgPRXazDeG1iSNH9+ae6m7v7Z79SeFzuT4Wy52okT7XuVvo0jCzyknsvlMYCLW0= 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.88 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:3d94:87cf:603a:d7ae]) by michel.telenet-ops.be with bizsmtp id sDeD2C00N1mGjv506DeDcU; Fri, 26 Jul 2024 15:38:15 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sXL8p-003cM4-Rh; Fri, 26 Jul 2024 15:38:13 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sXL9B-004G6O-Kt; Fri, 26 Jul 2024 15:38:13 +0200 From: Geert Uytterhoeven To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Srinivas Kandagatla , 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 3/7] arm64: dts: renesas: r8a779a0: Add E-FUSE node Date: Fri, 26 Jul 2024 15:38:08 +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 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 69652d309fe6f01e..4d1f086629d1ecef 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 Mon Sep 16 19:25:42 2024 Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) (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 CD00117C216 for ; Fri, 26 Jul 2024 13:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001107; cv=none; b=hIzhribmAvTqdBoZ2Nl1xl+RpG1DYmRCLsn8Q25XzDG8JfBVW/EOp6Pn/F9Q542Jb4lro43q3DDX3k0OKCszWxpAYsKDMSkhhQhtkCdQN7nmGCzgy0RMSbAWLF4GONs9AuRqTb8qsxd2BPTx0FmCqBn9FuFWa4OXdtyPt7YyAD8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001107; c=relaxed/simple; bh=cnqWTpDQyDMAetZAw6MLJ8dI8Id06dyIeRu+kxRfc4Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cudqhCP6O2i8SQ9pLrM1fwIzCqYESP1rzxqm+M/sNFGRTxIo0IDMKwXCSFZRvNUnjQ57AXBwgcPPRbcx3tHeV7P6GQz/yEhm16+7MS8Qrwnp5iZXX71WdqArsqdeKUONKNbI7cos7O92aOULUibzcXuXDdPJPU2f7675qaNQMGo= 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.88 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:3d94:87cf:603a:d7ae]) by michel.telenet-ops.be with bizsmtp id sDeD2C00P1mGjv506DeDcV; Fri, 26 Jul 2024 15:38:15 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sXL8p-003cM8-SP; Fri, 26 Jul 2024 15:38:13 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sXL9B-004G6S-LY; Fri, 26 Jul 2024 15:38:13 +0200 From: Geert Uytterhoeven To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Srinivas Kandagatla , 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 4/7] arm64: dts: renesas: r8a779f0: Add E-FUSE node Date: Fri, 26 Jul 2024 15:38:09 +0200 Message-Id: <3f3a3d3649c4fd723b18f5cfd2b0d07f484bbd56.1721999833.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 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 Mon Sep 16 19:25:42 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 D41BB17C223 for ; Fri, 26 Jul 2024 13:38:22 +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=1722001105; cv=none; b=mH5/Nr296+Tbz6qL/ml2Dia0ZYXE7/OuvW2jHRz4hBAmo+O+y6IVGn+/7QzzlLqThO9WqoLRVis3in3GsSklGrjEDNVOLlaBpQ+7LQEDOJm+6iIRkLTkMf8AtZ35dH1gzNJy+LFI9hG5Dutkik0/kC1I5wZIy1Y5UYgp//I0fdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001105; c=relaxed/simple; bh=47fe7Fwb0yXTDKoNl2wd/u4e8OnEK9iPFbqci4doMh0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YTHu4GUFUa87BPJH3V62iGZlL+SrFFX5d2X0BGyRjEQn+Z4OG37/1wwNdb8piA5eZbDN5oyseMHWJhe1x7zz9wlYcrpytUOSVcr2SuEyLWr2AP1Yzf5Faozo3kxxMKmThxJX4ZveCW56Q7KmMNamekGIFbIYETvPGhK4tVxyQ2g= 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:3d94:87cf:603a:d7ae]) by baptiste.telenet-ops.be with bizsmtp id sDeD2C00S1mGjv501DeDhZ; Fri, 26 Jul 2024 15:38:15 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sXL8p-003cMG-U4; Fri, 26 Jul 2024 15:38:13 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sXL9B-004G6W-ME; Fri, 26 Jul 2024 15:38:13 +0200 From: Geert Uytterhoeven To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Srinivas Kandagatla , 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 5/7] arm64: dts: renesas: r8a779f4: Add UFS tuning parameters in E-FUSE Date: Fri, 26 Jul 2024 15:38:10 +0200 Message-Id: <5c9ba9543222f4b7a8199ad5992aee9fecd8bc1f.1721999833.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" 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 Mon Sep 16 19:25:42 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 B6F3A17C23B for ; Fri, 26 Jul 2024 13:38:23 +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=1722001106; cv=none; b=o/agRNhW9aPsLpcd3Niyv/4gtHGLQw8rgZ6KH64N++jJdmZCg8HdLn0mq9boRcHpoj0zdY85p2R3jBuDBl+fxGjq3sHOV/RiFHGKr9Hca0+vteKjJmFOnJeKWHoW3Z/+JMlZG4lZDUQZsyZmeIuXqSdA3Yh0dRnJerMCVeMLVRA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001106; c=relaxed/simple; bh=bDQffbUZA5bghK/autS3tZR2RkAAIHVmCSryVm5aDTI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Gv7frXUYC+f6t1rfniejugzbRgE2umZXxFE9VqOiiFEpjEPSpZ+Da3+6Xjc0gOERUmPom1H+d8qUlueqt+BXm3hG3pcd6xxZUvqVPGpq45Hln2RTPcMQ5kyGse4TPUUkn2u/ITPEKJRnDbpT0wJ+Ga76FzGlKYsEQHE+A4DLIW0= 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:3d94:87cf:603a:d7ae]) by xavier.telenet-ops.be with bizsmtp id sDeE2C0051mGjv501DeER1; Fri, 26 Jul 2024 15:38:15 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sXL8p-003cML-V5; Fri, 26 Jul 2024 15:38:13 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sXL9B-004G6a-Mw; Fri, 26 Jul 2024 15:38:13 +0200 From: Geert Uytterhoeven To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Srinivas Kandagatla , 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 6/7] arm64: dts: renesas: r8a779g0: Add OTP_MEM node Date: Fri, 26 Jul 2024 15:38:11 +0200 Message-Id: <3c12681c9b1ab9fc389521666cc1e14b518215f7.1721999833.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 d6770d3d488b833a..3a0991a7789f4d13 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi @@ -463,6 +463,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 Mon Sep 16 19:25:42 2024 Received: from andre.telenet-ops.be (andre.telenet-ops.be [195.130.132.53]) (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 6B58517C20A for ; Fri, 26 Jul 2024 13:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001105; cv=none; b=DQxhRLw81j0RiinufvErR8sOnKswNyClDPSaB3rLJPRAHK/tvo5Y0eRWVFg3ZVl4BzLxCr+aOAq2B08ymzHuBSTilovwWgnG1JoDyZOSOWXJjKuzoC4mr2DxPHPKB37yAfZeCbui2WxT7XbZzD5UjS2QvbRgNyR3hX2QTaWHPxM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722001105; c=relaxed/simple; bh=Ng4wEO/SlAXdAnuf293XE/ZFStcFFPvsjblx6kRm6Oc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cX51UPu+5RkSd3lyap+4L/hh3wdXY/haaLkfLj82oA6+XH+Hyy/xuAuwhxpv3ZkQom7h7B5O8AYHIEvebQjqQXvmJ/PxW/oUbHtQcVlUtLj0gUERKl7JBZ6Ut+BuxUL7xm5gd5Z48OR5HBFiUYf5skcRbodFQCLhEyvzCCDgF7I= 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.53 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:3d94:87cf:603a:d7ae]) by andre.telenet-ops.be with bizsmtp id sDeE2C0021mGjv501DeEKs; Fri, 26 Jul 2024 15:38:15 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sXL8p-003cMO-W2; Fri, 26 Jul 2024 15:38:13 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sXL9B-004G6h-Op; Fri, 26 Jul 2024 15:38:13 +0200 From: Geert Uytterhoeven To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Srinivas Kandagatla , 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 7/7] arm64: dts: renesas: r8a779h0: Add OTP_MEM node Date: Fri, 26 Jul 2024 15:38:12 +0200 Message-Id: <35889ce7e244d0d3513ab886ddcf2e4124c1d41a.1721999833.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 0124e682b248188c..4cf67ef2690f6af5 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi @@ -417,6 +417,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