[linux-sunxi] [PATCH resend 0/6] ARM: sunxi: Add support for A10/A20 Video Engine clocks

2015-12-05 Thread Chen-Yu Tsai
do so. The patches are pretty self-explanatory. Regards ChenYu Chen-Yu Tsai (6): clk: sunxi: Add DRAM gates support for sun4i-a10 clk: sunxi: Add VE (Video Engine) module clock driver for sun[457]i ARM: dts: sun4i: Add DRAM gates ARM: dts: sun4i: Add VE (Video Engine) module clock node

[linux-sunxi] [PATCH resend 3/6] ARM: dts: sun4i: Add DRAM gates

2015-12-05 Thread Chen-Yu Tsai
The DRAM gates controls direct memory access for some peripherals. These peripherals include the display pipeline, so add the required gates to the simplefb nodes as well. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun4i-a10.dts

[linux-sunxi] [PATCH resend 2/6] clk: sunxi: Add VE (Video Engine) module clock driver for sun[457]i

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own special module clock, consisting of a clock gate, configurable dividers, and a reset control. On later (sun[68]i) families, the reset control is moved out of this piece of hardware and grouped with reset controls of other peripherals. Signed-off-by: Chen-Yu Tsai &l

[linux-sunxi] [PATCH resend 5/6] ARM: dts: sun7i: Add DRAM gates

2015-12-05 Thread Chen-Yu Tsai
The DRAM gates controls direct memory access for some peripherals. These peripherals include the display pipeline, so add the required gates to the simplefb nodes as well. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun7i-a20.dtsi | 32 +

[linux-sunxi] [PATCH 6/6] ARM: dts: sun7i: Add VE (Video Engine) module clock node

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own module clock, which also includes a reset control for it. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun7i-a20.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a2

[linux-sunxi] [PATCH 3/6] ARM: dts: sun4i: Add DRAM gates

2015-12-05 Thread Chen-Yu Tsai
The DRAM gates controls direct memory access for some peripherals. These peripherals include the display pipeline, so add the required gates to the simplefb nodes as well. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun4i-a10.dts

[linux-sunxi] [PATCH 4/6] ARM: dts: sun4i: Add VE (Video Engine) module clock node

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own module clock, which also includes a reset control for it. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun4i-a10.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a1

[linux-sunxi] [PATCH 5/6] ARM: dts: sun7i: Add DRAM gates

2015-12-05 Thread Chen-Yu Tsai
The DRAM gates controls direct memory access for some peripherals. These peripherals include the display pipeline, so add the required gates to the simplefb nodes as well. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun7i-a20.dtsi | 32 +

[linux-sunxi] [PATCH 2/6] clk: sunxi: Add VE (Video Engine) module clock driver for sun[457]i

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own special module clock, consisting of a clock gate, configurable dividers, and a reset control. On later (sun[68]i) families, the reset control is moved out of this piece of hardware and grouped with reset controls of other peripherals. Signed-off-by: Chen-Yu Tsai &l

[linux-sunxi] [PATCH 1/6] clk: sunxi: Add DRAM gates support for sun4i-a10

2015-12-05 Thread Chen-Yu Tsai
. However it is still listed in the user manual, so add it anyway. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-simple-gates.c | 12 2 files changed, 13 insertions(+) diff

[linux-sunxi] [PATCH 0/6] ARM: sunxi: Add support for A10/A20 Video Engine clocks

2015-12-05 Thread Chen-Yu Tsai
. Regards ChenYu Chen-Yu Tsai (6): clk: sunxi: Add DRAM gates support for sun4i-a10 clk: sunxi: Add VE (Video Engine) module clock driver for sun[457]i ARM: dts: sun4i: Add DRAM gates ARM: dts: sun4i: Add VE (Video Engine) module clock node ARM: dts: sun7i: Add DRAM gates ARM: dts: sun7i

[linux-sunxi] Requesting help with MMC2 DDR 52 mode clock delays

2015-12-09 Thread Chen-Yu Tsai
Hi, I am working on DDR support for the MMC controllers. Unfortunately none of my boards support signal voltage switching to 1.8V, (and I suspect no boards do), so I cannot try out UHS-1 modes. I have 4 boards that have eMMC chips connected to MMC2. These are the A80 Optimus, Cubieboard4,

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-11 Thread Chen-Yu Tsai
On Fri, Dec 11, 2015 at 4:51 PM, wrote: > The most up to date documentation is the following > https://github.com/allwinner-zh > > > documents/A20/A20_User_Manual_v1.4_20150510.pdf > > Page 289 has no mention of the fact that to actually have clk_out_a you need > to set the

[linux-sunxi] [PATCH v6 4/9] mfd: axp20x: Split the driver into core and i2c bits

2015-12-16 Thread Chen-Yu Tsai
cific glue layer. MFD_AXP20X and the new MFD_AXP20X_I2C are changed to tristate symbols, allowing the driver to be built as modules. Whitespace and other style errors in the moved i2c specific code have been fixed. Included but unused header files are removed as well. Signed-off-by: Chen-Yu Tsai <

