Skip to contentSkip to conversation

dt-bindings: mfd: mc13xxx: Add the unit address to sysled

PATCH Applied Fabio Estevam 3 participants 6 messages Dec 1, 2017 – Dec 15, 2017 1 message not in the archive

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: mfd: mc13xxx: Add the unit address to sysled

From: Fabio Estevam <[email protected]>

As the 'reg' property is mandatory in the subnodes, improve the example by adding the unit address to the sysled node.

This prevents the following build warning with W=1:

Node /soc/aips@70000000/spba@70000000/ecspi@70010000/pmic@0/leds/sysled0 has a reg or ranges property, but no unit name

---
 Documentation/devicetree/bindings/mfd/mc13xxx.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/mfd/mc13xxx.txt +1 -1
index ac235fe..8261ea7 100644
@@ -130,7 +130,7 @@ ecspi@70010000 { /* ECSPI1 */
 			#size-cells = <0>;
 			led-control = <0x000 0x000 0x0e0 0x000>;
 
-			sysled {
+			sysled@3 {
 				reg = <3>;
 				label = "system:red:live";
 				linux,default-trigger = "heartbeat";
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive
Quoted 5 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

As the 'reg' property is mandatory in the subnodes, improve the example by adding the unit address to the sysled node.

Quoted 8 lines

This prevents the following build warning with W=1:

Node /soc/aips@70000000/spba@70000000/ecspi@70010000/pmic@0/leds/sysled0 has a reg or ranges property, but no unit name

---
 Documentation/devicetree/bindings/mfd/mc13xxx.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Why do I have 2 identical patches in my inbox?

Quoted 13 lines
Documentation/devicetree/bindings/mfd/mc13xxx.txt +1 -1
index ac235fe..8261ea7 100644
@@ -130,7 +130,7 @@ ecspi@70010000 { /* ECSPI1 */
 			#size-cells = <0>;
 			led-control = <0x000 0x000 0x0e0 0x000>;
 
-			sysled {
+			sysled@3 {
 				reg = <3>;
 				label = "system:red:live";
 				linux,default-trigger = "heartbeat";
Signature · 8 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
Quoted 9 lines · Lee Jones
Quoted 7 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

As the 'reg' property is mandatory in the subnodes, improve the example by adding the unit address to the sysled node.

This prevents the following build warning with W=1:

Quoted 8 lines
Quoted 6 lines

Node /soc/aips@70000000/spba@70000000/ecspi@70010000/pmic@0/leds/sysled0 has a reg or ranges property, but no unit name

---
 Documentation/devicetree/bindings/mfd/mc13xxx.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Why do I have 2 identical patches in my inbox?

There was a typo in the mailing list address in the first one, sorry. --
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Reviewed-by
#4 lore raw
In reply to a message not in the archive
Quoted 8 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

As the 'reg' property is mandatory in the subnodes, improve the example by adding the unit address to the sysled node.

This prevents the following build warning with W=1:

Node /soc/aips@70000000/spba@70000000/ecspi@70010000/pmic@0/leds/sysled0 has a reg or ranges property, but no unit name

Even if the doc file could compile, looks like the name was sysled not sysled0.

Quoted 5 lines
---
 Documentation/devicetree/bindings/mfd/mc13xxx.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

In any case,

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Hi Rob,

Quoted 6 lines · Rob Herring
Quoted 5 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

As the 'reg' property is mandatory in the subnodes, improve the example by adding the unit address to the sysled node.

Quoted 6 lines
Quoted 3 lines

This prevents the following build warning with W=1:

Node /soc/aips@70000000/spba@70000000/ecspi@70010000/pmic@0/leds/sysled0 has a reg or ranges property, but no unit name

Even if the doc file could compile, looks like the name was sysled not sysled0.

The sysled0 name I got from arch/arm/boot/dts/imx51-zii-rdu1.dts, where I fixed the real warning:

https://www.spinics.net/lists/arm-kernel/msg620322.html

Quoted 9 lines
Quoted 5 lines
---
 Documentation/devicetree/bindings/mfd/mc13xxx.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

In any case,

Thanks
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#6 lore raw
In reply to a message not in the archive
Quoted 5 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

As the 'reg' property is mandatory in the subnodes, improve the example by adding the unit address to the sysled node.

Quoted 8 lines

This prevents the following build warning with W=1:

Node /soc/aips@70000000/spba@70000000/ecspi@70010000/pmic@0/leds/sysled0 has a reg or ranges property, but no unit name

---
 Documentation/devicetree/bindings/mfd/mc13xxx.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 8 lines
Lee Jones
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html