Skip to content
Permalink
Browse files

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>
  • Loading branch information...
mkresin committed Dec 6, 2018
1 parent 295b37d commit ffa55386f17cff29f6c3ffbe873335511e253932
@@ -115,7 +115,7 @@
&spi1 {
status = "okay";

spidev@1 {
spidev@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "siliconlabs,si3210";
@@ -91,7 +91,7 @@
*/
status = "disabled";

m25p80@0 {
m25p80@1 {
compatible = "jedec,spi-nor";
reg = <1>;
spi-max-frequency = <10000000>;
@@ -334,8 +334,8 @@
};
};

spi_pins: spi {
spi {
spi_pins: spi_pins {
spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
@@ -348,8 +348,8 @@
};
};

i2c_pins: i2c {
i2c {
i2c_pins: i2c_pins {
i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
@@ -255,8 +255,8 @@
};
};

spi_pins: spi {
spi {
spi_pins: spi_pins {
spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
@@ -269,8 +269,8 @@
};
};

i2c_pins: i2c {
i2c {
i2c_pins: i2c_pins {
i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
@@ -239,15 +239,15 @@
state_default: pinctrl0 {
};

i2c_pins: i2c {
i2c {
i2c_pins: i2c_pins {
i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
};

spi_pins: spi {
spi {
spi_pins: spi_pins {
spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
@@ -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";
};
@@ -158,15 +158,15 @@
};
};

i2c_pins: i2c {
i2c {
i2c_pins: i2c_pins {
i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
};

spi_pins: spi {
spi {
spi_pins: spi_pins {
spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
@@ -250,15 +250,15 @@
};
};

i2c_pins: i2c {
i2c {
i2c_pins: i2c_pins {
i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
};

spi_pins: spi {
spi {
spi_pins: spi_pins {
spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
@@ -259,8 +259,8 @@
state_default: pinctrl0 {
};

i2c_pins: i2c {
i2c {
i2c_pins: i2c_pins {
i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
@@ -280,8 +280,8 @@
};
};

spi_pins: spi {
spi {
spi_pins: spi_pins {
spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
@@ -279,15 +279,15 @@
state_default: pinctrl0 {
};

i2c_pins: i2c {
i2c {
i2c_pins: i2c_pins {
i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
};

spi_pins: spi {
spi {
spi_pins: spi_pins {
spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
@@ -273,15 +273,15 @@
state_default: pinctrl0 {
};

i2c_pins: i2c {
i2c {
i2c_pins: i2c_pins {
i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
};

spi_pins: spi {
spi {
spi_pins: spi_pins {
spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};

0 comments on commit ffa5538

Please sign in to comment.
You can’t perform that action at this time.