[linux-sunxi] [PATCH v2 06/10] clk: sunxi-ng: Add A80 USB CCU

2017-01-28 Thread Chen-Yu Tsai
Add support for the USB clock controls found on the A80. Signed-off-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bindings/clock/sun9i-usb.txt| 24 drivers/clk/sunxi-ng/Makefile | 1 + drivers/clk/

[linux-sunxi] [PATCH v2 01/10] clk: sunxi-ng: mux: Fix determine_rate for mux clocks with pre-dividers

2017-01-28 Thread Chen-Yu Tsai
-by: Chen-Yu Tsai <w...@csie.org> --- drivers/clk/sunxi-ng/ccu_mux.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu_mux.c b/drivers/clk/sunxi-ng/ccu_mux.c index 858a48621631..eb66adb28807 100644 --- a/drivers/clk/sunxi-ng/ccu_mux.c +++ b/d

[linux-sunxi] [PATCH v2 02/10] clk: sunxi-ng: mux: honor CLK_SET_RATE_NO_REPARENT flag

2017-01-28 Thread Chen-Yu Tsai
This patch adds support for the CLK_SET_RATE_NO_REPARENT flag to the mux determine_rate helper, based on examples from clk-composite and clk-mux. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/clk/sunxi-ng/ccu_mux.c | 15 +++ 1 file changed, 15 insertions(+) diff

[linux-sunxi] Re: [PATCH v2 8/9] ASoC: sunxi: allow the analog codec driver to be built on ARM64

2017-01-28 Thread Chen-Yu Tsai
to be built on ARM64 >> Allwinner platform, so that it can be used on H5. >> >> Signed-off-by: Icenowy Zheng <icen...@aosc.xyz> > > Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this

[linux-sunxi] Re: [PATCH 07/11] clk: sunxi-ng: Add A80 Display Engine CCU

2017-01-27 Thread Chen-Yu Tsai
On Fri, Jan 27, 2017 at 4:58 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Thu, Jan 26, 2017 at 07:20:22PM +0800, Chen-Yu Tsai wrote: >> On Thu, Jan 26, 2017 at 6:39 PM, Maxime Ripard >> <maxime.rip...@free-electrons.com> wrote: >> > Hi, >

[linux-sunxi] [PATCH 3/7] drm/sun4i: Check return value of drm_vblank_init

2017-02-16 Thread Chen-Yu Tsai
drm_vblank_init can fail due to insufficient memory. Ignoring the error and proceeding may cause the kernel to dereference an invalid pointer when vblank is enabled. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_drv.c | 6 +- 1 file changed, 5 insertions

[linux-sunxi] [PATCH 5/7] drm/sun4i: Drop useless assignment in sun4i_layers_init

2017-02-16 Thread Chen-Yu Tsai
The assignment found in the main loop in sun4i_layers_init: struct sun4i_layer *layer = layers[i]; is useless as it gets overwritten by the next line: layer = sun4i_layer_init_one(drm, plane); Drop the assignment. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drive

[linux-sunxi] [PATCH 0/7] drm/sun4i: Various fixes and cleanups part 1

2017-02-16 Thread Chen-Yu Tsai
and 2 fix up possible memory and object leakage, but unless the user keeps unloading and loading the modules, it won't leak past a few times. Regards ChenYu Chen-Yu Tsai (7): drm/sun4i: Move drm_mode_config_cleanup call to main driver drm/sun4i: Fix up error path cleanup for master bind

[linux-sunxi] [PATCH 2/7] drm/sun4i: Fix up error path cleanup for master bind function

2017-02-16 Thread Chen-Yu Tsai
. This requires the patch "drm/sun4i: Move drm_mode_config_cleanup call to main driver", which splits out drm_mode_config_cleanup from sun4i_framebuffer_free so we can call it separately. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_drv.c | 16 +++

[linux-sunxi] [PATCH 4/7] drm/sun4i: Fix kcalloc element size in sun4i_layers_init

2017-02-16 Thread Chen-Yu Tsai
ray. Change it to sizeof(*layers) to avoid wasting a lot of memory. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_layer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_laye

[linux-sunxi] [PATCH 6/7] drm/sun4i: Save newly created layer in layers array in sun4i_layers_init

2017-02-16 Thread Chen-Yu Tsai
-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_layer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index 92ecc967dcb1..41bc0f860f5c 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/g

[linux-sunxi] [PATCH 1/7] drm/sun4i: Move drm_mode_config_cleanup call to main driver

2017-02-16 Thread Chen-Yu Tsai
drm_mode_config_cleanup is the complement of drm_mode_config_init, which is called in the bind function of sun4i_drv. drm_mode_config_cleanup should be put in the unbind function to match. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + d

[linux-sunxi] [PATCH 7/7] drm/sun4i: Make sun4i_crtc_init return ERR_PTR style error codes

2017-02-16 Thread Chen-Yu Tsai
sun4i_crtc_init can fail for a number of reasons. Instead of returning a NULL pointer when it fails, pass back the encountered error using ERR_PTR. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 4 ++-- drivers/gpu/drm/sun4i/sun4i_drv.c | 4 ++-- 2

Re: [linux-sunxi] Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check

2017-02-24 Thread Chen-Yu Tsai
>> > >> > On Wednesday 07 Dec 2016 10:26:25 Chen-Yu Tsai wrote: >> > > On Wed, Dec 7, 2016 at 1:29 AM, Maxime Ripard wrote: >> > > > On Thu, Nov 24, 2016 at 07:22:31PM +0800, Chen-Yu Tsai wrote: >> > > >> The panels shipped with Al

Re: [linux-sunxi] [PATCH 2/3] pwm: sunxi: Add A64 support

2017-02-25 Thread Chen-Yu Tsai
On Sat, Feb 25, 2017 at 3:42 PM, Icenowy Zheng wrote: > A64 PWM controller has same register layout as sun4i driver, so it works > by adding A64 specific data. > > Signed-off-by: Icenowy Zheng > --- > drivers/pwm/pwm-sun4i.c | 9 + > 1 file changed, 9

Re: [linux-sunxi] Re: [PATCH] arm64: dts: allwinner: add support for Pinebook

2017-02-25 Thread Chen-Yu Tsai
On Sun, Feb 26, 2017 at 12:55 AM, Icenowy Zheng wrote: > > > 26.02.2017, 00:38, "Rask Ingemann Lambertsen" : >> On Sat, Feb 25, 2017 at 03:00:32PM +0800, Icenowy Zheng wrote: >> [...] >>> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts >>>

[linux-sunxi] [PATCH 07/11] drm/sun4i: Drop hardcoded .possible_crtcs values from layers

2017-02-23 Thread Chen-Yu Tsai
to set it for overlay planes. We also fix the value set for the RGB encoder, by referencing the crtc set in sun4i_drv. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 9 + drivers/gpu/drm/sun4i/sun4i_layer.c | 3 ++- drivers/gpu/drm/sun4i/sun4i

[linux-sunxi] [PATCH 05/11] drm/sun4i: Initialize crtc from tcon bind function

2017-02-23 Thread Chen-Yu Tsai
from the sun4i-drm module to the sun4i-tcon module to avoid circular dependencies between the two modules. This is because sun4i-drm also calls into sun4i-tcon. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/Makefile | 4 ++-- drivers/gpu/drm/sun4i/sun4i_drv.c

[linux-sunxi] [PATCH 01/11] drm/sun4i: Make sunxi_rgb2yuv_coef constant

2017-02-23 Thread Chen-Yu Tsai
sunxi_rgb2yuv_coef is a table of RGB-to-YUV conversion coefficients. They are programmed into the hardware, and can be declared constant. Reported-by: Priit Laes <pl...@plaes.org> Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_backend.c | 2 +- 1 fil

[linux-sunxi] [PATCH 02/11] drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node

2017-02-23 Thread Chen-Yu Tsai
The way drm_of_find_possible_crtcs is it tries to match the remote-endpoint of the given node's various endpoints to all the crtc's .port field. Thus we need to set drm_crtc.port to the output port node of the underlying TCON. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm

[linux-sunxi] [PATCH 06/11] drm/sun4i: Drop primary layer pointer from sun4i_drv

2017-02-23 Thread Chen-Yu Tsai
through the returned layers to find the primary and cursor layers. And drop the pointer from the sun4i_drv structure. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 25 + drivers/gpu/drm/sun4i/sun4i_drv.h | 1 - drivers/gpu/drm

[linux-sunxi] [PATCH 10/11] drm/sun4i: Add backend pointer to sun4i_layer

2017-02-23 Thread Chen-Yu Tsai
the pointer in through sun4i_layers_init as a parameter. This would make it easier to support multiple display pipelines layer on. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_layer.c | 8 +++- drivers/gpu/drm/sun4i/sun4i_layer.h | 1 + 2 files changed, 4 inse

[linux-sunxi] [PATCH 09/11] drm/sun4i: rgb: Pass tcon pointer when initializing RGB encoder

2017-02-23 Thread Chen-Yu Tsai
. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_rgb.c | 27 +-- drivers/gpu/drm/sun4i/sun4i_rgb.h | 2 +- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 +- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i

[linux-sunxi] [PATCH 04/11] drm/sun4i: Move layers from sun4i_drv to sun4i_crtc

2017-02-23 Thread Chen-Yu Tsai
. Moving the layers into the crtc facilitates binding them to the crtc explicitly, by setting the corresponding bit in their .possible_crtcs fields right after the crtc is initialized. This is done in a later patch. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_

[linux-sunxi] [PATCH 08/11] drm/sun4i: tv: Switch to drm_of_find_possible_crtcs

2017-02-23 Thread Chen-Yu Tsai
tcons/crtcs. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_tv.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index c6f47222e8fc..32ed5fdf0c4d 100644 --- a/drivers/g

[linux-sunxi] [PATCH 00/11] drm/sun4i: Various fixes and cleanups part 2

