* [PATCH 1/2] i2c: rk3x: add support for rk3228
@ 2016-03-14 3:09 Yakir Yang
2016-03-14 3:11 ` [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs Yakir Yang
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Yakir Yang @ 2016-03-14 3:09 UTC (permalink / raw)
To: Wolfram Sang, Heiko Stuebner, Rob Herring
Cc: Kumar Gala, Pawel Moll, Mark Rutland, Ian Campbell, devicetree,
linux-i2c, linux-kernel, linux-arm-kernel, linux-rockchip,
Yakir Yang
Enable the I2C core for this SoC.
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
---
Documentation/devicetree/bindings/i2c/i2c-rk3x.txt | 4 ++--
drivers/i2c/busses/i2c-rk3x.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt b/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt
index f0d71bc..0b4a85f 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt
@@ -6,8 +6,8 @@ RK3xxx SoCs.
Required properties :
- reg : Offset and length of the register set for the device
- - compatible : should be "rockchip,rk3066-i2c", "rockchip,rk3188-i2c" or
- "rockchip,rk3288-i2c".
+ - compatible : should be "rockchip,rk3066-i2c", "rockchip,rk3188-i2c",
+ "rockchip,rk3228-i2c" or "rockchip,rk3288-i2c".
- interrupts : interrupt number
- clocks : parent clock
diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c
index 9096d17..3dcc5f3 100644
--- a/drivers/i2c/busses/i2c-rk3x.c
+++ b/drivers/i2c/busses/i2c-rk3x.c
@@ -855,6 +855,7 @@ static struct rk3x_i2c_soc_data soc_data[3] = {
static const struct of_device_id rk3x_i2c_match[] = {
{ .compatible = "rockchip,rk3066-i2c", .data = (void *)&soc_data[0] },
{ .compatible = "rockchip,rk3188-i2c", .data = (void *)&soc_data[1] },
+ { .compatible = "rockchip,rk3228-i2c", .data = (void *)&soc_data[2] },
{ .compatible = "rockchip,rk3288-i2c", .data = (void *)&soc_data[2] },
{},
};
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs
2016-03-14 3:09 [PATCH 1/2] i2c: rk3x: add support for rk3228 Yakir Yang
@ 2016-03-14 3:11 ` Yakir Yang
2016-04-12 21:39 ` Wolfram Sang
2016-04-13 20:57 ` Heiko Stübner
2016-03-14 22:23 ` [PATCH 1/2] i2c: rk3x: add support for rk3228 Heiko Stübner
` (2 subsequent siblings)
3 siblings, 2 replies; 10+ messages in thread
From: Yakir Yang @ 2016-03-14 3:11 UTC (permalink / raw)
To: Wolfram Sang, Heiko Stuebner, Rob Herring
Cc: Kumar Gala, Pawel Moll, Mark Rutland, Ian Campbell, devicetree,
linux-i2c, linux-kernel, linux-arm-kernel, linux-rockchip,
Yakir Yang
This patch add the i2c dt nodes for rk3228 SoCs.
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
---
arch/arm/boot/dts/rk3228.dtsi | 80 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/arch/arm/boot/dts/rk3228.dtsi b/arch/arm/boot/dts/rk3228.dtsi
index 119ff12..a159296 100644
--- a/arch/arm/boot/dts/rk3228.dtsi
+++ b/arch/arm/boot/dts/rk3228.dtsi
@@ -185,6 +185,58 @@
status = "disabled";
};
+ i2c0: i2c@11050000 {
+ compatible = "rockchip,rk3228-i2c";
+ reg = <0x11050000 0x1000>;
+ interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-names = "i2c";
+ clocks = <&cru PCLK_I2C0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_xfer>;
+ status = "disabled";
+ };
+
+ i2c1: i2c@11060000 {
+ compatible = "rockchip,rk3228-i2c";
+ reg = <0x11060000 0x1000>;
+ interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-names = "i2c";
+ clocks = <&cru PCLK_I2C1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c1_xfer>;
+ status = "disabled";
+ };
+
+ i2c2: i2c@11070000 {
+ compatible = "rockchip,rk3228-i2c";
+ reg = <0x11070000 0x1000>;
+ interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-names = "i2c";
+ clocks = <&cru PCLK_I2C2>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c2_xfer>;
+ status = "disabled";
+ };
+
+ i2c3: i2c@11080000 {
+ compatible = "rockchip,rk3228-i2c";
+ reg = <0x11080000 0x1000>;
+ interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-names = "i2c";
+ clocks = <&cru PCLK_I2C3>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c3_xfer>;
+ status = "disabled";
+ };
+
pwm0: pwm@110b0000 {
compatible = "rockchip,rk3288-pwm";
reg = <0x110b0000 0x10>;
@@ -349,6 +401,34 @@
bias-disable;
};
+ i2c0 {
+ i2c0_xfer: i2c0-xfer {
+ rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>,
+ <0 1 RK_FUNC_1 &pcfg_pull_none>;
+ };
+ };
+
+ i2c1 {
+ i2c1_xfer: i2c1-xfer {
+ rockchip,pins = <0 2 RK_FUNC_1 &pcfg_pull_none>,
+ <0 3 RK_FUNC_1 &pcfg_pull_none>;
+ };
+ };
+
+ i2c2 {
+ i2c2_xfer: i2c2-xfer {
+ rockchip,pins = <2 20 RK_FUNC_1 &pcfg_pull_none>,
+ <2 21 RK_FUNC_1 &pcfg_pull_none>;
+ };
+ };
+
+ i2c3 {
+ i2c3_xfer: i2c3-xfer {
+ rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>,
+ <0 7 RK_FUNC_1 &pcfg_pull_none>;
+ };
+ };
+
emmc {
emmc_clk: emmc-clk {
rockchip,pins = <2 7 RK_FUNC_2 &pcfg_pull_none>;
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] i2c: rk3x: add support for rk3228
2016-03-14 3:09 [PATCH 1/2] i2c: rk3x: add support for rk3228 Yakir Yang
2016-03-14 3:11 ` [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs Yakir Yang
@ 2016-03-14 22:23 ` Heiko Stübner
2016-03-18 20:16 ` Rob Herring
2016-04-12 21:38 ` Wolfram Sang
3 siblings, 0 replies; 10+ messages in thread
From: Heiko Stübner @ 2016-03-14 22:23 UTC (permalink / raw)
To: Yakir Yang
Cc: Wolfram Sang, Rob Herring, Kumar Gala, Pawel Moll, Mark Rutland,
Ian Campbell, devicetree, linux-i2c, linux-kernel,
linux-arm-kernel, linux-rockchip
Am Montag, 14. März 2016, 11:09:15 schrieb Yakir Yang:
> Enable the I2C core for this SoC.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Heiko
> ---
> Documentation/devicetree/bindings/i2c/i2c-rk3x.txt | 4 ++--
> drivers/i2c/busses/i2c-rk3x.c | 1 +
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt
> b/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt index f0d71bc..0b4a85f
> 100644
> --- a/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt
> +++ b/Documentation/devicetree/bindings/i2c/i2c-rk3x.txt
> @@ -6,8 +6,8 @@ RK3xxx SoCs.
> Required properties :
>
> - reg : Offset and length of the register set for the device
> - - compatible : should be "rockchip,rk3066-i2c", "rockchip,rk3188-i2c" or
> - "rockchip,rk3288-i2c".
> + - compatible : should be "rockchip,rk3066-i2c", "rockchip,rk3188-i2c",
> + "rockchip,rk3228-i2c" or "rockchip,rk3288-i2c".
> - interrupts : interrupt number
> - clocks : parent clock
>
> diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c
> index 9096d17..3dcc5f3 100644
> --- a/drivers/i2c/busses/i2c-rk3x.c
> +++ b/drivers/i2c/busses/i2c-rk3x.c
> @@ -855,6 +855,7 @@ static struct rk3x_i2c_soc_data soc_data[3] = {
> static const struct of_device_id rk3x_i2c_match[] = {
> { .compatible = "rockchip,rk3066-i2c", .data = (void *)&soc_data[0] },
> { .compatible = "rockchip,rk3188-i2c", .data = (void *)&soc_data[1] },
> + { .compatible = "rockchip,rk3228-i2c", .data = (void *)&soc_data[2] },
> { .compatible = "rockchip,rk3288-i2c", .data = (void *)&soc_data[2] },
> {},
> };
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] i2c: rk3x: add support for rk3228
2016-03-14 3:09 [PATCH 1/2] i2c: rk3x: add support for rk3228 Yakir Yang
2016-03-14 3:11 ` [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs Yakir Yang
2016-03-14 22:23 ` [PATCH 1/2] i2c: rk3x: add support for rk3228 Heiko Stübner
@ 2016-03-18 20:16 ` Rob Herring
2016-04-12 21:38 ` Wolfram Sang
3 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2016-03-18 20:16 UTC (permalink / raw)
To: Yakir Yang
Cc: Wolfram Sang, Heiko Stuebner, Kumar Gala, Pawel Moll,
Mark Rutland, Ian Campbell, devicetree, linux-i2c, linux-kernel,
linux-arm-kernel, linux-rockchip
On Mon, Mar 14, 2016 at 11:09:15AM +0800, Yakir Yang wrote:
> Enable the I2C core for this SoC.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
> ---
> Documentation/devicetree/bindings/i2c/i2c-rk3x.txt | 4 ++--
> drivers/i2c/busses/i2c-rk3x.c | 1 +
> 2 files changed, 3 insertions(+), 2 deletions(-)
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] i2c: rk3x: add support for rk3228
2016-03-14 3:09 [PATCH 1/2] i2c: rk3x: add support for rk3228 Yakir Yang
` (2 preceding siblings ...)
2016-03-18 20:16 ` Rob Herring
@ 2016-04-12 21:38 ` Wolfram Sang
3 siblings, 0 replies; 10+ messages in thread
From: Wolfram Sang @ 2016-04-12 21:38 UTC (permalink / raw)
To: Yakir Yang
Cc: Heiko Stuebner, Rob Herring, Kumar Gala, Pawel Moll,
Mark Rutland, Ian Campbell, devicetree, linux-i2c, linux-kernel,
linux-arm-kernel, linux-rockchip
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
On Mon, Mar 14, 2016 at 11:09:15AM +0800, Yakir Yang wrote:
> Enable the I2C core for this SoC.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs
2016-03-14 3:11 ` [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs Yakir Yang
@ 2016-04-12 21:39 ` Wolfram Sang
2016-04-13 1:23 ` Yakir Yang
2016-04-13 20:57 ` Heiko Stübner
1 sibling, 1 reply; 10+ messages in thread
From: Wolfram Sang @ 2016-04-12 21:39 UTC (permalink / raw)
To: Yakir Yang
Cc: Heiko Stuebner, Rob Herring, Kumar Gala, Pawel Moll,
Mark Rutland, Ian Campbell, devicetree, linux-i2c, linux-kernel,
linux-arm-kernel, linux-rockchip
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
On Mon, Mar 14, 2016 at 11:11:42AM +0800, Yakir Yang wrote:
> This patch add the i2c dt nodes for rk3228 SoCs.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
This needs to go via arm-soc.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs
2016-04-12 21:39 ` Wolfram Sang
@ 2016-04-13 1:23 ` Yakir Yang
2016-04-13 2:37 ` Wolfram Sang
0 siblings, 1 reply; 10+ messages in thread
From: Yakir Yang @ 2016-04-13 1:23 UTC (permalink / raw)
To: Wolfram Sang
Cc: Heiko Stuebner, Rob Herring, Kumar Gala, Pawel Moll,
Mark Rutland, Ian Campbell, devicetree, linux-i2c, linux-kernel,
linux-arm-kernel, linux-rockchip
Hi Heiko,
On 04/13/2016 05:39 AM, Wolfram Sang wrote:
> On Mon, Mar 14, 2016 at 11:11:42AM +0800, Yakir Yang wrote:
>> This patch add the i2c dt nodes for rk3228 SoCs.
>>
>> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
> This needs to go via arm-soc.
>
Could you pick up this patch, it's helpful to add rk3228 HDMI support :-)
- Yakir
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs
2016-04-13 1:23 ` Yakir Yang
@ 2016-04-13 2:37 ` Wolfram Sang
2016-04-13 3:12 ` Yakir Yang
0 siblings, 1 reply; 10+ messages in thread
From: Wolfram Sang @ 2016-04-13 2:37 UTC (permalink / raw)
To: Yakir Yang
Cc: Heiko Stuebner, Rob Herring, Kumar Gala, Pawel Moll,
Mark Rutland, Ian Campbell, devicetree, linux-i2c, linux-kernel,
linux-arm-kernel, linux-rockchip
[-- Attachment #1: Type: text/plain, Size: 163 bytes --]
> Could you pick up this patch, it's helpful to add rk3228 HDMI support :-)
I undestand that it is needed, but why not via arm-soc? dts files are
their realm.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs
2016-04-13 2:37 ` Wolfram Sang
@ 2016-04-13 3:12 ` Yakir Yang
0 siblings, 0 replies; 10+ messages in thread
From: Yakir Yang @ 2016-04-13 3:12 UTC (permalink / raw)
To: Wolfram Sang, Heiko Stuebner
Cc: Rob Herring, Kumar Gala, Pawel Moll, Mark Rutland, Ian Campbell,
devicetree, linux-i2c, linux-kernel, linux-arm-kernel,
linux-rockchip
On 04/13/2016 10:37 AM, Wolfram Sang wrote:
>> Could you pick up this patch, it's helpful to add rk3228 HDMI support :-)
> I undestand that it is needed, but why not via arm-soc? dts files are
> their realm.
>
Yep, for previous email, I'm replying to Heiko, but forget to add him to
the "TO" list ;)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs
2016-03-14 3:11 ` [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs Yakir Yang
2016-04-12 21:39 ` Wolfram Sang
@ 2016-04-13 20:57 ` Heiko Stübner
1 sibling, 0 replies; 10+ messages in thread
From: Heiko Stübner @ 2016-04-13 20:57 UTC (permalink / raw)
To: Yakir Yang
Cc: Wolfram Sang, Rob Herring, Kumar Gala, Pawel Moll, Mark Rutland,
Ian Campbell, devicetree, linux-i2c, linux-kernel,
linux-arm-kernel, linux-rockchip
Am Montag, 14. März 2016, 11:11:42 schrieb Yakir Yang:
> This patch add the i2c dt nodes for rk3228 SoCs.
>
> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
applied to my dts32 branch for 4.7, after moving the i2c pinctrl nodes in
between emmc and pwm* (please try to keep alphabetical ordering there)
Heiko
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2016-04-13 20:57 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-14 3:09 [PATCH 1/2] i2c: rk3x: add support for rk3228 Yakir Yang
2016-03-14 3:11 ` [PATCH 2/2] ARM: dts: rockchip: add i2c nodes RK3228 SoCs Yakir Yang
2016-04-12 21:39 ` Wolfram Sang
2016-04-13 1:23 ` Yakir Yang
2016-04-13 2:37 ` Wolfram Sang
2016-04-13 3:12 ` Yakir Yang
2016-04-13 20:57 ` Heiko Stübner
2016-03-14 22:23 ` [PATCH 1/2] i2c: rk3x: add support for rk3228 Heiko Stübner
2016-03-18 20:16 ` Rob Herring
2016-04-12 21:38 ` Wolfram Sang
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).