[linux-sunxi] [PATCH v6 7/9] regulator: axp20x: Support new AXP223 PMIC

2015-12-16 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> Reviewed-by: Mark Brown <broo...@k

[linux-sunxi] [PATCH v6 5/9] mfd: axp20x: Whitespace, open parenthesis alignment code style fixes

2015-12-16 Thread Chen-Yu Tsai
This fixes some leftover code style issues in the axp20x core. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 631ad64ddf69..54a00168da26

[linux-sunxi] [PATCH v6 0/9] mfd: axp20x: Add support for RSB based AXP223

2015-12-16 Thread Chen-Yu Tsai
core. Patch 6 adds an RSB based driver for the AXP223. Patch 7 adds support for the AXP223 regulators Patch 8 enables the AXP223 PMIC and its regulators for the Sinlinx SinA33. Patch 9 enables the AXP223 PMIC and its regulators for A23/A33 based Q8 tablet devices. Regards ChenYu Chen-Yu Tsa

[linux-sunxi] [PATCH v6 9/9] ARM: dts: sun8i: q8-common: Add AXP223 PMIC device and regulator nodes

2015-12-16 Thread Chen-Yu Tsai
A23/A33 Q8 tablets have an X-Powers AXP223 PMIC connected via RSB. Its regulators provide power to various parts of the SoC and the board. Also add lcd regulator supply for simplefb and update the existing vmmc-supply for mmc0. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/bo

[linux-sunxi] [PATCH v6 8/9] ARM: dts: sun8i: sinlinx-sina33: Add AXP223 PMIC device and regulator nodes

2015-12-16 Thread Chen-Yu Tsai
This board has a X-Powers AXP223 PMIC connected via RSB. Its regulators provide power to various parts of the SoC and the board. Also update the regulator supply phandles. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dt

[linux-sunxi] [PATCH v6 3/9] mfd: axp20x: use dev->driver->of_match_table in axp20x_match_device()

2015-12-16 Thread Chen-Yu Tsai
. of_device_get_match_data() cannot be used here as we need to know if it failed to get a match, or if the match data value just happened to be 0, as it is for the AXP152. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[linux-sunxi] [PATCH v6 2/9] mfd: axp20x: Remove second struct device * parameter for axp20x_match_device()

2015-12-16 Thread Chen-Yu Tsai
<andy.shevche...@gmail.com> Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 9842199e2e6c..685a78614f83 100644 --- a/drivers/mfd/axp20x.c +++ b

[linux-sunxi] [PATCH v6 6/9] mfd: axp20x: Add support for RSB based AXP223 PMIC

2015-12-16 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/Kconfig| 11 +++ d

[linux-sunxi] [PATCH v6 1/9] mfd: axp20x: Add AXP223 to list of supported PMICs in DT bindings

2015-12-16 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.ri

Re: [linux-sunxi] [PATCH v4] sun4i-codec: add inputs

