[PATCH 4/7] arm64: dts: amlogic: g12: Add ranges to periphs pinctrl node

Ronald Claveau via B4 Relay devnull+linux-kernel-dev.aliel.fr at kernel.org
Sun Nov 15 14:29:39 PST 2026


From: Ronald Claveau <linux-kernel-dev at aliel.fr>

Building the amlogic DTBs with W=1 reports the following warnings
for the periphs pinctrl node:

  meson-g12-common.dtsi:271.33-1554.7: Warning (unit_address_vs_reg):
  /soc/bus at ff600000/bus at 34400/pinctrl at 40: node has a unit name, but no
  reg or ranges property
  meson-g12-common.dtsi:1768.27-2040.6: Warning (unit_address_vs_reg):
  /soc/bus at ff800000/pinctrl at 14: node has a unit name, but no reg
  or ranges property
  meson-g12-common.dtsi:271.33-1554.7: Warning (simple_bus_reg):
  /soc/bus at ff600000/bus at 34400/pinctrl at 40: missing or empty reg/ranges
  property
  meson-g12-common.dtsi:1768.27-2040.6: Warning (simple_bus_reg):
  /soc/bus at ff800000/pinctrl at 14: missing or empty reg/ranges property
  meson-g12-common.dtsi:2239.23-2279.6: Warning
  (avoid_unnecessary_addr_size): /soc/bus at ffd00000/dsi at 7000:
  unnecessary #address-cells/#size-cells without "ranges", "dma-ranges"
  or child "reg" or "ranges" property

The pinctrl node has no reg property of its own, and its empty
"ranges;" does not describe which address space is translated to the
children

  /soc/bus at ffd00000/dsi at 7000: unnecessary #address-cells/#size-cells
  without "ranges", "dma-ranges" or child "reg" or "ranges" property

The DSI controller node has no child nodes with a reg property,
so #address-cells and #size-cells serve no purpose. Remove them.

Signed-off-by: Ronald Claveau <linux-kernel-dev at aliel.fr>
---
 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
index 3135566df880..434df25f6247 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
@@ -272,7 +272,7 @@ periphs_pinctrl: pinctrl at 40 {
 					compatible = "amlogic,meson-g12a-periphs-pinctrl";
 					#address-cells = <2>;
 					#size-cells = <2>;
-					ranges;
+					ranges = <0x0 0x40 0x0 0x40 0x0 0x31c>;
 
 					gpio: bank at 40 {
 						reg = <0x0 0x40  0x0 0x4c>,
@@ -1769,7 +1769,7 @@ ao_pinctrl: pinctrl at 14 {
 				compatible = "amlogic,meson-g12a-aobus-pinctrl";
 				#address-cells = <2>;
 				#size-cells = <2>;
-				ranges;
+				ranges = <0x0 0x14 0x0 0x14 0x0 0x24>;
 
 				gpio_ao: bank at 14 {
 					reg = <0x0 0x14 0x0 0x8>,
@@ -2247,8 +2247,6 @@ mipi_dsi: dsi at 7000 {
 				clock-names = "pclk", "bit", "px";
 				phys = <&mipi_dphy>;
 				phy-names = "dphy";
-				#address-cells = <1>;
-				#size-cells = <0>;
 				status = "disabled";
 
 				assigned-clocks = <&clkc CLKID_MIPI_DSI_PXCLK_SEL>,

-- 
2.43.0





More information about the linux-arm-kernel mailing list