[PATCH] dts: sun8i-h3: add sy8106a to orange pi plus

2018-09-27 Thread jorik
From: Jorik Jonker The Orange Pi Plus board lacks voltage scaling capabilities in its current form. This results in random freezes during boot when cpufreq is enabled, probably due to wrong voltages. This patch (a copy/paste of 06139c) does the following things on this board: - enable r_i2c

[PATCH] dts: sun8i-h3: correct UART3 pin definitions

2016-12-06 Thread jorik
From: Jorik Jonker In a previous commit, I made a copy/paste error in the pinmux definitions of UART3: PG{13,14} instead of PA{13,14}. This commit takes care of that. I have tested this commit on Orange Pi PC and Orange Pi Plus, and it works for these boards. Fixes: e3d11d3c45c5 ("dts: sun

[PATCH] dts: sun8i-h3: correct UART3 pin definitions

2016-12-04 Thread jorik
From: Jorik Jonker In a previous commit, I made a copy/paste error in the pinmux definitions of UART3: PG{13,14} instead of PA{13,14}. This commit takes care of that. I have tested this commit on Orange Pi PC and Orange Pi Plus, and it works for these boards. Fixes: e3d11d3c45c5 ("dts: sun

[PATCH v5 1/5] dts: sun8i-h3: add pinmux definitions for UART2-3

2016-09-12 Thread jorik
From: Jorik Jonker These are the pinmux definitions for UART2-3 on H3. These UARTs can only be muxed to these pins, so _a and @0 do not really make sense. I have left out RTS/CTS, since these are rarely used. These can easily be enabled using an additional pinmux set. Signed-off-by: Jorik

[PATCH v5 5/5] dts: sun8i-h3: add I2C0-2 peripherals to H3 SOC

2016-09-12 Thread jorik
From: Jorik Jonker These peripherals can only be muxed to these pins, so they are associated in the DTSI instead of the board files. This makes it very easy to enable them using overlays or u-boot commands: => fdt set /soc/i2c@01c2ac00 status okay Signed-off-by: Jorik Jonker --- arch/

[PATCH v5 4/5] dts: sun8i-h3: add pinmux definitions for I2C0-2

2016-09-12 Thread jorik
From: Jorik Jonker These are the only possible pins for these peripherals according to the datasheet. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts

[PATCH v5 3/5] dts: sun8i-h3: associate exposed UARTs on Orange Pi Boards

2016-09-12 Thread jorik
From: Jorik Jonker These H3 boards all expose UART1-3 on their expansion header. Since other functions can be muxed to these pins, they are explicitly disabled. To enable them, one could use DT overlays or U-boot commands: => fdt set /soc/serial@01c28c00 status okay Signed-off-by: Jo

[PATCH v5 2/5] dts: sun8i-h3: split off RTS/CTS for UART1 in seperate pinmux

2016-09-12 Thread jorik
From: Jorik Jonker This was done to make UART1-3 on H3 consistent, and less complicated to enable UART1-3 on the breakout header on the several H3 board (notably Orange Pi's). This patch adds a bit of complexity for the existing Banana Pi, which already had the RTS/CTS associated on UART1.

[PATCH v5 0/5] dts: sun8i-h3: complete UART I2C for H3

2016-09-12 Thread jorik
From: Jorik Jonker This is my fifth attempt to complete the UART/I2C definitions on H3. Many thanks to Maxime and Chen-Yu for helping me understand the philosophy behind the DTS/DTSI structure. I hope I get it and five times is a charm :-) Changes since v4: * RTS/CTS for UART1 is split off

Re: [PATCH v4 4/8] dts: sun8i-h3: move uart1 pinmux/peripheral assocation to DSTI

2016-09-08 Thread Jorik Jonker
On Thu, Sep 08, 2016 at 11:01:53AM +0200, Maxime Ripard wrote: On Thu, Sep 08, 2016 at 10:02:13AM +0200, Jorik Jonker wrote: So, I'm going for a v5, with these changes: - rename uart0_pins to uart0_pa_pins (as there could be a pf) - associate uart0_pa_pins with uart0 on all H3 board DTS

Re: [PATCH v4 4/8] dts: sun8i-h3: move uart1 pinmux/peripheral assocation to DSTI

2016-09-08 Thread Jorik Jonker
Maxime, Chen-Yu: thanks for taking the effort to go through my patches again! On Thu, Sep 08, 2016 at 08:23:17AM +0200, Maxime Ripard wrote: On Wed, Sep 07, 2016 at 09:58:57AM +0200, jo...@kippendief.biz wrote: From: Jorik Jonker Users using this UART without RTS/CTS should override the

[PATCH v4 6/8] dts: sun8i-h3: associate pinmux/peripherals for UART2-3

2016-09-07 Thread jorik
From: Jorik Jonker Although these peripherals are disabled, they are associated to the pinmux definitions. Again, these are the full pinmux defs which include RTS/CTS. One could narrow this down to RX/TX only in a board specific DTS. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3

[PATCH v4 4/8] dts: sun8i-h3: move uart1 pinmux/peripheral assocation to DSTI

2016-09-07 Thread jorik
From: Jorik Jonker Users using this UART without RTS/CTS should override the association in their board specific DTS. All (1) board using this UART uses RTS/CTS, so this breaks nothing. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 -- arch/arm/boot/dts

[PATCH v4 7/8] dts: sun8i-h3: add pinmux definitions for I2C0-2

2016-09-07 Thread jorik
From: Jorik Jonker These are the only possible pins for these peripherals. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index e9528d1

[PATCH v4 5/8] dts: sun8i-h3: add pinmux definitions for UART2-3

2016-09-07 Thread jorik
From: Jorik Jonker These are the pinmux definitions for uarts2-3 on H3. These are the only pins for these UARTS, but one could choose to use reduce them to only RX/TX. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff

[PATCH v4 2/8] dts: sun8i-h3: clarify uart1 pinmux definition name

2016-09-07 Thread jorik
From: Jorik Jonker Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 +- arch/arm/boot/dts/sun8i-h3.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts b/arch/arm/boot/dts

[PATCH v4 8/8] dts: sun8i-h3: add I2C0-2 peripherals to H3 SOC

2016-09-07 Thread jorik
From: Jorik Jonker These peripherals have only possible set of pins, so I have associated the peripherals with those pinmux definitions. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a

[PATCH v4 1/8] dts: sun8i-h3: drop _a and address suffix from uart0 pinmux

2016-09-07 Thread jorik
From: Jorik Jonker These are the only possible pins for UART0 on H3 Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 +- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 2 +- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 2 +- arch/arm/boot/dts/sun8i

[PATCH v4 3/8] dts: sun8i-h3: move uart0 pinmux/peripheral assocation to DSTI

2016-09-07 Thread jorik
From: Jorik Jonker This is the only sensible pinmux/peripheral association for uart0, so I have moved it from the board specific DTS to the DTSI. It is still up to the boards to enable it, though. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 -- arch/arm

[PATCH v4 0/8] dts: sun8i-h3: complete UART I2C definitions for H3

2016-09-07 Thread jorik
From: Jorik Jonker Of course, minutes after sending you notice a huge copy/paste error in the submitted patch. Mae culpa, and here is a new version. This is my fourth attempt to complete the UART/I2C definitions on H3. Changes since v3: * I was sloppy when I copy/pasted the i2c2 peripheral, so

[PATCH v3 1/8] dts: sun8i-h3: drop _a and address suffix from uart0 pinmux

2016-09-07 Thread jorik
From: Jorik Jonker These are the only possible pins for UART0 on H3 Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 +- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 2 +- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 2 +- arch/arm/boot/dts/sun8i

[PATCH v3 0/8] dts: sun8i-h3: complete UART I2C definitions for H3

2016-09-07 Thread jorik
From: Jorik Jonker This is my third attempt to complete the UART/I2C definitions on H3. Changes since v2: * I have moved the pinmux/peripheral associations to the H3 DTSI file, including already existing associations for UART0 and UART1. * I have left out _a and @0 prefixes where there is

[PATCH v3 7/8] dts: sun8i-h3: add pinmux definitions for I2C0-2

2016-09-07 Thread jorik
From: Jorik Jonker These are the only possible pins for these peripherals. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index e9528d1

[PATCH v3 3/8] dts: sun8i-h3: move uart0 pinmux/peripheral assocation to DSTI

2016-09-07 Thread jorik
From: Jorik Jonker This is the only sensible pinmux/peripheral association for uart0, so I have moved it from the board specific DTS to the DTSI. It is still up to the boards to enable it, though. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 -- arch/arm

[PATCH v3 4/8] dts: sun8i-h3: move uart1 pinmux/peripheral assocation to DSTI

2016-09-07 Thread jorik
From: Jorik Jonker Users using this UART without RTS/CTS should override the association in their board specific DTS. All (1) board using this UART uses RTS/CTS, so this breaks nothing. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 -- arch/arm/boot/dts

[PATCH v3 6/8] dts: sun8i-h3: associate pinmux/peripherals for UART2-3

2016-09-07 Thread jorik
From: Jorik Jonker Although these peripherals are disabled, they are associated to the pinmux definitions. Again, these are the full pinmux defs which include RTS/CTS. One could narrow this down to RX/TX only in a board specific DTS. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3

[PATCH v3 8/8] dts: sun8i-h3: add I2C0-2 peripherals to H3 SOC

2016-09-07 Thread jorik
From: Jorik Jonker These peripherals have only possible set of pins, so I have associated the peripherals with those pinmux definitions. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a

[PATCH v3 2/8] dts: sun8i-h3: clarify uart1 pinmux definition name

2016-09-07 Thread jorik
From: Jorik Jonker Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 +- arch/arm/boot/dts/sun8i-h3.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts b/arch/arm/boot/dts

[PATCH v3 5/8] dts: sun8i-h3: add pinmux definitions for UART2-3

2016-09-07 Thread jorik
From: Jorik Jonker These are the pinmux definitions for uarts2-3 on H3. These are the only pins for these UARTS, but one could choose to use reduce them to only RX/TX. Signed-off-by: Jorik Jonker --- arch/arm/boot/dts/sun8i-h3.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff

Re: [PATCH v2 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus

2016-09-06 Thread Jorik Jonker
y do it. Maxime, Chen-Yu: what do you think of this? Best, Jorik signature.asc Description: PGP signature

Re: [PATCH v2 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus

2016-09-03 Thread Jorik Jonker
status = "disabled"; /soc/bar: pinctrl-0 = <&uart1_pins>; status = "disabled"; Assuming Linux/DT allows this, this would force nothing, only offer choice and ease of use. Best, Jorik

Re: [PATCH v2 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals

2016-08-31 Thread Jorik Jonker
Hi, (trying again in plaintext, sorry for the HTML spam...) A bit tricky to reply to two mails in one, as I think my reply relates to both, but here it goes. On 1 September 2016 at 04:42, Chen-Yu Tsai wrote: > On Thu, Sep 1, 2016 at 3:30 AM, wrote: >> From: Jorik Jonker >>

[PATCH v2 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals

2016-08-31 Thread jorik
From: Jorik Jonker 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 --- arch/arm/boot/dts/sun8i-h3.dtsi | 22

[PATCH v2 5/7] dts: sun8i-h3: add UART1-3 to Orange Pi PC

2016-08-31 Thread jorik
From: Jorik Jonker This board has UARTS1-3 exposed on its expansion header Signed-off-by: Jorik Jonker --- 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

[PATCH v2 6/7] dts: sun8i-h3: add I2C0-1 to Orange Pi Plus

2016-08-31 Thread jorik
From: Jorik Jonker This board has I2C0-2 exposed on its expansion header. Signed-off-by: Jorik Jonker --- 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

[PATCH v2 7/7] dts: sun8i-h3: add I2C0-1 to Orange Pi PC

2016-08-31 Thread jorik
From: Jorik Jonker This board has I2C0-I2C1 exposed on its expansion header. Signed-off-by: Jorik Jonker --- 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

[PATCH v2 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus

2016-08-31 Thread jorik
From: Jorik Jonker This board has UARTS1-3 exposed on its expansion header Signed-off-by: Jorik Jonker --- 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

[PATCH v2 2/7] dts: sun8i-h3: add pinmux definitions for i2c0/i2c1

2016-08-31 Thread jorik
From: Jorik Jonker 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 --- arch/arm/boot/dts/sun8i-h3

[PATCH v2 0/7] dts: sun8i: add extra uart/i2c to H3

2016-08-31 Thread jorik
From: Jorik Jonker This is v2 of my patch series. Just after sending I noticed the interrupts of i2c1 were too liberally copy/paste'd. This is fixed in v2. This series is a follow-up to Martin Ayotte's efforts to add additional UARTS and I2C ports to the AllWinner H3 SoC DTS file

[PATCH v2 1/7] dts: sun8i-h3: add pinmux definitions for uart2/uart3

2016-08-31 Thread jorik
From: Jorik Jonker This adds pinmux definitions for uarts 2 and 3 on H3 boards Signed-off-by: Jorik Jonker --- 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

[PATCH 0/7] dts: sun8i: add extra uart/i2c to H3

2016-08-31 Thread jorik
From: Jorik Jonker 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

[PATCH 6/7] dts: sun8i-h3: add I2C0-1 to Orange Pi Plus

2016-08-31 Thread jorik
From: Jorik Jonker This board has I2C0-2 exposed on its expansion header. Signed-off-by: Jorik Jonker --- 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

[PATCH 5/7] dts: sun8i-h3: add UART1-3 to Orange Pi PC

2016-08-31 Thread jorik
From: Jorik Jonker This board has UARTS1-3 exposed on its expansion header Signed-off-by: Jorik Jonker --- 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

[PATCH 4/7] dts: sun8i-h3: add UART1-3 to Orange Pi Plus

2016-08-31 Thread jorik
From: Jorik Jonker This board has UARTS1-3 exposed on its expansion header Signed-off-by: Jorik Jonker --- 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

[PATCH 2/7] dts: sun8i-h3: add pinmux definitions for i2c0/i2c1

2016-08-31 Thread jorik
From: Jorik Jonker 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 --- arch/arm/boot/dts/sun8i-h3

[PATCH 1/7] dts: sun8i-h3: add pinmux definitions for uart2/uart3

2016-08-31 Thread jorik
From: Jorik Jonker This adds pinmux definitions for uarts 2 and 3 on H3 boards Signed-off-by: Jorik Jonker --- 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

[PATCH 7/7] dts: sun8i-h3: add I2C0-1 to Orange Pi PC

2016-08-31 Thread jorik
From: Jorik Jonker This board has I2C0-I2C1 exposed on its expansion header. Signed-off-by: Jorik Jonker --- 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

[PATCH 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals

2016-08-31 Thread jorik
From: Jorik Jonker 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 --- arch/arm/boot/dts/sun8i-h3.dtsi | 22

[PATCH] clk: sunxi-ng: Fix wrong reset register offsets

2016-08-27 Thread jorik
From: Jorik Jonker The reset register offsets for UART*, I2C* and SCR were off by a few bytes. Signed-off-by: Jorik Jonker --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.c b

[PATCH] clk: sunxi-ng: Fix wrong reset register offsets

2016-08-26 Thread jorik
From: Jorik Jonker The reset register offsets for UART*, I2C* and SCR were off by a few bytes. --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.c b/drivers/clk/sunxi-ng/ccu-sun8i-h3.c