mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
94e0190082
Allow a wider audience to test this pending series. Use about to be submitted v3 which factors out block notification support. Apart from dropping the no longer needed (and problematic) fallback for for the 'partitions' node being present at the device parent there are no intended functional changes. As opening a block device as file is not supported yet in Kernel v6.6, use the previous method as backporting seems a bit too involving. Fixes: #15642 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
75 lines
2.3 KiB
Diff
75 lines
2.3 KiB
Diff
From f7ec19b34d1b7e934a58ceb102369bbd30b2631d Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Thu, 30 May 2024 03:15:11 +0100
|
|
Subject: [PATCH 6/9] dt-bindings: mmc: mmc-card: add block device nodes
|
|
|
|
Add nodes representing the block devices exposed by an MMC device
|
|
including an example involving nvmem-cells.
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
---
|
|
.../devicetree/bindings/mmc/mmc-card.yaml | 45 +++++++++++++++++++
|
|
1 file changed, 45 insertions(+)
|
|
|
|
--- a/Documentation/devicetree/bindings/mmc/mmc-card.yaml
|
|
+++ b/Documentation/devicetree/bindings/mmc/mmc-card.yaml
|
|
@@ -26,6 +26,18 @@ properties:
|
|
Use this to indicate that the mmc-card has a broken hpi
|
|
implementation, and that hpi should not be used.
|
|
|
|
+ block:
|
|
+ $ref: /schemas/block/block-device.yaml#
|
|
+ description:
|
|
+ Represents the block storage provided by an SD card or the
|
|
+ main hardware partition of an eMMC.
|
|
+
|
|
+patternProperties:
|
|
+ '^boot[0-9]+':
|
|
+ $ref: /schemas/block/block-device.yaml#
|
|
+ description:
|
|
+ Represents a boot hardware partition on an eMMC.
|
|
+
|
|
required:
|
|
- compatible
|
|
- reg
|
|
@@ -42,6 +54,39 @@ examples:
|
|
compatible = "mmc-card";
|
|
reg = <0>;
|
|
broken-hpi;
|
|
+
|
|
+ block {
|
|
+ partitions {
|
|
+ cal_data: block-partition-rf {
|
|
+ partnum = <3>;
|
|
+ partname = "rf";
|
|
+
|
|
+ nvmem-layout {
|
|
+ compatible = "fixed-layout";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ eeprom@0 {
|
|
+ reg = <0x0 0x1000>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ boot1 {
|
|
+ nvmem-layout {
|
|
+ compatible = "fixed-layout";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ macaddr: macaddr@a {
|
|
+ compatible = "mac-base";
|
|
+ reg = <0xa 0x6>;
|
|
+ #nvmem-cell-cells = <1>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
|