arm64: dts: mt7986: add i2c node
authorFrank Wunderlich <frank-w@public-files.de>
Sun, 6 Nov 2022 08:50:29 +0000 (09:50 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 11 Nov 2022 09:04:57 +0000 (10:04 +0100)
Add i2c Node to mt7986 devicetree.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Link: https://lore.kernel.org/r/20221106085034.12582-7-linux@fw-web.de
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt7986a.dtsi

index aa57835..a22e10e 100644 (file)
                        status = "disabled";
                };
 
+               i2c0: i2c@11008000 {
+                       compatible = "mediatek,mt7986-i2c";
+                       reg = <0 0x11008000 0 0x90>,
+                             <0 0x10217080 0 0x80>;
+                       interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-div = <5>;
+                       clocks = <&infracfg CLK_INFRA_I2C0_CK>,
+                                <&infracfg CLK_INFRA_AP_DMA_CK>;
+                       clock-names = "main", "dma";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                ethsys: syscon@15000000 {
                         #address-cells = <1>;
                         #size-cells = <1>;