Skip to contentSkip to conversation

arm64: dts: mediatek: mt7981: add I2C controller

PATCH Applied Rafał Miłecki 2 participants 2 messages Jun 4, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: mediatek: mt7981: add I2C controller

From: Rafał Miłecki <[email protected]>

MT7981 has one on-SoC I2C controller that differs from recent Mediatek blocks by having a different SLAVE_ADDR register offset (thus a custom binding compatible string).

---
V2: Don't put board-specific clock-div & clock-frequency in the SoC dtsi
Thanks Angelo!

 arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/mediatek/mt7981b.dtsi +15 -0
index 0fc7c6d33d72..64aeeb24efac 100644
@@ -94,6 +94,21 @@ pwm@10048000 {
 			#pwm-cells = <2>;
 		};
 
+		i2c@11007000 {
+			compatible = "mediatek,mt7981-i2c";
+			reg = <0 0x11007000 0 0x1000>,
+			      <0 0x10217080 0 0x80>;
+			interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&infracfg CLK_INFRA_I2C0_CK>,
+				 <&infracfg CLK_INFRA_AP_DMA_CK>,
+				 <&infracfg CLK_INFRA_I2C_MCK_CK>,
+				 <&infracfg CLK_INFRA_I2C_PCK_CK>;
+			clock-names = "main", "dma", "arb", "pmic";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		pio: pinctrl@11d00000 {
 			compatible = "mediatek,mt7981-pinctrl";
 			reg = <0 0x11d00000 0 0x1000>,
Signature · 1 line
2.35.3
maintainer Applied
#1 lore raw
Quoted 5 lines · Rafał Miłecki

MT7981 has one on-SoC I2C controller that differs from recent Mediatek blocks by having a different SLAVE_ADDR register offset (thus a custom binding compatible string).

Applied to v6.10-next/dts64, thanks!

[1/1] arm64: dts: mediatek: mt7981: add I2C controller

      commit: 85ccbe8afbb4d4744f4f3a1519c5a59a8b74c87d

Cheers,
Angelo