2017-02-23 Thread Chen-Yu Tsai
d tcon to sun4i_crtc. Please have a look. Notably, I do not have hardware to test patch 8, though I do not expect any problems. Still to come is the actual work of supporting many display pipelines. Regards ChenYu Chen-Yu Tsai (11): drm/sun4i: Make sunxi_rgb2yuv_coef constant drm/sun4

[linux-sunxi] [PATCH 03/11] drm/sun4i: Add end of list element for sun4i_layers_init's returned list

2017-02-23 Thread Chen-Yu Tsai
The number of defined planes in sun4i_layer is unknown to other parts of the sun4i drm driver. Since the return value of sun4i_layers_init is a list of layers, make it return 1 more empty layer as an end of list guard value. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm

[linux-sunxi] [PATCH 11/11] drm/sun4i: Add backend and tcon pointers to sun4i_crtc

2017-02-23 Thread Chen-Yu Tsai
be to pass the pointers in through sun4i_crtc_init as parameters. This would make it easier to support multiple display pipelines layer on. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 12 +--- drivers/gpu/drm/sun4i/sun4i_crtc.h | 3 ++- 2 files c

Re: [linux-sunxi] Re: Allwinner A31 framebuffer fails with new CCU clock bindings

2017-02-13 Thread Chen-Yu Tsai
On Tue, Feb 14, 2017 at 5:41 AM, Bob Ham wrote: > On Mon, 2017-02-13 at 10:52 +0100, Maxime Ripard wrote: >> On Sat, Feb 11, 2017 at 12:08:40PM +, Bob Ham wrote: >> > On IRC, MoeIcenowy requested the contents >> > of /sys/kernel/debug/clk/clk_summary. I don't know how

Re: [linux-sunxi] Fw: [WIP PATCH] Add preliminary support for Banana Pi M2U.

2017-02-14 Thread Chen-Yu Tsai
On Tue, Feb 14, 2017 at 4:59 PM, Danny Milosavljevic wrote: > This adds preliminary support for Banana Pi M2U (and R40). > > Unfortunately, I get the following error message in the end: Try https://github.com/wens/u-boot-sunxi/tree/r40 instead. :) ChenYu -- You

[linux-sunxi] [PATCH] ARM: dts: sun5i-gr8: Rename pwm0_pins_a to pwm0_pins

2017-02-09 Thread Chen-Yu Tsai
GR8 board dts files. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- Fixes: a2138ce584d5 ("ARM: sun5i: gr8: Use common sun5i DTSI") Since the broken patch is only in Maxime's tree, the above tag contains the current commit hash in his tree. This is likely to change once 4.11-rc1 i

Re: [linux-sunxi] [PATCH 1/8] dt-bindings: fix for Allwinner H5 pinctrl's compatible

2017-02-13 Thread Chen-Yu Tsai
ing. > > Signed-off-by: Icenowy Zheng <icen...@aosc.xyz> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an e

Re: [linux-sunxi] [PATCH 3/8] pinctrl: sunxi: Add A64 R_PIO controller support

