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>
(backported from
ffa55386f17cff29f6c3ffbe873335511e253932)
&spi1 {
status = "okay";
- spidev@1 {
+ spidev@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "siliconlabs,si3210";
*/
status = "disabled";
- m25p80@0 {
+ m25p80@1 {
compatible = "jedec,spi-nor";
reg = <1>;
spi-max-frequency = <10000000>;
};
};
- spi_pins: spi {
- spi {
+ spi_pins: spi_pins {
+ spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
};
};
- 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";
};
};
};
- i2c_pins: i2c {
- i2c {
+ i2c_pins: i2c_pins {
+ i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
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";
};
state_default: pinctrl0 {
};
- spi_pins: spi {
- spi {
+ spi_pins: spi_pins {
+ spi_pins {
ralink,group = "spi";
ralink,function = "spi";
};
};
};
- i2c_pins: i2c {
- i2c {
+ i2c_pins: i2c_pins {
+ i2c_pins {
ralink,group = "i2c";
ralink,function = "i2c";
};
};
};
- 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";
};
};
};
- 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";
};
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";
};
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";
};
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";
};