]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: enable i2c support for MediaTek MT7981
authorWeijie Gao <weijie.gao@mediatek.com>
Wed, 19 Jul 2023 09:16:19 +0000 (17:16 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 13:40:49 +0000 (09:40 -0400)
This patch enables i2c support for MediaTek MT7981

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/arm/dts/mt7981.dtsi

index 2c8ef14f982bd1bd4059c193aac0aa8db7abd046..2053e2ca00200ea7ecd8f7cfe00ae35074708c09 100644 (file)
                status = "disabled";
        };
 
+       i2c0: i2c@11007000 {
+               compatible = "mediatek,mt7981-i2c";
+               reg = <0x11007000 0x1000>,
+                     <0x10217080 0x80>;
+               interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
+               clock-div = <1>;
+               clocks = <&infracfg_ao CK_INFRA_I2CO_CK>,
+                        <&infracfg_ao CK_INFRA_AP_DMA_CK>;
+               clock-names = "main", "dma";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "disabled";
+       };
+
        uart0: serial@11002000 {
                compatible = "mediatek,hsuart";
                reg = <0x11002000 0x400>;