Skip to contentSkip to conversation

arm64: dts: mt8183-pumpkin: fix dtbs_check warning

PATCH In review [email protected] 5 participants 8 messages Apr 14, 2021 – Apr 16, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 arm64: dts: mt8183-pumpkin: fix dtbs_check warning

From: Matthias Brugger <[email protected]>

Fix unit names to make dtbs_check happy.

---

 arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +2 -2
index eb6e595c2975..0aff5eb52e88 100644
@@ -32,7 +32,7 @@ reserved-memory {
 		#size-cells = <2>;
 		ranges;
 
-		scp_mem_reserved: scp_mem_region {
+		scp_mem_reserved: scp_mem_region@50000000 {
 			compatible = "shared-dma-pool";
 			reg = <0 0x50000000 0 0x2900000>;
 			no-map;
@@ -55,7 +55,7 @@ led-green {
 		};
 	};
 
-	ntc@0 {
+	ntc {
 		compatible = "murata,ncp03wf104";
 		pullup-uv = <1800000>;
 		pullup-ohm = <390000>;
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/3 arm64: dts: mt8183: fix dtbs_check warning

From: Matthias Brugger <[email protected]>

Fix unit names to make dtbs_check happy.

---

 arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183.dtsi +3 -3
index 0ff7b67a6806..c5e822b6b77a 100644
@@ -681,13 +681,13 @@ cpu_thermal: cpu_thermal {
 				sustainable-power = <5000>;
 
 				trips {
-					threshold: trip-point@0 {
+					threshold: trip-point0 {
 						temperature = <68000>;
 						hysteresis = <2000>;
 						type = "passive";
 					};
 
-					target: trip-point@1 {
+					target: trip-point1 {
 						temperature = <80000>;
 						hysteresis = <2000>;
 						type = "passive";
@@ -1103,7 +1103,7 @@ u2port0: usb-phy@0 {
 				status = "okay";
 			};
 
-			u3port0: usb-phy@0700 {
+			u3port0: usb-phy@700 {
 				reg = <0x0700 0x900>;
 				clocks = <&clk26m>;
 				clock-names = "ref";
Signature · 1 line
2.30.2
Reviewed-by Enric Balletbo i Serra on v1 2/3
#2 lore raw

Re: [PATCH 2/3] arm64: dts: mt8183: fix dtbs_check warning

Hi Matthias,

Thank you for your patch.

Missatge de l'adreça <[email protected]> del dia dc., 14 d’abr. 2021 a les 16:48:

Quoted 44 lines

From: Matthias Brugger <[email protected]>

Fix unit names to make dtbs_check happy.

---

 arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183.dtsi +3 -4
index 0ff7b67a6806..c5e822b6b77a 100644
@@ -681,13 +681,13 @@ cpu_thermal: cpu_thermal {
                                sustainable-power = <5000>;
 
                                trips {
-                                       threshold: trip-point@0 {
+                                       threshold: trip-point0 {
                                                temperature = <68000>;
                                                hysteresis = <2000>;
                                                type = "passive";
                                        };
 
-                                       target: trip-point@1 {
+                                       target: trip-point1 {
                                                temperature = <80000>;
                                                hysteresis = <2000>;
                                                type = "passive";
@@ -1103,7 +1103,7 @@ u2port0: usb-phy@0 {
                                status = "okay";
                        };
 
-                       u3port0: usb-phy@0700 {
+                       u3port0: usb-phy@700 {
                                reg = <0x0700 0x900>;
                                clocks = <&clk26m>;
                                clock-names = "ref";
--

2.30.2

Quoted 4 lines

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

#3 lore raw

PATCH 3/3 arm64: dts: mt8183-kukui: fix dtbs_check warnings

In reply to [email protected]

From: Matthias Brugger <[email protected]>

The dsi children don't have any reg property, so we don't need address and size cells. This makes dtbs_check happy.

CC Hsin-Yi Wang <[email protected]>
CC Enric Balletbo i Serra <[email protected]>
CC Nicolas Boichat <[email protected]>

---

 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +1 -2
index ff56bcfa3370..f4dca6a33168 100644
@@ -251,8 +251,7 @@ &cpu7 {
 
 &dsi0 {
 	status = "okay";
-	#address-cells = <1>;
-	#size-cells = <0>;
+
 	panel: panel@0 {
 		/* compatible will be set in board dts */
 		reg = <0>;
Signature · 1 line
2.30.2
#4 lore raw

Re: [PATCH 3/3] arm64: dts: mt8183-kukui: fix dtbs_check warnings

Quoted 4 lines · On Wed, Apr 14, 2021 at 10:46 PM <[email protected]> wrote:

From: Matthias Brugger <[email protected]>

The dsi children don't have any reg property,

Confused, see below.

Quoted 18 lines

so we don't need address and
size cells. This makes dtbs_check happy.

CC Hsin-Yi Wang <[email protected]>
CC Enric Balletbo i Serra <[email protected]>
CC Nicolas Boichat <[email protected]>

---

 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +0 -0
index ff56bcfa3370..f4dca6a33168 100644

arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi &cpu7 { · line 257

Quoted 9 lines
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +1 -2
@@ -251,8 +251,7 @@ &cpu7 {
 
 &dsi0 {
        status = "okay";
-       #address-cells = <1>;
-       #size-cells = <0>;
+
        panel: panel@0 {
                /* compatible will be set in board dts */
                reg = <0>;

^^ isn't that... a reg property?

Quoted 3 lines

--
2.30.2

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

maintainer
#5 lore raw

Re: [PATCH 3/3] arm64: dts: mt8183-kukui: fix dtbs_check warnings

Hi Nicolas,

Quoted 27 lines · Nicolas Boichat
Quoted 4 lines · On Wed, Apr 14, 2021 at 10:46 PM <[email protected]> wrote:

From: Matthias Brugger <[email protected]>

The dsi children don't have any reg property,

Confused, see below.

Quoted 19 lines

so we don't need address and
size cells. This makes dtbs_check happy.

CC Hsin-Yi Wang <[email protected]>
CC Enric Balletbo i Serra <[email protected]>
CC Nicolas Boichat <[email protected]>

---

 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +0 -0
index ff56bcfa3370..f4dca6a33168 100644
@@ -251,8 +251,7 @@ &cpu7 {
 
Quoted 11 lines

arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi &cpu7 { · line 257

Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +1 -2
 &dsi0 {
        status = "okay";
-       #address-cells = <1>;
-       #size-cells = <0>;
+
        panel: panel@0 {
                /* compatible will be set in board dts */
                reg = <0>;

^^ isn't that... a reg property?

Yes, that's my fault. I'm not quite sure why we would need this reg property. In any case also we have it present "dtbs_check W=1" throws the following warning:
mediatek/mt8183.dtsi:1234.22-1246.5: Warning (avoid_unnecessary_addr_size):
/soc/dsi@14014000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Can you have a look at that?

Regards,
Matthias

Quoted 3 lines
Quoted 3 lines

--
2.30.2

#6 lore raw

Re: [PATCH 3/3] arm64: dts: mt8183-kukui: fix dtbs_check warnings

Hi Matthias,

Quoted 42 lines · Matthias Brugger

Hi Nicolas,

Quoted 27 lines · Nicolas Boichat
Quoted 4 lines · On Wed, Apr 14, 2021 at 10:46 PM <[email protected]> wrote:

From: Matthias Brugger <[email protected]>

The dsi children don't have any reg property,

Confused, see below.

Quoted 19 lines

so we don't need address and
size cells. This makes dtbs_check happy.

CC Hsin-Yi Wang <[email protected]>
CC Enric Balletbo i Serra <[email protected]>
CC Nicolas Boichat <[email protected]>

---

 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +0 -0
index ff56bcfa3370..f4dca6a33168 100644
@@ -251,8 +251,7 @@ &cpu7 {
 
Quoted 11 lines

arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi &cpu7 { · line 257

Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +1 -2
 &dsi0 {
        status = "okay";
-       #address-cells = <1>;
-       #size-cells = <0>;
+
        panel: panel@0 {
                /* compatible will be set in board dts */
                reg = <0>;

^^ isn't that... a reg property?

Quoted 9 lines

Yes, that's my fault. I'm not quite sure why we would need this reg property. In any case also we have it present "dtbs_check W=1" throws the following warning:
mediatek/mt8183.dtsi:1234.22-1246.5: Warning (avoid_unnecessary_addr_size):
/soc/dsi@14014000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Can you have a look at that?

I think it is needed reg. See at Documentation/devicetree/bindings/display/dsi-controller.yaml

Regards,
Enric

Quoted 6 lines

Regards,
Matthias

Quoted 3 lines
Quoted 3 lines

--
2.30.2

Reviewed-by Enric Balletbo i Serra on v1 1/3
#7 lore raw
In reply to [email protected]

Hi Matthias,

Thank you for your patch.

Missatge de l'adreça <[email protected]> del dia dc., 14 d’abr. 2021 a les 16:48:

Quoted 37 lines

From: Matthias Brugger <[email protected]>

Fix unit names to make dtbs_check happy.

---

 arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +2 -3
index eb6e595c2975..0aff5eb52e88 100644
@@ -32,7 +32,7 @@ reserved-memory {
                #size-cells = <2>;
                ranges;
 
-               scp_mem_reserved: scp_mem_region {
+               scp_mem_reserved: scp_mem_region@50000000 {
                        compatible = "shared-dma-pool";
                        reg = <0 0x50000000 0 0x2900000>;
                        no-map;
@@ -55,7 +55,7 @@ led-green {
                };
        };
 
-       ntc@0 {
+       ntc {
                compatible = "murata,ncp03wf104";
                pullup-uv = <1800000>;
                pullup-ohm = <390000>;
--

2.30.2

Quoted 4 lines

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek