Message ID | 1601454112-11787-5-git-send-email-mingming.lee@mediatek.com |
---|---|
State | Superseded |
Delegated to: | Heiko Schocher |
Headers | show |
Series | Add i2c support for MediaTek mt8512 | expand |
On Wed, 30 Sep 2020 at 02:22, mingming lee <mingming.lee@mediatek.com> wrote: > > From: Mingming Lee <Mingming.Lee@mediatek.com> > > add bindings for mediatek i2c driver Should indicate which version of linux this file comes from. > > Signed-off-by: Mingming Lee <Mingming.Lee@mediatek.com> > --- > doc/device-tree-bindings/i2c/i2c-mtk.txt | 39 ++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 doc/device-tree-bindings/i2c/i2c-mtk.txt Reviewed-by: Simon Glass <sjg@chromium.org>
hello Simon, On Sun, 2020-10-11 at 21:34 -0600, Simon Glass wrote: > On Wed, 30 Sep 2020 at 02:22, mingming lee <mingming.lee@mediatek.com> wrote: > > > > From: Mingming Lee <Mingming.Lee@mediatek.com> > > > > add bindings for mediatek i2c driver > > Should indicate which version of linux this file comes from. > we just send it in u-boot, do not sync with kernel yet. > > > > Signed-off-by: Mingming Lee <Mingming.Lee@mediatek.com> > > --- > > doc/device-tree-bindings/i2c/i2c-mtk.txt | 39 ++++++++++++++++++++++++ > > 1 file changed, 39 insertions(+) > > create mode 100644 doc/device-tree-bindings/i2c/i2c-mtk.txt > > Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/doc/device-tree-bindings/i2c/i2c-mtk.txt b/doc/device-tree-bindings/i2c/i2c-mtk.txt new file mode 100644 index 0000000000..10a3f29a1e --- /dev/null +++ b/doc/device-tree-bindings/i2c/i2c-mtk.txt @@ -0,0 +1,39 @@ +I2C for Mediatek platforms + +Required properties : +- compatible : Must be "mediatek,mt8512-i2c" +- reg: physical base address of the controller and length of memory mapped + region. +- #address-cells = <1>; +- #size-cells = <0>; +- clocks: phandles to input clocks. +- clock-names : Contains the names of the clocks: + "main", the clock used for normal mode I2C. + "dma", the clock used for apdma mode I2C. +- status : enable in requried dts or not. + +Examples : + + i2c0: i2c@11007000 { + compatible = "mediatek,mt8512-i2c"; + reg = <0x11007000 0x1000>, + <0x11000080 0x80>; + clocks = <&infracfg CLK_INFRA_I2C0_AXI>, + <&infracfg CLK_INFRA_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@10019000 { + compatible = "mediatek,mt8512-i2c"; + reg = <0x10019000 0x1000>, + <0x11000100 0x80>; + clocks = <&infracfg CLK_INFRA_I2C1_AXI>, + <&infracfg CLK_INFRA_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; \ No newline at end of file