Re: [linux-sunxi] [PATCH v2] sun8i: h3: Add support for the Beelink-x2 STB

2018-11-21 Thread Jagan Teki
On Thu, Nov 15, 2018 at 2:19 PM wrote: > > From: Marcus Cooper > > The Beelink X2 is an STB based on the Allwinner H3 SoC with a uSD slot, > 2 USB ports( 1 * USB-2 Host, 1 USB OTG), a 10/100M ethernet port using the > SoC's integrated PHY, Wifi via an sdio wifi chip, HDMI, an IR receiver, a > dua

Re: [linux-sunxi] Re: [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-11-21 Thread Priit Laes
On Wed, Nov 21, 2018 at 03:58:18PM -0500, Stefan Monnier wrote: > > When powering up an AXP209, the default value for LDO3 output is > > enabled. This works fine. However if for whatever reason, LDO3 is > > disabled, for example by OS during reboot and u-boot enables LDO3 > > again, the PMIC shut

[linux-sunxi] [PATCH] drm/sun4i: wait on implicit fence before display

2018-11-21 Thread Qiang Yu
Render like lima will attach a fence to the framebuffer dma_buf, display like sun4i should wait it finish before show the framebuffer. Otherwise tearing will be observed. Signed-off-by: Qiang Yu --- drivers/gpu/drm/sun4i/sun4i_layer.c| 2 ++ drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 2 ++ dri

Re: [linux-sunxi] [PATCH] drm/sun4i: wait on implicit fence before display

2018-11-21 Thread Qiang Yu
Thanks, thought linux-sunxi is enough. Regards, Qiang On Wed, Nov 21, 2018 at 11:45 PM Jernej Škrabec wrote: > > Hi, > > Dne ponedeljek, 19. november 2018 ob 15:33:11 CET je Qiang Yu napisal(a): > > Render like lima will attach a fence to the framebuffer > > dma_buf, display like sun4i should wai

[linux-sunxi] [RFC PATCH v3 13/17] SoC: sunxi: Add support for Allwinner ARMv5 F1C100s sram

2018-11-21 Thread Mesih Kilinc
Allwinner ARMv5 F1C100s has similar sram controller to sun4i A10 Add compatible strings for it. Signed-off-by: Mesih Kilinc --- drivers/soc/sunxi/sunxi_sram.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c index b4b0f34

[linux-sunxi] [RFC PATCH v3 12/17] dt-bindings: sram: Add Allwinner suniv F1C100s

2018-11-21 Thread Mesih Kilinc
The suniv ARMv5 F1C100s chip has similar sram controller to sun4i A10. Add compatible string for it. Signed-off-by: Mesih Kilinc --- Documentation/devicetree/bindings/sram/sunxi-sram.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sram/sunxi-sram.txt

[linux-sunxi] [RFC PATCH v3 05/17] irqchip/sun4i: add support for suniv interrupt controller

2018-11-21 Thread Mesih Kilinc
The new F-series SoCs (suniv) from Allwinner use an stripped version of the interrupt controller in A10/A13 Add support for it in irq-sun4i driver. Signed-off-by: Mesih Kilinc --- drivers/irqchip/irq-sun4i.c | 104 +++- 1 file changed, 74 insertions(+), 3

[linux-sunxi] [RFC PATCH v3 10/17] dt-bindings: clock: Add Allwinner suniv F1C100s CCU

2018-11-21 Thread Mesih Kilinc
Add compatiple string for Allwinner suniv F1C100s CCU. Add clock and reset definitions. Signed-off-by: Mesih Kilinc --- .../devicetree/bindings/clock/sunxi-ccu.txt| 1 + include/dt-bindings/clock/suniv-ccu-f1c100s.h | 69 ++ include/dt-bindings/reset/suniv-ccu-f

[linux-sunxi] [RFC PATCH v3 06/17] dt-bindings: timer: Add Allwinner suniv timer

2018-11-21 Thread Mesih Kilinc
Add compatible string for Allwinner suniv timer which is similar to sun4i timer. Signed-off-by: Mesih Kilinc --- Documentation/devicetree/bindings/timer/allwinner,sun4i-timer.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/allwin

[linux-sunxi] [RFC PATCH v3 11/17] clk: sunxi-ng: add support for suniv F1C100s SoC

2018-11-21 Thread Mesih Kilinc
The suniv F1C100s SoC (the chip in some new F-series products of Allwinner) has a CCU which seems to be a stripped version of the CCU in SoCs after sun6i. Add support for the CCU. Signed-off-by: Mesih Kilinc --- drivers/clk/sunxi-ng/Kconfig | 5 + drivers/clk/sunxi-ng/Makefile

[linux-sunxi] [RFC PATCH v3 17/17] ARM: suniv: f1c100s: add device tree for Lichee Pi Nano

2018-11-21 Thread Mesih Kilinc
Lichee Pi Nano is a F1C100s board by Lichee Pi. Add initial device tree for it. Signed-off-by: Icenowy Zheng Signed-off-by: Mesih Kilinc --- arch/arm/boot/dts/Makefile| 2 ++ arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts | 26 +++ 2 files change

[linux-sunxi] [RFC PATCH v3 08/17] dt-bindings: pinctrl: Add Allwinner suniv F1C100s pinctrl

2018-11-21 Thread Mesih Kilinc
Add compatible string for Allwinner suniv F1C100s SoC's pinctrl. Signed-off-by: Mesih Kilinc --- Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt b/Doc

[linux-sunxi] [RFC PATCH v3 00/17] initial support for "suniv" Allwinner new ARM9 SoC

2018-11-21 Thread Mesih Kilinc
This is the third version of RFC patchset for Allwinner ARMv5 F1C100s SoC. Addressed comment from Maxime Ripard and fixed device tree bindings to not include patterns. Also sram and watchdog compatibles added for F1C100s. irqchip code reworked to include a struct to differentiate chips. Thanks!

[linux-sunxi] [RFC PATCH v3 15/17] watchdog: Add support for Allwinner ARMv5 F1C100s wdt

2018-11-21 Thread Mesih Kilinc
Allwinner ARMv5 F1C100s has similar watchdog timer to sun6i A31. Add compatible string for it. Signed-off-by: Mesih Kilinc --- drivers/watchdog/sunxi_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c index c6c7365..bc70742 10064

[linux-sunxi] [RFC PATCH v3 07/17] clocksource: sun4i: add a compatible for suniv

2018-11-21 Thread Mesih Kilinc
The suniv (new F-series) chip has a timer with less functionality than the A10 timer, e.g. it has only 3 channels. Add a new compatible for it. As we didn't use the extra channels on A10 either now, the code needn't to be changed. The suniv chip is based on ARM926EJ-S CPU, thus it has no architec

[linux-sunxi] [RFC PATCH v3 02/17] dt-bindings: arm: Add new Allwinner ARMv5 F1C100s SoC

2018-11-21 Thread Mesih Kilinc
Add new Allwinner ARMv5 F1C100s SoC's compatible string Signed-off-by: Mesih Kilinc --- Documentation/devicetree/bindings/arm/sunxi.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.txt b/Documentation/devicetree/bindings/arm/sunxi.txt index e4b

[linux-sunxi] [RFC PATCH v3 09/17] pinctrl: sunxi: add support for suniv F1C100s (newer F-series SoCs)

2018-11-21 Thread Mesih Kilinc
The suniv F1C100s chip (several new F-series SoCs) of Allwinner has a pin controller like other SoCs from Allwinner. Add support for it. Signed-off-by: Mesih Kilinc --- drivers/pinctrl/sunxi/Kconfig | 4 + drivers/pinctrl/sunxi/Makefile| 1 + drivers/pinctrl/

[linux-sunxi] [RFC PATCH v3 14/17] dt-bindings: watchdog: Add Allwinner ARMv5 F1C100s wdt

2018-11-21 Thread Mesih Kilinc
Allwinner ARMv5 F1C100s has similar watchdog timer to sun6i A31. Add definition for it. Signed-off-by: Mesih Kilinc --- Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt b/Documen

[linux-sunxi] [RFC PATCH v3 01/17] ARM: add CONFIG_ARCH_SUNXI_V7 for differentiate ARMv5/v7 Allwinner SoCs

2018-11-21 Thread Mesih Kilinc
Allwinner also has some ARMv5 SoCs. In order to add support for them, add a CONFIG_ARCH_SUNXI_V7 bool config which is selected when a ARMv7 soc is selected, and make CONFIG_ARCH_SUNXI a common option which is selected by both V7 and V5 sunxi option. Signed-off-by: Mesih Kilinc --- arch/arm/mach

[linux-sunxi] [RFC PATCH v3 16/17] ARM: dts: suniv: add initial DTSI file for F1C100s

2018-11-21 Thread Mesih Kilinc
F1C100s is one product with the suniv die, which has a 32MiB co-packaged DDR1 DRAM chip. As we have the support for suniv pin controller and CCU now, add a initial DTSI for it. Signed-off-by: Mesih Kilinc --- arch/arm/boot/dts/suniv-f1c100s.dtsi | 151 +++ 1 file

[linux-sunxi] [RFC PATCH v3 04/17] dt-bindings: interrupt-controller: Add suniv interrupt-controller

2018-11-21 Thread Mesih Kilinc
Add compatible string for Alwinner suniv F1C100s SoC interrupt controller which is stripped version of sun4i Signed-off-by: Mesih Kilinc --- .../devicetree/bindings/interrupt-controller/allwinner,sun4i-ic.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation

[linux-sunxi] [RFC PATCH v3 03/17] ARM: sunxi: add Allwinner ARMv5 SoCs

2018-11-21 Thread Mesih Kilinc
Add option for Allwinner ARMv5 SoCs and SoC F1C100s (which has a die used for many new F-series products, including F1C100A, F1C100s, F1C200s, F1C500, F1C600). Signed-off-by: Mesih Kilinc --- arch/arm/mach-sunxi/Kconfig | 16 +++- arch/arm/mach-sunxi/sunxi.c | 10 ++ 2 files

[linux-sunxi] Re: [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-11-21 Thread Stefan Monnier
> When powering up an AXP209, the default value for LDO3 output is > enabled. This works fine. However if for whatever reason, LDO3 is > disabled, for example by OS during reboot and u-boot enables LDO3 > again, the PMIC shuts down (without setting an interrupt) causing the > board to hang. This

[linux-sunxi] Re: [PATCH v3 6/9] power: axp209: Add support for voltage rate control on LDO3

2018-11-21 Thread Stefan Monnier
> + Increases the voltage by 1.6 mV per uS until the final voltage has > + been reached. Note that the scaling is in 25 mV steps and thus > + the slew rate in reality is about 25 mV/31.250 uS. [...] > + Increases the voltage by 0.8 mV per uS until the final voltage has > + been

[linux-sunxi] Re: [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-11-21 Thread Priit Laes
On Wed, Nov 21, 2018 at 08:05:24PM +0200, Priit Laes wrote: > This is a resend/v2 of a "Stop AXP from crashing when enabling LDO3" series, > posted by Olliver Schinagl in March 2017. Unfortunately it never got past > initial discussion [1], but most Olimex Lime2 boards are still running > into this

[linux-sunxi] [PATCH v3 5/9] power: axp209: Reduce magic values by adding defines for LDO[234]

2018-11-21 Thread Priit Laes
From: Olliver Schinagl The AXP209 has a few 'magisc-ish' values that are better served with clear defines. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-by: Maxime Ripard --- drivers/power/axp209.c | 14 +++--- include/axp209.h | 13 + 2 files chan

[linux-sunxi] [PATCH v3 6/9] power: axp209: Add support for voltage rate control on LDO3

2018-11-21 Thread Priit Laes
From: Olliver Schinagl The AXP209 LDO3 regulator supports voltage rate control, or can set a slew rate. This allows for the power to gradually rise up to the desired voltage, instead of spiking up as fast as possible. Reason to have this can be to reduce the inrush currents for example. There a

[linux-sunxi] [PATCH v3 9/9] arm: sunxi: Reduce inrush current on Olimex OLinuXino-A20-Lime2-eMMC

2018-11-21 Thread Priit Laes
From: Priit Laes The lime2 features a too large capacitor on the LDO3 output, which causes the PMIC to shutdown when enabling power. To be able to still boot up however, we must gradually enable power on LDO3 for this board. We do this by enabling both the inrush quirk and the maximum slope the

[linux-sunxi] [PATCH v3 1/9] sunxi: board: Print error after power initialization fails

2018-11-21 Thread Priit Laes
From: Olliver Schinagl Currently during init, we enable all power, then enable the dram and after that check whether there was an error during power-up. This makes little sense, we should enable power and then check if power was brought up properly before we continue to initialize other things.

[linux-sunxi] [PATCH v3 2/9] sunxi: pmic_bus: Decrease boot time by not writing duplicate data

2018-11-21 Thread Priit Laes
From: Olliver Schinagl When we clear a pmic_bus bit, we do a read-modify-write operation. We waste some time however, by writing back the exact samea value that was already set in the chip. Let us thus only do the write in case data was changed. Signed-off-by: Olliver Schinagl Signed-off-by: Pr

[linux-sunxi] [PATCH v3 3/9] power: axp209: Use BIT() macro

2018-11-21 Thread Priit Laes
From: Olliver Schinagl Use the standard BIT() macro for bitfield definitions in headers. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-by: Maxime Ripard --- include/axp209.h | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --g

[linux-sunxi] [PATCH v3 7/9] power: axp209: Limit inrush current for broken boards

2018-11-21 Thread Priit Laes
From: Olliver Schinagl Some boards feature a capacitance on LDO3's output that is too large, causing inrush currents which as a result, shut down the AXP209. This has been reported before, without knowing the actual cause. A fix appeared to be done with commit 0e6e34ac8dbb ("sunxi: Olimex A20 bo

[linux-sunxi] [PATCH v3 8/9] arm: sunxi: Reduce inrush current on Olimex OLinuXino-A20-Lime2

2018-11-21 Thread Priit Laes
From: Olliver Schinagl The lime2 features a too large capacitor on the LDO3 output, which causes the PMIC to shutdown when enabling power. To be able to still boot up however, we must gradually enable power on LDO3 for this board. We do this by enabling both the inrush quirk and the maximum slop

[linux-sunxi] [PATCH v3 4/9] power: axp209: Define the chip version mask

2018-11-21 Thread Priit Laes
From: Olliver Schinagl Use a define for the chip version mask on the axp209. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-by: Maxime Ripard --- drivers/power/axp209.c | 5 + include/axp209.h | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/d

[linux-sunxi] [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-11-21 Thread Priit Laes
This is a resend/v2 of a "Stop AXP from crashing when enabling LDO3" series, posted by Olliver Schinagl in March 2017. Unfortunately it never got past initial discussion [1], but most Olimex Lime2 boards are still running into this bug. When powering up an AXP209, the default value for LDO3 output

Re: [linux-sunxi] [PATCH] drm/sun4i: wait on implicit fence before display

2018-11-21 Thread Jernej Škrabec
Hi, Dne ponedeljek, 19. november 2018 ob 15:33:11 CET je Qiang Yu napisal(a): > Render like lima will attach a fence to the framebuffer > dma_buf, display like sun4i should wait it finish before > show the framebuffer. Otherwise tearing will be observed. Please resend this patch to all emails lis

[linux-sunxi] [PATCH v1 2/2] Documentation: ARM: sunxi: Add Allwinner SoC T3.

2018-11-21 Thread Hao Zhang
Add Allwinner SoC T3 document and fix format. Signed-off-by: Hao Zhang --- Documentation/devicetree/bindings/arm/sunxi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/sunxi.txt b/Documentation/devicetree/bindings/arm/sunxi.txt inde

[linux-sunxi] [PATCH v1 1/2] ARM: dts: sun8i: Add board dts file for t3-cqa3t-bv3.

2018-11-21 Thread Hao Zhang
The T3/R40/V40 using the same sdk and config file in allwinner sdk, it seem they are the same SOC just with different name, so compatible with R40. The t3-cqa3t-bv3 based on Allwinner T3 SoC, it has various connectors, leds, buttons, and sell on: https://item.taobao.com/item.htm?spm=2013.1.w4023-4

[linux-sunxi] [PATCH v1 0/2] Initial Allwinner T3 support.

2018-11-21 Thread Hao Zhang
Initial Allwinner T3 support. Allwinner T3 (sun8i) SoC features a Quad-Core Cortex-A7 ARM CPU, and a Mali400 MP2 GPU from ARM. It is a not-pin-compatible quad core sucessor of the A20). It's also known as the Allwinner R40. Hao Zhang (2): ARM: dts: sun8i: Add board dts file for t3-cqa3t-bv3.