ramips: Add i2c support for mt7620n
I2c is supported on mt7620n like on mt7620a when checking the datasheet Signed-off-by: Matthias Badaire <mbadaire@gmail.com>
This commit is contained in:
parent
e09d4c850d
commit
a0685deec4
@ -160,6 +160,22 @@
|
|||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
i2c: i2c@900 {
|
||||||
|
compatible = "ralink,rt2880-i2c";
|
||||||
|
reg = <0x900 0x100>;
|
||||||
|
|
||||||
|
resets = <&rstctrl 16>;
|
||||||
|
reset-names = "i2c";
|
||||||
|
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
status = "disabled";
|
||||||
|
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&i2c_pins>;
|
||||||
|
};
|
||||||
|
|
||||||
spi0: spi@b00 {
|
spi0: spi@b00 {
|
||||||
compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
|
compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
|
||||||
reg = <0xb00 0x40>;
|
reg = <0xb00 0x40>;
|
||||||
@ -192,6 +208,13 @@
|
|||||||
pinctrl-0 = <&spi_cs1>;
|
pinctrl-0 = <&spi_cs1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
i2c_pins: i2c {
|
||||||
|
i2c {
|
||||||
|
ralink,group = "i2c";
|
||||||
|
ralink,function = "i2c";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
uartlite: uartlite@c00 {
|
uartlite: uartlite@c00 {
|
||||||
compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
|
compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
|
||||||
reg = <0xc00 0x100>;
|
reg = <0xc00 0x100>;
|
||||||
|
Loading…
Reference in New Issue
Block a user