Skip to contentSkip to conversation

arm64: dts: exynos: Format with dtfmt

PATCH Applied Waqar Hameed 2 participants 24 messages Sep 28 – Oct 1

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

cover arm64: dts: exynos: Format with dtfmt

I was looking through the notes for the last Devicetree microconference at Linux Plumbers (LPC) 2025 [1], and realized that the tool I have been working on might be of interest here: dtfmt - a Devicetree Source formatter [2].

dtfmt uses a parser with lexical grammar (tree-sitter) directly ported from the actual Device Tree Compiler's (dtc) lexer/parser, also (hand)written by me [3]. It is primarily designed for the Linux kernel and currently parses all 6872 devicetree files in the tree successfully (found with find . -iregex ".+\.dts[io]?$").

This tool was developed out of frustration when reviewing devicetree patches internally at my company Axis. I would have published it earlier if I was aware of the on-going discussions at LPC 2025. It only caught my attention since I'm planning to attend LPC this year (especially the Devicetree microconference and would therefore love to discuss this more in-person!).

This patch series is only a small demonstration of dtfmt. Obviously one can run dtfmt for all files and generate a much bigger diff, but I just chose arch/arm64/boot/dts/exynos/ here. Primarily to get Krzysztof in the "To:"-field :)

Please note that since we don't currently have a _definitive_ style guide for Devictree Source files, dtfmt tries to be pragmatic and try to "guess" the intended style (e.g. alignment of arrays and comma separated property data). Some things have been left out (for now), because it's too hard to implement without any concrete style decisions in place (e.g. alignment of comments, long line wrapping etc.). dtfmt will continue to develop and will always align with the Linux kernel. Feedback (and collaboration) is therefore greatly appreciated!

[1] https://lpc.events/event/19/sessions/237/attachments/1713/4459/Notes%20-%20Devicetree%20MC%20-%20LPC%202025.pdf
[1] https://codeberg.org/whame/dtfmt
Mirror: https://github.com/whame/dtfmt
[2] https://codeberg.org/whame/tree-sitter-devicetree
Mirror: https://github.com/whame/tree-sitter-devicetree

Waqar Hameed (16):
arm64: dts: exynos2200: Remove empty line at end of node
arm64: dts: exynos5433: Use tabs for indentation
arm64: dts: exynos7: Remove empty line at end of node
arm64: dts: exynos7: Align comments with minimal whitespace
arm64: dts: exynos7885: Fix format of line comment
arm64: dts: exynos7885: Align end of node definition brace
arm64: dts: exynos850: Align end of node definition brace
arm64: dts: exynos850: Use tabs for indentation
arm64: dts: exynos8850: Add missing space in compatible
arm64: dts: exynos8855: Remove empty line at end of node
arm64: dts: exynos8855: Use tabs for indentation
arm64: dts: exynosautov920: Add space before line comments
arm64: dts: exynosautov920: Add missing space in compatible
arm64: dts: exynosautov920: Remove empty line at end of node
arm64: dts: exynos: gs101: Use tabs for indentation
arm64: dts: exynos: gs101: Add space before line comments

 arch/arm64/boot/dts/exynos/exynos2200-pinctrl.dtsi   |  2 --
 arch/arm64/boot/dts/exynos/exynos2200.dtsi           |  1 -
 .../arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi |  4 ++--
 arch/arm64/boot/dts/exynos/exynos7-espresso.dts      |  1 -
 arch/arm64/boot/dts/exynos/exynos7.dtsi              |  8 ++++----
 arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi   |  4 ++--
 arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi    |  2 +-
 arch/arm64/boot/dts/exynos/exynos850.dtsi            |  8 ++++----
 arch/arm64/boot/dts/exynos/exynos8855-smdk.dts       |  3 +--
 arch/arm64/boot/dts/exynos/exynos8855.dtsi           |  8 ++++----
 arch/arm64/boot/dts/exynos/exynos8895-pinctrl.dtsi   | 10 +++++-----
 arch/arm64/boot/dts/exynos/exynosautov920.dtsi       |  9 ++++-----
 arch/arm64/boot/dts/exynos/google/gs101.dtsi         | 12 ++++++------
 13 files changed, 33 insertions(+), 39 deletions(-)

