Re: [linux-sunxi] Help with V3s

2017-03-21 Thread Icenowy Zheng
21.03.2017, 23:07, "Petar Dimitrijevic" : > Hi, > > I've received a V3s development board few days ago. It has an android FW with > Camdroid installed booting from SPI NOR flash. > Picture of the board as well as the fex file are attached to this message. > > The

Re: [linux-sunxi] Help with V3s

2017-03-21 Thread Benjamin Henrion
On Tue, Mar 21, 2017 at 4:06 PM, Petar Dimitrijevic wrote: > Hi, > > I've received a V3s development board few days ago. It has an android FW > with Camdroid installed booting from SPI NOR flash. > Picture of the board as well as the fex file are attached to this

[linux-sunxi] Re: [PATCH v2 5/7] sunxi: video: Add A64/H3/H5 HDMI driver

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 11:01:26PM +0100, Jernej Skrabec wrote: > This commit adds support for HDMI output. > > Signed-off-by: Jernej Skrabec > Reviewed-by: Simon Glass Acked-by: Maxime Ripard Thanks! Maxime --

[linux-sunxi] Re: [PATCH v2 6/7] sunxi: Disable DE2 video driver where not needed

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 11:01:27PM +0100, Jernej Skrabec wrote: > Because DE2 driver is enabled by default, it is nice to disable it on > all boards which don't have any video output. List of such boards is > also much shorter. > > Signed-off-by: Jernej Skrabec

Re: [linux-sunxi] Help with V3s

2017-03-21 Thread Icenowy Zheng
2017年3月21日 23:06于 Petar Dimitrijevic 写道: > > Hi, > > I've received a V3s development board few days ago. It has an android FW with Camdroid installed booting from SPI NOR flash. > Picture of the board as well as the fex file are attached to this message. > > > The

[linux-sunxi] Re: [PATCH v2 4/7] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-21 Thread Maxime Ripard
Hi, On Mon, Mar 20, 2017 at 11:01:25PM +0100, Jernej Skrabec wrote: > diff --git a/include/configs/sun50i.h b/include/configs/sun50i.h > index 1b7bfb6c22..146f7f4e1b 100644 > --- a/include/configs/sun50i.h > +++ b/include/configs/sun50i.h > @@ -21,6 +21,8 @@ > #define GICD_BASE

[linux-sunxi] Re: [PATCH v2 1/5] dt-bindings: update device tree binding for Allwinner PRCM CCUs

2017-03-21 Thread Icenowy Zheng
21.03.2017, 15:41, "Maxime Ripard" : > On Thu, Mar 16, 2017 at 01:28:04AM +0800, Icenowy Zheng wrote: >>  Many Allwinner SoCs after A31 have a CCU in PRCM block. >> >>  Give the ones on H3 and A64 compatible strings. >> >>  Signed-off-by: Icenowy Zheng

[linux-sunxi] Re: [PATCH v2 2/7] sunxi: video: Split out TCON code

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 11:01:23PM +0100, Jernej Skrabec wrote: > TCON unit has similar layout and functionality also on newer SoCs. This > commit splits out TCON code for easier reuse later. > > Signed-off-by: Jernej Skrabec Acked-by: Maxime Ripard

[linux-sunxi] Re: [PATCH v2 3/7] sunxi: video: Convert lcdc to use struct display_timing

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 11:01:24PM +0100, Jernej Skrabec wrote: > Video driver for older Allwinner SoCs uses cfb console framework which > in turn uses struct ctfb_res_modes to hold timing informations. However, > DM video framework uses different structure - struct display_timing. > > It makes

Re: [linux-sunxi] [PATCH v2 0/7] sunxi: video: Add support for HDMI output on A64/H3/H5

2017-03-21 Thread Code Kipper
I can also confirm this on an A20 with HDMI. Much appreciated, CK On 21 March 2017 at 01:02, Icenowy Zheng wrote: > > > 21.03.2017, 06:01, "Jernej Skrabec" : >> This series implements support for HDMI output. This is done using >> DM video framework and

Re: [linux-sunxi] [PATCH v4 6/8] ARM: sun8i: h3: enable USB OTG on Orange Pi One

2017-03-21 Thread Chen-Yu Tsai
On Mon, Mar 20, 2017 at 12:31 AM, Icenowy Zheng wrote: > Orange Pi One features a MicroUSB port that can work in both host mode > and peripheral mode. > > When in host mode, its VBUS is controlled via a GPIO; when in peripheral > mode, its VBUS cannot be used to power up the

[linux-sunxi] Re: [PATCH v2 1/5] dt-bindings: update device tree binding for Allwinner PRCM CCUs

