[Letux-kernel] [RFC 27/28] MIPS: DTS: jz4740: add i2c support
H. Nikolaus Schaller
hns at goldelico.com
Sat Jan 23 17:28:53 CET 2021
The i2c controller is the same as for the jz4730, interrupt
line is the same, only the clock input differs.
Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
---
arch/mips/boot/dts/ingenic/jz4740.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi
index c1afdfdaa8a38..2c1b8b3947cd6 100644
--- a/arch/mips/boot/dts/ingenic/jz4740.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi
@@ -252,6 +252,22 @@ uart1: serial at 10031000 {
clock-names = "baud", "module";
};
+ i2c: i2c at 10042000 {
+ compatible = "ingenic,jz4730-i2c";
+ reg = <0x10042000 0x10>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ interrupt-parent = <&intc>;
+ interrupts = <1>;
+
+ clocks = <&cgu JZ4740_CLK_I2C>;
+ clock-names = "i2c";
+
+ clock-frequency = <100000>;
+ };
+
adc: adc at 10070000 {
compatible = "ingenic,jz4740-adc";
reg = <0x10070000 0x30>;
--
2.26.2
More information about the Letux-kernel
mailing list