Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1473497 > unrolled thread
| Started by | jorik@kippendief.biz |
|---|---|
| First post | 2016-08-31 16:00 +0200 |
| Last post | 2016-08-31 16:00 +0200 |
| Articles | 4 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 jorik@kippendief.biz - 2016-08-31 16:00 +0200
[PATCH 6/7] dts: sun8i-h3: add I2C0-1 to Orange Pi Plus jorik@kippendief.biz - 2016-08-31 16:00 +0200
[PATCH 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus jorik@kippendief.biz - 2016-08-31 16:00 +0200
[PATCH 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals jorik@kippendief.biz - 2016-08-31 16:00 +0200
| From | jorik@kippendief.biz |
|---|---|
| Date | 2016-08-31 16:00 +0200 |
| Subject | [PATCH 0/7] dts: sun8i: add extra uart/i2c to H3 |
| Message-ID | <scedA-34F-19@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | jorik@kippendief.biz |
|---|---|
| Date | 2016-08-31 16:00 +0200 |
| Subject | [PATCH 6/7] dts: sun8i-h3: add I2C0-1 to Orange Pi Plus |
| Message-ID | <scedA-34F-27@gated-at.bofh.it> |
| In reply to | #1473497 |
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
[toc] | [prev] | [next] | [standalone]
| From | jorik@kippendief.biz |
|---|---|
| Date | 2016-08-31 16:00 +0200 |
| Subject | [PATCH 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus |
| Message-ID | <scedB-34F-47@gated-at.bofh.it> |
| In reply to | #1473497 |
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
[toc] | [prev] | [next] | [standalone]
| From | jorik@kippendief.biz |
|---|---|
| Date | 2016-08-31 16:00 +0200 |
| Subject | [PATCH 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals |
| Message-ID | <scedB-34F-49@gated-at.bofh.it> |
| In reply to | #1473497 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web