From nobody Tue Oct 7 06:50:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50CE62749DF for ; Sat, 12 Jul 2025 18:19:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344380; cv=none; b=JVppMIMzC8ZVX4DQ1J1G4DgyYqMDd0d4770TXxjMWIRCAA2gau0rZKxnvUQaaru2t9uv5+k5kDSQlHp5IKhct8o5ozW5apXz5ddY5bpHlEsNE0q2otKiC84RjB3WyNByV6GBBSbeueNGA0SGYsUhxddQ8/wkopS02Wsm1cR3P5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344380; c=relaxed/simple; bh=VAzrj+slNfvi//h9gMh+UkCm8r6fN5pUy7YKE9FRLKM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EPq5unsyxtIx9HyDjXFdSuZ7mrfC5tYhqBxSaYXRYa0vjBbA7Vi7GebQJcPK5NUxH8BTich7fKUP6HoGIqr9HdAPeKA18GYSZI7NYK7oQKItWhBGW1mnUTDYxK0QxYnYVSccQdDXU0hjZBJCEZcDuGu/DtLvCgvgOWqaRX2QIQk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DDbcMAcB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DDbcMAcB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71776C4CEF6; Sat, 12 Jul 2025 18:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752344379; bh=VAzrj+slNfvi//h9gMh+UkCm8r6fN5pUy7YKE9FRLKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DDbcMAcBJGThHxZo22rP6k4KPi94bXDl9Z/CaCAZcJBWOchC+DUCn2F4N0wIEIYgh QSt6kXV4k4ff3OPkcURHlNwra6DWdCP8pTEuWBx1tg/rVjedDslCJ8KM1YXew+Jqtc 4DDFk/b3Mx/Q8y17pn6d5ArzeK4xBcMdoZXrbyYz24QW/3e6J91gMIN+rXjZXQiWqH YHtOb/qxlmJ22VnzZnaT9EBaGNR7FeoY/l3hoHz5DJo/8oaC7TD96gp48NCkjmPmL8 LiQmQ9eGlVVzcl7FkdES2xoq5Rvdbc7KGsi9U5kXyURV4iqIL1rdYe336aR5z1QkI2 q803VBcWbRoWA== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Sven Peter , Janne Grunau , Srinivas Kandagatla Subject: [PATCH 1/8] nvmem: apple: drop default ARCH_APPLE in Kconfig Date: Sat, 12 Jul 2025 19:18:57 +0100 Message-ID: <20250712181905.6738-2-srini@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250712181905.6738-1-srini@kernel.org> References: <20250712181905.6738-1-srini@kernel.org> 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" From: Sven Peter When the first driver for Apple Silicon was upstreamed we accidentally included `default ARCH_APPLE` in its Kconfig which then spread to almost every subsequent driver. As soon as ARCH_APPLE is set to y this will pull in many drivers as built-ins which is not what we want. Thus, drop `default ARCH_APPLE` from Kconfig. Signed-off-by: Sven Peter Reviewed-by: Janne Grunau Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index d370b2ad11e7..edd811444ce5 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -31,7 +31,6 @@ source "drivers/nvmem/layouts/Kconfig" config NVMEM_APPLE_EFUSES tristate "Apple eFuse support" depends on ARCH_APPLE || COMPILE_TEST - default ARCH_APPLE help Say y here to enable support for reading eFuses on Apple SoCs such as the M1. These are e.g. used to store factory programmed --=20 2.43.0 From nobody Tue Oct 7 06:50:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 264DB28AB07 for ; Sat, 12 Jul 2025 18:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344382; cv=none; b=acVaXic84jTE0+4mPSFdaSb2xrZNwudXnwPYhY74vjgOfcZVv1h5Qj9hNuy8WPKp1dOADvlzp4g2A7LVaVme9BvyxKf+ghSYc1bth38V06GbS9vPQnHnCRUkOjDLGLq1nopf5uPtvJCVytJxgmHNz1jLtaZZD0yuzoxtYVI8OSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344382; c=relaxed/simple; bh=kzjiOcuagds1KP21JyfFDNsCKJsrtbx98RqHo7n/RBs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b4ZYg1lb6F2J3BclCDWXRqaaoAdie550GrG4mUsvxiORIyanuOHjfyo6jh7JcfnPVAe4vtW+DqwNdoxp7Jw8xWpyhmz+nJqq+AE2T7lRIvhxaK3XZfx3ar5jU+LoyIM6KlaxuydaaBVGFEbYL8+7UiOJovUbbYIt01k6b8cw73w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bwVZ7oVT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bwVZ7oVT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64C3BC4CEEF; Sat, 12 Jul 2025 18:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752344381; bh=kzjiOcuagds1KP21JyfFDNsCKJsrtbx98RqHo7n/RBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bwVZ7oVTNAyROo1hXbpwaeLnm1xLLP9cOz6ZmekYGNmpvNsVZ3nj6qhQv+RLeRP6t D+bCtYkXqnbudtGlKcjMuYMdruRXrRAPeGNbfwXXq4e4uODCZkSMDko3GSS+2/L4yF Aa5r9IhnFZ5F923UXSgkw6c3ouNSkd/HwiDh+7s+mWUkbDZBdzyUSLFkkeLE+FWthp SGylxzgGyIxXn6D/pzUCODRrIfQ1IdrVHnmoZwIguNTXutnBAkCESGrIepJyxgldVV ObK/gMVlSM+Hoa41+5v58dw7Qzmn7zl2mZNmYLhDQBGQKDWacTksyr7rkh9fh4U790 W/1RPB3Ue7tCw== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Sven Peter , Rob Herring , Srinivas Kandagatla Subject: [PATCH 2/8] dt-bindings: nvmem: fixed-layout: Allow optional bit positions Date: Sat, 12 Jul 2025 19:18:58 +0100 Message-ID: <20250712181905.6738-3-srini@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250712181905.6738-1-srini@kernel.org> References: <20250712181905.6738-1-srini@kernel.org> 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" From: Sven Peter NVMEM nodes can optionally include the bits property to specify the bit position of the cell within a byte. Extend patternProperties to allow adding the bit offset to the node address to be able to distinguish nodes with the same address but different bit positions, e.g. trim@54,4 { reg =3D <0x54 1>; bits =3D <4 2>; }; trim@54,0 { reg =3D <0x54 1>; bits =3D <0 4>; }; Before the conversion to NVMEM layouts in commit bd912c991d2e ("dt-bindings: nvmem: layouts: add fixed-layout") this extension was originally added with commit 4b2545dd19ed ("dt-bindings: nvmem: Extend patternProperties to optionally indicate bit position") to the now deprecated layout. Signed-off-by: Sven Peter Reviewed-by: Rob Herring (Arm) Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/layouts/fixed-layout.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/nvmem/layouts/fixed-layout.y= aml b/Documentation/devicetree/bindings/nvmem/layouts/fixed-layout.yaml index 9bd34bd5af30..b01567f99284 100644 --- a/Documentation/devicetree/bindings/nvmem/layouts/fixed-layout.yaml +++ b/Documentation/devicetree/bindings/nvmem/layouts/fixed-layout.yaml @@ -27,7 +27,7 @@ properties: const: 1 =20 patternProperties: - "@[a-f0-9]+$": + "@[a-f0-9]+(,[0-7])?$": type: object $ref: fixed-cell.yaml unevaluatedProperties: false --=20 2.43.0 From nobody Tue Oct 7 06:50:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D582128CF5C for ; Sat, 12 Jul 2025 18:19:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344383; cv=none; b=XvvHCX4lxB9mmp1LwpfYQox+auR6JHkiFE09/mop/yud5EYFP+hiasin14daHJTb16mfOjOPV5/47TZ1nmDpyxXhFQ+MHkO3AUaA9uRv8p/UOB6G3/hSJfduw6sWIiFHXSjcWGfTv1ZCDQStgc8tLba6Aw73ywtXbTjwq7DkMx0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344383; c=relaxed/simple; bh=PA3Te3h3oJGm9mSeNYhYzpLTwOa/R9HfF1v0vT5Itko=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MqSjG0Nh+fru009FO1Z5xpLV8NZMCbtyAHBOxQWSuSWASz22ZH1RvaONBhhyE1il0SRyA2zS078OuqB4rjhYnq0n/FSKQ6clk+TTVeX0iSEEKRfGOasfS6SIjvbGSOQXDC1154W5eKFAY5B34/AJxfJLcEKLuSIFVFHJVtzpQB4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t9ZzFPbR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t9ZzFPbR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E4EAC4CEF1; Sat, 12 Jul 2025 18:19:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752344383; bh=PA3Te3h3oJGm9mSeNYhYzpLTwOa/R9HfF1v0vT5Itko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t9ZzFPbRp7HyYF1PIhwWTmvK5Pn4eW6kp+Nu1/UedaolFKYyeA522a/e0zS8JPHhG jdEHMdrtkdy/wv0zQe5eYeiCioUBUPTTLQcn0dfAs68UdJCQcpVNnlBghnhG0d/Ksw fyhZ7jv0M9hUao98lLWOwWisicMNMDZo/I+rqBgkX+33Uxs+01avAObnsZh2ZWVt0e KVP/77+umytUJsaJqIcQpQymIkF1z0RIZs0gmCfx5iuEQSxITcY4kHyLjy+Evx9Vf6 Ig92rNgGnvaRcEHxmIXqeC0n5WlVgjWfjbe0MdRFA2d4v2Ob7qP/oOSZCYQ9AoaiZ2 7XbEXTsEX7tBQ== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Alok Tiwari , Srinivas Kandagatla Subject: [PATCH 3/8] nvmem: core: Fix typos in comments and MODULE_AUTHOR strings Date: Sat, 12 Jul 2025 19:18:59 +0100 Message-ID: <20250712181905.6738-4-srini@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250712181905.6738-1-srini@kernel.org> References: <20250712181905.6738-1-srini@kernel.org> 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" From: Alok Tiwari This patch fixes minor typo issues for nvmem-core.c: Corrects "form" to "from" in multiple function descriptions. Fixes missing closing angle brackets in MODULE_AUTHOR entries. These changes improve readability and formatting consistency. Signed-off-by: Alok Tiwari Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index fd2a9698d1c9..880572ba515a 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -1263,7 +1263,7 @@ void nvmem_device_put(struct nvmem_device *nvmem) EXPORT_SYMBOL_GPL(nvmem_device_put); =20 /** - * devm_nvmem_device_get() - Get nvmem device of device form a given id + * devm_nvmem_device_get() - Get nvmem device of device from a given id * * @dev: Device that requests the nvmem device. * @id: name id for the requested nvmem device. @@ -1491,7 +1491,7 @@ EXPORT_SYMBOL_GPL(of_nvmem_cell_get); #endif =20 /** - * nvmem_cell_get() - Get nvmem cell of device form a given cell name + * nvmem_cell_get() - Get nvmem cell of device from a given cell name * * @dev: Device that requests the nvmem cell. * @id: nvmem cell name to get (this corresponds with the name from the @@ -1526,7 +1526,7 @@ static void devm_nvmem_cell_release(struct device *de= v, void *res) } =20 /** - * devm_nvmem_cell_get() - Get nvmem cell of device form a given id + * devm_nvmem_cell_get() - Get nvmem cell of device from a given id * * @dev: Device that requests the nvmem cell. * @id: nvmem cell name id to get. @@ -2194,6 +2194,6 @@ static void __exit nvmem_exit(void) subsys_initcall(nvmem_init); module_exit(nvmem_exit); =20 -MODULE_AUTHOR("Srinivas Kandagatla "); +MODULE_AUTHOR("Maxime Ripard "); MODULE_DESCRIPTION("nvmem Driver Core"); --=20 2.43.0 From nobody Tue Oct 7 06:50:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6771E28DB48 for ; Sat, 12 Jul 2025 18:19:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344385; cv=none; b=JRtC7qrdtJDd10srDsgCd7GMCsyrptVPoCmekT1JDaJMb32sj7HJM2uVdKexsQaSiBgZWN67S1Mnb1j+ckE/DmmdCuWDb5AbyJweZLr5zkVW6WiBy2+F3S33Y0TfBMQa8u5jOz6lzUj06DaVEpRMQv16k4HLnFQHRjckjsb4GoQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344385; c=relaxed/simple; bh=18JA2CFvvLjj5f+98x4TkT52FEd6gHAjRqnjGDZeXd4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YQYOi2iGbW34vhG6qnto4WLG8ZCe1F1VP0lF35WS5GW7W6eTs+FDtli3QIrCpZo0QALyaxj5mDIj8Ino2EMzRJBZGi6mtigZoUIt5gGQoDP8veixb6HTEYIgFVpzFbkMMudQg9yEpZScp13ZFaU0mAPFexAXR3Yhu/dF64CTXvI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jkm/nvcA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jkm/nvcA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB3D6C4CEF5; Sat, 12 Jul 2025 18:19:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752344385; bh=18JA2CFvvLjj5f+98x4TkT52FEd6gHAjRqnjGDZeXd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jkm/nvcAjSdUO/lFEn7mG0fX7t+E6KdOwCNHvDIZm5VXiPhNiDGvXg/Lq9Zfu1iv9 fUYPgBQIxhiEtsATYNTrE952ea4BMe+PkgjvHDDB985Qaw+sGXU4JXSSfFfseu8Pjd DRadXP4dCcEjWp+7wZzgVhsPgcZ6XtBF5XgUMRrOKkOpuTymVA/sh6/M8+9mZ1JKhY 0IxJnQqm0/tOQ8ws+NNQnHnERmn1WXQ/u8RsjqitvE+tK+3dDGrsSsl+csmYf5KzwT hBy/Hz3ho8VgcwQF3OYZ0ymwGFm2PStCworxGK0Udp+GPqk7AVh+aiabXnseR39T5Q D4dz3FA5DN0oQ== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Frank Li , Krzysztof Kozlowski , Srinivas Kandagatla Subject: [PATCH 4/8] dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format Date: Sat, 12 Jul 2025 19:19:00 +0100 Message-ID: <20250712181905.6738-5-srini@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250712181905.6738-1-srini@kernel.org> References: <20250712181905.6738-1-srini@kernel.org> 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" From: Frank Li Convert lpc1857-eeprom.txt to yaml format. Signed-off-by: Frank Li Reviewed-by: Krzysztof Kozlowski Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/lpc1857-eeprom.txt | 28 --------- .../bindings/nvmem/nxp,lpc1857-eeprom.yaml | 61 +++++++++++++++++++ 2 files changed, 61 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.= txt create mode 100644 Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eep= rom.yaml diff --git a/Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt b/D= ocumentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt deleted file mode 100644 index 809df68f6e14..000000000000 --- a/Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt +++ /dev/null @@ -1,28 +0,0 @@ -* NXP LPC18xx EEPROM memory NVMEM driver - -Required properties: - - compatible: Should be "nxp,lpc1857-eeprom" - - reg: Must contain an entry with the physical base address and length - for each entry in reg-names. - - reg-names: Must include the following entries. - - reg: EEPROM registers. - - mem: EEPROM address space. - - clocks: Must contain an entry for each entry in clock-names. - - clock-names: Must include the following entries. - - eeprom: EEPROM operating clock. - - resets: Should contain a reference to the reset controller asserting - the EEPROM in reset. - - interrupts: Should contain EEPROM interrupt. - -Example: - - eeprom: eeprom@4000e000 { - compatible =3D "nxp,lpc1857-eeprom"; - reg =3D <0x4000e000 0x1000>, - <0x20040000 0x4000>; - reg-names =3D "reg", "mem"; - clocks =3D <&ccu1 CLK_CPU_EEPROM>; - clock-names =3D "eeprom"; - resets =3D <&rgu 27>; - interrupts =3D <4>; - }; diff --git a/Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yam= l b/Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yaml new file mode 100644 index 000000000000..24c71252846f --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/nxp,lpc1857-eeprom.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP LPC18xx EEPROM memory + +maintainers: + - Frank Li + +properties: + compatible: + const: nxp,lpc1857-eeprom + + reg: + maxItems: 2 + + reg-names: + items: + - const: reg + - const: mem + + clocks: + maxItems: 1 + + clock-names: + items: + - const: eeprom + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - interrupts + - resets + +additionalProperties: false + +examples: + - | + #include + + eeprom@4000e000 { + compatible =3D "nxp,lpc1857-eeprom"; + reg =3D <0x4000e000 0x1000>, + <0x20040000 0x4000>; + reg-names =3D "reg", "mem"; + clocks =3D <&ccu1 CLK_CPU_EEPROM>; + clock-names =3D "eeprom"; + resets =3D <&rgu 27>; + interrupts =3D <4>; + }; --=20 2.43.0 From nobody Tue Oct 7 06:50:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28BBF28DF3F for ; Sat, 12 Jul 2025 18:19:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344387; cv=none; b=J4xI6/SLMa15TeSVE/Bv0scaCfUXQ4LLmFHu+8ngbyrZiTf1zKB65dFJxFuyyy/b7xYNrvh1Z7azDXkv0xFn79oi7iIjhdRCELMk1wdEVDqlZcqwDeUZaBtsTA2MwRepQTTfKCn4e0FhnaXvaG+29yUsXAFnmEz9nEEeoZB9BTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344387; c=relaxed/simple; bh=cKDo2cQYpxbxGJvwA2sWGEMdZk+lmXE1gNeWaC3kzNw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rWBKHzMZgoJULdBs51WuOXRwYc9jLoaLhmeE9Lgnq/wnAwYA84wk9MTrF6DLpWbegYnIfl6TLPrWItBaQmxZRMCBmu/y95QXsLb0ABxcVZkjS3IBuY1PFX1+HpVAsJenBn422R99FdUWRrK3g4QGDSiRDugdhOdoIa/zaSWn6wg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Npb7rfQG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Npb7rfQG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B490CC4CEEF; Sat, 12 Jul 2025 18:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752344386; bh=cKDo2cQYpxbxGJvwA2sWGEMdZk+lmXE1gNeWaC3kzNw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Npb7rfQG2sf758jYUOrQ13QbLjNK/q3ZH2nN4beZxUEAr9YiajoAeXKMNAI3DtJhp YWSRnX+EMkda842LuHkvwE0MrceFyTcSomN6rLP7WLOlUYefszIyjzkYKnHKXf6MnW zvMJUs1cMPSpEX/FVxPGbExAFlp5M2lMxEEjmy0StRfBkQD8+s4eF2uMlspow5rCtl YvHXLAf/4PhZ498uRQC3oo39eJT5mZ6d5+73WwQ7ge0ZVbxLwErDsABCzMnZFjSHXt xoLlgq9ZjlN0dptAp7gUtlArpZgycewh4wwzk2IVItqUVdiuHf8Xhv9lq8CNEhoXeT YKhZnESnPw+8w== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 5/8] nvmem: make nvmem_bus_type constant Date: Sat, 12 Jul 2025 19:19:01 +0100 Message-ID: <20250712181905.6738-6-srini@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250712181905.6738-1-srini@kernel.org> References: <20250712181905.6738-1-srini@kernel.org> 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" From: Greg Kroah-Hartman Now that the driver core can properly handle constant struct bus_type, move the nvmem_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Srinivas Kandagatla Signed-off-by: Greg Kroah-Hartman Reviewed-by: Greg Kroah-Hartman Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 880572ba515a..817f55f3a19e 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -544,7 +544,7 @@ static const struct device_type nvmem_provider_type =3D= { .release =3D nvmem_release, }; =20 -static struct bus_type nvmem_bus_type =3D { +static const struct bus_type nvmem_bus_type =3D { .name =3D "nvmem", }; =20 --=20 2.43.0 From nobody Tue Oct 7 06:50:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0173128ECD8 for ; Sat, 12 Jul 2025 18:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344389; cv=none; b=AL/3b2s8UMD9wI8cnBsoYB3J4De//8Bs0netKhBMB9Ai6Tiq/+GIS1G4IHfH0o6X1suckXMPXLBth4AjpNXfF0RDJgbP5vA/NoPXAcmduCuH6xWt5vWFILAUvAhhr4FjXZGQWoFlv3kBjk2lceBMRMNPs1xaWdmZKtJZ8JC+J5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344389; c=relaxed/simple; bh=F8nyTk0rNJPdqCegfdhw0MY19z9vK2BbR010RYXVKYo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ye0Q3vdlLxUlgdYnzZ3Oty07jfcKHU4f1hUWbXb4dLOlRMMpiomFSUdGKdOBURwXhrN+LbwEhowIisC2XpOIPRYFPbjZpGvc4zrIkr0iFt3630JF3tYGvuc2tiSWTQqv/BbHf3xYXqd/KrsjSPH0XEPlaJKBBYCfhlsc4z6yBok= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZmeaUWc+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZmeaUWc+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29B45C4CEF7; Sat, 12 Jul 2025 18:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752344388; bh=F8nyTk0rNJPdqCegfdhw0MY19z9vK2BbR010RYXVKYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZmeaUWc+JQwaoURi938YtjDhpzKJ2i+sFN/CcC75a7v/deRPH0WHEXB0EnkAT7xLy H40z0tv/ijk92pTMmjyvEKPzuLLDo/d2vJh/Alx1fmeFoGCmwWLtfMcHtAGsQYLpxV it2gxH50j78/eW616R0uKxWv+8y0cNru1g70Z/yks+NOqtAmGa/lHyUBxZLUo84w7n RcbvQ6bpkOX+swCGVUyQ8o8G1dF0x+k8yDQtxLM/AbHRpCmSYUNChoPkvb9si9uHBu S7cmJhgWkjF8TpAH61JGGE3HUEj3aNe0fyWdMOUx9bTBY8d1jKtQcKhMgmFPt4Vtg9 5vGAVWLjzzddw== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Mikhail Kalashnikov , Rob Herring , Srinivas Kandagatla Subject: [PATCH 6/8] dt-bindings: nvmem: SID: Add binding for A523 SID controller Date: Sat, 12 Jul 2025 19:19:02 +0100 Message-ID: <20250712181905.6738-7-srini@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250712181905.6738-1-srini@kernel.org> References: <20250712181905.6738-1-srini@kernel.org> 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" From: Mikhail Kalashnikov The SID controller should be compatible with A64 and others SoC with 0x200 offset. Signed-off-by: Mikhail Kalashnikov Acked-by: Rob Herring (Arm) Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-si= d.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.ya= ml index 4424c3c5e75c..f67470b8a2ed 100644 --- a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml @@ -27,6 +27,7 @@ properties: - enum: - allwinner,sun50i-a100-sid - allwinner,sun50i-h616-sid + - allwinner,sun55i-a523-sid - const: allwinner,sun50i-a64-sid - const: allwinner,sun50i-h5-sid - const: allwinner,sun50i-h6-sid --=20 2.43.0 From nobody Tue Oct 7 06:50:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AF9E28FAB7 for ; Sat, 12 Jul 2025 18:19:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344391; cv=none; b=NbVGU9lyfyWfkYeNvmVyqSFHKo2NvO7JChpIXEYVyQ8khbwtHvjEdo1oLiaJW9TmSbQ4aV67oEIa8qybhwC5pxGULrpFW/vitYZ5pZg6EUf2gp8vLe2zktBqC8S9FPoZ/sQnODTOUm/wFdSHTMJNXMK/VaS7ln3SAozgpHc4o40= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344391; c=relaxed/simple; bh=A/iOY+gJ+thN/iDL6WIQnWt1mWlgKRDfbSb2Mb+mlpk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LQ5fExtvTe04yKxOaYCobD7aYdzvXaLnV3X8haCJ1KJe6Y+N5vaR/kLjtlEreVIugDAjRPqdEB7nqqj+i7BHuQywpsOo4YoYLEPscbVUHys6V0Xp5iyxhZ6CLkpjkQpVmFRYKl/8C+6otZKA6Mi8DPBec/GAmif/CQeiTanjbfg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XQMCYL1O; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XQMCYL1O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02DC0C4CEF1; Sat, 12 Jul 2025 18:19:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752344390; bh=A/iOY+gJ+thN/iDL6WIQnWt1mWlgKRDfbSb2Mb+mlpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XQMCYL1OLe43UIm6dBue3A/hdDbBDnrf73PIzJb1LuNcleODRfXdtaGe9Y7KSw/uQ tzcnx0MrOeAf3Bdzqbm6l1HsgyOF6070anGQH2eaOcPlRRz/QZvIknjlDZqK0pQPVH EJTWY1QMtuTT8v9kn318eBbZP1Uw8vA0gOJChUTmqr0duD69EG+746fOH7eocm/3h+ nl05kL0Ov5VoJRZMn2Ot6lyzQMCDxbUY0kLeEFxus8vsroW2BCFL9ffmLkweM0uAkq w82xmmvrI8NA2h3YbfA+NXdPI/F99QJQUEv5x6O1RMyl5V5ULs6/MKd6/jc1+YaDLp IB/4ZoGoHoWJA== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Chen-Yu Tsai , Johnson Wang , Conor Dooley , AngeloGioacchino Del Regno , Srinivas Kandagatla Subject: [PATCH 7/8] dt-bindings: nvmem: mediatek: efuse: split MT8186/MT8188 from base version Date: Sat, 12 Jul 2025 19:19:03 +0100 Message-ID: <20250712181905.6738-8-srini@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250712181905.6738-1-srini@kernel.org> References: <20250712181905.6738-1-srini@kernel.org> 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" From: Chen-Yu Tsai On MT8186 and MT8188 one of the NVMEM cells contains the GPU speed bin value. In combination with the GPU OPP bindings, on these two platforms there is an implied scheme of converting the cell value to what the GPU OPP "opp-supported-hw" property matches. This does not apply to the base mediatek,efuse hardware, nor does it apply to any of the other platforms that do not have the GPU speed bin cell. The platform maintainer argues that this makes the compatibles incompatible with the base "mediatek,efuse" compatible, as shown in the link given. Deprecate the MT8186/MT8188 + "mediatek,efuse" combination, and add new entries with MT8186 being the base model and MT8188 falling back to MT8186. Link: https://lore.kernel.org/all/11028242-afe4-474a-9d76-cd1bd9208987@coll= abora.com/ Fixes: ff1df1886f43 ("dt-bindings: nvmem: mediatek: efuse: Add support for = MT8188") Cc: Johnson Wang Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/mediatek,efuse.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml b/= Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml index 32b8c1eb4e80..4dc0d42df3e6 100644 --- a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml +++ b/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml @@ -24,6 +24,21 @@ properties: =20 compatible: oneOf: + - items: + - const: mediatek,mt8188-efuse + - const: mediatek,mt8186-efuse + - const: mediatek,mt8186-efuse + + - items: + - enum: + - mediatek,mt8186-efuse + - mediatek,mt8188-efuse + - const: mediatek,efuse + deprecated: true + description: Some compatibles also imply a decoding scheme for the + "gpu-speedbin" cell, and thus are not backward compatible to the + generic "mediatek,efuse" compatible. + - items: - enum: - mediatek,mt7622-efuse @@ -33,8 +48,6 @@ properties: - mediatek,mt7988-efuse - mediatek,mt8173-efuse - mediatek,mt8183-efuse - - mediatek,mt8186-efuse - - mediatek,mt8188-efuse - mediatek,mt8192-efuse - mediatek,mt8195-efuse - mediatek,mt8516-efuse --=20 2.43.0 From nobody Tue Oct 7 06:50:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D925629186F for ; Sat, 12 Jul 2025 18:19:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344392; cv=none; b=URO3M2j30dwgheV4u+JHezWL3kA7WNKbbzGGVmcC6T+hhcXwjWlUqDB7JwqeBqShngX79QEFClKf3W1e3sRYdjcVLVcRJHP3wU6Bc/URoy5RagHO9Nt4PPQKsl8/aOr4wBS/jJ31399VmskYRW/mzAj5vcTNSvAJ5RZuA+83J4k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752344392; c=relaxed/simple; bh=Y3hRCSsldPj5ARMnB/SrLEFEGqOAb0x2ImtikXO+zfw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sXwIORxuVCFVATk6xqifVd2finkLkW/2S0sTb6YfFZNNFabUw6pFvDCuCuYYYSLsFi7t3o4Oabs2OGvw7JAYfPDzB7fjnsThvZye/+3FCrk5jkZAF8l7J0cAZwRD0UTa4YAP2osTXutcW1rM1mh1Y/3/awiEyMQX2O1oJUILa9o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qS10jkcS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qS10jkcS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41132C4CEF5; Sat, 12 Jul 2025 18:19:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752344392; bh=Y3hRCSsldPj5ARMnB/SrLEFEGqOAb0x2ImtikXO+zfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qS10jkcScXsg0HOtLwwIAuTiO5O1qpOBRtwHvHVs76FH9dVsAtD9e5jWvQJMKqIs2 vF6IVkT0wS/4SFz3jVHWMGIh/y9sYl0dPgMlxH72J8I0whYwQqjDNXWAE+Y16a43ZN sRv0/jYnNIwyKtl+UjDwIjKl0+FBID2v5qA7D9K20P7pEUFbfjsLuDrn7o0NdQ1aoE sVb3joPytCJXxToKsc1N86UlRYyPiItFf1PGroXdJl/xPGlOjXT/ke5AFTEcL800yZ ebYriMqfoOEQIlCDcjKqjva+xrdvNBmFX+eUAmllOoiTo2QCJA/k+0CPUNTH76yj99 abwM06w1nm+VQ== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Frank Li , Krzysztof Kozlowski , Srinivas Kandagatla Subject: [PATCH 8/8] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format Date: Sat, 12 Jul 2025 19:19:04 +0100 Message-ID: <20250712181905.6738-9-srini@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250712181905.6738-1-srini@kernel.org> References: <20250712181905.6738-1-srini@kernel.org> 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" From: Frank Li Convert vf610-ocotp.txt to yaml format. Additional changes: - Remove label in examples. - Add include file in examples. - Move reg just after compatible in examples. - Add ref: nvmem.yaml and nvmem-deprecated-cells.yaml - Remove #address-cells and #size-cells from required list to match existed dts file. Signed-off-by: Frank Li Reviewed-by: Krzysztof Kozlowski Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/fsl,vf610-ocotp.yaml | 47 +++++++++++++++++++ .../devicetree/bindings/nvmem/vf610-ocotp.txt | 19 -------- 2 files changed, 47 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp= .yaml delete mode 100644 Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt diff --git a/Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml b= /Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml new file mode 100644 index 000000000000..5aef86a752a6 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/fsl,vf610-ocotp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: On-Chip OTP Memory for Freescale Vybrid + +maintainers: + - Frank Li + +allOf: + - $ref: nvmem.yaml# + - $ref: nvmem-deprecated-cells.yaml + +properties: + compatible: + items: + - enum: + - fsl,vf610-ocotp + - const: syscon + + reg: + maxItems: 1 + + clocks: + items: + - description: ipg clock we associate with the OCOTP peripheral + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + + ocotp@400a5000 { + compatible =3D "fsl,vf610-ocotp", "syscon"; + reg =3D <0x400a5000 0xcf0>; + #address-cells =3D <1>; + #size-cells =3D <1>; + clocks =3D <&clks VF610_CLK_OCOTP>; + }; diff --git a/Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt b/Docu= mentation/devicetree/bindings/nvmem/vf610-ocotp.txt deleted file mode 100644 index 72ba628f6d0b..000000000000 --- a/Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt +++ /dev/null @@ -1,19 +0,0 @@ -On-Chip OTP Memory for Freescale Vybrid - -Required Properties: - compatible: - - "fsl,vf610-ocotp", "syscon" for VF5xx/VF6xx - #address-cells : Should be 1 - #size-cells : Should be 1 - reg : Address and length of OTP controller and fuse map registers - clocks : ipg clock we associate with the OCOTP peripheral - -Example for Vybrid VF5xx/VF6xx: - - ocotp: ocotp@400a5000 { - compatible =3D "fsl,vf610-ocotp", "syscon"; - #address-cells =3D <1>; - #size-cells =3D <1>; - reg =3D <0x400a5000 0xCF0>; - clocks =3D <&clks VF610_CLK_OCOTP>; - }; --=20 2.43.0