[linux-sunxi] Re: [PATCH 0/2] ARM: dts: sunxi: Remove no longer used pinctrl/sun4i-a10.h header

2017-03-07 Thread Maxime Ripard
On Wed, Mar 08, 2017 at 11:28:19AM +0800, Chen-Yu Tsai wrote: > Hi Maxime, > > This series gets rid of the last usage of the Allwinner specific pinconf > bindings, and drops inclusion of dt-bindings/pinctrl/sun4i-a10.h across > the tree. > > Patch 1 gets rid of the last occurrence of Allwinner

[linux-sunxi] Re: [PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite

2017-03-07 Thread Stefan Monnier
>> + if (encoder->encoder_type == DRM_MODE_ENCODER_TVDAC) >> + val = 1; >> + else >> + val = 0; Isn't this better written as val = (encoder->encoder_type == DRM_MODE_ENCODER_TVDAC); -- Stefan -- You received this message because you are

[linux-sunxi] Re: [PATCH 11/15] drm/sun4i: tcon: Fix tcon channel 1 backporch calculation

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > It seems like what's called a backporch in the datasheet is actually the > backporch plus the sync period. Fix that in our driver. > > Signed-off-by: Maxime Ripard > --- >

[linux-sunxi] Re: [PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > Even though that mux is undocumented, it seems like it needs to be set to 1 > when using composite, and 0 when using HDMI. > > Signed-off-by: Maxime Ripard > --- >

[linux-sunxi] Re: [PATCH 6/15] dt-bindings: display: sun4i: Add HDMI display bindings

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > One of the possible output of the display pipeline, on the SoCs that have > it, is the HDMI controller. > > Add a binding for it. > > Signed-off-by: Maxime Ripard Acked-by:

[linux-sunxi] Re: [PATCH 8/15] drm/sun4i: tcon: Add channel debug

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > While all functions have debug logs, the channel enable and disable are not > logged. Make sure this is the case. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [linux-sunxi] [PATCH 14/15] ARM: sun5i: a10s: Add the HDMI controller node

2017-03-07 Thread Chen-Yu Tsai
Hi, On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > The A10s has an HDMI controller connected to the second TCON channel. Add > it to our DT. > > Signed-off-by: Maxime Ripard > --- > arch/arm/boot/dts/sun5i-a10s.dtsi |

[linux-sunxi] [PATCH 2/2] ARM: dts: sunxi: Remove no longer used pinctrl/sun4i-a10.h header

2017-03-07 Thread Chen-Yu Tsai
All dts files for the sunxi platform have been switched to the generic pinconf bindings. As a result, the sunxi specific pinctrl macros are no longer used. Remove the #include entry with the following command: sed --follow-symlinks -i -e '/pinctrl\/sun4i-a10.h/D' \

[linux-sunxi] [PATCH 1/2] ARM: dts: sun8i-a23-q8-tablet: Drop pinmux setting for codec PA gpio

2017-03-07 Thread Chen-Yu Tsai
The old sunxi specific pinctrl bindings are deprecated, in favor of the new generic pinconf bindings. Also, we are moving towards handling GPIO pinmux settings that don't require extra bias or drive strength settings to use the GPIO bindings only. This patch removes the last instance of the sunxi

[linux-sunxi] [PATCH 0/2] ARM: dts: sunxi: Remove no longer used pinctrl/sun4i-a10.h header

2017-03-07 Thread Chen-Yu Tsai
Hi Maxime, This series gets rid of the last usage of the Allwinner specific pinconf bindings, and drops inclusion of dt-bindings/pinctrl/sun4i-a10.h across the tree. Patch 1 gets rid of the last occurrence of Allwinner specific pinconf properties, which is actually a GPIO pinmux. Patch 2 drops

[linux-sunxi] Re: [PATCH v8 0/6] Allwinner H5 and Orange Pi PC2 support

2017-03-07 Thread Icenowy Zheng
08.03.2017, 01:07, "Maxime Ripard" : > Hi, > > On Tue, Mar 07, 2017 at 01:17:44AM +0800, Icenowy Zheng wrote: >>  Allwinner H5 is a 64-bit SoC with a design like the 32-bit >>  H3, and it's pin-to-pin compatible with H3. >> >>  This patchset adds support for it,

[linux-sunxi] Re: [PATCH v8 0/6] Allwinner H5 and Orange Pi PC2 support

2017-03-07 Thread Icenowy Zheng
08.03.2017, 01:07, "Maxime Ripard" : > Hi, > > On Tue, Mar 07, 2017 at 01:17:44AM +0800, Icenowy Zheng wrote: >>  Allwinner H5 is a 64-bit SoC with a design like the 32-bit >>  H3, and it's pin-to-pin compatible with H3. >> >>  This patchset adds support for it,

[linux-sunxi] Re: [PATCH v8 6/6] arm64: dts: allwinner: h5: add support for the Orange Pi PC 2 board

2017-03-07 Thread Maxime Ripard
On Mon, Mar 06, 2017 at 10:49:05PM +0100, Rask Ingemann Lambertsen wrote: > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts > > b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts > > new file mode 100644 > > index ..30639729920d > > --- /dev/null > >

[linux-sunxi] Re: sun4i-ts hwmon broken with linux 4.10

2017-03-07 Thread Michael Weiser
Okay, shame on me, On Sun, Feb 26, 2017 at 03:23:48PM +0100, Michael Weiser wrote: > With 4.10 the sensor isn't found any more and /sys/class/hwmon is > completely empty: Turns out with CONFIG_MFD_SUN4I_GPADC enabled sun4i-ts isn't found any more. If I leave sun4i-gpadc out of the kernel, all

[linux-sunxi] Re: [PATCH 1/15] clk: divider: Make divider_round_rate take the parent clock

2017-03-07 Thread Stephen Boyd
On 03/07, Maxime Ripard wrote: > So far, divider_round_rate only considers the parent clock returned by > clk_hw_get_parent. > > This works fine on clocks that have a single parents, this doesn't work on > muxes, since we will only consider the first parent, while other parents > may totally be

[linux-sunxi] Re: [PATCH 0/15] drm: sun4i: Add support for the HDMI controller

2017-03-07 Thread Stefan Monnier
> Here is an attempt at getting the HDMI controller running. > This HDMI controller is found on a number of old Allwinner SoCs (A10, A10s, > A20, A31). Thank you thank you thank you. Stefan "I need it on the A20, so we're not quite there yet, but it's great to see

Re: [linux-sunxi] [PATCH 5/15] clk: sunxi-ng: sun5i: Export video PLLs

2017-03-07 Thread Julian Calaby
Hi Maxime, On Tue, Mar 7, 2017 at 7:56 PM, Maxime Ripard wrote: > The video PLLs are used directly by the HDMI controller. Export them so > that we can use them in our DT node. > > Signed-off-by: Maxime Ripard > --- >

[linux-sunxi] Re: [PATCH 12/15] drm/sun4i: tcon: multiply the vtotal when not in interlace

2017-03-07 Thread Chen-Yu Tsai
Hi, On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > It appears that the total vertical resolution needs to be doubled when > we're not in interlaced. Make sure that is the case. This is true for both channels, though we handle them differently. > >

[linux-sunxi] [PATCH 2/15] clk: sunxi-ng: Pass the parent and a pointer to the clocks round rate

2017-03-07 Thread Maxime Ripard
The clocks might need to modify their parent clocks. In order to make that possible, give them access to the parent clock being evaluated, and to a pointer to the parent rate so that they can modify it if needed. Signed-off-by: Maxime Ripard ---

[linux-sunxi] [PATCH 15/15] ARM: sun5i: a10s-olinuxino: Enable HDMI

2017-03-07 Thread Maxime Ripard
The A10s Olinuxino has an HDMI connector. Make sure we can use it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 12 1 file changed, 12 insertions(+), 0 deletions(-) diff --git

[linux-sunxi] [PATCH 12/15] drm/sun4i: tcon: multiply the vtotal when not in interlace

2017-03-07 Thread Maxime Ripard
It appears that the total vertical resolution needs to be doubled when we're not in interlaced. Make sure that is the case. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH 1/15] clk: divider: Make divider_round_rate take the parent clock

2017-03-07 Thread Maxime Ripard
So far, divider_round_rate only considers the parent clock returned by clk_hw_get_parent. This works fine on clocks that have a single parents, this doesn't work on muxes, since we will only consider the first parent, while other parents may totally be able to provide a better combination.

[linux-sunxi] [PATCH 13/15] drm/sun4i: Add HDMI support

2017-03-07 Thread Maxime Ripard
The earlier Allwinner SoCs (A10, A10s, A20, A31) have an embedded HDMI controller. That HDMI controller is able to do audio and CEC, but those have been left out for now. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Makefile | 5 +-

[linux-sunxi] [PATCH 6/15] dt-bindings: display: sun4i: Add HDMI display bindings

2017-03-07 Thread Maxime Ripard
One of the possible output of the display pipeline, on the SoCs that have it, is the HDMI controller. Add a binding for it. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 21 +++- 1 file changed, 21

[linux-sunxi] [PATCH 3/15] clk: sunxi-ng: div: Switch to divider_round_rate

2017-03-07 Thread Maxime Ripard
divider_round_rate already evaluates changing the parent rate if CLK_SET_RATE_PARENT is set. Now that we can do that on muxes too, let's just use it. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi-ng/ccu_div.c | 25 ++--- 1 file changed,

[linux-sunxi] [PATCH 7/15] dt-bindings: display: sun4i: Add allwinner,tcon-channel property

2017-03-07 Thread Maxime Ripard
The Allwinner Timings Controller has two, mutually exclusive, channels. When the binding has been introduced, it was assumed that there would be only a single user per channel in the system. While this is likely for the channel 0 which only connects to LCD displays, it turns out that the channel

[linux-sunxi] [PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite

2017-03-07 Thread Maxime Ripard
Even though that mux is undocumented, it seems like it needs to be set to 1 when using composite, and 0 when using HDMI. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH 14/15] ARM: sun5i: a10s: Add the HDMI controller node

2017-03-07 Thread Maxime Ripard
The A10s has an HDMI controller connected to the second TCON channel. Add it to our DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-a10s.dtsi | 34 - arch/arm/boot/dts/sun5i.dtsi | 1 +- 2 files changed, 35

[linux-sunxi] [PATCH 11/15] drm/sun4i: tcon: Fix tcon channel 1 backporch calculation

2017-03-07 Thread Maxime Ripard
It seems like what's called a backporch in the datasheet is actually the backporch plus the sync period. Fix that in our driver. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[linux-sunxi] Re: [PATCH v2 00/12] Add support for the audio codec on Allwinner V3s

2017-03-07 Thread Vinod Koul
On Sun, Mar 05, 2017 at 09:36:57PM +0800, Icenowy Zheng wrote: > Allwinner V3s features a audio codec with dedicated digital and analog parts, > like the ones on A23/H3, but much simpler (lack of MIC2, LINE IN and MBIAS). > > Add support for it. > > In order to make the codec usable, DMA support

[linux-sunxi] [PATCH 4/15] clk: sunxi-ng: mux: Don't just rely on the parent for CLK_SET_RATE_PARENT

2017-03-07 Thread Maxime Ripard
The current code only rely on the parent to change its rate in the case where CLK_SET_RATE_PARENT is set. However, some clock rates might be obtained only through a modification of the parent and the clock divider. Just rely on the round rate of the clocks to give us the best computation that

[linux-sunxi] [PATCH 8/15] drm/sun4i: tcon: Add channel debug

2017-03-07 Thread Maxime Ripard
While all functions have debug logs, the channel enable and disable are not logged. Make sure this is the case. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 1 file changed, 4 insertions(+), 0 deletions(-) diff --git

Re: [linux-sunxi] Re: [PATCH 14/17] sunxi: Pine64: defconfig: enable SPL FIT support

2017-03-07 Thread Icenowy Zheng
2017年3月3日 17:55于 Andre Przywara 写道: > > Hi, > > On 03/03/17 09:22, Maxime Ripard wrote: > > On Thu, Mar 02, 2017 at 12:03:20AM +0800, Icenowy Zheng wrote: > >> > >> 2017年3月1日 23:51于 Maxime Ripard 写道: > >>> > >>> Hi Andre, > >>> >

Re: [linux-sunxi] Re: PoC tvin2jpeg_h264 with veisp scaling

2017-03-07 Thread Milos Ladni
I'm glad to hear that. I hope that you will find out what the cause is. However, before ioctl reset, sometimes i had some strange glitches in h264 decoded picture when work simultaneous with h264enc. Some small blocks in the picture was wrong (usually upper left part of picture) color or