2017-02-13 Thread Chen-Yu Tsai
gt; index ..90996a63689b > --- /dev/null > +++ b/drivers/pinctrl/sunxi/pinctrl-sun50i-a64-r.c > @@ -0,0 +1,143 @@ > +/* > + * Allwinner A64 SoCs special pins pinctrl driver. > + * > + * Based on pinctrl-sun8i-a23-r.c > + * > + * Copyright (C) 2016 Icen

Re: [linux-sunxi] [PATCH 1/8] ARM: sunxi_defconfig: Enable simple panel

2017-02-12 Thread Chen-Yu Tsai
On Sun, Feb 12, 2017 at 1:43 AM, Priit Laes wrote: > From: Jonathan Liu > This needs a commit message about why these need to be enabled, like "Most Allwinner tablets use the same design of a dumb LCD panel coupled with a PWM controlled backlight." Also the

Re: [linux-sunxi] Re: [PATCH 5/8] arm64: dts: allwinner: add R_PIO node

2017-02-10 Thread Chen-Yu Tsai
On Fri, Feb 10, 2017 at 4:32 PM, Icenowy Zheng wrote: > > 2017年2月10日 16:07于 Maxime Ripard 写道: >> >> On Wed, Feb 08, 2017 at 07:08:46PM +0800, Icenowy Zheng wrote: >> > 08.02.2017, 18:15, "Maxime Ripard" : >> > >

Re: [linux-sunxi] Re: [PATCH v3 3/3] sunxi: add support for Lichee Pi Zero

2017-02-15 Thread Chen-Yu Tsai
On Thu, Feb 16, 2017 at 9:32 AM, André Przywara wrote: > On 14/02/17 07:36, Maxime Ripard wrote: >> On Mon, Feb 13, 2017 at 04:12:04PM +0800, Icenowy Zheng wrote: >>> >>> 2017年2月13日 15:17于 Maxime Ripard 写道: Hi, On Sat,

[linux-sunxi] Re: [PATCH 1/4] phy: sun4i-usb: support PHY0 on H3 in MUSB mode

2017-01-17 Thread Chen-Yu Tsai
Hi, On Wed, Jan 18, 2017 at 4:06 AM, Maxime Ripard wrote: > On Wed, Jan 18, 2017 at 12:57:08AM +0800, Icenowy Zheng wrote: >> >> >> 17.01.2017, 16:06, "Maxime Ripard" : >> > On Tue, Jan 17, 2017 at 03:14:46AM +0800, Icenowy

[linux-sunxi] [PATCH] ARM: dts: sun6i: sina31s: Enable USB OTG controller in peripheral mode

2017-01-17 Thread Chen-Yu Tsai
USB host ports, it makes more sense to have the OTG port work in peripheral mode. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun6i-a31s-sina31s.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31s-sina31s.dts b/arch/arm/boot/dts

[linux-sunxi] [PATCH 4/9] regulator: axp20x: support AXP806 variant

2016-08-20 Thread Chen-Yu Tsai
for this new variant. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/regulator/axp20x-regulator.c | 117 --- 1 file changed, 110 insertions(+), 7 deletions(-) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c

[linux-sunxi] [PATCH 0/9] mfd: axp20x: Add support for AXP809 PMIC

2016-08-20 Thread Chen-Yu Tsai
of the AXP809 series. Patch 7 enables AXP809 support on the A80 Optimus board. Patch 8 enables AXP809 support on the Cubieboard 4. Patch 9 disables EHCI1 on the A80 Optimus board. Regards ChenYu Chen-Yu Tsai (9): mfd: axp20x: Add bindings for AXP806 PMIC mfd: axp20x: Add support for AXP806 PMIC

[linux-sunxi] [PATCH 2/9] mfd: axp20x: Add support for AXP806 PMIC

2016-08-20 Thread Chen-Yu Tsai
space extension, or supporting both I2C and RSB mode. I2C has not been tested. This patch adds support for the interrupts of the PMIC. A regulator sub-device is enabled, but actual regulator support will come in a later patch. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x

[linux-sunxi] [PATCH 8/9] ARM: dts: sun9i: cubieboard4: Add AXP806 PMIC device node and regulators

2016-08-20 Thread Chen-Yu Tsai
The AXP806 PMIC is the secondary PMIC. It provides various supply voltages for the SoC and other peripherals. The PMIC's interrupt line is connected to NMI pin of the SoC. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80-cubieboard4.dts

[linux-sunxi] [PATCH 5/9] ARM: dts: sun9i: a80-optimus: Declare AXP809 SW regulator as unused

2016-08-20 Thread Chen-Yu Tsai
The AXP809's SW (switch) regulator is unused on the A80 Optimus. Add an empty node for it so that the OS can generate constraints. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80-optimus.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/bo

[linux-sunxi] [PATCH 1/9] mfd: axp20x: Add bindings for AXP806 PMIC

2016-08-20 Thread Chen-Yu Tsai
This patch adds the basic and regulator bindings for the X-Powers AXP809 PMIC. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- Documentation/devicetree/bindings/mfd/axp20x.txt | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Documentation/devi

[linux-sunxi] [PATCH 3/9] regulator: core: Try full range when adjusting regulators to constraints

2016-08-20 Thread Chen-Yu Tsai
to the step of the regulator. Instead pass the full range of the constraints, and have the regulator core work out a suitable voltage within. Fixes: ("regulator: core: Ensure we are at least in bounds for our constraints") Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/

[linux-sunxi] [PATCH 6/9] ARM: dts: sun9i: cubieboard4: Declare AXP809 SW regulator as unused

2016-08-20 Thread Chen-Yu Tsai
The AXP809's SW (switch) regulator is unused on the Cubieboard 4. Add an empty node for it so that the OS can generate constraints. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/ar

[linux-sunxi] [PATCH 9/9] ARM: dts: sun9i: a80-optimus: Disable EHCI1

2016-08-20 Thread Chen-Yu Tsai
in the board DTS. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80-optimus.dts | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts index aeb4037c8768..536a7d

[linux-sunxi] [PATCH 7/9] ARM: dts: sun9i: a80-optimus: Add AXP806 PMIC device node and regulators

2016-08-20 Thread Chen-Yu Tsai
The AXP806 PMIC is the secondary PMIC. It provides various supply voltages for the SoC and other peripherals. The PMIC's interrupt line is connected to NMI pin of the SoC. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80-optimus.dts

[linux-sunxi] Re: [PATCH 0/6] sunxi: update Pine64/A64 DTs

2017-02-27 Thread Chen-Yu Tsai
Hi, On Mon, Feb 27, 2017 at 5:53 PM, Andre Przywara <andre.przyw...@arm.com> wrote: > Hi, > > On 27/02/17 03:30, Chen-Yu Tsai wrote: >> On Mon, Feb 27, 2017 at 8:26 AM, Andre Przywara <andre.przyw...@arm.com> >> wrote: >>> Hi, >>> >>

[linux-sunxi] Re: [PATCH v5 5/7] arm: dts: sun8i: split Allwinner H3 .dtsi

2017-02-25 Thread Chen-Yu Tsai
Hi, On Sun, Feb 26, 2017 at 9:19 AM, Icenowy Zheng wrote: > From: Andre Przywara > > The new Allwinner H5 SoC is pin-compatible to the H3 SoC, but with the > Cortex-A7 cores replaced by Cortex-A53 cores and the MMC controller > updated. So we should

[linux-sunxi] Re: [PATCH v5 6/7] arm64: dts: allwinner: add Allwinner H5 .dtsi

2017-02-26 Thread Chen-Yu Tsai
On Sun, Feb 26, 2017 at 4:55 PM, Rask Ingemann Lambertsen wrote: > On Sun, Feb 26, 2017 at 09:19:55AM +0800, Icenowy Zheng wrote: >> From: Andre Przywara >> >> The Allwinner H5 SoC is pin-compatible to the H3 SoC, but uses >> Cortex-A53 cores instead.

Re: [linux-sunxi] [PATCH 2/3] ARM: dts: sun8i: add usb_otg and OHCI/EHCI for usbc0 on H3

2017-02-28 Thread Chen-Yu Tsai
On Tue, Feb 28, 2017 at 11:57 PM, Icenowy Zheng <icen...@aosc.xyz> wrote: > > > 28.02.2017, 23:46, "Chen-Yu Tsai" <w...@csie.org>: >> On Tue, Feb 28, 2017 at 11:27 PM, Icenowy Zheng <icen...@aosc.xyz> wrote: >>> Allwinner H3 have a dual-routed

Re: [linux-sunxi] [PATCH 1/3] phy: sun4i-usb: support automatically switch PHY0 route to MUSB/HCI

2017-02-28 Thread Chen-Yu Tsai
On Tue, Feb 28, 2017 at 11:27 PM, Icenowy Zheng wrote: > On newer Allwinner SoCs (H3 and after), the PHY0 node is routed to both > MUSB controller for peripheral and host support (the host support is > slightly broken), and a pair of EHCI/OHCI controllers, which provide a >

Re: [linux-sunxi] [PATCH 2/3] ARM: dts: sun8i: add usb_otg and OHCI/EHCI for usbc0 on H3

2017-02-28 Thread Chen-Yu Tsai
On Tue, Feb 28, 2017 at 11:27 PM, Icenowy Zheng wrote: > Allwinner H3 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI > or MUSB controller. > > Add device nodes for these controllers. > > Signed-off-by: Icenowy Zheng > --- >

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

2017-03-01 Thread Chen-Yu Tsai
On Thu, Mar 2, 2017 at 12:02 AM, Olliver Schinagl wrote: > Hey Marcus, > > On 01-03-17 16:10, Marcus Weseloh wrote: >> >> Hi Oliver, >> >> 2017-03-01 13:52 GMT+01:00 Olliver Schinagl > >: >> >> +#define

[linux-sunxi] Re: [PATCH 1/6] sunxi: GPIO: introduce sunxi_gpio_setup_dt_pins()

2017-02-26 Thread Chen-Yu Tsai
On Mon, Feb 27, 2017 at 8:26 AM, Andre Przywara wrote: > Instead of hard-coding GPIO pins used for a certain peripheral, we > should just use the pinctrl information from the DT. > The sun8i-emac driver has some simple implementation of that, so > let's just generalize

[linux-sunxi] Re: [PATCH 0/6] sunxi: update Pine64/A64 DTs

2017-02-26 Thread Chen-Yu Tsai
On Mon, Feb 27, 2017 at 8:26 AM, Andre Przywara wrote: > Hi, > > in the wake of the sunxi DM enablement series it became apparent that > the current device tree files for the A64 SoC and its board are outdated. > > Since Linux v4.10-rc1 there are now basic .dts files for

[linux-sunxi] [PATCH 02/12] sunxi: Enable AXP221s in I2C mode with the R40 SoC

2017-02-28 Thread Chen-Yu Tsai
The R40 SoC uses the AXP221s in I2C mode to supply power. Some regulator's common usages have changed, and also the recommended voltage for existing usages have changed. Update the defaults to match. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/mach-sunxi/pmic_bus.

[linux-sunxi] [PATCH 04/12] sunxi: Add mmc[1-3] pinmux settings for R40

2017-02-28 Thread Chen-Yu Tsai
The PIO is generally compatible with the A20, except that it routes the full 8 bits and eMMC reset pins for mmc2. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- board/sunxi/board.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/board/sunxi/board.c b

[linux-sunxi] [PATCH 10/12] sunxi: Fix CPUCFG address for R40

2017-02-28 Thread Chen-Yu Tsai
The R40 has the CPUCFG block at the same address as the A20. Fix it. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h b/ar

[linux-sunxi] [PATCH 05/12] sunxi: Set PLL lock enable bits for R40

2017-02-28 Thread Chen-Yu Tsai
According to the BSP released by Banana Pi, the R40 (sun8iw11p1) has an extra "PLL lock control" register in the CCU, which controls whether the individual PLL lock status bits in each PLL's control register work or not. This patch enables it for all the PLLs. Signed-off-by: Chen-

[linux-sunxi] [PATCH 00/12] sunxi: Add support for R40 SoC

2017-02-28 Thread Chen-Yu Tsai
Please have a look. Regards ChenYu Chen-Yu Tsai (12): sunxi: Add initial support for R40 sunxi: Enable AXP221s in I2C mode with the R40 SoC sunxi: Fix watchdog reset function for R40 sunxi: Add mmc[1-3] pinmux settings for R40 sunxi: Set PLL lock enable bits for R40 sunxi: Provide d

[linux-sunxi] [PATCH 03/12] sunxi: Fix watchdog reset function for R40

2017-02-28 Thread Chen-Yu Tsai
The watchdog found on the R40 SoC is the older variant found on the A20. Add the proper "#if defines" to make it work. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/include/asm/arch-sunxi/timer.h| 5 ++--- arch/arm/include/asm/arch-sunxi/watchdog.h | 5 - arc

[linux-sunxi] [PATCH 11/12] sunxi: Add PSCI support for R40

2017-02-28 Thread Chen-Yu Tsai
implementation for CPU bring-up and hotplug for the R40. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/cpu/armv7/sunxi/psci.c | 35 --- board/sunxi/Kconfig | 3 +++ 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/arch/a

[linux-sunxi] [PATCH 07/12] gpio: sunxi: Add compatible string for R40 PIO

2017-02-28 Thread Chen-Yu Tsai
The PIO on the R40 SoC is mostly compatible with the A20. Only a few pin functions for mmc2 were added to the PC pingroup, to support 8 bit eMMCs. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/gpio/sunxi_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver

[linux-sunxi] [PATCH 08/12] sunxi: Use H3/A64 DRAM initialization code for R40

2017-02-28 Thread Chen-Yu Tsai
The R40 seems to have a variant of the memory controller found in the H3 and A64 SoCs. Adapt the code for use on the R40. The changes are based on released DRAM code and comparing register dumps from boot0. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/include/asm/arch-sunxi

[linux-sunxi] [PATCH 01/12] sunxi: Add initial support for R40

2017-02-28 Thread Chen-Yu Tsai
-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/mach-sunxi/board.c| 10 +++--- arch/arm/mach-sunxi/cpu_info.c | 2 ++ board/sunxi/Kconfig| 9 +++-- board/sunxi/board.c| 19 ++- 4 files changed, 30 insertions(+), 10 deletions(-) diff

[linux-sunxi] [PATCH 09/12] sunxi: Enable SPL for R40

2017-02-28 Thread Chen-Yu Tsai
Now that we can do DRAM initialization for the R40, we can enable SPL support for it. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- board/sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index 9854ef0a599e..3df9f8197c57

[linux-sunxi] [PATCH 12/12] sunxi: Add support for Bananapi M2 Ultra

2017-02-28 Thread Chen-Yu Tsai
The Bananapi M2 Ultra is the first publicly available development board featuring the R40 SoC. This patch add barebone dtsi/dts files for the R40 and Bananapi M2 Ultra, as well as a defconfig for it. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/dts/Ma

[linux-sunxi] [PATCH 06/12] sunxi: Provide defaults for R40 DRAM settings

2017-02-28 Thread Chen-Yu Tsai
These values were taken from the Banana Pi M2 Ultra fex file found in the released vendor BSP. This is the only publicly available R40 device at the time of this writing. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- board/sunxi/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [linux-sunxi] Re: [U-Boot] [PATCH v2] sunxi: add NanoPi NEO Air defconfig

2017-02-28 Thread Chen-Yu Tsai
On Sat, Feb 25, 2017 at 4:26 PM, Jagan Teki wrote: > On Mon, Feb 13, 2017 at 1:22 PM, Maxime Ripard > wrote: >> On Sun, Feb 12, 2017 at 04:21:40PM +0100, Jelle van der Waa wrote: >>> Add support for the NanoPi NEO Air H3 board from

[linux-sunxi] Re: [PATCH 01/12] sunxi: Add initial support for R40

2017-03-01 Thread Chen-Yu Tsai
On Wed, Mar 1, 2017 at 6:55 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi Chen-Yu > > On Wed, Mar 01, 2017 at 03:04:36PM +0800, Chen-Yu Tsai wrote: >> The R40 is the successor to the A20. It is a hybrid of the A20, A33 >> and the H3. >> >>

[linux-sunxi] [PATCH] sunxi: Add boards/sunxi and arch/arm/mach-sunxi to sunxi MAINTAINERS entry

2017-02-28 Thread Chen-Yu Tsai
-Yu Tsai <w...@csie.org> --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index eaa2c3bbb860..4eee53f5a9f6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -168,9 +168,12 @@ F: arch/arm/include/asm/arch-stv0991/ ARM SUNXI M: Jagan Te

[linux-sunxi] Re: [PATCH 0/7] drm/sun4i: Introduce A33 display driver

2016-09-02 Thread Chen-Yu Tsai
On Sat, Sep 3, 2016 at 3:06 AM, Maxime Ripard wrote: > Hi Icenowy, > > On Fri, Sep 02, 2016 at 09:30:05AM +0800, Icenowy Zheng wrote: >> >> >> 01.09.2016, 23:40, "Maxime Ripard" : >> > Hi everyone, >> > >> > This serie introduces

[linux-sunxi] Re: [PATCH 4/7] drm/panel: Add Sinlinx SinA33 7" panel

2016-09-05 Thread Chen-Yu Tsai
On Tue, Sep 6, 2016 at 4:02 AM, Maxime Ripard wrote: > Hi, > > On Mon, Sep 05, 2016 at 01:03:03AM +0800, Icenowy Zheng wrote: >> Hi Everyone, >> >> 01.09.2016, 23:40, "Maxime Ripard" : >> > The SinA33 has an unidentified panel.

Re: [linux-sunxi] [PATCH v4 2/2] devicetree: Add vendor prefix for FriendlyARM

2016-09-05 Thread Chen-Yu Tsai
bercity.dk> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For

[linux-sunxi] Re: [PATCH 0/7] drm/sun4i: Introduce A33 display driver

2016-09-05 Thread Chen-Yu Tsai
On Tue, Sep 6, 2016 at 4:37 AM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Sat, Sep 03, 2016 at 09:43:59AM +0800, Chen-Yu Tsai wrote: >> On Sat, Sep 3, 2016 at 3:06 AM, Maxime Ripard >> <maxime.rip...@free-electrons.com> wrote: >> > Hi Ice

[linux-sunxi] Re: [PATCH] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-05 Thread Chen-Yu Tsai
named > SUN4I_CODEC_AC_MIC_PHONE_CAL to SUN7I_CODEC_AC_MIC_PHONE_CAL because these > are actually not present on Allwinner A10. > > Handle quirks by regmap config and codec and select the correct quirks > automatically. > > Signed-off-by: Danny Milosavljevic <dan...@scratchpost.org> Acked-by: Chen

[linux-sunxi] Re: [PATCH v2 3/9] drm/sun4i: backend: Handle the SAT

2016-09-06 Thread Chen-Yu Tsai
T resources listed, and claim them when > the backend probes. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this message because you are subscribed to the Google Groups "linux-sunxi&quo

[linux-sunxi] Re: [PATCH v2 2/9] drm/sun4i: support A33 tcon

2016-09-06 Thread Chen-Yu Tsai
@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> > --- > Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 7 ++- > drivers/gpu/drm/sun4i/sun4i_backend.c | 1 + > drivers/gpu/drm/sun4i/sun4i_drv.c |

[linux-sunxi] Re: [PATCH v2 2/9] drm/sun4i: support A33 tcon

2016-09-06 Thread Chen-Yu Tsai
On Tue, Sep 6, 2016 at 10:46 PM, Maxime Ripard wrote: > The A33 has a significantly different pipeline, with components that differ > too. > > Make sure we had compatible for them. > > Signed-off-by: Maxime Ripard > --- >

[linux-sunxi] Re: [PATCH v2 4/9] drm/sun4i: Add a DRC driver

2016-09-06 Thread Chen-Yu Tsai
ideo signal all the way. > > Add a minimal driver for it that just claim the needed resources for the > pipeline to operate properly. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this messag

[linux-sunxi] Re: [PATCH v2 6/9] drm/panel: Add Netron DY E231732

2016-09-06 Thread Chen-Yu Tsai
Hi, On Tue, Sep 6, 2016 at 10:46 PM, Maxime Ripard wrote: > The E231732 is a 7" panel with a resolution of 800x480. >From what I could make out of an archived version of Netron's website (it's unreachable from my place), they are a manufacturer of printed

Re: [linux-sunxi] Flashing NAND on SinA33

2016-09-06 Thread Chen-Yu Tsai
On Tue, Sep 6, 2016 at 6:20 PM, Siarhei Siamashka wrote: > Hi, > > On Tue, 6 Sep 2016 02:51:29 -0700 (PDT) > Ciprian Manea wrote: > >> Hi, >> >> I'm using the Sina33 dev board and as the wiki page says, it has a 4GB >> eMMC (Toshiba

[linux-sunxi] Re: [PATCH 0/7] drm/sun4i: Introduce A33 display driver

2016-09-06 Thread Chen-Yu Tsai
On Wed, Sep 7, 2016 at 2:54 AM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Tue, Sep 06, 2016 at 10:50:09AM +0800, Chen-Yu Tsai wrote: >> >> The implementation might be along the lines of >> >> >> >> 1. having multiple outp

[linux-sunxi] Re: [PATCH 1/7] drm/sun4i: support TCONs without channel 1

2016-09-01 Thread Chen-Yu Tsai
t; Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails f

Re: [linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-09-01 Thread Chen-Yu Tsai
On Thu, Sep 1, 2016 at 6:56 PM, Danny Milosavljevic wrote: > Hi Chen-Yu, > >> I have a few patches that introduce SOC_DAPM_DOUBLE, so you can share a >> control between left/right channels. IMHO it makes the userspace mixer >> less confusing. > > I definitely agree that

[linux-sunxi] Re: [PATCH 5/7] ARM: sun8i: a33: Add display pipeline

2016-09-02 Thread Chen-Yu Tsai
Hi, On Thu, Sep 1, 2016 at 11:32 PM, Maxime Ripard wrote: > Add all the needed blocks to the A33 DTSI. > > Signed-off-by: Maxime Ripard > --- > arch/arm/boot/dts/sun8i-a33.dtsi | 184 > +++

[linux-sunxi] Re: [PATCH 4/7] drm/panel: Add Sinlinx SinA33 7" panel

2016-09-02 Thread Chen-Yu Tsai
On Thu, Sep 1, 2016 at 11:32 PM, Maxime Ripard wrote: > The SinA33 has an unidentified panel. Add the timings for it under a new > compatible. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/panel/panel-simple.c | 26

[linux-sunxi] Re: [PATCH 2/7] drm/sun4i: support A33 tcon

2016-09-02 Thread Chen-Yu Tsai
Hi, On Thu, Sep 1, 2016 at 11:31 PM, Maxime Ripard wrote: > The A33 has a significantly different pipeline, with components that differ > too. > > Make sure we had compatible for them. > > Signed-off-by: Maxime Ripard > --- >

[linux-sunxi] Re: [PATCH 3/7] drm/sun4i: Add SAT and DRC drivers

2016-09-02 Thread Chen-Yu Tsai
Hi, On Thu, Sep 1, 2016 at 11:32 PM, Maxime Ripard wrote: > The A33 pipeline also has some new components called SAT and DRC. Even > though their exact features and programming model is not known (or > documented), they need to be clocked for the pipeline to

Re: [linux-sunxi] Flashing NAND on SinA33

2016-09-08 Thread Chen-Yu Tsai
On Thu, Sep 8, 2016 at 6:06 PM, Ciprian Manea wrote: > BLOKS.de cares about Allwinner's U-boot! ;) > > So I tried the latest U-boot, configuring it using Sinlinx_SinA33_defconfig. The defconfig does not have the eMMC connected mmc configured. Please try this branch:

Re: [linux-sunxi] Flashing NAND on SinA33

2016-09-08 Thread Chen-Yu Tsai
Hi, On Thu, Sep 8, 2016 at 10:40 PM, Ciprian Manea wrote: > Hi ChenYu, > > Thanks for your answer! I tried your branch and I think I'm one step > further... > I'm getting the following error: > > U-Boot SPL 2016.09-rc2-gf042883 (Sep 08 2016 - 16:23:28) > DRAM: 1024

[linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-31 Thread Chen-Yu Tsai
Hi, On Tue, Aug 30, 2016 at 1:44 PM, Danny Milosavljevic wrote: > Note: Mic1 Capture Volume is in a different register on A20 than on A10. > Note: Mic2 Capture Volume is in a different register on A20 than on A10. The subject would be better saying "Add support for

Re: [linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-31 Thread Chen-Yu Tsai
On Wed, Aug 31, 2016 at 3:40 PM, Danny Milosavljevic wrote: >> And what about microphone bias? > > Would this be OK? > > static int sun4i_codec_handle_mic_bias_event(struct snd_soc_dapm_widget *w, > struct snd_kcontrol *k, int

[linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-31 Thread Chen-Yu Tsai
On Wed, Aug 31, 2016 at 3:17 PM, Danny Milosavljevic wrote: > Hi Chen-Yu, > >> > +static const char * const sun4i_codec_difflinein_capture_source[] = { >> > + "Non-Differential", >> > + "Differential", >> >> How about "Stereo"? And possibly "Mono Differential"?

Re: [linux-sunxi] Re: [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-31 Thread Chen-Yu Tsai
On Wed, Aug 31, 2016 at 3:49 PM, Danny Milosavljevic wrote: > Hi Chen-Yu, > >> My apologies. I didn't notice that VMIC was already in the driver. >> In that your original patch did everything right. > > Don't worry about it :) > > But I have a question: > > If I replace

[linux-sunxi] Re: [PATCH v9 1/2] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-08-30 Thread Chen-Yu Tsai
On Tue, Aug 30, 2016 at 1:44 PM, Danny Milosavljevic wrote: > This distinguishes sun4i from sun7i. It is necessary because they use > different registers for the audio mixer. > --- > sound/soc/sunxi/sun4i-codec.c | 44 > +-- > 1

Re: [linux-sunxi] [PATCH v2] ASoC: sun4i-codec: Distinguish sun4i from sun7i

2016-09-09 Thread Chen-Yu Tsai
Hi, On Fri, Sep 9, 2016 at 3:57 AM, Danny Milosavljevic wrote: > Introduce mechanism to detect sun7i and provide a different regmap > and different controls for it - different compared to sun4i Allwinner A10. > > The controls will be extended in a forthcoming patch - it

[linux-sunxi] Re: Some problem about develop the audio codec driver for A64

2016-09-09 Thread Chen-Yu Tsai
Hi, On Fri, Sep 9, 2016 at 11:28 PM, Hao Zhang wrote: > hello, > I want to pick up some tasks list in this web page > (http://linux-sunxi.org/Linux_mainlining_effort)which is base on A64 > and i has some problem on it. if i develop the audio codec driver for > A64, which

<    9   10   11   12   13   14   15   16   17   18   >