* [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc
@ 2014-08-18 16:51 Chen-Yu Tsai
2014-08-18 16:51 ` [PATCH v2 1/2] ARM: dts: sun8i: Add i2c controller nodes Chen-Yu Tsai
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2014-08-18 16:51 UTC (permalink / raw)
To: Maxime Ripard; +Cc: Chen-Yu Tsai, linux-arm-kernel, linux-sunxi, linux-kernel
Hi Maxime,
This is v2 of the remaining sun8i series. I've dropped the patches you
merged. The remaining patches have been rebased onto sunxi-next.
This series enables all the controllers on sun8i that we already have
drivers for, excluding SPI as the tablet I have does not use it and
I cannot test it. If there's a way to test it without external connections
or devices please let me know.
The commit logs pretty much explain themselves. Note that PLL6 is not
implemented yet. I've some patches for the clocks that I will send later.
Cheers
ChenYu
Changes since v1:
- Removed clock-frequency from i2c controller nodes, as they match
the default value.
- Dropped patches that were merged in v1.
- Rebased onto sunxi-next.
Chen-Yu Tsai (2):
ARM: dts: sun8i: Add i2c controller nodes
ARM: dts: sun8i: Enable i2c controllers on ippo-q8h-v5
arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts | 19 +++++++++++++++++
arch/arm/boot/dts/sun8i-a23.dtsi | 33 +++++++++++++++++++++++++++++
2 files changed, 52 insertions(+)
--
2.1.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] ARM: dts: sun8i: Add i2c controller nodes
2014-08-18 16:51 [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc Chen-Yu Tsai
@ 2014-08-18 16:51 ` Chen-Yu Tsai
2014-08-18 16:51 ` [PATCH v2 2/2] ARM: dts: sun8i: Enable i2c controllers on ippo-q8h-v5 Chen-Yu Tsai
2014-08-18 17:33 ` [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc Maxime Ripard
2 siblings, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2014-08-18 16:51 UTC (permalink / raw)
To: Maxime Ripard; +Cc: Chen-Yu Tsai, linux-arm-kernel, linux-sunxi, linux-kernel
Add nodes for the 3 i2c controllers found on A23 SoCs to the sun8i DTSI.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun8i-a23.dtsi | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a23.dtsi b/arch/arm/boot/dts/sun8i-a23.dtsi
index 9386d1f..2ec86d36 100644
--- a/arch/arm/boot/dts/sun8i-a23.dtsi
+++ b/arch/arm/boot/dts/sun8i-a23.dtsi
@@ -387,6 +387,39 @@
status = "disabled";
};
+ i2c0: i2c@01c2ac00 {
+ compatible = "allwinner,sun6i-a31-i2c";
+ reg = <0x01c2ac00 0x400>;
+ interrupts = <0 6 4>;
+ clocks = <&apb2_gates 0>;
+ resets = <&apb2_rst 0>;
+ status = "disabled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ i2c1: i2c@01c2b000 {
+ compatible = "allwinner,sun6i-a31-i2c";
+ reg = <0x01c2b000 0x400>;
+ interrupts = <0 7 4>;
+ clocks = <&apb2_gates 1>;
+ resets = <&apb2_rst 1>;
+ status = "disabled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ i2c2: i2c@01c2b400 {
+ compatible = "allwinner,sun6i-a31-i2c";
+ reg = <0x01c2b400 0x400>;
+ interrupts = <0 8 4>;
+ clocks = <&apb2_gates 2>;
+ resets = <&apb2_rst 2>;
+ status = "disabled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
gic: interrupt-controller@01c81000 {
compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
reg = <0x01c81000 0x1000>,
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] ARM: dts: sun8i: Enable i2c controllers on ippo-q8h-v5
2014-08-18 16:51 [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc Chen-Yu Tsai
2014-08-18 16:51 ` [PATCH v2 1/2] ARM: dts: sun8i: Add i2c controller nodes Chen-Yu Tsai
@ 2014-08-18 16:51 ` Chen-Yu Tsai
2014-08-18 17:33 ` [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc Maxime Ripard
2 siblings, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2014-08-18 16:51 UTC (permalink / raw)
To: Maxime Ripard; +Cc: Chen-Yu Tsai, linux-arm-kernel, linux-sunxi, linux-kernel
i2c0 is connected to the gsl1680 capacitive touch panel controller.
i2c1 is connected to an mma7660 3-axis accelerometer.
i2c2 is connected to the front and back gc0309 camera sensors.
The camera sensors require additional regulators be enabled before
they are available.
All these peripherals are not supported by the kernel yet.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts b/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
index ef1e4f3..e9b8cca 100644
--- a/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
+++ b/arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
@@ -43,6 +43,25 @@
};
};
+ i2c0: i2c@01c2ac00 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pins_a>;
+ status = "okay";
+ };
+
+ i2c1: i2c@01c2b000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c1_pins_a>;
+ status = "okay";
+ };
+
+ i2c2: i2c@01c2b400 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c2_pins_a>;
+ /* pull-ups and devices require PMIC regulator */
+ status = "failed";
+ };
+
r_uart: serial@01f02800 {
pinctrl-names = "default";
pinctrl-0 = <&r_uart_pins_a>;
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc
2014-08-18 16:51 [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc Chen-Yu Tsai
2014-08-18 16:51 ` [PATCH v2 1/2] ARM: dts: sun8i: Add i2c controller nodes Chen-Yu Tsai
2014-08-18 16:51 ` [PATCH v2 2/2] ARM: dts: sun8i: Enable i2c controllers on ippo-q8h-v5 Chen-Yu Tsai
@ 2014-08-18 17:33 ` Maxime Ripard
2 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2014-08-18 17:33 UTC (permalink / raw)
To: Chen-Yu Tsai; +Cc: linux-arm-kernel, linux-sunxi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
On Tue, Aug 19, 2014 at 12:51:49AM +0800, Chen-Yu Tsai wrote:
> Hi Maxime,
>
> This is v2 of the remaining sun8i series. I've dropped the patches you
> merged. The remaining patches have been rebased onto sunxi-next.
>
> This series enables all the controllers on sun8i that we already have
> drivers for, excluding SPI as the tablet I have does not use it and
> I cannot test it. If there's a way to test it without external connections
> or devices please let me know.
>
> The commit logs pretty much explain themselves. Note that PLL6 is not
> implemented yet. I've some patches for the clocks that I will send later.
Merged, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-18 17:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 16:51 [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc Chen-Yu Tsai
2014-08-18 16:51 ` [PATCH v2 1/2] ARM: dts: sun8i: Add i2c controller nodes Chen-Yu Tsai
2014-08-18 16:51 ` [PATCH v2 2/2] ARM: dts: sun8i: Enable i2c controllers on ippo-q8h-v5 Chen-Yu Tsai
2014-08-18 17:33 ` [PATCH v2 0/2] ARM: sun8i: Enable pinctrl, i2c and mmc Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox