From: Andy Yan <andy.yan@rock-chips.com>
To: heiko@sntech.de
Cc: robh+dt@kernel.org, linux-i2c@vger.kernel.org,
devicetree@vger.kernel.org, wsa@the-dreams.de,
linux-kernel@vger.kernel.org, Andy Yan <andy.yan@rock-chips.com>
Subject: [PATCH v3 03/13] ARM: dts: rockchip: add i2c dt node for rv1108
Date: Fri, 11 Aug 2017 11:39:50 +0800 [thread overview]
Message-ID: <1502422790-30776-1-git-send-email-andy.yan@rock-chips.com> (raw)
In-Reply-To: <1502422578-30611-1-git-send-email-andy.yan@rock-chips.com>
There are four i2c controllers on rv1108, add
device tree node for them.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---
Changes in v3: None
Changes in v2: None
arch/arm/boot/dts/rv1108.dtsi | 72 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi
index 8377eb9..663f2f2 100644
--- a/arch/arm/boot/dts/rv1108.dtsi
+++ b/arch/arm/boot/dts/rv1108.dtsi
@@ -52,6 +52,10 @@
interrupt-parent = <&gic>;
aliases {
+ i2c0 = &i2c0;
+ i2c1 = &i2c1;
+ i2c2 = &i2c2;
+ i2c3 = &i2c3;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
@@ -154,11 +158,67 @@
status = "disabled";
};
+ i2c1: i2c@10240000 {
+ compatible = "rockchip,rv1108-i2c";
+ reg = <0x10240000 0x1000>;
+ interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
+ rockchip,grf = <&grf>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
+ clock-names = "i2c", "pclk";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c1_xfer>;
+ status = "disabled";
+ };
+
+ i2c2: i2c@10250000 {
+ compatible = "rockchip,rv1108-i2c";
+ reg = <0x10250000 0x1000>;
+ interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
+ rockchip,grf = <&grf>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
+ clock-names = "i2c", "pclk";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c2m1_xfer>;
+ status = "disabled";
+ };
+
+ i2c3: i2c@10260000 {
+ compatible = "rockchip,rv1108-i2c";
+ reg = <0x10260000 0x1000>;
+ interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
+ rockchip,grf = <&grf>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
+ clock-names = "i2c", "pclk";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c3_xfer>;
+ status = "disabled";
+ };
+
grf: syscon@10300000 {
compatible = "rockchip,rv1108-grf", "syscon";
reg = <0x10300000 0x1000>;
};
+ i2c0: i2c@20000000 {
+ compatible = "rockchip,rv1108-i2c";
+ reg = <0x20000000 0x1000>;
+ interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
+ rockchip,grf = <&grf>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&cru SCLK_I2C0_PMU>, <&cru PCLK_I2C0_PMU>;
+ clock-names = "i2c", "pclk";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_xfer>;
+ status = "disabled";
+ };
+
pmugrf: syscon@20060000 {
compatible = "rockchip,rv1108-pmugrf", "syscon";
reg = <0x20060000 0x1000>;
@@ -343,6 +403,18 @@
input-enable;
};
+ pcfg_pull_none_smt: pcfg-pull-none-smt {
+ bias-disable;
+ input-schmitt-enable;
+ };
+
+ i2c0 {
+ i2c0_xfer: i2c0-xfer {
+ rockchip,pins = <0 RK_PB1 RK_FUNC_1 &pcfg_pull_none_smt>,
+ <0 RK_PB2 RK_FUNC_1 &pcfg_pull_none_smt>;
+ };
+ };
+
i2c1 {
i2c1_xfer: i2c1-xfer {
rockchip,pins = <2 RK_PD3 RK_FUNC_1 &pcfg_pull_up>,
--
2.7.4
next prev parent reply other threads:[~2017-08-11 3:40 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-11 3:36 [PATCH v3 00/13] Support more devices on rockchip rv1108 Andy Yan
2017-08-11 3:38 ` [PATCH v3 01/13] dt-bindings: i2c: rk3x: add support for rv1108 Andy Yan
2017-08-12 14:40 ` Wolfram Sang
2017-08-11 3:39 ` [PATCH v3 02/13] " Andy Yan
2017-08-12 14:01 ` Wolfram Sang
[not found] ` <CANbgqATBQ3-V=Z8MLmw2jtQwiF0LMgoakGe+wLypzwF3EJF++A@mail.gmail.com>
2017-08-12 14:38 ` Wolfram Sang
2017-08-12 14:40 ` Wolfram Sang
2017-08-11 3:39 ` Andy Yan [this message]
2017-08-12 14:40 ` [PATCH v3 03/13] ARM: dts: rockchip: add i2c dt node " Wolfram Sang
2017-08-13 12:07 ` Heiko Stuebner
2017-08-11 3:41 ` [PATCH v3 04/13] spi: rockchip: add compatible string for rv1108 spi Andy Yan
2017-08-11 3:42 ` [PATCH v3 05/13] ARM: dts: rockchip: add spi dt node for rv1108 Andy Yan
2017-08-11 3:43 ` Andy Yan
2017-08-11 3:44 ` [PATCH v3 06/13] dt-bindings: pwm: add description for rv1108 pwm Andy Yan
2017-08-13 10:54 ` Heiko Stuebner
2017-08-11 3:44 ` [PATCH v3 07/13] ARM: dts: rockchip: add pwm dt node for rv1108 Andy Yan
2017-08-11 3:45 ` [PATCH v3 08/13] ARM: dts: rockchip: add watchdog " Andy Yan
2017-08-13 12:14 ` Heiko Stuebner
2017-08-11 3:46 ` [PATCH v3 09/13] dt-bindings: adc: add description for rv1108 saradc Andy Yan
2017-08-12 12:39 ` Jonathan Cameron
2017-08-11 3:46 ` [PATCH v3 10/13] ARM: dts: rockchip: add saradc support for rv1108 Andy Yan
2017-08-13 12:13 ` Heiko Stuebner
2017-08-14 1:42 ` Andy Yan
2017-08-11 3:47 ` [PATCH v3 11/13] ARM: dts: rockchip: add pwm backlight for rv1108 evb Andy Yan
2017-08-11 3:48 ` [PATCH v3 12/13] ARM: dts: rockchip: add pmic rk805 dt node " Andy Yan
2017-08-11 3:49 ` [PATCH v3 13/13] ARM: dts: rockchip: add accelerometer bma250e " Andy Yan
2017-08-13 12:16 ` Heiko Stuebner
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=1502422790-30776-1-git-send-email-andy.yan@rock-chips.com \
--to=andy.yan@rock-chips.com \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--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
all inboxes | Powered by JetHome®