From: Qii Wang <qii.wang@mediatek.com>
To: <wsa@the-dreams.de>
Cc: <linux-i2c@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
<linux-mediatek@lists.infradead.org>,
<srv_heupstream@mediatek.com>, <leilk.liu@mediatek.com>,
<qii.wang@mediatek.com>, <matthias.bgg@gmail.com>,
<robh+dt@kernel.org>
Subject: [PATCH 1/2] dt-bindings: i2c: Add MediaTek i2c AC timing binding
Date: Tue, 11 Jun 2019 16:11:54 +0800 [thread overview]
Message-ID: <1560240715-22595-2-git-send-email-qii.wang@mediatek.com> (raw)
In-Reply-To: <1560240715-22595-1-git-send-email-qii.wang@mediatek.com>
Add i2c AC timing binding to binding file. It can give the AC
timing parameters to meet I2C specification at different speed.
Signed-off-by: Qii Wang <qii.wang@mediatek.com>
---
.../devicetree/bindings/i2c/i2c-mt65xx.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt
index 68f6d73..0f92813 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt
@@ -30,6 +30,7 @@ Optional properties:
- mediatek,have-pmic: platform can control i2c form special pmic side.
Only mt6589 and mt8135 support this feature.
- mediatek,use-push-pull: IO config use push-pull mode.
+ - ac-timing: give some AC timing parameters to meet i2c spec fully.
Example:
@@ -43,5 +44,15 @@ Example:
clock-div = <16>;
clocks = <&i2c0_ck>, <&ap_dma_ck>;
clock-names = "main", "dma";
+ ac-timing = /bits/ 16 <
+ 0x8001 /* 0:ext */
+ 0x0005 /* 1:inter_clk_div */
+ 0x0102 /* 2:scl_hl_ratio */
+ 0x0102 /* 3:hs_scl_hl_ratio */
+ 0x0002 /* 4:scl_mis_comp */
+ 0x0002 /* 5:sta_stop */
+ 0x0002 /* 6:hs_sta_stop */
+ 0x0002 /* 7:sda_timing */
+ >;
};
--
1.7.9.5
next prev parent reply other threads:[~2019-06-11 8:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-11 8:11 [PATCH 0/2] Add support for AC timing adjustment Qii Wang
2019-06-11 8:11 ` Qii Wang [this message]
2019-06-26 13:39 ` [PATCH 1/2] dt-bindings: i2c: Add MediaTek i2c AC timing binding Wolfram Sang
2019-07-17 12:55 ` Qii Wang
2019-07-17 13:29 ` Wolfram Sang
2019-06-11 8:11 ` [PATCH 2/2] i2c: mediatek: Add i2c AC timing adjust support Qii Wang
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=1560240715-22595-2-git-send-email-qii.wang@mediatek.com \
--to=qii.wang@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=leilk.liu@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=srv_heupstream@mediatek.com \
--cc=wsa@the-dreams.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;
as well as URLs for NNTP newsgroup(s).