From: mingming lee <mingming.lee@mediatek.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/3] ARM: dts: Mediatek: add i2c node support for mt8512
Date: Wed, 9 Sep 2020 14:07:27 +0800 [thread overview]
Message-ID: <20200909060728.5616-3-mingming.lee@mediatek.com> (raw)
In-Reply-To: <20200909060728.5616-1-mingming.lee@mediatek.com>
From: Mingming Lee <Mingming.Lee@mediatek.com>
add i2c dts node support for mt8512
Signed-off-by: Mingming Lee <Mingming.Lee@mediatek.com>
---
arch/arm/dts/mt8512-bm1-emmc.dts | 12 ++++++++++++
arch/arm/dts/mt8512.dtsi | 38 +++++++++++++++++++++++++++++++++++++-
2 files changed, 49 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/mt8512-bm1-emmc.dts b/arch/arm/dts/mt8512-bm1-emmc.dts
index 296ed93..7c02539 100644
--- a/arch/arm/dts/mt8512-bm1-emmc.dts
+++ b/arch/arm/dts/mt8512-bm1-emmc.dts
@@ -45,6 +45,18 @@
};
};
+&i2c0 {
+ status = "okay";
+};
+
+&i2c1 {
+ status = "okay";
+};
+
+&i2c2 {
+ status = "okay";
+};
+
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_default>;
diff --git a/arch/arm/dts/mt8512.dtsi b/arch/arm/dts/mt8512.dtsi
index 01a02a7..39e9499 100644
--- a/arch/arm/dts/mt8512.dtsi
+++ b/arch/arm/dts/mt8512.dtsi
@@ -90,6 +90,42 @@
reg = <0x10200a80 0x50>;
};
+ 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";
+ };
+
+ i2c2: i2c at 1001e000 {
+ compatible = "mediatek,mt8512-i2c";
+ reg = <0x1001e000 0x1000>,
+ <0x11000180 0x80>;
+ clocks = <&infracfg CLK_INFRA_I2C1_AXI>,
+ <&infracfg CLK_INFRA_AP_DMA>;
+ clock-names = "main", "dma";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
uart0: serial at 11002000 {
compatible = "mediatek,hsuart";
reg = <0x11002000 0x1000>;
@@ -112,4 +148,4 @@
status = "disabled";
};
-};
\ No newline at end of file
+};
--
1.9.1
next prev parent reply other threads:[~2020-09-09 6:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-09 6:07 [PATCH 0/3] Add i2c support for MediaTek mt8512 mingming lee
2020-09-09 6:07 ` [PATCH 1/3] i2c: mediatek: add basic driver support mingming lee
2020-09-30 5:38 ` Heiko Schocher
2020-09-30 6:15 ` Mingming Lee
2020-09-09 6:07 ` mingming lee [this message]
2020-09-30 5:40 ` [PATCH 2/3] ARM: dts: Mediatek: add i2c node support for mt8512 Heiko Schocher
2020-09-09 6:07 ` [PATCH 3/3] configs: mt8512: Enable I2C related configs mingming lee
2020-09-30 5:41 ` Heiko Schocher
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=20200909060728.5616-3-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