[linux-sunxi] Re: [PATCH 4/8] sunxi: video: Split out TCON code

2017-03-10 Thread Maxime Ripard
Hi, On Thu, Mar 09, 2017 at 06:16:27PM +0100, Jernej Škrabec wrote: > Hi Maxime, > > Dne četrtek, 09. marec 2017 ob 09:33:06 CET je Maxime Ripard napisal(a): > > Hi, > > > > Thanks for your great work. > > > > On Thu, Mar 09, 2017 at 12:34:40AM +0100, Jernej Skrabec wrote: > > > - writel(0,

[linux-sunxi] [PATCH v2 02/11] ARM: sun8i: a33: add all operating points

2017-03-10 Thread Quentin Schulz
This adds all operating points allowed for the A33 as defined by fex files available at: https://github.com/linux-sunxi/sunxi-boards/tree/master/sys_config/a33 Signed-off-by: Quentin Schulz --- added in v2 arch/arm/boot/dts/sun8i-a33.dtsi | 60

[linux-sunxi] [PATCH v2 04/11] ARM: dts: sun8i: olinuxino: add cpu-supply

2017-03-10 Thread Quentin Schulz
This adds the cpu-supply DT property to the cpu0 DT node needed by the board to adapt the regulator voltage depending on the currently use OPP. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 4 1 file changed, 4

[linux-sunxi] [PATCH v2 06/11] Documentation: DT: bindings: input: touschcreen: remove sun4i documentation

2017-03-10 Thread Quentin Schulz
This patch removes the sun4i touchscreen controller binding documentation since it has been merged with the sun4i GPADC binding documentation. Signed-off-by: Quentin Schulz --- added in v2 .../bindings/input/touchscreen/sun4i.txt | 38

[linux-sunxi] [PATCH v2 03/11] ARM: dts: sun8i: sina33: add cpu-supply

2017-03-10 Thread Quentin Schulz
This adds the cpu-supply DT property to the cpu0 DT node needed by the board to adapt the regulator voltage depending on the currently used OPP. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4

[linux-sunxi] [PATCH v2 08/11] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2017-03-10 Thread Quentin Schulz
This adds support for the Allwinner A33 thermal sensor. Unlike the A10, A13 and A31, the Allwinner A33 only has one channel which is dedicated to the thermal sensor. Moreover, its thermal sensor does not generate interruptions, thus we only need to directly read the register storing the

[linux-sunxi] [PATCH v2 05/11] Documentation: DT: bindings: mfd: add A33 GPADC binding

2017-03-10 Thread Quentin Schulz
This patch adds documentation for the A33 GPADC binding. Signed-off-by: Quentin Schulz --- added in v2 .../devicetree/bindings/mfd/sun4i-gpadc.txt| 59 ++ 1 file changed, 59 insertions(+) create mode 100644

[linux-sunxi] [PATCH v2 00/11] add thermal throttling to Allwinner A33 SoC

2017-03-10 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. We currently have a driver for the two latter functions in

[linux-sunxi] [PATCH v2 07/11] iio: adc: sun4i-gpadc-iio: move code used in MFD probing to new function

2017-03-10 Thread Quentin Schulz
This moves code used in MFD probing to a new sun4i_gpadc_probe_mfd function. Signed-off-by: Quentin Schulz --- added in v2 drivers/iio/adc/sun4i-gpadc-iio.c | 78 ++- 1 file changed, 45 insertions(+), 33 deletions(-) diff

[linux-sunxi] [PATCH v2 09/11] ARM: dtsi: sun8i: a33: add thermal sensor

2017-03-10 Thread Quentin Schulz
This adds the DT node for the thermal sensor present in the Allwinner A33 GPADC. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a33.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi

[linux-sunxi] [PATCH v2 10/11] ARM: dtsi: sun8i: a33: add CPU thermal throttling

2017-03-10 Thread Quentin Schulz
This adds CPU thermal throttling for the Allwinner A33. It uses the thermal sensor present in the SoC's GPADC. Signed-off-by: Quentin Schulz --- v2: - updated cooling-max-level to reflect newly added OPPs, arch/arm/boot/dts/sun8i-a33.dtsi | 47

[linux-sunxi] [PATCH v2 01/11] ARM: sun8i: a33: add operating-points-v2 property to all nodes

2017-03-10 Thread Quentin Schulz
The OPP are declared as shared but no operating points are declared for cpu1, 2 and 3. Thus, the following error happens during the boot: cpu cpu1: dev_pm_opp_of_get_sharing_cpus: Couldn't find tcpu_dev node. This patch applies the operating points to each cpu of the A33. Signed-off-by: Quentin

[linux-sunxi] Re: [PATCH 3/8] rockchip: video: Split out HDMI controller code

2017-03-10 Thread Jernej Škrabec
Hi Nickey, Dne petek, 10. marec 2017 ob 03:19:44 CET je Nickey.Yang napisal(a): > Hi Jernej, > > 在 2017年03月09日 07:34, Jernej Skrabec 写道: > > Designware HDMI controller and phy are used in other SoCs as well. Split > > out platform independent code. > > > > DW HDMI has 8 bit registers but they

[linux-sunxi] Re: [PATCH v2 05/11] Documentation: DT: bindings: mfd: add A33 GPADC binding

2017-03-10 Thread Icenowy Zheng
10.03.2017, 18:56, "Quentin Schulz" : > This patch adds documentation for the A33 GPADC binding. > > Signed-off-by: Quentin Schulz > --- > > added in v2 > >  .../devicetree/bindings/mfd/sun4i-gpadc.txt | 59

[linux-sunxi] Re: [PATCH v2 09/11] ARM: dtsi: sun8i: a33: add thermal sensor

2017-03-10 Thread Icenowy Zheng
10.03.2017, 18:42, "Quentin Schulz" : > This adds the DT node for the thermal sensor present in the Allwinner > A33 GPADC. > > Signed-off-by: Quentin Schulz > --- >  arch/arm/boot/dts/sun8i-a33.dtsi | 12 >  1

[linux-sunxi] Re: [PATCH v2 05/11] Documentation: DT: bindings: mfd: add A33 GPADC binding

2017-03-10 Thread Icenowy Zheng
10.03.2017, 20:26, "Maxime Ripard" : > On Fri, Mar 10, 2017 at 11:39:15AM +0100, Quentin Schulz wrote: >>  This patch adds documentation for the A33 GPADC binding. >> >>  Signed-off-by: Quentin Schulz >>  --- >> >>  added in

Re: [linux-sunxi] [PATCH] ARM: dts: sun8i: A23/A33: add SPI controller and pinmux

2017-03-10 Thread Icenowy Zheng
10.03.2017, 20:11, "Jiri Novotny" : > According A33 and H3 datasheet both SPI controllers look the same. > This patch adds SPI controller from sun8i-h3 with pinmux A and B. > Simple tests were done using spidev on Olinuxino-A33. > > Signed-off-by: Jiri Novotny

[linux-sunxi] Re: [PATCH v2 07/11] iio: adc: sun4i-gpadc-iio: move code used in MFD probing to new function

2017-03-10 Thread Icenowy Zheng
10.03.2017, 18:56, "Quentin Schulz" : > This moves code used in MFD probing to a new sun4i_gpadc_probe_mfd > function. > > Signed-off-by: Quentin Schulz > --- > > added in v2 > >  drivers/iio/adc/sun4i-gpadc-iio.c | 78 >

[linux-sunxi] Re: [PATCH v2 05/11] Documentation: DT: bindings: mfd: add A33 GPADC binding

2017-03-10 Thread Maxime Ripard
On Fri, Mar 10, 2017 at 11:39:15AM +0100, Quentin Schulz wrote: > This patch adds documentation for the A33 GPADC binding. > > Signed-off-by: Quentin Schulz > --- > > added in v2 > > .../devicetree/bindings/mfd/sun4i-gpadc.txt| 59 >

[linux-sunxi] [PATCH v4 2/3] sunxi: add DTSI file for V3s

2017-03-10 Thread Icenowy Zheng
As we have now V3s support in board code, the V3s DTSI file should also be added. Add also some CCU include headers to satisfy the DTSI file. Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard --- Changes in v4: - Add Maxime's ACK.

[linux-sunxi] [PATCH v4 0/3] Allwinner V3s and Lichee Pi Zero support (w/o SPL)

2017-03-10 Thread Icenowy Zheng
Allwinner V3s is a SoC with single-core Cortex-A7 and 64MiB DRAM co-packaged in a eLQFP package, which is suitable for manual soldering. This patchset adds basic support for it. SPL support is still missing, due to some reworks on DRAM initialization code is needed.(the co-packaged DRAM is DDR2,

[linux-sunxi] [PATCH v4 1/3] sunxi: add basic V3s support

2017-03-10 Thread Icenowy Zheng
Basic U-Boot support is now present for V3s. Some memory addresses are changed specially for V3s, as the original address map cannot fit into a so small DRAM. As the DRAM controller code needs a big refactor, the SPL support is disabled in this version. Signed-off-by: Icenowy Zheng