arm64: dts: mediatek: mt7981: add I2C controller
Subsystems (2)
PATCH 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).
--- arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/mediatek/mt7981b.dtsi +17 -0
@@ -94,6 +94,23 @@ 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"; + clock-div = <1>; + clock-frequency = <100000>; + #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
AngeloGioacchino Del Regno
maintainerIl 05/04/24 14:55, Rafał Miłecki ha scritto:
Quoted 21 lines
From: Rafał Miłecki <[email protected]>
MT7981 has one on-SoC I2C controller that differs from recent Mediatek blocks by having a different
SLAVE_ADDRregister offset (thus a custom binding compatible string).Signed-off-by Rafał Miłecki <[email protected]>--- arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)arch/arm64/boot/dts/mediatek/mt7981b.dtsi +2
-0@@ -94,6 +94,23 @@ pwm@10048000 { #pwm-cells = <2>; }; + i2c@11007000 { + compatible = "mediatek,mt7981-i2c";
arch/arm64/boot/dts/mediatek/mt7981b.dtsi pwm@10048000 { · line 108
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt7981b.dtsi +10
-0+ 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"; + clock-div = <1>; + clock-frequency = <100000>;
If you need to specify clock-div and clock-frequency, those are board-specific properties and not soc wide.
Please remove those from there and put them in your board specific DT.
Cheers,
Angelo