Skip to contentSkip to conversation

arm64: dts: imx8mq-zii-ultra: remove #address-cells of eeprom@a4

PATCH Applied Frank Li 2 participants 4 messages Oct 18, 2024 – Dec 9, 2024

Subsystems (2)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: imx8mq-zii-ultra: remove #address-cells of eeprom@a4

Remove #address-cells and #size-cells of eeprom@a4 because no children nodes under eeprom@a4.

---
 arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi +0 -2
index 0c960efd9b3d5..c7bbba45f3685 100644
@@ -517,8 +517,6 @@ eeprom@a3 {
 		eeprom@a4 {
 			compatible = "zii,rave-sp-eeprom";
 			reg = <0xa4 0x4000>;
-			#address-cells = <1>;
-			#size-cells = <1>;
 			zii,eeprom-name = "main-eeprom";
 		};
 	};
Signature · 1 line
2.34.1
#1 lore raw
Quoted 2 lines · Frank Li

Remove #address-cells and #size-cells of eeprom@a4 because no children nodes under eeprom@a4.

Hmm, bindings/nvmem/zii,rave-sp-eeprom.txt suggests there could be child nodes?

Shawn

Quoted 22 lines
---
 arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi +0 -2
index 0c960efd9b3d5..c7bbba45f3685 100644
@@ -517,8 +517,6 @@ eeprom@a3 {
 		eeprom@a4 {
 			compatible = "zii,rave-sp-eeprom";
 			reg = <0xa4 0x4000>;
-			#address-cells = <1>;
-			#size-cells = <1>;
 			zii,eeprom-name = "main-eeprom";
 		};
 	};
Signature · 1 line
2.34.1
author maintainer
#2 lore raw
Quoted 6 lines · Shawn Guo
Quoted 2 lines · Frank Li

Remove #address-cells and #size-cells of eeprom@a4 because no children nodes under eeprom@a4.

Hmm, bindings/nvmem/zii,rave-sp-eeprom.txt suggests there could be child nodes?

"Data cells are child nodes of eerpom node, bindings for which are documented in Documentation/devicetree/bindings/nvmem/nvmem.txt"

It should be optional property to declear offset, such as mac_address, or watchdog_timeout value.

Here is no children nodes under eeprom@a4, so needn't #address-cells. It should be added only when add children nodes.

Frank

Quoted 26 lines

Shawn

Quoted 22 lines
---
 arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi +0 -3
index 0c960efd9b3d5..c7bbba45f3685 100644
@@ -517,8 +517,6 @@ eeprom@a3 {
 		eeprom@a4 {
 			compatible = "zii,rave-sp-eeprom";
 			reg = <0xa4 0x4000>;
-			#address-cells = <1>;
-			#size-cells = <1>;
 			zii,eeprom-name = "main-eeprom";
 		};
 	};
--

2.34.1