Skip to content

nvmem: allow specifying cells by just names in DT

Rafał Miłecki linux-arm-kernel linux-devicetree lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesIn review
  2. v23 patches 1 replySuperseded
  3. v13 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: nvmem: make "reg" property optionalDocumentation/devicetree/bindings/nvmem/nvmem.yaml+0 -31 reply
2/3dt-bindings: nvmem: brcm,nvram: add basic NVMEM cellsDocumentation/devicetree/bindings/nvmem/brcm,nvram.yaml+23 -22 replies
3/3nvmem: core: add cell name based matching of DT cell nodesdrivers/nvmem/core.c+27 -01 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/3] nvmem: allow specifying cells by just names in DT

From: Rafał Miłecki <[email protected]>

These changes will allow me to improve BCM5301X support with:

arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts +8 -0
index 24ae3c8a3..9efcb2424 100644
@@ -25,6 +25,9 @@ memory@0 {
 	nvram@1eff0000 {
 		compatible = "brcm,nvram";
 		reg = <0x1eff0000 0x10000>;
+
+		et0macaddr: et0macaddr {
+		};
 	};
 
 	leds {
@@ -72,6 +75,11 @@ restart {
 	};
 };
 
+&gmac0 {
+	nvmem-cells = <&et0macaddr>;
+	nvmem-cell-names = "mac-address";
+};
+
 &usb3 {
 	vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
 };

Rafał Miłecki (3):
dt-bindings: nvmem: make "reg" property optional
dt-bindings: nvmem: brcm,nvram: add basic NVMEM cells
nvmem: core: add cell name based matching of DT cell nodes

 .../devicetree/bindings/nvmem/brcm,nvram.yaml | 25 +++++++++++++++--
 .../devicetree/bindings/nvmem/nvmem.yaml      |  3 ---
 drivers/nvmem/core.c                          | 27 +++++++++++++++++++
 3 files changed, 50 insertions(+), 5 deletions(-)
Signature · 1 line
2.34.1