]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.17-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Nov 2025 10:59:51 +0000 (05:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Nov 2025 10:59:51 +0000 (05:59 -0500)
added patches:
dt-bindings-eeprom-at25-use-size-for-frams-without-device-id.patch

queue-6.17/dt-bindings-eeprom-at25-use-size-for-frams-without-device-id.patch [new file with mode: 0644]
queue-6.17/series

diff --git a/queue-6.17/dt-bindings-eeprom-at25-use-size-for-frams-without-device-id.patch b/queue-6.17/dt-bindings-eeprom-at25-use-size-for-frams-without-device-id.patch
new file mode 100644 (file)
index 0000000..d6393bf
--- /dev/null
@@ -0,0 +1,44 @@
+From 534c702c3c234665ca2fe426a9fbb12281e55d55 Mon Sep 17 00:00:00 2001
+From: Markus Heidelberg <m.heidelberg@cab.de>
+Date: Fri, 15 Aug 2025 11:58:36 +0200
+Subject: dt-bindings: eeprom: at25: use "size" for FRAMs without device ID
+
+From: Markus Heidelberg <m.heidelberg@cab.de>
+
+commit 534c702c3c234665ca2fe426a9fbb12281e55d55 upstream.
+
+Not all FRAM chips have a device ID and implement the corresponding read
+command. Thus the memory size, which is contained in the device ID,
+cannot be detected and has to be set manually as it is done for EEPROMs.
+
+Link: https://lore.kernel.org/all/20250401133148.38330-1-m.heidelberg@cab.de/
+Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
+Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
+Link: https://lore.kernel.org/r/20250815095839.4219-2-m.heidelberg@cab.de
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ Documentation/devicetree/bindings/eeprom/at25.yaml |    8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+--- a/Documentation/devicetree/bindings/eeprom/at25.yaml
++++ b/Documentation/devicetree/bindings/eeprom/at25.yaml
+@@ -56,6 +56,7 @@ properties:
+     $ref: /schemas/types.yaml#/definitions/uint32
+     description:
+       Total eeprom size in bytes.
++      Also used for FRAMs without device ID where the size cannot be detected.
+   address-width:
+     $ref: /schemas/types.yaml#/definitions/uint32
+@@ -146,4 +147,11 @@ examples:
+             reg = <1>;
+             spi-max-frequency = <40000000>;
+         };
++
++        fram@2 {
++            compatible = "cypress,fm25", "atmel,at25";
++            reg = <2>;
++            spi-max-frequency = <20000000>;
++            size = <2048>;
++        };
+     };
index 619d27af53129f5a277f831bfbd3980f4f38460f..870cfda81a23ba94c3d851d2f42785b51777049c 100644 (file)
@@ -847,3 +847,4 @@ drm-amd-display-reject-modes-with-too-high-pixel-clock-on-dce6-10.patch
 drm-amd-display-use-gfp_nowait-for-allocation-in-interrupt-handler.patch
 drm-amd-display-fix-black-screen-with-hdmi-outputs.patch
 selftests-drv-net-reload-pkt-pointer-after-calling-filter_udphdr.patch
+dt-bindings-eeprom-at25-use-size-for-frams-without-device-id.patch