2017-03-21 Thread Maxime Ripard
On Thu, Mar 16, 2017 at 01:28:04AM +0800, Icenowy Zheng wrote: > Many Allwinner SoCs after A31 have a CCU in PRCM block. > > Give the ones on H3 and A64 compatible strings. > > Signed-off-by: Icenowy Zheng > --- > Changes in v2: > - Add iosc for R_CCU's on H3/A64. (A31, A23

[linux-sunxi] V3s NOR size limit

2017-03-21 Thread 陈北宗
Dear List: I wonder if V3s BROM, U-Boot and Linux kernel can support more than 24 bits in SPI NOR addresses? I am thinking about creating a gadget that boots off NOR directly for a full embedded Linux build. Max -- You received this message because you are subscribed to the Google Groups

[linux-sunxi] SPI NOR boot planning

2017-03-21 Thread 陈北宗
I am trying to create an open source point-and-shoot camera based on some spare parts lying in my bin and the V3s, but still in the style of a single-board computer. V3s don't have a lot of I/O pins and the planned features exhausted it. (I even

[linux-sunxi] Re: [PATCH v2 4/7] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-21 Thread Jernej Škrabec
Hi, Dne torek, 21. marec 2017 ob 20:34:33 CET je Maxime Ripard napisal(a): > Hi, > > On Mon, Mar 20, 2017 at 11:01:25PM +0100, Jernej Skrabec wrote: > > diff --git a/include/configs/sun50i.h b/include/configs/sun50i.h > > index 1b7bfb6c22..146f7f4e1b 100644 > > --- a/include/configs/sun50i.h > >

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

2017-03-21 Thread Chen-Yu Tsai
On Tue, Mar 21, 2017 at 11:36 PM, Quentin Schulz wrote: > This adds almost 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 > > There are more possible

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

2017-03-21 Thread Chen-Yu Tsai
On Tue, Mar 21, 2017 at 11:36 PM, Quentin Schulz wrote: > 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

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

2017-03-21 Thread Chen-Yu Tsai
On Tue, Mar 21, 2017 at 11:36 PM, Quentin Schulz wrote: > 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

[linux-sunxi] Re: [RESEND PATCH v4 2/9] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-03-21 Thread Chen-Yu Tsai
Hi, On Mon, Mar 20, 2017 at 4:16 PM, Quentin Schulz wrote: > The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose the > battery voltage, battery charge and discharge currents, AC-in and VBUS > voltages and currents, 2 GPIOs muxable in ADC mode

[linux-sunxi] [PATCH] ARM: dts: sun6i: sina31s: Enable SPDIF out

2017-03-21 Thread Chen-Yu Tsai
The SinA31s has a coaxial SPDIF output. Enable it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31s-sina31s.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31s-sina31s.dts

Re: [linux-sunxi] Re: [PATCH v2 1/5] dt-bindings: update device tree binding for Allwinner PRCM CCUs

2017-03-21 Thread Icenowy Zheng
2017年3月21日 下午3:41于 Maxime Ripard 写道: > > On Thu, Mar 16, 2017 at 01:28:04AM +0800, Icenowy Zheng wrote: > > Many Allwinner SoCs after A31 have a CCU in PRCM block. > > > > Give the ones on H3 and A64 compatible strings. > > > > Signed-off-by: Icenowy Zheng

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

2017-03-21 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 v3 11/11] ARM: sun8i: sina33: add highest OPP of CPUs

2017-03-21 Thread Quentin Schulz
The A33 supports 1.1GHz and 1.2GHz frequencies at 1.32V and the Sinlinx SinA33 has its cpu-supply property set in the cpu DT node. Therefore, CPUfreq knows how to handle the regulator in charge of the CPU and can adjust its voltage to match the OPP. Add these two CPU frequencies to the CPU OPP

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

2017-03-21 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] [PATCH v3 10/11] ARM: sun8i: a33: Add devfreq-based GPU cooling

2017-03-21 Thread Quentin Schulz
From: Maxime Ripard This adds GPU thermal throttling for the Allwinner A33. Signed-off-by: Maxime Ripard Signed-off-by: Quentin Schulz --- v3: - got rid of cooling-min-level and

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

2017-03-21 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 Acked-by: Rob Herring --- added in v2

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

2017-03-21 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 v3 02/11] ARM: sun8i: a33: add all operating points

2017-03-21 Thread Quentin Schulz
This adds almost 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 There are more possible frequencies in this patch than there are in the fex files because the fex files only give an interval of

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

2017-03-21 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] Re: [PATCH] ARM: sun8i: a33: remove highest OPP to fix CPU crashes

2017-03-21 Thread Maxime Ripard
On Mon, Mar 20, 2017 at 12:25:51PM +0100, Quentin Schulz wrote: > The highest supported frequency (1.2GHz) requires to "overvolt" the CPU. > However, some boards still do not have the cpu-supply DT property in the > cpu DT node which means that the CPU will always run with the same input > voltage