From ffa55386f17cff29f6c3ffbe873335511e253932 Mon Sep 17 00:00:00 2001
From: Mathias Kresin <dev@kresin.me>
Date: Thu, 6 Dec 2018 10:02:29 +0100
Subject: ramips: fix dtc compiler warnings

The latest dtc compiler considers nodes named i2c or spi as the
respective bus:

  /pinctrl/i2c: incorrect #address-cells for I2C bus
  /pinctrl/spi: incorrect #address-cells for SPI bus

Rename the node to fix the false positives.

Fix the spi node unit address for the DWR-512-B and UBNT-ER-e50 to get
rid of the following warning:

  SPI bus unit address format error, expected "n"

Signed-off-by: Mathias Kresin <dev@kresin.me>
---
 target/linux/ramips/dts/mt7628an.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'target/linux/ramips/dts/mt7628an.dtsi')

diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi
index b8a8bb9103..91f715c245 100644
--- a/target/linux/ramips/dts/mt7628an.dtsi
+++ b/target/linux/ramips/dts/mt7628an.dtsi
@@ -281,8 +281,8 @@
 		state_default: pinctrl0 {
 		};
 
-		spi_pins: spi {
-			spi {
+		spi_pins: spi_pins {
+			spi_pins {
 				ralink,group = "spi";
 				ralink,function = "spi";
 			};
@@ -295,8 +295,8 @@
 			};
 		};
 
-		i2c_pins: i2c {
-			i2c {
+		i2c_pins: i2c_pins {
+			i2c_pins {
 				ralink,group = "i2c";
 				ralink,function = "i2c";
 			};
-- 
cgit v1.2.3