ubnt-ledbar: adapt for kernel v6.6
[openwrt/openwrt.git] / target / linux / generic / pending-6.6 / 450-12-dt-bindings-mmc-mmc-card-add-block-device-nodes.patch
1 From 86864bf8f40e84dc881c197ef470a88668329dbf Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Mon, 7 Aug 2023 21:21:45 +0100
4 Subject: [PATCH 12/15] dt-bindings: mmc: mmc-card: add block device nodes
5
6 Add nodes representing the block devices exposed by an MMC device
7 including an example involving nvmem-cells.
8
9 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 ---
11 .../devicetree/bindings/mmc/mmc-card.yaml | 45 +++++++++++++++++++
12 1 file changed, 45 insertions(+)
13
14 --- a/Documentation/devicetree/bindings/mmc/mmc-card.yaml
15 +++ b/Documentation/devicetree/bindings/mmc/mmc-card.yaml
16 @@ -26,6 +26,18 @@ properties:
17 Use this to indicate that the mmc-card has a broken hpi
18 implementation, and that hpi should not be used.
19
20 + block:
21 + $ref: /schemas/block/block-device.yaml#
22 + description:
23 + Represents the block storage provided by an SD card or the
24 + main hardware partition of an eMMC.
25 +
26 +patternProperties:
27 + '^boot[0-9]+':
28 + $ref: /schemas/block/block-device.yaml#
29 + description:
30 + Represents a boot hardware partition on an eMMC.
31 +
32 required:
33 - compatible
34 - reg
35 @@ -42,6 +54,39 @@ examples:
36 compatible = "mmc-card";
37 reg = <0>;
38 broken-hpi;
39 +
40 + block {
41 + partitions {
42 + cal_data: block-partition-rf {
43 + partnum = <3>;
44 + partname = "rf";
45 +
46 + nvmem-layout {
47 + compatible = "fixed-layout";
48 + #address-cells = <1>;
49 + #size-cells = <1>;
50 +
51 + eeprom@0 {
52 + reg = <0x0 0x1000>;
53 + };
54 + };
55 + };
56 + };
57 + };
58 +
59 + boot1 {
60 + nvmem-layout {
61 + compatible = "fixed-layout";
62 + #address-cells = <1>;
63 + #size-cells = <1>;
64 +
65 + macaddr: macaddr@a {
66 + compatible = "mac-base";
67 + reg = <0xa 0x6>;
68 + #nvmem-cell-cells = <1>;
69 + };
70 + };
71 + };
72 };
73 };
74