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

2015-11-24 Thread Shuge
On Monday, November 23, 2015 at 17:32 UTC+8, Maxime Ripard wrote: > On Mon, Nov 23, 2015 at 10:51:15PM -0800, Sugar Wu wrote: >> On Monday, November 23, 2015 at 8:43:59 PM UTC+8, Maxime Ripard wrote: >>> >>> Hi, >>> >>> On Mon, Nov 23, 2015 at 09:02:48AM +0100, Josef Gajdusek wrote: Add a no

Re: [linux-sunxi] A20 higher External interrupr (EINT22-EINT31)

2015-11-24 Thread ivoronov
Update: When trying to load the example http://linux-sunxi.org/External_interrupts just changing PH20 to PH7 [ 529.653595] /rebooter: arguments longer than property [ 529.658844] rebooter-irq: cannot register IRQ -6 [ 529.663558] prismlx-rebooter: probe of rebooter failed with error -5 --

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

2015-11-24 Thread Lee Jones
On Tue, 24 Nov 2015, Chen-Yu Tsai wrote: > 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 > Acked-by: Maxime

Re: [linux-sunxi] Allwinner A20: systemd / Time has been changed

2015-11-24 Thread Philippe Baret
I tried both root@cubietruck: hwclock -r then hwclock -w root@cubietruck: hwclock -r then --systohc Still these systemd lines after a new boot on FreedomBox image. Philippe 2015-11-24 10:40 GMT+01:00 Jens Thiele : > philippe.ba...@gmail.com writes: > > > Le lundi 23 novembre 2015 21:04:33 UTC

[linux-sunxi] Re: [PATCH v4 2/6] mfd: axp20x: Split the driver into core and i2c bits

2015-11-24 Thread Andy Shevchenko
On Tue, Nov 24, 2015 at 5:09 PM, Chen-Yu Tsai wrote: > On Tue, Nov 24, 2015 at 8:35 PM, Andy Shevchenko > wrote: >> On Tue, Nov 24, 2015 at 1:28 PM, Chen-Yu Tsai wrote: >>> On Tue, Nov 24, 2015 at 5:37 PM, Andy Shevchenko >>> wrote: On Tue, Nov 24, 2015 at 5:48 AM, Chen-Yu Tsai wrote: >>>

[linux-sunxi] Re: [PATCH v4 2/6] mfd: axp20x: Split the driver into core and i2c bits

2015-11-24 Thread Chen-Yu Tsai
On Tue, Nov 24, 2015 at 8:35 PM, Andy Shevchenko wrote: > On Tue, Nov 24, 2015 at 1:28 PM, Chen-Yu Tsai wrote: >> Hi, >> >> On Tue, Nov 24, 2015 at 5:37 PM, Andy Shevchenko >> wrote: >>> On Tue, Nov 24, 2015 at 5:48 AM, Chen-Yu Tsai wrote: The axp20x driver assumes the device is i2c based.

[linux-sunxi] Re: [PATCH v4 2/6] mfd: axp20x: Split the driver into core and i2c bits

2015-11-24 Thread Andy Shevchenko
On Tue, Nov 24, 2015 at 1:28 PM, Chen-Yu Tsai wrote: > Hi, > > On Tue, Nov 24, 2015 at 5:37 PM, Andy Shevchenko > wrote: >> On Tue, Nov 24, 2015 at 5:48 AM, Chen-Yu Tsai wrote: >>> The axp20x driver assumes the device is i2c based. This is not the >>> case with later chips, which use a proprieta

[linux-sunxi] Re: [PATCH v4 2/6] mfd: axp20x: Split the driver into core and i2c bits

2015-11-24 Thread Chen-Yu Tsai
Hi, On Tue, Nov 24, 2015 at 5:37 PM, Andy Shevchenko wrote: > On Tue, Nov 24, 2015 at 5:48 AM, Chen-Yu Tsai wrote: >> The axp20x driver assumes the device is i2c based. This is not the >> case with later chips, which use a proprietary 2 wire serial bus >> by Allwinner called "Reduced Serial Bus"

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun7i: Add dts file for the lamobo-r1 board

2015-11-24 Thread Thomas Kaiser
Hi, Hans de Goede: > The Lamobo-R1 has a gpio header idententical to the one found > on the Banana Pi, i2c2 is routed to pins there. One thing I forgot to mention before. Please have a look into our Wiki at the second right picture: http://linux-sunxi.org/Lamobo_R1#GPIO_header The Add-On i

[linux-sunxi] Re: [PATCH v5 0/2] simplefb: Add regulator handling support

2015-11-24 Thread Tomi Valkeinen
On 17/11/15 06:31, Chen-Yu Tsai wrote: > Hi everyone, > > This is v5 of the simplefb regulator support series. This series adds > regulator claiming and enabling support for simplefb. > > Hans, I dropped your Reviewed-by tag from patch 2 since v4. > > Changes since v5: > - Rebased onto v4.4-

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

2015-11-24 Thread Andy Shevchenko
On Tue, Nov 24, 2015 at 5:48 AM, Chen-Yu Tsai wrote: > 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 > --- >

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

2015-11-24 Thread Jisheng Zhang
+ Sebastian On Tue, 24 Nov 2015 17:32:15 +0800 Chen-Yu Tsai wrote: > 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 > --- > arch/arm/

[linux-sunxi] Re: [PATCH v4 2/6] mfd: axp20x: Split the driver into core and i2c bits

2015-11-24 Thread Andy Shevchenko
On Tue, Nov 24, 2015 at 5:48 AM, Chen-Yu Tsai wrote: > The axp20x driver assumes the device is i2c based. This is not the > case with later chips, which use a proprietary 2 wire serial bus > by Allwinner called "Reduced Serial Bus". > > This patch follows the example of mfd/wm831x and splits it in

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun7i: Add dts file for the lamobo-r1 board

2015-11-24 Thread Thomas Kaiser
Hi, Hans de Goede wrote: > The Lamobo-R1 has a gpio header idententical to the one found > on the Banana Pi, i2c2 is routed to pins there. That's the reason this header exists in this form and that's the reason customers buy these boards that expose an 'RPi compatible' 26/40 pin GPIO header. Tha

Re: [linux-sunxi] Allwinner A20: systemd / Time has been changed

2015-11-24 Thread Jens Thiele
philippe.ba...@gmail.com writes: > Le lundi 23 novembre 2015 21:04:33 UTC+1, Karsten Merker a écrit : >> --> https://github.com/systemd/systemd/issues/1143 >> >> You could try booting with init=/bin/sh, manually set the correct >> time and write it to the RTC with hwclock. Afterwards - at least

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

2015-11-24 Thread Chen-Yu Tsai
The "cpus" clock is the clock for the embedded processor in the A80. It is also part of the PRCM clock tree. This clock includes a pre- divider on one of its inputs. For now we are using a custom clock driver for it. In the future we may want to develop a generalized driver for these types of clock

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

2015-11-24 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 --- arch/arm/boot/dts/sun9i-a80.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/b

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

2015-11-24 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 --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-simple-gates.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/de

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

2015-11-24 Thread Maxime Ripard
On Mon, Nov 23, 2015 at 10:51:15PM -0800, Sugar Wu wrote: > On Monday, November 23, 2015 at 8:43:59 PM UTC+8, 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 .dts

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

2015-11-24 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 --- arch/arm/boot/dts/sun9i-a80.dtsi | 79 +++- 1 file changed

[linux-sunxi] [PATCH v3 0/5] ARM: sun9i: Add Allwinner A80 PRCM clock/reset support

2015-11-24 Thread Chen-Yu Tsai
Hi everyone, This is v3 of the Allwinner A80 PRCM support series. v3 moves away from the mfd approach, and just lists the various controls directly under the "clocks" and "soc" nodes. Changes since v2: - Move away from mfd approach and directly list the clock and reset controls as firs

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

2015-11-24 Thread Chen-Yu Tsai
The APBS clock on sun9i is the same as the APB0 clock on sun8i. With sun9i we are supporting the PRCM clocks by using CLK_OF_DECLARE, instead of through a PRCM mfd device and subdevices for each clock and reset control. As such we need a CLK_OF_DECLARE version of the sun8i-a23-apb0-clk driver. Als

Re: [linux-sunxi] Allwinner A20: systemd / Time has been changed

2015-11-24 Thread philippe . baret
Le lundi 23 novembre 2015 21:04:33 UTC+1, Karsten Merker a écrit : > --> https://github.com/systemd/systemd/issues/1143 > > You could try booting with init=/bin/sh, manually set the correct > time and write it to the RTC with hwclock. Afterwards - at least > in theory - systemd should boot again.

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun8i-h3-orangepi-plus: Enable USB host controllers

2015-11-24 Thread Hans de Goede
Hi, On 23-11-15 23:20, Troy Dack wrote: On Wednesday, 18 November 2015 03:12:11 UTC+11, Jens Kuske wrote: Enable the 2 USB host controllers used on the Orange Pi Plus and add the necessary regulators. Signed-off-by: Reinder de Haan > Signed-off-by: Hans de Goede > Signed-off-by: Jens Kuske

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun7i: Add dts file for the lamobo-r1 board

2015-11-24 Thread Hans de Goede
Hi, On 24-11-15 08:20, Maxime Ripard wrote: Hi, On Mon, Nov 23, 2015 at 09:28:00AM +0100, Hans de Goede wrote: +&cpu0 { + cpu-supply = <®_dcdc2>; + operating-points = < + /* kHzuV */ + 96 140 + 912000 140 + 8

[linux-sunxi] Re: [PATCH v2 5/5] ARM: dts: sun8i: Add THS node to the H3 .dtsi

2015-11-24 Thread Maxime Ripard
On Mon, Nov 23, 2015 at 09:02:52AM +0100, Josef Gajdusek wrote: > + ths: ths@01c25000 { > + #thermal-sensor-cells = <0>; > + compatible = "allwinner,sun8i-h3-ths"; > + reg = <0x01c25000 0x88>; The datasheet says the size is 0x

[linux-sunxi] Re: [PATCH v2 3/5] thermal: Add a driver for the Allwinner THS sensor

2015-11-24 Thread Maxime Ripard
On Mon, Nov 23, 2015 at 09:02:50AM +0100, Josef Gajdusek wrote: > This patch adds support for the Sunxi thermal sensor on the Allwinner H3. You can drop the sunxi here. > Should be easily extendable for the A33/A83T/... as they have similar but > not completely identical sensors. > > Signed-off-

[linux-sunxi] Re: [PATCH v2 7/7] ARM: dts: sun4i: Add touchscreen node to pov protab2-ips9 tablet

2015-11-24 Thread Maxime Ripard
On Fri, Nov 20, 2015 at 02:24:52PM +0100, Hans de Goede wrote: > Add a node describing the touchscreen found on the pov protab2-ips9 > tablet. > > Signed-off-by: Hans de Goede Applied 6 and 7, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http:/

[linux-sunxi] Re: [PATCH] ARM: dts: sun8i-h3-orangepi-plus: Enable USB host controllers

2015-11-24 Thread Maxime Ripard
Hi, On Fri, Nov 20, 2015 at 03:38:47PM +0100, Hans de Goede wrote: > Hi, > > On 17-11-15 17:12, Jens Kuske wrote: > >Enable the 2 USB host controllers used on the Orange Pi Plus > >and add the necessary regulators. > > > >Signed-off-by: Reinder de Haan > >Signed-off-by: Hans de Goede > >Signed

Re: [linux-sunxi] Re: [PATCH] ARM: dts: sun7i: Add dts file for the lamobo-r1 board

2015-11-24 Thread Maxime Ripard
Hi, On Mon, Nov 23, 2015 at 09:28:00AM +0100, Hans de Goede wrote: > >>+&cpu0 { > >>+ cpu-supply = <®_dcdc2>; > >>+ operating-points = < > >>+ /* kHzuV */ > >>+ 96 140 > >>+ 912000 140 > >>+ 864000 135 > >>+ 72 12500

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

2015-11-24 Thread Maxime Ripard
On Tue, Nov 24, 2015 at 02:42:26PM +0800, Chen-Yu Tsai wrote: > On Tue, Nov 24, 2015 at 2:38 PM, Maxime Ripard > 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 > >> wrote: > >> > Hi, > >> > > >> > On Mon,