base-commit: 72d3fcf802c45d00b300f25b848a93c3a2bd7c7e

Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/16 arm64: dts: exynos2200: Remove empty line at end of node

There shouldn't be an empty line at end of node definition. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos2200-pinctrl.dtsi | 2 --
 arch/arm64/boot/dts/exynos/exynos2200.dtsi         | 1 -
 2 files changed, 3 deletions(-)
arch/arm64/boot/dts/exynos/exynos2200-pinctrl.dtsi +0 -2
index 5877da7baf5c4..d5aede3af15f7 100644
@@ -702,7 +702,6 @@ uart20_bus_dual: uart20-bus-dual-pins {
 		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
 		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 	};
-
 };
 
 &pinctrl_hsi1 {
@@ -1171,7 +1170,6 @@ uart12_bus_dual: uart12-bus-dual-pins {
 		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
 		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 	};
-
 };
 
 &pinctrl_peric2 {
arch/arm64/boot/dts/exynos/exynos2200.dtsi +0 -1
index b1c134f223245..3b853d66e19ce 100644
@@ -712,7 +712,6 @@ hsi2c_21: i2c@10970000 {
 
 				status = "disabled";
 			};
-
 		};
 
 		cmu_hsi0: clock-controller@10a00000 {
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH 01/16] arm64: dts: exynos2200: Remove empty line at end of node

Quoted 14 lines · Waqar Hameed

There shouldn't be an empty line at end of node definition. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos2200-pinctrl.dtsi | 2 --
 arch/arm64/boot/dts/exynos/exynos2200.dtsi         | 1 -
 2 files changed, 3 deletions(-)
arch/arm64/boot/dts/exynos/exynos2200-pinctrl.dtsi +0 -0
index 5877da7baf5c4..d5aede3af15f7 100644

arch/arm64/boot/dts/exynos/exynos2200-pinctrl.dtsi uart20_bus_dual: uart20-bus-dual-pins { · line 705

Quoted 5 lines
arch/arm64/boot/dts/exynos/exynos2200-pinctrl.dtsi +0 -1
@@ -702,7 +702,6 @@ uart20_bus_dual: uart20-bus-dual-pins {
 		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
 		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 	};
-
 };

There is no such code.

Best regards,
Krzysztof

#3 lore raw

PATCH 2/16 arm64: dts: exynos5433: Use tabs for indentation

In reply to Waqar Hameed

Tabs should be used instead of whitespace for indentation. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +2 -2
index 0ad02a098765d..4f3124069849d 100644
@@ -1064,8 +1064,8 @@ &ppmu_d1_general {
 
 	events {
 		ppmu_event0_d1_general: ppmu-event0-d1-general {
-		       event-name = "ppmu-event0-d1-general";
-	       };
+			event-name = "ppmu-event0-d1-general";
+		};
 	};
 };
 
Signature · 1 line
2.43.0
#4 lore raw

PATCH 3/16 arm64: dts: exynos7: Remove empty line at end of node

In reply to Waqar Hameed

There shouldn't be an empty line at end of node definition. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +0 -1
index b3d5b447aeb68..bbc5df5a1dace 100644
@@ -52,7 +52,6 @@ usb3drd_boost_5v: regulator-usb3drd-boost {
 		pinctrl-0 = <&usb3drd_boost_en>;
 		enable-active-high;
 	};
