forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
https://github.com/TeamYogaBlade2/android_kernel_lenovo_b8000-jellybean_osc/blob/2b134a8e223ecf90cd0c7d7b898c230ade334a69/mediatek/platform/mt6589/kernel/core/mt_devs.c#L1585-L1595
https://github.com/TeamYogaBlade2/android_kernel_lenovo_b8000-jellybean_osc/blob/main/mediatek/platform/mt6589/kernel/drivers/i2c/i2c.c
linux/arch/arm/boot/dts/mediatek/mt7623.dtsi
Lines 435 to 478 in 4ec9bf6
| i2c0: i2c@11007000 { | |
| compatible = "mediatek,mt7623-i2c", | |
| "mediatek,mt6577-i2c"; | |
| reg = <0 0x11007000 0 0x70>, | |
| <0 0x11000200 0 0x80>; | |
| interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>; | |
| clock-div = <16>; | |
| clocks = <&pericfg CLK_PERI_I2C0>, | |
| <&pericfg CLK_PERI_AP_DMA>; | |
| clock-names = "main", "dma"; | |
| #address-cells = <1>; | |
| #size-cells = <0>; | |
| status = "disabled"; | |
| }; | |
| i2c1: i2c@11008000 { | |
| compatible = "mediatek,mt7623-i2c", | |
| "mediatek,mt6577-i2c"; | |
| reg = <0 0x11008000 0 0x70>, | |
| <0 0x11000280 0 0x80>; | |
| interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_LOW>; | |
| clock-div = <16>; | |
| clocks = <&pericfg CLK_PERI_I2C1>, | |
| <&pericfg CLK_PERI_AP_DMA>; | |
| clock-names = "main", "dma"; | |
| #address-cells = <1>; | |
| #size-cells = <0>; | |
| status = "disabled"; | |
| }; | |
| i2c2: i2c@11009000 { | |
| compatible = "mediatek,mt7623-i2c", | |
| "mediatek,mt6577-i2c"; | |
| reg = <0 0x11009000 0 0x70>, | |
| <0 0x11000300 0 0x80>; | |
| interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_LOW>; | |
| clock-div = <16>; | |
| clocks = <&pericfg CLK_PERI_I2C2>, | |
| <&pericfg CLK_PERI_AP_DMA>; | |
| clock-names = "main", "dma"; | |
| #address-cells = <1>; | |
| #size-cells = <0>; | |
| status = "disabled"; | |
| }; |
linux/arch/arm/boot/dts/mediatek/mt7623.dtsi
Lines 1028 to 1066 in 4ec9bf6
| i2c0_pins_a: i2c0-default { | |
| pins-i2c0 { | |
| pinmux = <MT7623_PIN_75_SDA0_FUNC_SDA0>, | |
| <MT7623_PIN_76_SCL0_FUNC_SCL0>; | |
| bias-disable; | |
| }; | |
| }; | |
| i2c1_pins_a: i2c1-default { | |
| pin-i2c1 { | |
| pinmux = <MT7623_PIN_57_SDA1_FUNC_SDA1>, | |
| <MT7623_PIN_58_SCL1_FUNC_SCL1>; | |
| bias-disable; | |
| }; | |
| }; | |
| i2c1_pins_b: i2c1-alt { | |
| pin-i2c1 { | |
| pinmux = <MT7623_PIN_242_URTS2_FUNC_SCL1>, | |
| <MT7623_PIN_243_UCTS2_FUNC_SDA1>; | |
| bias-disable; | |
| }; | |
| }; | |
| i2c2_pins_a: i2c2-default { | |
| pin-i2c2 { | |
| pinmux = <MT7623_PIN_77_SDA2_FUNC_SDA2>, | |
| <MT7623_PIN_78_SCL2_FUNC_SCL2>; | |
| bias-disable; | |
| }; | |
| }; | |
| i2c2_pins_b: i2c2-alt { | |
| pin-i2c2 { | |
| pinmux = <MT7623_PIN_122_GPIO122_FUNC_SDA2>, | |
| <MT7623_PIN_123_HTPLG_FUNC_SCL2>; | |
| bias-disable; | |
| }; | |
| }; |
Metadata
Metadata
Assignees
Labels
No labels