2015-12-10 Thread Chen-Yu Tsai
Hi, On Fri, Dec 11, 2015 at 2:57 AM, Danny Milosavljevic wrote: > Hi Maxime, > >> There's no need to have two at the same time, they're mutually >> exclusive. > > Hmmm. I don't understand it properly then... > Let's say two different compatibles in two different device

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-10 Thread Chen-Yu Tsai
Hi, On Fri, Dec 11, 2015 at 1:26 AM, wrote: > I am able to have a 32Khz signal output from PI12 if I add a pullup > definition to > > clk_out_a_pins_a: clk_out_a@0 { > allwinner,pins = "PI12"; > allwinner,function = "clk_out_a"; > allwinner,drive = ; > /* allwinner,pull = ;

[linux-sunxi] Re: [PATCH 3/3] ARM: dts: sunxi: allwinner,sun4i-a10-lradc-keys binding: typo fix

2015-12-10 Thread Chen-Yu Tsai
On Fri, Dec 11, 2015 at 11:54 AM, Chen-Yu Tsai <w...@csie.org> wrote: > On Fri, Dec 11, 2015 at 11:45 AM, Rob Herring <r...@kernel.org> wrote: >> On Thu, Dec 10, 2015 at 09:32:01PM +0100, Karsten Merker wrote: >>> Trivial typo fix ("mut" -> "must&quo

[linux-sunxi] Re: [PATCH 1/3] ARM: dts: sun7i: Olimex A20-SOM-EVB: Add LRADC keys

2015-12-10 Thread Chen-Yu Tsai
schematics published by the manufacturer. > > Signed-off-by: Karsten Merker <mer...@debian.org> 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

[linux-sunxi] Re: [PATCH 3/3] ARM: dts: sunxi: allwinner,sun4i-a10-lradc-keys binding: typo fix

2015-12-10 Thread Chen-Yu Tsai
by: Karsten Merker <mer...@debian.org> > > Acked-by: Rob Herring <r...@kernel.org> 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

[linux-sunxi] [PATCH 1/3] ARM: dts: sun9i: cubieboard4: Enable LEDs

2015-12-10 Thread Chen-Yu Tsai
The Cubieboard4 has 2 controllable LEDs, 1 red and 1 green. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- This is a resend of an old patch. --- arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/sun

[linux-sunxi] [PATCH 2/3] ARM: dts: sun9i: cubieboard4: Enable consumer IR receiver

2015-12-10 Thread Chen-Yu Tsai
The Cubieboard4 has a consumer IR receiver. Enable it in the DT. 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/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun

[linux-sunxi] [PATCH 0/3] ARM: dts: sun9i: cubieboard4: Enable misc. peripherals

2015-12-10 Thread Chen-Yu Tsai
Hi Maxime, Here are some patches enabling some peripherals on the Cubieboard4. Patch 1 enables the LEDs. Patch 2 enables the IR receiver. Patch 3 enables the RSB controller. Regards ChenYu Chen-Yu Tsai (3): ARM: dts: sun9i: cubieboard4: Enable LEDs ARM: dts: sun9i: cubieboard4: Enable

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-11 Thread Chen-Yu Tsai
On Fri, Dec 11, 2015 at 4:03 PM, wrote: >> AFAIK board designs using this all have an external pull-up resistor. >> Maybe this pin is open-drain by design? >> >> Also, for higher clock rates you should increase the drive strength. >> >> 30 mA should be good enough for clock

Re: [linux-sunxi] Re: Requesting help with MMC2 DDR 52 mode clock delays

2015-12-10 Thread Chen-Yu Tsai
DR work without it, using old timing mode. Regards ChenYu > > b. 4 bit width: > Card Clock = MMC Module Clock > > Best regards > > Sugar > > On Thursday, December 10, 2015 at 3:17:44 PM UTC+8, Chen-Yu Tsai wrote: >> >> Hi, >> >> I am working on D

[linux-sunxi] Re: [PATCH v5 0/9] mfd: axp20x: Add support for RSB based AXP223

2015-12-11 Thread Chen-Yu Tsai
Hi Lee, On Fri, Nov 27, 2015 at 2:43 PM, Chen-Yu Tsai <w...@csie.org> wrote: > Hi everyone, > > This is v5 of the AXP223 PMIC series. v5 cleans up the code before and > after the axp20x split, as suggested by Andy. Any chance you could merge this series (patches 1~7) for 4.5

[linux-sunxi] Re: [PATCH v6 0/9] mfd: axp20x: Add support for RSB based AXP223

2016-01-04 Thread Chen-Yu Tsai
Hi Lee, On Thu, Dec 17, 2015 at 12:32 AM, Chen-Yu Tsai <w...@csie.org> wrote: > Hi everyone, > > This is v6 of the AXP223 PMIC series. v6 fixes the address of the AXP223 > in the DT. Hope this series makes it into 4.5, and we can then support > even more AXP PMICs in 4.6+.

Re: [linux-sunxi] Re: PSCI for H3

2016-01-03 Thread Chen-Yu Tsai
On Mon, Dec 28, 2015 at 1:16 AM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Wed, Dec 23, 2015 at 12:14:15PM +0200, Siarhei Siamashka wrote: >> On Tue, 17 Nov 2015 15:32:30 +0100 >> Jens Kuske <jensku...@gmail.com> wrote: >> >> > On 16/

Re: [linux-sunxi] reason for Allwinner SoC specific pinctrl drivers?

2016-01-04 Thread Chen-Yu Tsai
On Mon, Jan 4, 2016 at 7:02 PM, Andre Przywara wrote: > Hi, > > while looking at the Allwinner A64 SoC support, I was wondering why we > would actually need a pinctrl driver (file) for each and every Allwinner > SoC that we support. > Looking at both the A20 and the A64

[linux-sunxi] [PATCH 1/4] sunxi: Support Secure Memory Touch Arbiter (SMTA) in sun8i H3

2016-01-05 Thread Chen-Yu Tsai
access. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/cpu/armv7/sunxi/Makefile | 1 + arch/arm/cpu/armv7/sunxi/tzpc.c| 11 ++- arch/arm/include/asm/arch-sunxi/tzpc.h | 13 - 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu

[linux-sunxi] [PATCH 4/4] sunxi: Enable booting non-secure and virtualization for H3

2016-01-05 Thread Chen-Yu Tsai
Now that we support PSCI and various security switches, we can let U-boot boot Linux into non-secure and HYP mode. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- board/sunxi/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index 9

[linux-sunxi] [PATCH 3/4] sunxi: Support PSCI ops on Allwinner H3

2016-01-05 Thread Chen-Yu Tsai
H3 has the same power sequencing procedure as the A31/A31s, which includes the power clamps. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/cpu/armv7/sunxi/psci_sun6i.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/sunxi/psci_sun6i.S

[linux-sunxi] [PATCH 0/4] sunxi: PSCI support for H3

2016-01-05 Thread Chen-Yu Tsai
/ tested by Siarhei. Patch 4 enables PSCI support for the H3 in Kconfig. I've only tested booting HYP/SMP on my Orange Pi PC. Hotplugging was not tested, but should work. Regards ChenYu Chen-Yu Tsai (4): sunxi: Support Secure Memory Touch Arbiter (SMTA) in sun8i H3 sunxi: Support H3 CCU

[linux-sunxi] [PATCH 2/4] sunxi: Support H3 CCU security switches

2016-01-05 Thread Chen-Yu Tsai
(weak) empty function so things do not break. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/cpu/armv7/sunxi/clock.c | 5 + arch/arm/cpu/armv7/sunxi/clock_sun6i.c| 13 + arch/arm/include/asm/arch-sunxi/clock.h | 1 + arch/arm/include/as

[linux-sunxi] Re: [PATCH 3/5] ARM: dts: sun4i: Add touchscreen node to inet97fv2 dts file

2015-12-20 Thread Chen-Yu Tsai
On Sun, Dec 20, 2015 at 7:43 PM, Hans de Goede wrote: > Add a node describing the focaltech ft5306de4 touchscreen found on > inet97fv2 tablets. > > Signed-off-by: Hans de Goede > --- > arch/arm/boot/dts/sun4i-a10-inet97fv2.dts | 11 +++ > 1 file

[linux-sunxi] Re: [PATCH 4/5] ARM: dts: sun5i: Add dts file for the Empire Electronix D709 tablet

2015-12-20 Thread Chen-Yu Tsai
Hi, On Sun, Dec 20, 2015 at 7:43 PM, Hans de Goede wrote: > The Empire Electronix D709 tablet is a fairly standard 7" A13 tablet, > featuring usb-wifi, a micro-sd slot, micro-usb otg and headphone jack. > > Empire Electronix is written on the back of the tablet, the D709

Re: [linux-sunxi][PATCH v2 2/5] ARM: dts: sun7i: Add Itead A20 Core support

2015-12-20 Thread Chen-Yu Tsai
; Signed-off-by: Marcus Cooper <codekip...@gmail.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 from it, send an email t

[linux-sunxi] Re: [PATCH 5/5] ARM: dts: sun7i: Enable gmac on Wits Pro A20 DKT

2015-12-20 Thread Chen-Yu Tsai
On Sun, Dec 20, 2015 at 7:43 PM, Hans de Goede <hdego...@redhat.com> wrote: > The Wits Pro A20 DKT has a gbit ethernet port, enable it. > > Signed-off-by: Hans de Goede <hdego...@redhat.com> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this message

[linux-sunxi] Re: [PATCH 2/5] ARM: dts: sun4i: Add touchscreen node to chuwi-v7 dts file

2015-12-20 Thread Chen-Yu Tsai
On Sun, Dec 20, 2015 at 7:42 PM, Hans de Goede wrote: > Add a node describing the focaltech ft5306de4 touchscreen found on > chuwi-v7-cw0825 tablets. > > Signed-off-by: Hans de Goede > --- > arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts | 11

Re: [linux-sunxi][PATCH v2 1/5] ARM: dts: sunxi: Add sunxi-itead-core-common.dtsi

2015-12-20 Thread Chen-Yu Tsai
gt; + status = "okay"; > +}; > + > + { > + status = "okay"; > +}; > + > + { > + status = "okay"; > +}; > + > + { > + pinctrl-names = "default"; > + pinctrl-0 = <_pins_a>; > +

Re: [linux-sunxi] Re: PSCI for H3

2015-12-23 Thread Chen-Yu Tsai
On Wed, Dec 23, 2015 at 6:14 PM, Siarhei Siamashka <siarhei.siamas...@gmail.com> wrote: > On Tue, 17 Nov 2015 15:32:30 +0100 > Jens Kuske <jensku...@gmail.com> wrote: > >> On 16/11/15 07:26, Chen-Yu Tsai wrote: >> > Hi everyone, >> > >> > I got

Re: [linux-sunxi][PATCH v2 1/5] ARM: dts: sunxi: Add sunxi-itead-core-common.dtsi

2015-12-21 Thread Chen-Yu Tsai
On Mon, Dec 21, 2015 at 2:18 PM, Chen-Yu Tsai <w...@csie.org> wrote: > Hi, > > On Sat, Dec 19, 2015 at 11:05 PM, <codekip...@gmail.com> wrote: >> From: Marcus Cooper <codekip...@gmail.com> >> >> Itead have a core module board that can be populat

Re: [linux-sunxi][PATCH v2 3/5] ARM: dts: sun7i: Add Itead Ibox support

2015-12-21 Thread Chen-Yu Tsai
ures of core > board by exposing the VGA pins, audio In/Out pins, SATA, SPI, I2C, UARTS, > USB-OTG and power. > > Signed-off-by: Marcus Cooper <codekip...@gmail.com> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this message because you are subscribed to the Google

Re: [linux-sunxi] Re: [PATCH 4/5] ARM: dts: sun5i: Add dts file for the Empire Electronix D709 tablet

2015-12-21 Thread Chen-Yu Tsai
On Tue, Dec 22, 2015 at 3:36 AM, Hans de Goede wrote: > Hi, > > On 21-12-15 17:11, Maxime Ripard wrote: >> >> Hi,x >> >> On Mon, Dec 21, 2015 at 11:46:18AM +0100, Hans de Goede wrote: On the side, any thoughts on how to handle the differences between various

[linux-sunxi] Re: [PATCH v3 2/3] ARM: dts: sun8i: Add Allwinner A83T dtsi

2015-12-21 Thread Chen-Yu Tsai
On Sat, Dec 19, 2015 at 5:41 AM, Maxime Ripard wrote: > Hi, > > On Fri, Dec 18, 2015 at 09:30:50PM +0800, Vishnu Patekar wrote: >> Allwinner A83T is new octa-core cortex-a7 SOC. >> This adds the basic dtsi, the clocks differs from >> earlier sun8i SOCs. >> >>

[linux-sunxi] Re: [PATCH 5/5] ARM: dts: sun5i: Add backlight node to sun5i-q8-common.dtsi

2015-12-21 Thread Chen-Yu Tsai
On Sat, Dec 19, 2015 at 6:54 PM, <8001...@gmail.com> wrote: >> + default-brightness-level = <8>; > > > Why? > Is not better 100% ? It's just an arbitrary value. Plus having the backlight at 100% on battery powered devices might eat up the battery quicker. ChenYu -- You received

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10

2015-12-29 Thread Chen-Yu Tsai
On Tue, Dec 29, 2015 at 8:33 PM, Hans de Goede wrote: > Hi, > > On 27-12-15 21:51, Maxime Ripard wrote: >> >> On Sat, Dec 26, 2015 at 12:57:59PM +0300, Aleksei Mamlin wrote: >>> >>> Marsboard A10 have four red LEDs, the first one can be used for >>> heartbeat indication. >>>

[linux-sunxi] [PATCH v5 3/9] mfd: axp20x: use dev->driver->of_match_table in axp20x_match_device()

2015-11-26 Thread Chen-Yu Tsai
. of_device_get_match_data() cannot be used here as we need to know if it failed to get a match, or if the match data value just happened to be 0, as it is for the AXP152. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[linux-sunxi] [PATCH v5 9/9] ARM: dts: sun8i: q8-common: Add AXP223 PMIC device and regulator nodes

2015-11-26 Thread Chen-Yu Tsai
A23/A33 Q8 tablets have an X-Powers AXP223 PMIC connected via RSB. Its regulators provide power to various parts of the SoC and the board. Also add lcd regulator supply for simplefb and update the existing vmmc-supply for mmc0. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/bo

[linux-sunxi] [PATCH v5 4/9] mfd: axp20x: Split the driver into core and i2c bits

2015-11-26 Thread Chen-Yu Tsai
cific glue layer. MFD_AXP20X and the new MFD_AXP20X_I2C are changed to tristate symbols, allowing the driver to be built as modules. Whitespace and other style errors in the moved i2c specific code have been fixed. Included but unused header files are removed as well. Signed-off-by: Chen-Yu Tsai <

[linux-sunxi] [PATCH v5 0/9] mfd: axp20x: Add support for RSB based AXP223

2015-11-26 Thread Chen-Yu Tsai
PMIC and its regulators for A23/A33 based Q8 devices. Regards ChenYu Chen-Yu Tsai (9): mfd: axp20x: Add AXP223 to list of supported PMICs in DT bindings mfd: axp20x: Remove second struct device * parameter for axp20x_match_device() mfd: axp20x: use dev->driver->of_match_table

[linux-sunxi] [PATCH v5 6/9] mfd: axp20x: Add support for RSB based AXP223 PMIC

2015-11-26 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/Kconfig| 11 +++ d

[linux-sunxi] [PATCH v5 7/9] regulator: axp20x: Support new AXP223 PMIC

2015-11-26 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> Reviewed-by: Mark Brown <broo...@k

[linux-sunxi] [PATCH v5 8/9] ARM: dts: sun8i: sinlinx-sina33: Add AXP223 PMIC device and regulator nodes

2015-11-26 Thread Chen-Yu Tsai
This board has a X-Powers AXP223 PMIC connected via RSB. Its regulators provide power to various parts of the SoC and the board. Also update the regulator supply phandles. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dt

[linux-sunxi] [PATCH v5 2/9] mfd: axp20x: Remove second struct device * parameter for axp20x_match_device()

2015-11-26 Thread Chen-Yu Tsai
<andy.shevche...@gmail.com> Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 9842199e2e6c..685a78614f83 100644 --- a/drivers/mfd/axp20x.c +++ b

[linux-sunxi] [PATCH v5 1/9] mfd: axp20x: Add AXP223 to list of supported PMICs in DT bindings

2015-11-26 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.ri

[linux-sunxi] [PATCH v5 5/9] mfd: axp20x: Whitespace, open parenthesis alignment code style fixes

2015-11-26 Thread Chen-Yu Tsai
This fixes some leftover code style issues in the axp20x core. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 631ad64ddf69..54a00168da26

[linux-sunxi] Re: [PATCH v3 3/5] clk: sunxi: Add sun9i A80 cpus (cpu special) clock support

2015-11-26 Thread Chen-Yu Tsai
On Thu, Nov 26, 2015 at 1:32 AM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Tue, Nov 24, 2015 at 05:32:14PM +0800, Chen-Yu Tsai wrote: >> The "cpus" clock is the clock for the embedded processor in the A80. >> It is also part of the

[linux-sunxi] Re: [PATCH v3 1/2] phy-sun4i-usb: Use of_match_node to get model specific config data

2015-11-25 Thread Chen-Yu Tsai
On Thu, Nov 26, 2015 at 12:50 AM, Hans de Goede wrote: > Use of_match_node instead of calling of_device_is_compatible a ton of > times to get model specific config data. > > Signed-off-by: Hans de Goede > --- > Changes in v3: > -New patch in v3 of this

[linux-sunxi] [PATCH v4 1/5] clk: sunxi: Add CLK_OF_DECLARE support for sun8i-a23-apb0-clk driver

2015-11-28 Thread Chen-Yu Tsai
. Also, build it for sun9i/A80, and not just for configurations with MFD_SUN6I_PRCM enabled. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/clk/sunxi/Makefile | 5 +-- drivers/clk/sunxi/clk-sun8i-apb0.c | 71 +++--- 2 files changed, 62 inse

[linux-sunxi] [PATCH v4 2/5] clk: sunxi: Add sun9i A80 apbs gates support

2015-11-28 Thread Chen-Yu Tsai
This patch adds support for the PRCM apbs clock gates found on the Allwinner A80 SoC. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-simple-gates.c | 2 ++ 2 files changed, 3 insertions(+) diff

[linux-sunxi] [PATCH v4 5/5] ARM: dts: sun9i: Add TODO comments for the main and low power clocks

2015-11-28 Thread Chen-Yu Tsai
The main (24MHz) clock on the A80 is configurable via the PRCM address space. The low power/speed (32kHz) clock is from an external chip, the AC100. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80.dtsi | 18 ++ 1 file changed, 18 insertions(+)

[linux-sunxi] [PATCH v4 4/5] ARM: dts: sun9i: Add A80 PRCM clocks and reset control nodes

2015-11-28 Thread Chen-Yu Tsai
This adds the supported PRCM clocks and reset controls to the A80 dtsi. The DAUDIO module clocks are not supported yet. Also update clock and reset phandles for r_uart. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80.dts

[linux-sunxi] [PATCH 1/7] pinctrl: sunxi: Add A80 special pin controller

2015-11-30 Thread Chen-Yu Tsai
ible strings to bindings doc; fix pin function names based on v1.3 datasheet; constify of_device_id table] Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 2 + drivers/pinctrl/sunxi/Kconfig | 5 + drivers/pinc

[linux-sunxi] [PATCH 2/7] ARM: dts: sun9i: Add A80 R_PIO pin controller device node

2015-11-30 Thread Chen-Yu Tsai
The A80 has a secondary pin controller. Add a device node for it. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi

[linux-sunxi] [PATCH 0/7] ARM: sun9i: R_PIO, IR receiver and RSB support

2015-11-30 Thread Chen-Yu Tsai
receiver on the A80 Optimus. Patch 6 adds a device node for the RSB controller. This controller is compatible with the one found on the A23/A33. Patch 7 enables the RSB controller on the A80 Optimus. Still to come are A80-related PMIC drivers and DTS patches. Regards ChenYu Chen-Yu Tsai (6):

[linux-sunxi] [PATCH 4/7] ARM: dts: sun9i: Add consumer IR receiver device node and pinmux settings

2015-11-30 Thread Chen-Yu Tsai
The Allwinner A80 SoC has a consumer IR receiver, which is the same as older SoCs. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts

[linux-sunxi] [PATCH 7/7] ARM: dts: sun9i: optimus: Enable Reduced Serial Bus controller

2015-11-30 Thread Chen-Yu Tsai
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/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts index 79766e5867cd..c0060e4f7379 100644 --- a/arch/arm/boot/dts

[linux-sunxi] [PATCH 3/7] ARM: dts: sun9i: optimus: Enable LED3

2015-11-30 Thread Chen-Yu Tsai
LED3 is connected to pin PM15 on R_PIO. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun9i-a80-optimus.dts | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optim

[linux-sunxi] [PATCH 5/7] ARM: dts: sun9i: optimus: Enable consumer IR receiver

2015-11-30 Thread Chen-Yu Tsai
The A80 Optimus board has a consumer IR receiver. Enable it in the DT. 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/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-01 Thread Chen-Yu Tsai
itched away from the GPIO function; a > shell script to simulate a poor-mans clock using GPIO was still running > but the scope didn't show it anymore afterwards) AFAIK the clock code does no such thing. > > (I thought clk_out_a was initially introduced by Chen-Yu > Tsai for th

[linux-sunxi] Re: [PATCH v4 1/5] clk: sunxi: Add CLK_OF_DECLARE support for sun8i-a23-apb0-clk driver

2015-12-01 Thread Chen-Yu Tsai
On Tue, Dec 1, 2015 at 6:04 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Sun, Nov 29, 2015 at 11:03:06AM +0800, Chen-Yu Tsai wrote: >> The APBS clock on sun9i is the same as the APB0 clock on sun8i. With >> sun9i we are supporting the PRCM clo

[linux-sunxi] Re: [PATCH v4 1/5] clk: sunxi: Add CLK_OF_DECLARE support for sun8i-a23-apb0-clk driver

2015-12-01 Thread Chen-Yu Tsai
On Tue, Dec 1, 2015 at 8:50 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Tue, Dec 01, 2015 at 07:54:06PM +0800, Chen-Yu Tsai wrote: >> On Tue, Dec 1, 2015 at 6:04 PM, Maxime Ripard >> <maxime.rip...@free-electrons.com> wrote: >> > Hi, >

[linux-sunxi] Re: [PATCH] thermal: Add support for Sunxi THS on the Allwinner H3

2015-11-18 Thread Chen-Yu Tsai
On Thu, Nov 19, 2015 at 4:51 AM, Josef Gajdusek wrote: > This patch adds support for the Sunxi thermal sensor on the Allwinner H3. > Also adds declaration of the H3 THS clock to clk-sunxi.c ignoring the > dividers as they are not continuous (clk-divider.c cannot be used as it >

[linux-sunxi] Re: [PATCH 4/4] ARM: dts: sun5i: Add i2c axp152 pmic support for Auxtek T004 boards

2015-11-20 Thread Chen-Yu Tsai
s.nl> > Signed-off-by: Hans de Goede <hdego...@redhat.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 from it, send an em

[linux-sunxi] Re: [PATCH 3/4] ARM: dts: sun4i: Add backlight node to pov protab2 ips9 tablet

2015-11-20 Thread Chen-Yu Tsai
On Fri, Nov 20, 2015 at 9:59 PM, Hans de Goede <hdego...@redhat.com> wrote: > Add a node describing the lcd panel backlight on the pov protab2 ips9 > tablet. > > Signed-off-by: Hans de Goede <hdego...@redhat.com> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You rec

[linux-sunxi] Re: [PATCH 2/4] ARM: dts: sun5i: Add backlight node to UTOO P66 tablet

2015-11-20 Thread Chen-Yu Tsai
On Fri, Nov 20, 2015 at 9:59 PM, Hans de Goede <hdego...@redhat.com> wrote: > Add a node describing the lcd panel backlight on the UTOO P66 tablet. > > Signed-off-by: Hans de Goede <hdego...@redhat.com> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You receiv

[linux-sunxi] Re: [PATCH 1/4] ASoC: sun4i-codec: Add support for PA gpio pin

2015-11-20 Thread Chen-Yu Tsai
On Sat, Nov 21, 2015 at 12:30 AM, Maxime Ripard wrote: > On Fri, Nov 20, 2015 at 02:47:10PM +0100, Hans de Goede wrote: >> Add support for PA gpio pin for controlling an external amplifier as used >> on some Allwinner boards. >> >> Signed-off-by: Hans de Goede

[linux-sunxi] Re: [PATCH v3 5/9] ARM: dts: sun8i: sinlinx-sina33: Add AXP223 PMIC device and regulator nodes

2015-11-20 Thread Chen-Yu Tsai
On Fri, Nov 20, 2015 at 7:12 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Tue, Nov 17, 2015 at 12:38:24AM +0800, Chen-Yu Tsai wrote: >> This board has a X-Powers AXP223 PMIC connected via RSB. Its regulators >> provide power to various par

[linux-sunxi] Re: [PATCH v2 1/3] ARM: sunxi: Re-enable SID driver in sunxi_defconfig

2015-11-19 Thread Chen-Yu Tsai
deprecated config symbol EEPROM_SUNXI_SID > instead of the new symbol NVMEM_SUNXI_SID. Hence, re-enable the driver > in sunxi_defconfig. > > Signed-off-by: Timo Sigurdsson <public_tim...@silentcreek.de> Acked-by: Chen-Yu Tsai <w...@csie.org> -- You received this message because you

[linux-sunxi] Re: [PATCH v2 2/3] ARM: sunxi: Really enable LRADC keys in sunxi_defconfig

2015-11-19 Thread Chen-Yu Tsai
ARD which is > explicitly disabled in sunxi_defconfig. Hence, the LRADC keys were > never actually enabled. Remove the line disabling CONFIG_KEYBOARD in > order to really enable KEYBOARD_SUN4I_LRADC. > > Signed-off-by: Timo Sigurdsson <public_tim...@silentcreek.de> Acked-by:

Re: [linux-sunxi] Re: [PATCH v3 3/3] ARM: dts: sun4i: gemei-g9: Enable sun4i audio codec support

2015-11-19 Thread Chen-Yu Tsai
On Fri, Nov 20, 2015 at 12:09 AM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Thu, Nov 12, 2015 at 08:53:19PM +0200, Priit Laes wrote: >> On Mon, 2015-11-09 at 11:59 +0800, Chen-Yu Tsai wrote: >> > On Sat, Nov 7, 2015 at 1:54 AM, Prii

Re: [linux-sunxi] Re: [PATCH v4 4/6] reset: sunxi: Add Allwinner H3 bus resets

2015-11-22 Thread Chen-Yu Tsai
On Thu, Nov 5, 2015 at 2:47 PM, Jean-Francois Moine wrote: > On Wed, 4 Nov 2015 08:30:14 -0800 > Maxime Ripard wrote: > >> Hi Arnd, >> >> On Fri, Oct 30, 2015 at 09:27:03AM +0100, Arnd Bergmann wrote: >> > On Tuesday 27 October 2015 17:50:24

[linux-sunxi] Re: [PATCH v2 4/5] dt-bindings: document sun8i_ths

2015-11-23 Thread Chen-Yu Tsai
On Mon, Nov 23, 2015 at 4:02 PM, Josef Gajdusek wrote: > This patch adds the binding documentation for the sun8i_ths driver > > Signed-off-by: Josef Gajdusek > --- > .../devicetree/bindings/thermal/sun8i-ths.txt | 31 > ++ > 1 file

[linux-sunxi] Re: [PATCH v2 1/5] ARM: dts: sun8i: Add SID node

2015-11-23 Thread Chen-Yu Tsai
On Tue, Nov 24, 2015 at 2:38 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Tue, Nov 24, 2015 at 11:13:13AM +0800, Chen-Yu Tsai wrote: >> Hi, >> >> On Mon, Nov 23, 2015 at 8:43 PM, Maxime Ripard >> <maxime.rip...@free-electrons.com> wrote:

[linux-sunxi] Re: [PATCH v2 1/5] ARM: dts: sun8i: Add SID node

2015-11-23 Thread Chen-Yu Tsai
Hi, On Mon, Nov 23, 2015 at 8:43 PM, Maxime Ripard wrote: > Hi, > > On Mon, Nov 23, 2015 at 09:02:48AM +0100, Josef Gajdusek wrote: >> Add a node describing the Security ID memory to the >> Allwinner H3 .dtsi file. >> >> Signed-off-by: Josef Gajdusek

[linux-sunxi] [PATCH v4 4/6] regulator: axp20x: Support new AXP223 PMIC

2015-11-23 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> Reviewed-by: Mark Brown <broo...@k

[linux-sunxi] [PATCH v4 0/6] mfd: axp20x: Add support for RSB based AXP223

2015-11-23 Thread Chen-Yu Tsai
3/A33 based Q8 devices. Regards ChenYu Chen-Yu Tsai (6): mfd: axp20x: Add AXP223 to list of supported PMICs in DT bindings mfd: axp20x: Split the driver into core and i2c bits mfd: axp20x: Add support for RSB based AXP223 PMIC regulator: axp20x: Support new AXP223 PMIC ARM: dts: sun8i:

[linux-sunxi] [PATCH v4 1/6] mfd: axp20x: Add AXP223 to list of supported PMICs in DT bindings

2015-11-23 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.ri

[linux-sunxi] [PATCH v4 6/6] ARM: dts: sun8i: q8-common: Add AXP223 PMIC device and regulator nodes

2015-11-23 Thread Chen-Yu Tsai
A23/A33 Q8 tablets have an X-Powers AXP223 PMIC connected via RSB. Its regulators provide power to various parts of the SoC and the board. Also add lcd regulator supply for simplefb and update the existing vmmc-supply for mmc0. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/bo

[linux-sunxi] [PATCH v4 3/6] mfd: axp20x: Add support for RSB based AXP223 PMIC

2015-11-23 Thread Chen-Yu Tsai
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/Kconfig| 11 ++ d

[linux-sunxi] [PATCH v4 5/6] ARM: dts: sun8i: sinlinx-sina33: Add AXP223 PMIC device and regulator nodes

2015-11-23 Thread Chen-Yu Tsai
This board has a X-Powers AXP223 PMIC connected via RSB. Its regulators provide power to various parts of the SoC and the board. Also update the regulator supply phandles. Signed-off-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dt

<    5   6   7   8   9   10   11   12   13   14   >