-
 };
 
 &fin_pll {
Signature · 1 line
2.43.0
#5 lore raw

PATCH 4/16 arm64: dts: exynos7: Align comments with minimal whitespace

In reply to Waqar Hameed

There is no need to have superfluous whitespace to align comments. Use minimal amount to achieve the same thing. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos7.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/exynos/exynos7.dtsi +4 -4
index 20e24db952fa6..865add183ea2b 100644
@@ -669,10 +669,10 @@ tmuctrl_0: tmu@10060000 {
 
 		ufs: ufs@15570000 {
 			compatible = "samsung,exynos7-ufs";
-			reg = <0x15570000 0x100>,  /* 0: HCI standard */
-			      <0x15570100 0x100>,  /* 1: Vendor specified */
-			      <0x15571000 0x200>,  /* 2: UNIPRO */
-			      <0x15572000 0x300>;  /* 3: UFS protector */
+			reg = <0x15570000 0x100>, /* 0: HCI standard */
+			      <0x15570100 0x100>, /* 1: Vendor specified */
+			      <0x15571000 0x200>, /* 2: UNIPRO */
+			      <0x15572000 0x300>; /* 3: UFS protector */
 			reg-names = "hci", "vs_hci", "unipro", "ufsp";
 			interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clock_fsys1 ACLK_UFS20_LINK>,
Signature · 1 line
2.43.0
#6 lore raw

PATCH 5/16 arm64: dts: exynos7885: Fix format of line comment

In reply to Waqar Hameed

There should be a space before ending comment delimiter. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi +1 -1
index 34bb121919556..f4c89cbbafe70 100644
@@ -638,7 +638,7 @@ uart4_bus_single: uart4-bus-single-pins {
 		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 	};
 
-	/* USI1 UART_HSI2C1*/
+	/* USI1 UART_HSI2C1 */
 	uart4_bus_dual: uart4-bus-dual-pins {
 		samsung,pins = "gpc2-5", "gpc2-4";
 		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
Signature · 1 line
2.43.0
#7 lore raw

PATCH 6/16 arm64: dts: exynos7885: Align end of node definition brace

In reply to Waqar Hameed

End of node definition should be indented with a tab only. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/exynos/exynos7885-pinctrl.dtsi +1 -1
index f4c89cbbafe70..76fb239e4322b 100644
@@ -809,7 +809,7 @@ uart5_bus_single: uart5-bus-single-pins {
 		samsung,pins = "gpp8-1", "gpp8-0", "gpp7-1", "gpp7-0";
 		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
 		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
-	  };
+	};
 
 	/* USI2 UART_HSI2C1 */
 	uart5_bus_dual: uart5-bus-dual-pins {
Signature · 1 line
2.43.0
#8 lore raw

PATCH 7/16 arm64: dts: exynos850: Align end of node definition brace

In reply to Waqar Hameed

End of node definition should be indented with a tab only. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi +1 -1
index e3f1ae8dedbff..523df53ee980a 100644
@@ -362,7 +362,7 @@ sd2_cmd_pins: sd2-cmd-pins {
 		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
 		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
 		samsung,pin-drv = <EXYNOS850_HSI_PIN_DRV_LV2>;
-	 };
+	};
 
 	sd2_bus1_pins: sd2-bus1-pins {
 		samsung,pins = "gpf2-2";
Signature · 1 line
2.43.0
#9 lore raw

PATCH 8/16 arm64: dts: exynos850: Use tabs for indentation

In reply to Waqar Hameed

Tabs should be used instead of whitespace for indentation. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos850.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/exynos/exynos850.dtsi +4 -4
index 911643008b9f5..89069c19329c0 100644
@@ -164,10 +164,10 @@ timer {
 		compatible = "arm,armv8-timer";
 		/* Hypervisor Virtual Timer interrupt is not wired to GIC */
 		interrupts =
-		     <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
-		     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
-		     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
-		     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
+			<GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
+			<GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
+			<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
+			<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
 	};
 
 	soc: soc@0 {
Signature · 1 line
2.43.0
#10 lore raw

PATCH 9/16 arm64: dts: exynos8850: Add missing space in compatible

In reply to Waqar Hameed

Tabs should be a space between multiple property data. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos8855-smdk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/exynos/exynos8855-smdk.dts +1 -1
index e74ff8a1bbcf6..ec6db81536a4e 100644
@@ -14,7 +14,7 @@
 
 / {
 	model = "Samsung Exynos8855 SMDK board";
-	compatible = "samsung,exynos8855-smdk","samsung,exynos8855";
+	compatible = "samsung,exynos8855-smdk", "samsung,exynos8855";
 
 	chosen {
 	};
Signature · 1 line
2.43.0
maintainer Applied
#11 lore raw

Re: (subset) [PATCH 09/16] arm64: dts: exynos8850: Add missing space in compatible

Quoted 2 lines · Waqar Hameed

Tabs should be a space between multiple property data. Found/fixed with dtfmt (Devicetree Source formatter).

Applied, thanks!

[09/16] arm64: dts: exynos8850: Add missing space in compatible

        https://git.kernel.org/krzk/linux/c/0e5c0ebc0faeaa52da10feeb159dd8660a0b2f4b

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#12 lore raw

PATCH 10/16 arm64: dts: exynos8855: Remove empty line at end of node

In reply to Waqar Hameed

There shouldn't be an empty line at end of node definition. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos8855-smdk.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/exynos/exynos8855-smdk.dts +0 -1
index ec6db81536a4e..2dade82fe126c 100644
@@ -23,7 +23,6 @@ memory@80000000 {
 		device_type = "memory";
 		reg = <0x0 0x80000000 0x80000000>;
 	};
-
 };
 
 &oscclk {
Signature · 1 line
2.43.0
#13 lore raw

PATCH 11/16 arm64: dts: exynos8855: Use tabs for indentation

In reply to Waqar Hameed

Tabs should be used instead of whitespace for indentation. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynos8855.dtsi         |  8 ++++----
 arch/arm64/boot/dts/exynos/exynos8895-pinctrl.dtsi | 10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)
arch/arm64/boot/dts/exynos/exynos8855.dtsi +4 -4
index 0333b80eba845..e43d26d716552 100644
@@ -199,10 +199,10 @@ timer {
 		compatible = "arm,armv8-timer";
 		/* Hypervisor Virtual Timer interrupt is not wired to GIC */
 		interrupts =
-		     <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
-		     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
-		     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
-		     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
+			<GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
+			<GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
+			<GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
+			<GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
 	};
 };
 
arch/arm64/boot/dts/exynos/exynos8895-pinctrl.dtsi +5 -5
index 16903ce63a32d..4510b39c5e401 100644
@@ -111,11 +111,11 @@ uart1_bus: uart1-bus-pins {
 	};
 
 	wlan_host_wake: wlan-host-wake-pins {
-		  samsung,pins = "gpa0-7";
-		  samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
-		  samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
-		  samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
-		  samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_DOWN>;
+		samsung,pins = "gpa0-7";
+		samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
+		samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
+		samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>;
+		samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_DOWN>;
 	};
 };
 
Signature · 1 line
2.43.0
#14 lore raw

PATCH 12/16 arm64: dts: exynosautov920: Add space before line comments

In reply to Waqar Hameed

There should be a space before start of comment delimiter. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynosautov920.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/exynos/exynosautov920.dtsi +3 -3
index 399b56b4dbdd9..d2b694a7e6f9d 100644
@@ -265,7 +265,7 @@ l3_cache_cl0: l3-cache0 {
 			compatible = "cache";
 			cache-level = <3>;
 			cache-unified;
-			cache-size = <0x200000>;/* 2MB L3 cache for cpu cluster-0 */
+			cache-size = <0x200000>; /* 2MB L3 cache for cpu cluster-0 */
 			cache-line-size = <64>;
 			cache-sets = <2048>;
 		};
@@ -274,7 +274,7 @@ l3_cache_cl1: l3-cache1 {
 			compatible = "cache";
 			cache-level = <3>;
 			cache-unified;
-			cache-size = <0x200000>;/* 2MB L3 cache for cpu cluster-1 */
+			cache-size = <0x200000>; /* 2MB L3 cache for cpu cluster-1 */
 			cache-line-size = <64>;
 			cache-sets = <2048>;
 		};
@@ -283,7 +283,7 @@ l3_cache_cl2: l3-cache2 {
 			compatible = "cache";
 			cache-level = <3>;
 			cache-unified;
-			cache-size = <0x100000>;/* 1MB L3 cache for cpu cluster-2 */
+			cache-size = <0x100000>; /* 1MB L3 cache for cpu cluster-2 */
 			cache-line-size = <64>;
 			cache-sets = <1365>;
 		};
Signature · 1 line
2.43.0
#15 lore raw

PATCH 13/16 arm64: dts: exynosautov920: Add missing space in compatible

In reply to Waqar Hameed

Tabs should be a space between multiple property data. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynosautov920.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/exynos/exynosautov920.dtsi +1 -1
index d2b694a7e6f9d..ba02fc28e42eb 100644
@@ -1429,7 +1429,7 @@ wakeup-interrupt-controller {
 
 		pmu_system_controller: system-controller@11860000 {
 			compatible = "samsung,exynosautov920-pmu",
-				     "samsung,exynos7-pmu","syscon";
+				     "samsung,exynos7-pmu", "syscon";
 			reg = <0x11860000 0x10000>;
 		};
 
Signature · 1 line
2.43.0
maintainer Applied
#16 lore raw

Re: (subset) [PATCH 13/16] arm64: dts: exynosautov920: Add missing space in compatible

Quoted 2 lines · Waqar Hameed

Tabs should be a space between multiple property data. Found/fixed with dtfmt (Devicetree Source formatter).

Applied, thanks!

[13/16] arm64: dts: exynosautov920: Add missing space in compatible
(no commit info)

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
#17 lore raw

PATCH 14/16 arm64: dts: exynosautov920: Remove empty line at end of node

In reply to Waqar Hameed

There shouldn't be an empty line at end of node definition. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/exynosautov920.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/exynos/exynosautov920.dtsi +0 -1
index ba02fc28e42eb..65a75b18d3739 100644
@@ -901,7 +901,6 @@ spi_8: spi@10980000 {
 
 				status = "disabled";
 			};
-
 		};
 
 		pwm: pwm@109b0000 {
Signature · 1 line
2.43.0
#18 lore raw

PATCH 15/16 arm64: dts: exynos: gs101: Use tabs for indentation

In reply to Waqar Hameed

Tabs should be used instead of whitespace for indentation. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/google/gs101.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/exynos/google/gs101.dtsi +5 -5
index bfceea5486f46..b67d98ff99fc4 100644
@@ -1928,11 +1928,11 @@ apm_sram: sram@2039000 {
 	timer {
 		compatible = "arm,armv8-timer";
 		interrupts =
-		   <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>,
-		   <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>,
-		   <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>,
-		   <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>,
-		   <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>;
+			<GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>,
+			<GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>,
+			<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>,
+			<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>,
+			<GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW) 0>;
 	};
 };
 
Signature · 1 line
2.43.0
#19 lore raw

PATCH 16/16 arm64: dts: exynos: gs101: Add space before line comments

In reply to Waqar Hameed

There should be a space before start of comment delimiter. Found/fixed with dtfmt (Devicetree Source formatter).

---
 arch/arm64/boot/dts/exynos/google/gs101.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/exynos/google/gs101.dtsi +1 -1
index b67d98ff99fc4..1af8087838467 100644
@@ -661,7 +661,7 @@ gic: interrupt-controller@10400000 {
 			#interrupt-cells = <4>;
 			interrupt-controller;
 			reg = <0x10400000 0x10000>, /* GICD */
-			      <0x10440000 0x100000>;/* GICR * 8 */
+			      <0x10440000 0x100000>; /* GICR * 8 */
 			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
 
 			ppi-partitions {
Signature · 1 line
2.43.0
#20 lore raw
In reply to Waqar Hameed
Quoted 6 lines · Waqar Hameed

I was looking through the notes for the last Devicetree microconference at Linux Plumbers (LPC) 2025 [1], and realized that the tool I have been working on might be of interest here: dtfmt - a Devicetree Source formatter [2].

dtfmt uses a parser with lexical grammar (tree-sitter) directly ported

We do not use dtfmt. I think you missed entire recent work and recent commits, where git log would point you.

https://lore.kernel.org/all/20260911-b4-dts-samsung-cleanup-strict-continued-v1-0-9aa55051c42b@oss.qualcomm.com/

Best regards,
Krzysztof

#21 lore raw
Quoted 9 lines · On Tue, Sep 29, 2026 at 07:43 +0200 Krzysztof Kozlowski <[email protected]> wrote:
Quoted 6 lines · Waqar Hameed

I was looking through the notes for the last Devicetree microconference at Linux Plumbers (LPC) 2025 [1], and realized that the tool I have been working on might be of interest here: dtfmt - a Devicetree Source formatter [2].

dtfmt uses a parser with lexical grammar (tree-sitter) directly ported

We do not use dtfmt.

Not sure what you mean here. We couldn't have used dtfmt since it didn't exist until I published it? Are you maybe referring to "formatters" as in general?

I'm not going to argue _why_ formatters (for Devicetree Source) are good thing to have, Konrad Dybcio did a very good job of that during his presentation [1].

Quoted 4 lines

I think you missed entire recent work and recent
commits, where git log would point you.

https://lore.kernel.org/all/20260911-b4-dts-samsung-cleanup-strict-continued-v1-0-9aa55051c42b@oss.qualcomm.com/

I did a git pull on master and started from there. Nevertheless, maybe it was good to "miss it" and do the "double work" here, to show what dtfmt caught that previous work missed.

Let me know if you want me to run it on arch/arm/boot/dts/samsung to show some more examples. Or even better, you could play with it yourself :)

[1] https://www.youtube.com/live/2Gput2daq4c?si=A4F2CvstRef1qD6e&t=28246

#22 lore raw
Quoted 8 lines · Waqar Hameed
Quoted 6 lines · On Tue, Sep 29, 2026 at 07:43 +0200 Krzysztof Kozlowski <[email protected]> wrote:
Quoted 5 lines · Waqar Hameed

I was looking through the notes for the last Devicetree microconference at Linux Plumbers (LPC) 2025 [1], and realized that the tool I have been working on might be of interest here: dtfmt - a Devicetree Source formatter [2].

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

dtfmt uses a parser with lexical grammar (tree-sitter) directly ported

We do not use dtfmt.

Not sure what you mean here. We couldn't have used dtfmt since it didn't

I mixed it up with dt-tools from Axel.

Quoted 7 lines

exist until I published it? Are you maybe referring to "formatters" as in general?

I'm not going to argue _why_ formatters (for Devicetree Source) are good thing to have, Konrad Dybcio did a very good job of that during his presentation [1].

Quoted 6 lines
Quoted 4 lines

I think you missed entire recent work and recent
commits, where git log would point you.

https://lore.kernel.org/all/20260911-b4-dts-samsung-cleanup-strict-continued-v1-0-9aa55051c42b@oss.qualcomm.com/

I did a git pull on master and started from there. Nevertheless,

master from Linus? That's missing entire development for this cycle. The easiest is to work on recent linux-next.

Quoted 5 lines

maybe it was good to "miss it" and do the "double work" here, to show what dtfmt caught that previous work missed.

Let me know if you want me to run it on arch/arm/boot/dts/samsung to show some more examples. Or even better, you could play with it yourself

Sure, I left arm/samsung for the community to deal with, just note that Henrik Grimler mentioned in IRC he was working on that.

Best regards,
Krzysztof

#23 lore raw

On Thu, Oct 01, 2026 at 11:06 +0200 Krzysztof Kozlowski <[email protected]> wrote:

[...]

Quoted 5 lines
Quoted 2 lines

Let me know if you want me to run it on arch/arm/boot/dts/samsung to show some more examples. Or even better, you could play with it yourself

Sure, I left arm/samsung for the community to deal with, just note that Henrik Grimler mentioned in IRC he was working on that.

Yup, I have now synced with Henrik Grimler about this (he's my colleague). He'll use dtfmt and do a clean-up on arch/arm/boot/dts/samsung.

I'm thinking about doing arch/arm/boot/dts/qcom just for also showcasing it for Konrad. He might just not have had time to look a this thread yet, but I'll just send the patches either way...