From: mingming lee <mingming.lee@mediatek.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 4/5] dt-binding: i2c: add bindings for mediatek i2c driver
Date: Wed, 30 Sep 2020 16:21:51 +0800 [thread overview]
Message-ID: <1601454112-11787-5-git-send-email-mingming.lee@mediatek.com> (raw)
In-Reply-To: <1601454112-11787-1-git-send-email-mingming.lee@mediatek.com>
From: Mingming Lee <Mingming.Lee@mediatek.com>
add bindings for mediatek i2c driver
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
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 at 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 at 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
--
2.18.0
next prev parent reply other threads:[~2020-09-30 8:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-30 8:21 [PATCH v2 0/5] Add i2c support for MediaTek mt8512 mingming lee
2020-09-30 8:21 ` [PATCH v2 1/5] i2c: mediatek: add basic driver support mingming lee
2020-10-06 0:02 ` Simon Glass
2020-10-10 2:23 ` Mingming Lee
2020-09-30 8:21 ` [PATCH v2 2/5] ARM: dts: Mediatek: add i2c node support for mt8512 mingming lee
2020-10-12 3:34 ` Simon Glass
2020-09-30 8:21 ` [PATCH v2 3/5] configs: mt8512: Enable I2C related configs mingming lee
2020-10-12 3:34 ` Simon Glass
2020-10-12 8:33 ` Mingming Lee
2020-09-30 8:21 ` mingming lee [this message]
2020-10-12 3:34 ` [PATCH v2 4/5] dt-binding: i2c: add bindings for mediatek i2c driver Simon Glass
2020-10-12 8:37 ` Mingming Lee
2020-09-30 8:21 ` [PATCH v2 5/5] MAINTAINERS: add i2c driver to ARM MEDIATEK mingming lee
2020-10-12 3:34 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1601454112-11787-5-git-send-email-mingming.lee@mediatek.com \
--to=mingming.lee@mediatek.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox