Re: [PATCH v4 4/7] rtc: ac100: Add clk output support

2016-07-21 Thread Chen-Yu Tsai
On Fri, Jul 22, 2016 at 8:24 AM, Michael Turquette wrote: > Quoting Chen-Yu Tsai (2016-07-13 20:34:34) >> On Sat, Jul 9, 2016 at 2:36 AM, Michael Turquette >> wrote: >> > Quoting Chen-Yu Tsai (2016-06-30 08:58:48) >> >> +static long ac100_clkout_round_r

Re: [PATCH v2 4/4] arm64: dts: add Pine64 support

2016-09-19 Thread Chen-Yu Tsai
On Mon, Sep 12, 2016 at 6:11 PM, Andre Przywara wrote: > Hi, > > On 10/09/16 03:33, Chen-Yu Tsai wrote: >> Hi, >> >> On Sat, Sep 10, 2016 at 4:10 AM, Maxime Ripard >> wrote: >>> From: Andre Przywara >>> >>> The Pine64 is a cost-ef

Re: [PATCH 1/4] drm/sun4i: rgb: Declare RGB encoder and connector as MIPI DPI

2016-09-19 Thread Chen-Yu Tsai
On Mon, Sep 19, 2016 at 3:12 AM, Maxime Ripard wrote: > Hi, > > On Thu, Sep 15, 2016 at 11:13:59PM +0800, Chen-Yu Tsai wrote: >> The 18 or 24 bit parallel RGB LCD panel interface found on Allwinner >> SoCs matches the description of MIPI DPI. Declare the RGB encoder and >

Re: [PATCH 4/4] drm/sun4i: dotclock: Round to closest clock rate

2016-09-19 Thread Chen-Yu Tsai
On Mon, Sep 19, 2016 at 3:16 AM, Maxime Ripard wrote: > Hi, > > On Thu, Sep 15, 2016 at 11:14:02PM +0800, Chen-Yu Tsai wrote: >> With display pixel clocks we want to have the closest possible clock >> rate, to minimize timing and refresh rate skews. Whether the actual >&

[PATCH v3 6/8] ARM: dts: sun9i: a80-optimus: Add device node for AC100

2016-06-19 Thread Chen-Yu Tsai
Signed-off-by: Chen-Yu Tsai --- Changes since v2: none Changes since v1: none --- arch/arm/boot/dts/sun9i-a80-optimus.dts | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts index

[PATCH v3 5/8] rtc: ac100: Add clk output support

2016-06-19 Thread Chen-Yu Tsai
The AC100's RTC side has 3 clock outputs on external pins, which can provide a clock signal to the SoC or other modules, such as WiFi or GSM modules. Support this with a custom clk driver integrated with the rtc driver. Signed-off-by: Chen-Yu Tsai --- Changes since v2: none Changes sin

[PATCH v3 7/8] ARM: dts: sun9i: cubieboard4: Add device node for AC100

2016-06-19 Thread Chen-Yu Tsai
Signed-off-by: Chen-Yu Tsai --- Changes since v2: none Changes since v1: none --- arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts

[PATCH v3 8/8] ARM: dts: sun9i: Switch to the AC100 RTC clock outputs for osc32k

2016-06-19 Thread Chen-Yu Tsai
The 32.768 kHz clock inside the A80 SoC is fed from an external source, typically the AC100 RTC module. Make the osc32k placeholder a fixed-factor clock so board dts files can specify its source. Signed-off-by: Chen-Yu Tsai --- Changes since v2: none Changes since v1: none --- arch/arm/boot

[PATCH v3 1/8] regmap: Support bulk writes for devices without raw formatting

2016-06-19 Thread Chen-Yu Tsai
thout raw formatting"). Signed-off-by: Chen-Yu Tsai --- Changes since v2: none Changes since v1: none --- drivers/base/regmap/regmap.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regm

[PATCH v3 2/8] mfd: ac100: Add device tree bindings for X-Powers AC100 codec/RTC combo IC

2016-06-19 Thread Chen-Yu Tsai
Signed-off-by: Chen-Yu Tsai --- Changes since v2: - Fix interrupt line for ac100_codec in provided example. --- Documentation/devicetree/bindings/mfd/ac100.txt | 42 + 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ac100.txt

[PATCH v3 3/8] mfd: ac100: Add driver for X-Powers AC100 audio codec / RTC combo IC

2016-06-19 Thread Chen-Yu Tsai
The AC100 is a multifunction device with an audio codec subsystem and an RTC subsystem. These two subsystems share a common register space and host interface. Signed-off-by: Chen-Yu Tsai Acked-by: Lee Jones --- Changes since v2: - Dropped file name - Added copyright line. - Changed

[PATCH v3 0/8] mfd: ac100: Add support for X-Powers AC100 audio codec / RTC combo IC

2016-06-19 Thread Chen-Yu Tsai
o this clk in the board dts files. I'm hoping we can merge the driver bits (patches 2~5) through the mfd tree, with acks from the rtc and clk maintainers for patches 4 and 5. Regards ChenYu Chen-Yu Tsai (8): regmap: Support bulk writes for devices without raw formatting mfd: ac100:

[PATCH v3 4/8] rtc: ac100: Add RTC driver for X-Powers AC100

2016-06-19 Thread Chen-Yu Tsai
X-Powers AC100 is a codec / RTC combo chip. This driver supports the RTC sub-device. The RTC block also has clock outputs and non-volatile storage. Non-volatile storage wthin the RTC hardware is not supported. Clock output support is added in the next patch. Signed-off-by: Chen-Yu Tsai

Re: [PATCH v2] ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

2016-06-20 Thread Chen-Yu Tsai
On Mon, Jun 20, 2016 at 2:42 PM, Stefan Mavrodiev wrote: > A33-OLinuXino is A33 development board designed by Olimex LTD. > > It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, > headphone and mic jacks, connector for LiPo battery and optional > 4GB NAND Flash. > > It has two 40-

Re: [PATCH] ARM: sun8i: Add Parrot Board DTS

2016-06-20 Thread Chen-Yu Tsai
Hi, On Mon, Jun 20, 2016 at 11:44 PM, Maxime Ripard wrote: > Hi, > > On Tue, Jun 14, 2016 at 09:19:58PM +0800, Chen-Yu Tsai wrote: >> On Tue, Jun 14, 2016 at 8:59 PM, Quentin Schulz >> wrote: >> > Hi, >> > >> > On 13/06/2016 15:04, Chen-Yu Tsai w

Re: [PATCH] ARM: sun8i: Add Parrot Board DTS

2016-06-21 Thread Chen-Yu Tsai
On Tue, Jun 21, 2016 at 2:35 AM, Maxime Ripard wrote: > On Tue, Jun 21, 2016 at 12:30:25AM +0800, Chen-Yu Tsai wrote: >> >> >>> +®_aldo1 { >> >> >>> + regulator-always-on; >> >> >>> + regulator-min-microvolt

Re: [PATCH v3 2/8] mfd: ac100: Add device tree bindings for X-Powers AC100 codec/RTC combo IC

2016-06-21 Thread Chen-Yu Tsai
On Tue, Jun 21, 2016 at 9:14 PM, Rob Herring wrote: > On Mon, Jun 20, 2016 at 10:52:12AM +0800, Chen-Yu Tsai wrote: >> Signed-off-by: Chen-Yu Tsai >> --- >> Changes since v2: >> >> - Fix interrupt line for ac100_codec in provided example. >> >>

Re: [PATCH 3/3] regulator: axp20x: simplify device access

2016-09-24 Thread Chen-Yu Tsai
Hi, On Thu, Sep 22, 2016 at 2:20 AM, Jean-Francois Moine wrote: > Use the pointer to the main regulator device instead of the pointer > to the child platform device. > > Signed-off-by: Jean-Francois Moine > --- > drivers/regulator/axp20x-regulator.c | 45 > ++--

Re: [PATCH v3 0/4] regulator: axp20x: support AXP803/AXP813 variants

2016-09-24 Thread Chen-Yu Tsai
On Fri, Sep 23, 2016 at 4:58 PM, Jean-Francois Moine wrote: > This patch series adds support for the X-Powers AXP803 and AXP813 PMICs. > It is based on the previous patch series > regulator: axp20x: Simplify various code > > v3: > - put the code of the new devices in new files instead of i

Re: [linux-sunxi] Re: Changed: sunxi-ng clock code - NKMP clock implementation is wrong

2016-07-28 Thread Chen-Yu Tsai
Hi, On Thu, Jul 28, 2016 at 7:27 PM, Ondřej Jirman wrote: > Hi Maxime, > > I don't have your sunxi-ng clock patches in my mailbox, so I'm replying > to this. > > On 26.7.2016 08:32, Maxime Ripard wrote: >> On Thu, Jul 21, 2016 at 11:52:15AM +0200, Ondřej Jirman wrote: >> If so, then yes, tryi

Re: [PATCH v2 1/5] ethernet: add sun8i-emac driver

2016-07-29 Thread Chen-Yu Tsai
On Sat, Jul 30, 2016 at 1:25 AM, Maxime Ripard wrote: > On Thu, Jul 28, 2016 at 04:57:34PM +0200, LABBE Corentin wrote: >> > > +static int sun8i_mdio_write(struct mii_bus *bus, int phy_addr, int >> > > phy_reg, >> > > + u16 data) >> > > +{ >> > > + struct net_device *ndev = bu

Re: [PATCH 2/3] phy: sun4i: add support for A64 usb phy

2016-07-31 Thread Chen-Yu Tsai
Hi, On Sun, Jul 31, 2016 at 10:39 PM, Hans de Goede wrote: > Hi, > > On 31-07-16 13:25, Icenowy Zheng wrote: >> >> There's something unknown in the pmu part. >> >> Signed-off-by: Icenowy Zheng > > > Cool, I really like the work you're doing on A64 support, > keep up the good work! > >> --- >> d

Re: [PATCH 00/13] arm64: Allwinner A64 support based on sunxi-ng

2016-08-01 Thread Chen-Yu Tsai
Hi, On Mon, Aug 1, 2016 at 9:43 AM, André Przywara wrote: > Hi Maxime, > > On 26/07/16 21:30, Maxime Ripard wrote: >> Hi, >> >> Here is the previous A64 patches made by Andre [1], reworked to use >> the new sunxi-ng clock framework. >> >> This uses the current H3 clock code, as both are really si

Re: [PATCH 00/13] arm64: Allwinner A64 support based on sunxi-ng

2016-08-01 Thread Chen-Yu Tsai
On Mon, Aug 1, 2016 at 4:30 PM, Jean-Francois Moine wrote: > On Mon, 1 Aug 2016 02:43:06 +0100 > André Przywara wrote: > >> As this became quite a long read, here a TL;DR: >> - We consider using an SCPI based clock system for the A64, alongside >> allwinner,simple-gates and fixed clocks. We try t

Re: [PATCH 00/13] arm64: Allwinner A64 support based on sunxi-ng

2016-08-01 Thread Chen-Yu Tsai
On Mon, Aug 1, 2016 at 8:00 PM, Jean-Francois Moine wrote: > On Mon, 1 Aug 2016 17:13:34 +0800 > Chen-Yu Tsai wrote: > >> > But I don't see why you are keeping the simple-gates. The bus gate may >> > be ungated/gated when the clock is enabled/disabled, and that&

Re: [linux-sunxi] Re: [PATCH 2/2] ASoC: sunxi: compatibility for sun6i to SPDIF

2016-08-01 Thread Chen-Yu Tsai
Hi, On Sat, Jul 30, 2016 at 11:20 PM, maxime.rip...@free-electrons.com wrote: > On Sat, Jul 30, 2016 at 10:52:45PM +0800, Icenowy Zheng wrote: >> > + if (of_device_is_compatible(pdev->dev.of_node, >> > + "allwinner,sun6i-a31-spdif")) { >> > + host->rst = devm_reset_control_get_optional(&pdev->dev

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 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 output ports, each for a different interface type. &

Re: [PATCH v2 4/7] clk: sunxi-ng: Add N-class clocks support

2016-09-06 Thread Chen-Yu Tsai
On Tue, Sep 6, 2016 at 8:18 PM, Maxime Ripard wrote: > Add support for the class with a single factor, N, being a multiplier. > > Signed-off-by: Maxime Ripard > Acked-by: Chen-Yu Tsai > --- [...] > diff --git a/drivers/clk/sunxi-ng/ccu_mult.c b/drivers/clk/sunxi-ng/ccu_mult

Re: [PATCH v2 5/7] clk: sunxi-ng: Add A33 CCU support

2016-09-07 Thread Chen-Yu Tsai
the A23, hence the name of the various header files. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [PATCH v2 6/7] clk: sunxi-ng: Add A23 CCU

2016-09-07 Thread Chen-Yu Tsai
On Tue, Sep 6, 2016 at 8:18 PM, Maxime Ripard wrote: > Add support for the clock unit found in the A23. Due to the similarities > with the A33, it also shares its clock IDs to allow sharing the DTSI. > > Signed-off-by: Maxime Ripard [...] > diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a23.c > b

Re: [PATCH v4 4/8] dts: sun8i-h3: move uart1 pinmux/peripheral assocation to DSTI

2016-09-07 Thread Chen-Yu Tsai
On Wed, Sep 7, 2016 at 3:58 PM, wrote: > From: Jorik Jonker > > Users using this UART without RTS/CTS should override the association in > their board specific DTS. All (1) board using this UART uses RTS/CTS, so > this breaks nothing. I'd prefer we only do this for peripherals that have absolut

[PATCH] simplefb: Disable and release clocks and regulators in destroy callback

2016-09-07 Thread Chen-Yu Tsai
framebuffer destroy callback, which gets called as part of the framebuffer unregister process. Note this introduces asymmetry in how the resources are claimed and released. Signed-off-by: Chen-Yu Tsai --- drivers/video/fbdev/simplefb.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff

Re: [PATCH v2 4/4] ARM: dts: gr8: Add support for the GR8 evaluation board

2016-09-07 Thread Chen-Yu Tsai
sserand > Signed-off-by: Maxime Ripard > --- > arch/arm/boot/dts/Makefile| 1 + > arch/arm/boot/dts/ntc-gr8-evb.dts | 342 > ++++++ Acked-by: Chen-Yu Tsai > arch/arm/boot/dts/ntc-gr8.dtsi| 14 +- > 3 files changed, 350 in

Re: [PATCH v2 3/4] ARM: dts: Add NextThing GR8 dtsi

2016-09-07 Thread Chen-Yu Tsai
On Wed, Sep 7, 2016 at 10:53 PM, Maxime Ripard wrote: > From: Mylène Josserand > > The GR8 is an SoC made by Nextthing loosely based on the sun5i family. > > Since it's not clear yet what we can factor out and merge with the A10s and > A13 support, let's keep it out of the sun5i.dtsi include tree

[PATCH] phy: sun4i-usb: Use spinlock to guard phyctl register access

2016-09-07 Thread Chen-Yu Tsai
ns de Goede Cc: sta...@vger.kernel.org Signed-off-by: Chen-Yu Tsai --- drivers/phy/phy-sun4i-usb.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c index fcf4d95ecc6d..ae4ac5457c64 100644 --- a/drivers/phy/p

[PATCH] ARM: dts: sun8i: Move A23/A33 usbphy and usb_otg nodes to common dtsi

2016-09-07 Thread Chen-Yu Tsai
The usbphy and usb_otg nodes in the A23 and A33 dts files only differ by compatible, and for the usbphy, the size of one of its register regions. Move all the common bits to the A23/A33 common dtsi file. Signed-off-by: Chen-Yu Tsai --- Hi Maxime, This patch applies on top of your A23/A33 CCU

Re: [PATCH 4/6] clk: sunxi-ng: Add A33 CCU support

2016-09-07 Thread Chen-Yu Tsai
Hi, On Thu, Sep 1, 2016 at 10:16 PM, Maxime Ripard wrote: > This commit introduces the clocks found in the Allwinner A33 CCU. > > Since this SoC is very similar to the A23, and we share a significant share > of the DTSI, the clock IDs that are going to be used will also be shared > with the A23,

Re: [PATCH v2 3/4] ARM: dts: Add NextThing GR8 dtsi

2016-09-07 Thread Chen-Yu Tsai
On Thu, Sep 8, 2016 at 3:37 AM, Linus Walleij wrote: > On Wed, Sep 7, 2016 at 4:53 PM, Maxime Ripard > wrote: > >> From: Mylène Josserand >> >> The GR8 is an SoC made by Nextthing loosely based on the sun5i family. >> >> Since it's not clear yet what we can factor out and merge with the A10s and

Re: [PATCH v2 6/7] clk: sunxi-ng: Add A23 CCU

2016-09-08 Thread Chen-Yu Tsai
On Thu, Sep 8, 2016 at 4:29 PM, Maxime Ripard wrote: > On Wed, Sep 07, 2016 at 03:24:11PM +0800, Chen-Yu Tsai wrote: >> > + [CLK_BUS_MSGBOX]= &bus_msgbox_clk.common.hw, >> >> A23 manual and Allwinner sources say there is a bus gate for SPINLOCK.

Re: [PATCH v2 6/7] clk: sunxi-ng: Add A23 CCU

2016-09-08 Thread Chen-Yu Tsai
On Thu, Sep 8, 2016 at 4:32 PM, Chen-Yu Tsai wrote: > On Thu, Sep 8, 2016 at 4:29 PM, Maxime Ripard > wrote: >> On Wed, Sep 07, 2016 at 03:24:11PM +0800, Chen-Yu Tsai wrote: >>> > + [CLK_BUS_MSGBOX]= &bus_msgbox_clk.common.hw, >>> >

Re: [PATCH] phy: sun4i-usb: Use spinlock to guard phyctl register access

2016-09-08 Thread Chen-Yu Tsai
On Thu, Sep 8, 2016 at 6:16 PM, Hans de Goede wrote: > Hi, > > > On 08-09-16 05:14, Chen-Yu Tsai wrote: >> >> The musb driver calls into this phy driver to disable/enable squelch >> detection. This function was introduced in 24fe86a617c5 ("phy: sun4i-usb: &

Re: [PATCH v3 3/8] clk: sunxi-ng: div: Allow to set a maximum

2016-09-08 Thread Chen-Yu Tsai
the maximum one that > can be used with the field register width. > > Otherwise, we'll use whatever value has been set. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [PATCH v3 3/3] ARM: dts: gr8: Add support for the GR8 evaluation board

2016-09-08 Thread Chen-Yu Tsai
p;i2c0_pins_a>; > + status = "okay"; > + > + axp209: pmic@34 { > + reg = <0x34>; > + > + /* > + * The interrupt is routed through the "External Fast > + * Interrupt Request" pin (b

Re: [PATCH v3 2/3] ARM: dts: Add NextThing GR8 dtsi

2016-09-08 Thread Chen-Yu Tsai
the sun5i.dtsi include tree. We will > figure out what can be shared when things settle down. > > Signed-off-by: Mylène Josserand > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [PATCH v3 7/8] clk: sunxi-ng: Add A23 CCU

2016-09-08 Thread Chen-Yu Tsai
On Thu, Sep 8, 2016 at 5:48 PM, Maxime Ripard wrote: > Add support for the clock unit found in the A23. Due to the similarities > with the A33, it also shares its clock IDs to allow sharing the DTSI. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [PATCH] ARM: dts: sun8i: Move A23/A33 usbphy and usb_otg nodes to common dtsi

2016-09-08 Thread Chen-Yu Tsai
On Fri, Sep 9, 2016 at 4:23 AM, Maxime Ripard wrote: > Hi, > > On Thu, Sep 08, 2016 at 11:25:35AM +0800, Chen-Yu Tsai wrote: >> The usbphy and usb_otg nodes in the A23 and A33 dts files only differ >> by compatible, and for the usbphy, the size of one of its register >&

[PATCH v2] phy: sun4i-usb: Use spinlock to guard phyctl register access

2016-09-08 Thread Chen-Yu Tsai
ns de Goede Cc: sta...@vger.kernel.org Signed-off-by: Chen-Yu Tsai --- Changes since v1: - Remove the old mutex, since it is no longer used - Use irqsave/irqrestore variant of spinlock ops --- drivers/phy/phy-sun4i-usb.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-)

Re: [GIT PULL] Immutable branch between MFD and Regulator due for the v4.9 merge window

2016-09-13 Thread Chen-Yu Tsai
--- > Immutable branch between MFD and Regualtor due for the v4.9 merge window > > ---- > Chen-Yu Tsai (3): > regulator: axp20x: Support AXP806 variant > mfd: axp20x: Add bindings f

Re: [PATCH v2 3/4] ARM: dts: Add NextThing GR8 dtsi

2016-09-13 Thread Chen-Yu Tsai
On Thu, Sep 8, 2016 at 3:41 PM, Maxime Ripard wrote: > On Thu, Sep 08, 2016 at 12:32:48AM +0800, Chen-Yu Tsai wrote: >> On Wed, Sep 7, 2016 at 10:53 PM, Maxime Ripard >> wrote: >> > From: Mylène Josserand >> > >> > The GR8 is an SoC made by N

Re: [PATCH v2 3/4] ARM: dts: Add NextThing GR8 dtsi

2016-09-13 Thread Chen-Yu Tsai
Hi Linus, On Mon, Sep 12, 2016 at 8:40 PM, Linus Walleij wrote: > On Thu, Sep 8, 2016 at 9:37 AM, Maxime Ripard > wrote: >> On Thu, Sep 08, 2016 at 12:46:14PM +0800, Chen-Yu Tsai wrote: > >>> Also, I think we are needlessly using pin groups, 1 pin per group. >>>

Re: [PATCH v2 6/8] ARM: dts: sun9i: a80-optimus: Add AXP806 PMIC device node and regulators

2016-09-15 Thread Chen-Yu Tsai
Hi Maxime, On Sat, Aug 27, 2016 at 3:55 PM, Chen-Yu Tsai wrote: > 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

[PATCH 2/4] drm/sun4i: dotclock: Fix clock rate read back calcation

2016-09-15 Thread Chen-Yu Tsai
10 Display Engine support") Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_dotclock.c b/drivers/gpu/drm/sun4i/sun4i_dotclock.c index 4332da48b1b3..1b6c2253192e 100644 --- a/

[PATCH 0/4] drm/sun4i: rgb and dotclock misc fixes and improvements

2016-09-15 Thread Chen-Yu Tsai
changes the dot clock's behavior to make it round to the closest clock rate. I think this would make it easier to match the LCD panel's timings. More on the LCD timings in a later patch set. Regards ChenYu Chen-Yu Tsai (4): drm/sun4i: rgb: Declare RGB encoder and connector as MIPI DPI

[PATCH 4/4] drm/sun4i: dotclock: Round to closest clock rate

2016-09-15 Thread Chen-Yu Tsai
, the varying dividers also influence the difference between the requested rate and the rounded rate. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_dotclock.c b/drivers/gpu/drm

[PATCH 1/4] drm/sun4i: rgb: Declare RGB encoder and connector as MIPI DPI

2016-09-15 Thread Chen-Yu Tsai
The 18 or 24 bit parallel RGB LCD panel interface found on Allwinner SoCs matches the description of MIPI DPI. Declare the RGB encoder and connector as MIPI DPI. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_rgb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH v3 2/3] ASoC: rename "SUN4I_CODEC_SYS_VERI" to "SUN7I_CODEC_AC_DAC_CAL"; rename "SUN4I_CODEC_AC_MIC_PHONE_CAL" to "SUN7I_CODEC_AC_MIC_PHONE_CAL".

2016-09-15 Thread Chen-Yu Tsai
On Thu, Sep 15, 2016 at 10:39 PM, Danny Milosavljevic wrote: > This patch renames some sun7i-only registers to reflect that fact. The subject line is way longer than it should be. Perhaps you could use the above message as the description part of the subject? ChenYu > > Signed-off-by: Danny Mil

Re: [PATCH v3 3/3] ASoC: sun4i-codec: Add custom regmap configs for the A10 and A20 variants.

2016-09-15 Thread Chen-Yu Tsai
On Thu, Sep 15, 2016 at 10:39 PM, Danny Milosavljevic wrote: > ASoC: sun4i-codec: Add custom regmap configs for the A10 and A20 variants. The commit message should be a straight forward description about what the patch does and why you did it, not a direct copy of the subject. Something along th

[PATCH 3/4] drm/sun4i: dotclock: Allow divider = 127

2016-09-15 Thread Chen-Yu Tsai
The dot clock divider is 7 bits wide, and the divider range is 1 ~ 127, or 6 ~ 127 if phase offsets are used. The 0 register value also represents a divider of 1 or bypass. Make the end condition of the for loop inclusive of 127 in the round_rate callback. Signed-off-by: Chen-Yu Tsai

Re: [PATCH v3 1/3] ASoC: sun4i-codec: rename "sun4i_codec_widgets" to "sun4i_codec_controls" for consistency with the struct field name.

2016-09-15 Thread Chen-Yu Tsai
On Thu, Sep 15, 2016 at 10:39 PM, Danny Milosavljevic wrote: > ASoC: sun4i-codec: rename "sun4i_codec_widgets" to "sun4i_codec_controls" for > consistency with the struct field name. Subject is way too long. The commit messages should be straight forward sentences, not in the format of patch subj

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 file changed, 34 insertions

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

2016-08-30 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 Line-In, FM-In, Mic 2 and Capt

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 > event) > { > st

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"? or just "Mono". > >> A d

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 DAPM_INPUT by DAPM_MIC it w

Re: [PATCH 4/6] ARM: sunxi: Support the Nextthing GR8

2016-08-31 Thread Chen-Yu Tsai
t; index 20bb1d00098c..c6a9e6fda1d0 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -982,6 +982,7 @@ M: Chen-Yu Tsai > L: linux-arm-ker...@lists.infradead.org (moderated for non-subscribers) > S: Maintained > N: sun[x456789]i > +F: arch/arm/boot/dts/gr8*

Re: [PATCH v2 1/4] ARM: dts: sun8i: Add PWM pin in H3

2016-08-31 Thread Chen-Yu Tsai
On Wed, Aug 31, 2016 at 4:25 PM, Milo Kim wrote: > H3 PA5 pin is assigned for single PWM channel. > > Cc: Rob Herring > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Cc: devicet...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org &

Re: [PATCH v2 3/4] pinctrl: sunxi: Remove unsupported PWM channel pinmux in H3

2016-08-31 Thread Chen-Yu Tsai
On Wed, Aug 31, 2016 at 4:25 PM, Milo Kim wrote: > H3 has single PWM channel. The second PWM channel is not supported, > so the pinctrl function should be removed. > > Cc: Linus Walleij > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Cc: Icenowy Zheng > Cc: Jens Kuske >

Re: [PATCH v2 2/4] ARM: dts: sun8i: Add PWM controller node in H3

2016-08-31 Thread Chen-Yu Tsai
On Wed, Aug 31, 2016 at 4:25 PM, Milo Kim wrote: > Cc: Rob Herring > Cc: Maxime Ripard > Cc: Chen-Yu Tsai > Cc: devicet...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Milo Kim Acked-by: Chen-Yu Tsai

Re: [PATCH v2 4/4] pwm: sunxi: Add H3 support

2016-08-31 Thread Chen-Yu Tsai
On Wed, Aug 31, 2016 at 4:25 PM, Milo Kim wrote: > H3 PWM controller has same register layout as sun4i driver, so it works > by adding H3 specific data. > > Cc: Thierry Reding > Cc: Rob Herring > Cc: Maxime Ripard > Cc: Alexandre Belloni > Cc: Chen-Yu Tsai > Cc

Re: [PATCH] drm/sun4i: Clear encoder->bridge if a bridge is not found

2016-08-31 Thread Chen-Yu Tsai
Hi Maxime, On Tue, Aug 30, 2016 at 11:51 PM, Chen-Yu Tsai wrote: > On Tue, Aug 30, 2016 at 8:56 PM, Maxime Ripard > wrote: >> Hi, >> >> On Tue, Aug 30, 2016 at 08:22:23PM +0800, Chen-Yu Tsai wrote: >>> The KMS helpers (drm_atomic_helper_check_modeset/mod

Re: [PATCH v2 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals

2016-08-31 Thread Chen-Yu Tsai
are listed in the manual, and the interrupts, clocks, resets, pins all exist, that is good enough for me. > > Signed-off-by: Jorik Jonker Acked-by: Chen-Yu Tsai

Re: [PATCH v2 2/7] dts: sun8i-h3: add pinmux definitions for i2c0/i2c1

2016-08-31 Thread Chen-Yu Tsai
On Thu, Sep 1, 2016 at 3:30 AM, wrote: > From: Jorik Jonker > > This adds proper pinmux definitions for i2c0 and i2c1. Although H3 has a third > i2c controller, these are not exposed on my boards. If someone actually has a > H3 board with an exposed i2c2, they could add the third. > > Signed-off

[PATCH v2] drm/sun4i: Clear encoder->bridge if a bridge is not found

2016-08-31 Thread Chen-Yu Tsai
other drm_bridge functions also follow this pattern of checking for a non-NULL pointer, we can drop the ifs around the calls and just pass the pointer directly. Fixes: 894f5a9f4b4a ("drm/sun4i: Add bridge support") Signed-off-by: Chen-Yu Tsai --- Changes since v2: - Add comments stating encode

Re: [PATCH v2 3/7] dts: sun8i-h3: add i2c0/i2c1 SoC peripherals

2016-08-31 Thread Chen-Yu Tsai
On Thu, Sep 1, 2016 at 2:31 PM, Jorik Jonker wrote: > Hi, > > A bit tricky to reply to two mails in one, as I think my reply relates to > both, but here it goes. > > On 1 September 2016 at 04:42, Chen-Yu Tsai wrote: >> >> On Thu, Sep 1, 2016 at 3:30 AM,

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 cutting down on the number

Re: [linux-sunxi] [PATCH 6/7] ARM: sun8i: a33: Add RGB666 pins

2016-09-01 Thread Chen-Yu Tsai
tcon0_rgb666_pins_a: tcon0_rgb666@0 { This is the only possible combination. You can drop the _a and @0. Also this can be shared with A23, as they are pin compatible, and I also matched the datasheets. Otherwise Acked-by: Chen-Yu Tsai > + al

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

2016-09-01 Thread Chen-Yu Tsai
On Thu, Sep 1, 2016 at 11:31 PM, Maxime Ripard wrote: > Some Allwinner SoCs, such as the A33, have a variation of the TCON that > doesn't have a second channel (or it is not wired to anything). > > Make sure we can handle that case. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

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

2016-09-01 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 > --- > Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 7 +++

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

2016-09-01 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 > +++ > 1 file changed, 184 insertions(+) > > diff --git a/arch/arm/boot/d

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

2016-09-01 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 carry the video > signal all the way.

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 ++ > 1 file changed, 26 insertions(+) > > dif

Re: [PATCH 1/6] clk: sunxi-ng: div: Add mux table macros

2016-09-02 Thread Chen-Yu Tsai
On Thu, Sep 1, 2016 at 10:16 PM, Maxime Ripard wrote: > Add some macros to ease the declaration of clocks that are using them. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai > --- > drivers/clk/sunxi-ng/ccu_div.h | 28 +--- > 1 file chan

Re: [PATCH 2/6] clk: sunxi-ng: mux: Add mux table macro

2016-09-02 Thread Chen-Yu Tsai
On Thu, Sep 1, 2016 at 10:16 PM, Maxime Ripard wrote: > Add a new macro to declare muxes based on a table and a gate. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [PATCH 2/2] ARM: dts: sun8i: enable UART1 for iNet D978 Rev2 board

2016-08-24 Thread Chen-Yu Tsai
On Thu, Aug 25, 2016 at 7:58 AM, Icenowy Zheng wrote: > > > 25.08.2016, 03:36, "Maxime Ripard" : >> Hi, >> >> On Tue, Aug 23, 2016 at 02:44:51PM +0800, Icenowy Zheng wrote: >>> UART1 is connected to the bluetooth part of RTL8723BS WiFi/BT combo card >>> on iNet D978 Rev2 board. >>> >>> Enable t

Re: [PATCH v4 3/3] ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board

2016-08-25 Thread Chen-Yu Tsai
gt; Although the vendor U-Boot lets you boot the kernel on one of the >> > > Cortex-A15 cores, the kernel gpio-regulator driver currently glitches >> > > the GPIO lines to the OZ80120 regulator such that the system crashes >> > > during startup. This part needs f

[PATCH v3 6/6] ARM: dts: sun6i: switch A31/A31s to new CCU clock bindings

2016-08-25 Thread Chen-Yu Tsai
Now that we have a different clock representation, switch to it. Signed-off-by: Chen-Yu Tsai --- Changes since v2: none Changes since v1: none --- arch/arm/boot/dts/sun6i-a31.dtsi | 424 +-- 1 file changed, 97 insertions(+), 327 deletions(-) diff --git a

[PATCH v3 5/6] clk: sunxi-ng: Add A31/A31s clocks

2016-08-25 Thread Chen-Yu Tsai
Add a new style driver for the clock control unit in Allwinner A31/A31s. A few clocks are still missing: - MIPI PLL's HDMI mode support - EMAC clock Signed-off-by: Chen-Yu Tsai Acked-by: Rob Herring --- Changes since v2: - Fixed _SUNXI_CCU_MUX_TABLE macro name -

[PATCH v3] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-08-25 Thread Chen-Yu Tsai
nding interrupts after we stop the timer in the probe function to avoid this. Cc: sta...@vger.kernel.org Signed-off-by: Chen-Yu Tsai --- Changes since v2: - Add static helper function to clear interrupts as suggested by Daniel. Changes since v1: - Add stable kernel to Cc. --- dr

[PATCH v3 3/6] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-08-25 Thread Chen-Yu Tsai
Some clocks on the A31 have fixed pre-dividers on multiple parents. Add support for them. Signed-off-by: Chen-Yu Tsai --- Changes since v2: - Fixed up H3 changes for number of fixed pre-dividers. Changes since v1: - Add field for number of fixed pre-dividers. --- drivers/clk/sunxi-ng/ccu

[PATCH v3 1/6] clk: sunxi-ng: nkm: Correct mux clock macro name

2016-08-25 Thread Chen-Yu Tsai
ck header was missed. Fix the macro name so NKM with mux compiles correctly. Fixes: a36583595c17 ("clk: sunxi-ng: nkm: Add mux to support multiple parents") Signed-off-by: Chen-Yu Tsai --- Changes since v2: new patch --- drivers/clk/sunxi-ng/ccu_nkm.h | 2 +- 1 f

[PATCH v3 4/6] clk: sunxi-ng: mux: Add clk notifier functions

2016-08-25 Thread Chen-Yu Tsai
circumvent this, we temporarily switch the CPU mux clock to another stable clock before the rate change, and switch it back after the PLL stabilizes. This is done with clk notifiers registered on the PLL. This patch adds common functions for notifiers to reparent mux clocks. Signed-off-by: Chen-Yu Tsa

[PATCH v3 2/6] clk: sunxi-ng: mux: Add support for mux tables

2016-08-25 Thread Chen-Yu Tsai
Some clock muxes have holes, i.e. invalid or unconnected inputs, between parent mux values. Add support for specifying a mux table to map clock parents to mux values. Signed-off-by: Chen-Yu Tsai --- Changes since v2: - Update macro names as changed in commit ad4578dc4cfa ("clk: sun

[PATCH v3 0/6] clk: sunxi-ng: Support A31/A31s CCU

2016-08-25 Thread Chen-Yu Tsai
e main oscillator when the PLL-CPU clock rate is changed, to avoid any instabilities in the PLL which result in the CPU crashing. This is similar to what the meson platform does. Regards ChenYu Chen-Yu Tsai (6): clk: sunxi-ng: nkm: Correct mux clock macro name clk: sunxi-ng: mux: Add sup

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

2016-08-26 Thread Chen-Yu Tsai
On Fri, Aug 26, 2016 at 2:53 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 file changed, 34 insertio

Re: [PATCH 1/2] cpufreq: dt-platdev: Automatically create cpufreq device with OPP v2

2017-08-16 Thread Chen-Yu Tsai
On Wed, Aug 16, 2017 at 1:37 PM, Viresh Kumar wrote: > The initial idea of creating the cpufreq-dt-platdev.c file was to keep a > list of platforms that use the "operating-points" (V1) bindings and > create cpufreq device for them only, as we weren't sure which platforms > would want the device to

Re: [PATCH 2/2] cpufreq: dt-platdev: Drop few entries from whitelist

2017-08-16 Thread Chen-Yu Tsai
.compatible = "allwinner,sun7i-a20", }, > { .compatible = "allwinner,sun8i-a23", }, > - { .compatible = "allwinner,sun8i-a33", }, > { .compatible = "allwinner,sun8i-a83t", }, > { .compatible = "allwinner,sun8i-h3", }, &g

[PATCH] ARM: sun8i: a83t: Add device tree for Sinovoip Bananapi BPI-M3

2017-08-16 Thread Chen-Yu Tsai
are controllable (GB) - Raspberry Pi 2 compatible GPIO header Signed-off-by: Chen-Yu Tsai --- Note that the file name follows the convention of most of the other bananapi boards, that is the vendor "sinovoip" is not included in the name. This deviates from what is already in U-b

Re: [linux-sunxi] Re: [PATCH] ARM: sun8i: a83t: Add device tree for Sinovoip Bananapi BPI-M3

2017-08-17 Thread Chen-Yu Tsai
On Thu, Aug 17, 2017 at 1:11 PM, wrote: > 在 2017-08-17 11:40,Chen-Yu Tsai 写道: >> >> The BPI-M3 is an Allwinner A83T based SBC in the Bananapi/Bpi family. >> It is roughly the same form factor as the BPI-M1+, with roughly the >> same peripherals and connectors

Re: [PATCH 2/2] cpufreq: dt-platdev: Drop few entries from whitelist

2017-08-17 Thread Chen-Yu Tsai
On Wed, Aug 16, 2017 at 7:24 PM, Viresh Kumar wrote: > On 16-08-17, 16:53, Chen-Yu Tsai wrote: >> On Wed, Aug 16, 2017 at 1:37 PM, Viresh Kumar >> wrote: >> > Drop few ARM (32 and 64 bit) platforms from the whitelist which always >> > use "operating-p

Re: [PATCH 07/10] cpufreq: dt: Add support for some new Allwinner SoCs

2017-08-17 Thread Chen-Yu Tsai
On Tue, Aug 15, 2017 at 8:39 PM, Chen-Yu Tsai wrote: > On Tue, Aug 15, 2017 at 8:25 PM, Rafael J. Wysocki wrote: >> On Tuesday, August 15, 2017 7:42:19 AM CEST Chen-Yu Tsai wrote: >>> On Mon, Jul 24, 2017 at 7:46 PM, Rafael J. Wysocki >>> wrote: >>> &g

  1   2   3   4   5   6   7   8   9   10   >