All of lore.kernel.org
 help / color / mirror / Atom feed
From: Icenowy Zheng <icenowy@aosc.io>
To: Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	Maxime Ripard <maxime.ripard@free-electrons.com>,
	Chen-Yu Tsai <wens@csie.org>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-sunxi@googlegroups.com,
	Ondrej Jirman <megous@megous.com>,
	Icenowy Zheng <icenowy@aosc.io>
Subject: [PATCH 04/10] ARM: sunxi: h3/h5: Add r_i2c I2C controller
Date: Sun, 23 Jul 2017 18:27:43 +0800	[thread overview]
Message-ID: <20170723102749.17323-5-icenowy@aosc.io> (raw)
In-Reply-To: <20170723102749.17323-1-icenowy@aosc.io>

From: Ondrej Jirman <megous@megous.com>

Allwinner H3/H5 SoCs have an I2C controller at PL GPIO bank.

Add support for it in the device tree.

Signed-off-by: Ondrej Jirman <megous@megous.com>
[Icenowy: Change to use r_ccu and change pinmux node name]
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
---
 arch/arm/boot/dts/sunxi-h3-h5.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
index b240099bc865..65643c4710a3 100644
--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
@@ -624,6 +624,20 @@
 			status = "disabled";
 		};
 
+		r_i2c: i2c@01f02400 {
+			compatible = "allwinner,sun6i-a31-i2c";
+			reg = <0x01f02400 0x400>;
+			interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&r_i2c_pins>;
+			clocks = <&r_ccu CLK_APB0_I2C>;
+			clock-frequency = <100000>;
+			resets = <&r_ccu RST_APB0_I2C>;
+			status = "disabled";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
 		r_pio: pinctrl@01f02c00 {
 			compatible = "allwinner,sun8i-h3-r-pinctrl";
 			reg = <0x01f02c00 0x400>;
-- 
2.13.0

WARNING: multiple messages have this Message-ID (diff)
From: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org>
To: Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Maxime Ripard
	<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
	Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
	Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>,
	Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org>
Subject: [PATCH 04/10] ARM: sunxi: h3/h5: Add r_i2c I2C controller
Date: Sun, 23 Jul 2017 18:27:43 +0800	[thread overview]
Message-ID: <20170723102749.17323-5-icenowy@aosc.io> (raw)
In-Reply-To: <20170723102749.17323-1-icenowy-h8G6r0blFSE@public.gmane.org>

From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>

Allwinner H3/H5 SoCs have an I2C controller at PL GPIO bank.

Add support for it in the device tree.

Signed-off-by: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
[Icenowy: Change to use r_ccu and change pinmux node name]
Signed-off-by: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org>
---
 arch/arm/boot/dts/sunxi-h3-h5.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
index b240099bc865..65643c4710a3 100644
--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
@@ -624,6 +624,20 @@
 			status = "disabled";
 		};
 
+		r_i2c: i2c@01f02400 {
+			compatible = "allwinner,sun6i-a31-i2c";
+			reg = <0x01f02400 0x400>;
+			interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&r_i2c_pins>;
+			clocks = <&r_ccu CLK_APB0_I2C>;
+			clock-frequency = <100000>;
+			resets = <&r_ccu RST_APB0_I2C>;
+			status = "disabled";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
 		r_pio: pinctrl@01f02c00 {
 			compatible = "allwinner,sun8i-h3-r-pinctrl";
 			reg = <0x01f02c00 0x400>;
-- 
2.13.0

WARNING: multiple messages have this Message-ID (diff)
From: icenowy@aosc.io (Icenowy Zheng)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 04/10] ARM: sunxi: h3/h5: Add r_i2c I2C controller
Date: Sun, 23 Jul 2017 18:27:43 +0800	[thread overview]
Message-ID: <20170723102749.17323-5-icenowy@aosc.io> (raw)
In-Reply-To: <20170723102749.17323-1-icenowy@aosc.io>

From: Ondrej Jirman <megous@megous.com>

Allwinner H3/H5 SoCs have an I2C controller at PL GPIO bank.

Add support for it in the device tree.

Signed-off-by: Ondrej Jirman <megous@megous.com>
[Icenowy: Change to use r_ccu and change pinmux node name]
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
---
 arch/arm/boot/dts/sunxi-h3-h5.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
index b240099bc865..65643c4710a3 100644
--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
@@ -624,6 +624,20 @@
 			status = "disabled";
 		};
 
+		r_i2c: i2c at 01f02400 {
+			compatible = "allwinner,sun6i-a31-i2c";
+			reg = <0x01f02400 0x400>;
+			interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&r_i2c_pins>;
+			clocks = <&r_ccu CLK_APB0_I2C>;
+			clock-frequency = <100000>;
+			resets = <&r_ccu RST_APB0_I2C>;
+			status = "disabled";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
 		r_pio: pinctrl at 01f02c00 {
 			compatible = "allwinner,sun8i-h3-r-pinctrl";
 			reg = <0x01f02c00 0x400>;
-- 
2.13.0

  parent reply	other threads:[~2017-07-23 10:28 UTC|newest]

Thread overview: 121+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-23 10:27 [PATCH 00/10] A trial to Allwinner H3 DVFS support Icenowy Zheng
2017-07-23 10:27 ` Icenowy Zheng
2017-07-23 10:27 ` Icenowy Zheng
2017-07-23 10:27 ` [PATCH 01/10] dt-bindings: add binding for the SY8160A voltage regulator Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-24  3:06   ` [linux-sunxi] " Chen-Yu Tsai
2017-07-24  3:06     ` Chen-Yu Tsai
2017-07-24  3:06     ` Chen-Yu Tsai
2017-08-03 16:30   ` Rob Herring
2017-08-03 16:30     ` Rob Herring
2017-08-03 16:30     ` Rob Herring
2017-07-23 10:27 ` [PATCH 02/10] regulator: add support for SY8106A regulator Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-24  3:03   ` [linux-sunxi] " Chen-Yu Tsai
2017-07-24  3:03     ` Chen-Yu Tsai
2017-07-24  3:03     ` Chen-Yu Tsai
2017-07-24  3:18     ` [linux-sunxi] " icenowy
2017-07-24  3:18       ` icenowy at aosc.io
2017-07-24  3:18       ` icenowy-h8G6r0blFSE
2017-07-24  3:33       ` [linux-sunxi] " Chen-Yu Tsai
2017-07-24  3:33         ` Chen-Yu Tsai
2017-07-24  3:33         ` Chen-Yu Tsai
2017-07-24  3:38         ` icenowy
2017-07-24  3:38           ` icenowy at aosc.io
2017-07-24  6:17           ` Chen-Yu Tsai
2017-07-24  6:17             ` Chen-Yu Tsai
2017-07-24  6:17             ` Chen-Yu Tsai
2017-07-24 15:03     ` [linux-sunxi] " Mark Brown
2017-07-24 15:03       ` Mark Brown
2017-07-23 10:27 ` [PATCH 03/10] ARM: sunxi: h3/h5: Add r_i2c pinmux node Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-24  3:07   ` [linux-sunxi] " Chen-Yu Tsai
2017-07-24  3:07     ` Chen-Yu Tsai
2017-07-24  3:07     ` Chen-Yu Tsai
2017-07-24  3:09     ` icenowy
2017-07-24  3:09       ` icenowy at aosc.io
2017-07-23 10:27 ` Icenowy Zheng [this message]
2017-07-23 10:27   ` [PATCH 04/10] ARM: sunxi: h3/h5: Add r_i2c I2C controller Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-24  3:09   ` [linux-sunxi] " Chen-Yu Tsai
2017-07-24  3:09     ` Chen-Yu Tsai
2017-07-24  3:09     ` Chen-Yu Tsai
2017-07-23 10:27 ` [PATCH 05/10] clk: sunxi-ng: h3: gate then ungate PLL CPU clk after rate change Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-26  0:36   ` Stephen Boyd
2017-07-26  0:36     ` Stephen Boyd
2017-07-26  0:36     ` Stephen Boyd
2017-07-26  7:14   ` [linux-sunxi] " Chen-Yu Tsai
2017-07-26  7:14     ` Chen-Yu Tsai
2017-07-26  7:14     ` Chen-Yu Tsai
2017-08-04  4:09     ` [linux-sunxi] " Chen-Yu Tsai
2017-08-04  4:09       ` Chen-Yu Tsai
2017-08-04  4:09       ` Chen-Yu Tsai
2017-08-04  4:09       ` Chen-Yu Tsai
2017-07-23 10:27 ` [PATCH 06/10] clk: sunxi-ng: allow set parent clock (PLL_CPUX) for CPUX clock on H3 Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-24  3:10   ` [linux-sunxi] " Chen-Yu Tsai
2017-07-24  3:10     ` Chen-Yu Tsai
2017-07-24  3:10     ` Chen-Yu Tsai
2017-08-04  4:10     ` [linux-sunxi] " Chen-Yu Tsai
2017-08-04  4:10       ` Chen-Yu Tsai
2017-08-04  4:10       ` Chen-Yu Tsai
2017-08-04  4:10       ` Chen-Yu Tsai
2017-07-26  0:36   ` Stephen Boyd
2017-07-26  0:36     ` Stephen Boyd
2017-07-23 10:27 ` [PATCH 07/10] cpufreq: dt: Add support for some new Allwinner SoCs Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-24  8:53   ` Viresh Kumar
2017-07-24  8:53     ` Viresh Kumar
2017-07-24 11:46     ` Rafael J. Wysocki
2017-07-24 11:46       ` Rafael J. Wysocki
2017-07-24 11:46       ` Rafael J. Wysocki
2017-08-15  5:42       ` Chen-Yu Tsai
2017-08-15  5:42         ` Chen-Yu Tsai
2017-08-15  5:42         ` Chen-Yu Tsai
2017-08-15 12:25         ` Rafael J. Wysocki
2017-08-15 12:25           ` Rafael J. Wysocki
2017-08-15 12:38           ` icenowy
2017-08-15 12:38             ` icenowy at aosc.io
2017-08-15 12:39           ` Chen-Yu Tsai
2017-08-15 12:39             ` Chen-Yu Tsai
2017-08-15 12:39             ` Chen-Yu Tsai
2017-08-17 17:03             ` Chen-Yu Tsai
2017-08-17 17:03               ` Chen-Yu Tsai
2017-08-17 17:03               ` Chen-Yu Tsai
2017-07-23 10:27 ` [PATCH 08/10] ARM: sun8i: h3: add operating-points-v2 table for CPU Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27 ` [PATCH 09/10] ARM: sun8i: h2+: add SY8113B regulator used by Orange Pi Zero board Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-24  4:09   ` [linux-sunxi] " Chen-Yu Tsai
2017-07-24  4:09     ` Chen-Yu Tsai
2017-07-24  4:09     ` Chen-Yu Tsai
2017-07-23 10:27 ` [PATCH 10/10] ARM: dts: sun8i: Add SY8106A regulator to Orange Pi PC Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-23 10:27   ` Icenowy Zheng
2017-07-26  7:08   ` [linux-sunxi] " Chen-Yu Tsai
2017-07-26  7:08     ` Chen-Yu Tsai
2017-07-26  7:16     ` Icenowy Zheng
2017-07-26  7:16       ` Icenowy Zheng
2017-07-26  7:30       ` Chen-Yu Tsai
2017-07-26  7:30         ` Chen-Yu Tsai
2017-07-26  7:36         ` icenowy
2017-07-26  7:36           ` icenowy at aosc.io
2017-07-26 10:23           ` Ondřej Jirman
2017-07-26 10:23             ` Ondřej Jirman
2017-07-26 10:23             ` 'Ondřej Jirman' via linux-sunxi
2017-07-26 11:44             ` [linux-sunxi] " Maxime Ripard
2017-07-26 11:44               ` Maxime Ripard
2017-07-26 12:42               ` icenowy
2017-07-26 12:42                 ` icenowy at aosc.io
2017-07-26 12:54               ` Ondřej Jirman
2017-07-26 12:54                 ` Ondřej Jirman

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=20170723102749.17323-5-icenowy@aosc.io \
    --to=icenowy@aosc.io \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=megous@megous.com \
    --cc=wens@csie.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.