* [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3
@ 2016-08-31 13:53 jorik
2016-08-31 13:54 ` [PATCH 1/7] dts: sun8i-h3: add pinmux definitions for uart2/uart3 jorik
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: jorik @ 2016-08-31 13:53 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, maxime.ripard, wens, devicetree,
linux-arm-kernel, linux-kernel
Cc: Jorik Jonker
From: Jorik Jonker <jorik@kippendief.biz>
This series is a follow-up to Martin Ayotte's efforts to add additional UARTS
and I2C ports to the AllWinner H3 SoC DTS files. In this series I explicitly
leave out i2c2, since this is not broken out on my boards, so I cannot verify if
it actually works.
After the patch, one enables for example uart1 on a opi+ like this from u-boot:
=> fdt set /soc/serial@01c28400 status okay
Regards,
Jorik
Jorik Jonker (7):
dts: sun8i-h3: add pinmux definitions for uart2/uart3
dts: sun8i-h3: add pinmux definitions for i2c0/i2c1
dts: sun8i-h3: add i2c0/i2c1 SoC peripherals
dts: sun8i-h3: add UART1-3 to Orange Pi Plus
dts: sun8i-h3: add UART1-3 to Orange Pi PC
dts: sun8i-h3: add I2C0-1 to Orange Pi Plus
dts: sun8i-h3: add I2C0-1 to Orange Pi PC
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 25 ++++++++++++++
arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 25 ++++++++++++++
arch/arm/boot/dts/sun8i-h3.dtsi | 50 ++++++++++++++++++++++++++++
3 files changed, 100 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/7] dts: sun8i-h3: add pinmux definitions for uart2/uart3
2016-08-31 13:53 [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik
@ 2016-08-31 13:54 ` jorik
2016-08-31 13:54 ` [PATCH 2/7] dts: sun8i-h3: add pinmux definitions for i2c0/i2c1 jorik
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jorik @ 2016-08-31 13:54 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, maxime.ripard, wens, devicetree,
linux-arm-kernel, linux-kernel
Cc: Jorik Jonker
From: Jorik Jonker <jorik@kippendief.biz>
This adds pinmux definitions for uarts 2 and 3 on H3 boards
Signed-off-by: Jorik Jonker <jorik@kippendief.biz>
---
arch/arm/boot/dts/sun8i-h3.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
index fdf9fdb..7740748 100644
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
@@ -373,6 +373,20 @@
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+
+ uart2_pins_a: uart2@0 {
+ allwinner,pins = "PA0", "PA1";
+ allwinner,function = "uart2";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
+ uart3_pins_a: uart3@0 {
+ allwinner,pins = "PA13", "PA14";
+ allwinner,function = "uart3";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
};
timer@01c20c00 {
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/7] dts: sun8i-h3: add pinmux definitions for i2c0/i2c1
2016-08-31 13:53 [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik
2016-08-31 13:54 ` [PATCH 1/7] dts: sun8i-h3: add pinmux definitions for uart2/uart3 jorik
@ 2016-08-31 13:54 ` jorik
2016-08-31 13:54 ` [PATCH 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals jorik
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jorik @ 2016-08-31 13:54 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, maxime.ripard, wens, devicetree,
linux-arm-kernel, linux-kernel
Cc: Jorik Jonker
From: Jorik Jonker <jorik@kippendief.biz>
This adds proper pinmux definitions for i2c0 and i2c1. Although H3 has a third
i2c controller, these are not exposed on my boards. If someone actually has a
H3 board with an exposed i2c2, they could add the third.
Signed-off-by: Jorik Jonker <jorik@kippendief.biz>
---
arch/arm/boot/dts/sun8i-h3.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
index 7740748..0637b95 100644
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
@@ -327,6 +327,20 @@
interrupt-controller;
#interrupt-cells = <3>;
+ i2c0_pins_a: i2c0@0 {
+ allwinner,pins = "PA11", "PA12";
+ allwinner,function = "i2c0";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
+ i2c1_pins_a: i2c1@0 {
+ allwinner,pins = "PA18", "PA19";
+ allwinner,function = "i2c1";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
mmc0_pins_a: mmc0@0 {
allwinner,pins = "PF0", "PF1", "PF2", "PF3",
"PF4", "PF5";
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals
2016-08-31 13:53 [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik
2016-08-31 13:54 ` [PATCH 1/7] dts: sun8i-h3: add pinmux definitions for uart2/uart3 jorik
2016-08-31 13:54 ` [PATCH 2/7] dts: sun8i-h3: add pinmux definitions for i2c0/i2c1 jorik
@ 2016-08-31 13:54 ` jorik
2016-08-31 13:54 ` [PATCH 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus jorik
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jorik @ 2016-08-31 13:54 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, maxime.ripard, wens, devicetree,
linux-arm-kernel, linux-kernel
Cc: Jorik Jonker
From: Jorik Jonker <jorik@kippendief.biz>
This enables the i2c0/i2c1 peripherals of the SoC. There is actually a third
controller, but I do not have a board on hands on which i2c2 is exposed in such
a way that I can verify that it works.
Signed-off-by: Jorik Jonker <jorik@kippendief.biz>
---
arch/arm/boot/dts/sun8i-h3.dtsi | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
index 0637b95..d6cfef8 100644
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
@@ -469,6 +469,28 @@
status = "disabled";
};
+ i2c0: i2c@01c2ac00 {
+ compatible = "allwinner,sun6i-a31-i2c";
+ reg = <0x01c2ac00 0x400>;
+ interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu CLK_BUS_I2C0>;
+ resets = <&ccu RST_BUS_I2C0>;
+ status = "disabled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ i2c1: i2c@01c2b000 {
+ compatible = "allwinner,sun6i-a31-i2c";
+ reg = <0x01c2b000 0x400>;
+ interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu CLK_BUS_I2C1>;
+ resets = <&ccu RST_BUS_I2C1>;
+ 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.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus
2016-08-31 13:53 [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik
` (2 preceding siblings ...)
2016-08-31 13:54 ` [PATCH 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals jorik
@ 2016-08-31 13:54 ` jorik
2016-08-31 13:54 ` [PATCH 5/7] dts: sun8i-h3: add UART1-3 to Orange Pi PC jorik
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jorik @ 2016-08-31 13:54 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, maxime.ripard, wens, devicetree,
linux-arm-kernel, linux-kernel
Cc: Jorik Jonker
From: Jorik Jonker <jorik@kippendief.biz>
This board has UARTS1-3 exposed on its expansion header
Signed-off-by: Jorik Jonker <jorik@kippendief.biz>
---
arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts
index b0cb417..7a17839 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts
@@ -90,6 +90,21 @@
};
};
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart1_pins_a>;
+};
+
+&uart2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart2_pins_a>;
+};
+
+&uart3 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart3_pins_a>;
+};
+
&usbphy {
usb3_vbus-supply = <®_usb3_vbus>;
};
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 5/7] dts: sun8i-h3: add UART1-3 to Orange Pi PC
2016-08-31 13:53 [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik
` (3 preceding siblings ...)
2016-08-31 13:54 ` [PATCH 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus jorik
@ 2016-08-31 13:54 ` jorik
2016-08-31 13:54 ` [PATCH 6/7] dts: sun8i-h3: add I2C0-1 to Orange Pi Plus jorik
2016-08-31 13:54 ` [PATCH 7/7] dts: sun8i-h3: add I2C0-1 to Orange Pi PC jorik
6 siblings, 0 replies; 8+ messages in thread
From: jorik @ 2016-08-31 13:54 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, maxime.ripard, wens, devicetree,
linux-arm-kernel, linux-kernel
Cc: Jorik Jonker
From: Jorik Jonker <jorik@kippendief.biz>
This board has UARTS1-3 exposed on its expansion header
Signed-off-by: Jorik Jonker <jorik@kippendief.biz>
---
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
index daf50b9..602b012 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
@@ -161,6 +161,21 @@
status = "okay";
};
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart1_pins_a>;
+};
+
+&uart2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart2_pins_a>;
+};
+
+&uart3 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart3_pins_a>;
+};
+
&usbphy {
/* USB VBUS is always on */
status = "okay";
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 6/7] dts: sun8i-h3: add I2C0-1 to Orange Pi Plus
2016-08-31 13:53 [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik
` (4 preceding siblings ...)
2016-08-31 13:54 ` [PATCH 5/7] dts: sun8i-h3: add UART1-3 to Orange Pi PC jorik
@ 2016-08-31 13:54 ` jorik
2016-08-31 13:54 ` [PATCH 7/7] dts: sun8i-h3: add I2C0-1 to Orange Pi PC jorik
6 siblings, 0 replies; 8+ messages in thread
From: jorik @ 2016-08-31 13:54 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, maxime.ripard, wens, devicetree,
linux-arm-kernel, linux-kernel
Cc: Jorik Jonker
From: Jorik Jonker <jorik@kippendief.biz>
This board has I2C0-2 exposed on its expansion header.
Signed-off-by: Jorik Jonker <jorik@kippendief.biz>
---
arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts
index 7a17839..fcacafa 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts
@@ -64,6 +64,16 @@
status = "okay";
};
+&i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pins_a>;
+};
+
+&i2c1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c1_pins_a>;
+};
+
&mmc2 {
pinctrl-names = "default";
pinctrl-0 = <&mmc2_8bit_pins>;
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 7/7] dts: sun8i-h3: add I2C0-1 to Orange Pi PC
2016-08-31 13:53 [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik
` (5 preceding siblings ...)
2016-08-31 13:54 ` [PATCH 6/7] dts: sun8i-h3: add I2C0-1 to Orange Pi Plus jorik
@ 2016-08-31 13:54 ` jorik
6 siblings, 0 replies; 8+ messages in thread
From: jorik @ 2016-08-31 13:54 UTC (permalink / raw)
To: robh+dt, mark.rutland, linux, maxime.ripard, wens, devicetree,
linux-arm-kernel, linux-kernel
Cc: Jorik Jonker
From: Jorik Jonker <jorik@kippendief.biz>
This board has I2C0-I2C1 exposed on its expansion header.
Signed-off-by: Jorik Jonker <jorik@kippendief.biz>
---
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
index 602b012..6102e37 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
@@ -108,6 +108,16 @@
status = "okay";
};
+&i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pins_a>;
+};
+
+&i2c1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c1_pins_a>;
+};
+
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-08-31 13:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-31 13:53 [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik
2016-08-31 13:54 ` [PATCH 1/7] dts: sun8i-h3: add pinmux definitions for uart2/uart3 jorik
2016-08-31 13:54 ` [PATCH 2/7] dts: sun8i-h3: add pinmux definitions for i2c0/i2c1 jorik
2016-08-31 13:54 ` [PATCH 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals jorik
2016-08-31 13:54 ` [PATCH 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus jorik
2016-08-31 13:54 ` [PATCH 5/7] dts: sun8i-h3: add UART1-3 to Orange Pi PC jorik
2016-08-31 13:54 ` [PATCH 6/7] dts: sun8i-h3: add I2C0-1 to Orange Pi Plus jorik
2016-08-31 13:54 ` [PATCH 7/7] dts: sun8i-h3: add I2C0-1 to Orange Pi PC jorik
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).