Re: [linux-sunxi] Re: [PATCH v3 1/5] clk: sunxi: Add apb0 gates for H3

2016-02-09 Thread Krzysztof Adamski
On Tue, Feb 09, 2016 at 06:10:40PM +0100, Maxime Ripard wrote: >>It seems that the other compatible strings are there for historical >>reasons. Why do you need a new one with such a specific name? >> >>It would have been more sensible to add a generic compatible string as >>"allwinner,apb-gates",

Re: [linux-sunxi] Re: [PATCH 11/11] arm64: dts: add Pine64 support

2016-02-09 Thread Danny Milosavljevic
Hi, On Mon, 8 Feb 2016 11:55:43 +1100 Julian Calaby wrote: > I believe that device tree overlays are the generally recommended method. I agree. But last time I tried, the device tree compiler didn't support overlays - neither in Debian nor in the in-kernel dtc ("-@" is unsupported; last tried

[linux-sunxi] enable sata orange pi plus 2

2016-02-09 Thread galeots
I found that they disabled the sata because they are too slow, give me a hand to enable it ?! by script.bin not work because missing diver. I can not figure it out! Use orange pi plus 2 of OpenELEC anybody with my problem? -- You received this message because you are subscribed to the Google Gro

Re: [linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Itead Ibox

2016-02-09 Thread Hans de Goede
Hi, On 02/09/2016 08:10 PM, Code Kipper wrote: On 9 February 2016 at 19:34, Maxime Ripard mailto:maxime.rip...@free-electrons.com>> wrote: > Hi, > > On Tue, Feb 09, 2016 at 10:29:16AM +0100, codekip...@gmail.com wrote: >> From: Marcus Cooper mailto:codekip...

Re: [linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Itead Ibox

2016-02-09 Thread Code Kipper
On 9 February 2016 at 19:34, Maxime Ripard wrote: > Hi, > > On Tue, Feb 09, 2016 at 10:29:16AM +0100, codekip...@gmail.com wrote: >> From: Marcus Cooper >> >> Enable the otg/drc usb controller on the Itead Ibox device. >> >> Note this board has the otg-vbus connected directly to the 5v-dcc of >>

Re: [linux-sunxi][PATCH] ARM: dts: sun7i: Enable USB DRC on MK808C

2016-02-09 Thread Maxime Ripard
On Tue, Feb 09, 2016 at 10:25:32AM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Enable the otg/drc usb controller on the MK808C. > > Signed-off-by: Marcus Cooper Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://fre

Re: [linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Olimex A20 EVB

2016-02-09 Thread Maxime Ripard
On Tue, Feb 09, 2016 at 10:33:28AM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Enable the otg/drc usb controller on the Olimex A20 EVB. > > Signed-off-by: Marcus Cooper Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering ht

Re: [linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Itead Ibox

2016-02-09 Thread Maxime Ripard
Hi, On Tue, Feb 09, 2016 at 10:29:16AM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Enable the otg/drc usb controller on the Itead Ibox device. > > Note this board has the otg-vbus connected directly to the 5v-dcc of > the board, so there is no vbus0 regulator, nor vbus0-det. >

[linux-sunxi] Re: [PATCH v3 1/5] clk: sunxi: Add apb0 gates for H3

2016-02-09 Thread Maxime Ripard
On Sat, Feb 06, 2016 at 11:26:05AM +0100, Jean-Francois Moine wrote: > On Fri, 5 Feb 2016 12:11:52 +0100 > Maxime Ripard wrote: > > > However, I'd like to keep per-soc and per-clocks compatibles in the > > DT, in case we need to protect a clock in the future. > > What do you mean by "protect a c

[linux-sunxi] Re: [PATCH 05/11] drivers: pinctrl: add driver for Allwinner A64 SoC

2016-02-09 Thread Maxime Ripard
On Mon, Feb 08, 2016 at 03:58:18PM +, Andre Przywara wrote: > Hi, > > On 08/02/16 15:54, Rob Herring wrote: > > On Thu, Feb 04, 2016 at 05:51:51PM +0100, Maxime Ripard wrote: > >> Hi Andre, > >> > >> On Tue, Feb 02, 2016 at 04:53:58PM +, Andre Przywara wrote: > So, droping it in the f

[linux-sunxi] Re: [PATCH v3 1/5] clk: sunxi: Add apb0 gates for H3

2016-02-09 Thread Maxime Ripard
On Fri, Feb 05, 2016 at 12:58:37PM +0100, Krzysztof Adamski wrote: > On Fri, Feb 05, 2016 at 12:11:52PM +0100, Maxime Ripard wrote: > >Hi, > > > >On Thu, Feb 04, 2016 at 03:47:52PM +0100, Jean-Francois Moine wrote: > >>On Thu, 4 Feb 2016 00:33:46 +0100 > >>Krzysztof Adamski wrote: > >> > >>> This

[linux-sunxi] [PATCH v4 2/5] dts: sun8i-h3: Add APB0 related clocks and resets

2016-02-09 Thread Krzysztof Adamski
APB0 is bearly mentioned in H3 User Manual and it is only setup in the Allwinners kernel dump for CIR. I have verified experimentally that the gate for R_PIO exists and works, though. There are probably other gates there but I don't know their order right now and I don't have access to their periph

[linux-sunxi] [PATCH v4 3/5] pinctrl: sunxi: Add H3 R_PIO controller support

2016-02-09 Thread Krzysztof Adamski
H3 has additional PIO controller similar to what we can find on A23. It's a 12 pin port, described in H3 Datasheet rev 1.1, pages 345-350. Signed-off-by: Krzysztof Adamski Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + drivers/pin

[linux-sunxi] [PATCH v4 1/5] clk: sunxi: Add apb0 gates for H3

2016-02-09 Thread Krzysztof Adamski
This patch adds support for APB0 in H3. It seems to be compatible with earlier SOCs. apb0 gates controls R_ block peripherals (R_PIO, R_IR, etc). Signed-off-by: Krzysztof Adamski --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-simple-gates.c | 2 ++

[linux-sunxi] [PATCH v4 5/5] pinctrl: sunxi: Use pin number when calling sunxi_pmx_set

2016-02-09 Thread Krzysztof Adamski
sunxi_pmx_set accepts pin number and then calculates offset by subtracting pin_base from it. sunxi_pinctrl_gpio_get, on the other hand, gets offset so we have to convert it to pin number so we won't get negative value in sunxi_pmx_set. This was only used on A10 so far, where there is only one GPIO

[linux-sunxi] [PATCH v4 4/5] ARM: dts: sun8i-h3: Add R_PIO controller node to the dtsi

2016-02-09 Thread Krzysztof Adamski
Add the corresponding device node for R_PIO on H3 to the dtsi. Support for the controller was added in earlier commit. Signed-off-by: Krzysztof Adamski --- arch/arm/boot/dts/sun8i-h3.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm

[linux-sunxi] [PATCH v4 0/5] pinctrl: sunxi: Add H3 R_PIO controller support

2016-02-09 Thread Krzysztof Adamski
. Patchset is based on next-20160209. --- Changes since v3: - collect some acked-bys - fix r_pios #interrupt-cells Changes since v2: - fixed apb0 parrent clocks list - moved binding documentation change to the proper patch - simplified sunxi_pinctrl_gpio_get according to ChenYu suggestions - fixed

[linux-sunxi] Re: [PATCH 07/11] ARM: dts: sunxi: Add dtsi file for AXP809 PMIC

2016-02-09 Thread Mark Brown
On Tue, Feb 09, 2016 at 01:41:37PM +0800, Chen-Yu Tsai wrote: > On Tue, Feb 9, 2016 at 12:22 AM, Mark Brown wrote: > > The whole point with constraints is that they describe what is safe on a > > given board. This includes powering off unused regulators - it should > > be something that the syst

[linux-sunxi] Re: [PATCH 02/11] mfd: axp20x: Add bindings for AXP809 PMIC

2016-02-09 Thread Lee Jones
On Tue, 02 Feb 2016, Rob Herring wrote: > On Tue, Feb 02, 2016 at 06:27:35PM +0800, Chen-Yu Tsai wrote: > > This patch adds the basic and regulator bindings for the X-Powers AXP809 > > PMIC. > > > > Also update the DC-DC converter operating frequency for AXP22X/AXP80X. > > > > Signed-off-by: Che

Re: [linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Olimex A20 EVB

2016-02-09 Thread Hans de Goede
Hi, On 09-02-16 10:33, codekip...@gmail.com wrote: From: Marcus Cooper Enable the otg/drc usb controller on the Olimex A20 EVB. Signed-off-by: Marcus Cooper --- Changes since v1: - Added vbus0 regulator and vbus0 detection to dts Thanks patch looks good to me: Reviewed-by: Hans de Goede

[linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Olimex A20 EVB

2016-02-09 Thread codekipper
From: Marcus Cooper Enable the otg/drc usb controller on the Olimex A20 EVB. Signed-off-by: Marcus Cooper --- Changes since v1: - Added vbus0 regulator and vbus0 detection to dts --- arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 32 ++ 1 file changed, 32 insertions

Re: [linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Itead Ibox

2016-02-09 Thread Hans de Goede
Jo. On 09-02-16 10:29, codekip...@gmail.com wrote: From: Marcus Cooper Enable the otg/drc usb controller on the Itead Ibox device. Note this board has the otg-vbus connected directly to the 5v-dcc of the board, so there is no vbus0 regulator, nor vbus0-det. Signed-off-by: Marcus Cooper ---

Re: [linux-sunxi][PATCH] ARM: dts: sun7i: Enable USB DRC on MK808C

2016-02-09 Thread Hans de Goede
Hi, On 09-02-16 10:25, codekip...@gmail.com wrote: From: Marcus Cooper Enable the otg/drc usb controller on the MK808C. Signed-off-by: Marcus Cooper Thanks patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans --- arch/arm/boot/dts/sun7i-a20-mk808c.dts | 35 +

[linux-sunxi][PATCH v2] ARM: dts: sun7i: Enable USB DRC on Itead Ibox

2016-02-09 Thread codekipper
From: Marcus Cooper Enable the otg/drc usb controller on the Itead Ibox device. Note this board has the otg-vbus connected directly to the 5v-dcc of the board, so there is no vbus0 regulator, nor vbus0-det. Signed-off-by: Marcus Cooper --- Changes since v1: - Added comment concerning vbus0 reg

[linux-sunxi][PATCH] ARM: dts: sun7i: Enable USB DRC on MK808C

2016-02-09 Thread codekipper
From: Marcus Cooper Enable the otg/drc usb controller on the MK808C. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun7i-a20-mk808c.dts | 35 ++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-mk808c.dts b/arch/arm/boot/dts/sun7i

[linux-sunxi] Re: [PATCH 3/6] ARM: sunxi_defconfig: Enable MUSB HDRC driver with Allwinner glue

2016-02-09 Thread Chen-Yu Tsai
On Tue, Feb 9, 2016 at 4:15 PM, Maxime Ripard wrote: > Hi, > > On Sat, Feb 06, 2016 at 11:53:46PM +0800, Chen-Yu Tsai wrote: >> Allwinner SoCs typically have a Mentor Graphics Inventra MUSB dual role >> controller for USB OTG. >> >> Now that the issue with MUSB and USB gadget registration order ha

[linux-sunxi] Re: [PATCH 3/6] ARM: sunxi_defconfig: Enable MUSB HDRC driver with Allwinner glue

2016-02-09 Thread Maxime Ripard
Hi, On Sat, Feb 06, 2016 at 11:53:46PM +0800, Chen-Yu Tsai wrote: > Allwinner SoCs typically have a Mentor Graphics Inventra MUSB dual role > controller for USB OTG. > > Now that the issue with MUSB and USB gadget registration order has been > resolved, we can enable this driver in dual role mode

[linux-sunxi] Re: [PATCH 5/6] ARM: multi_v7_defconfig: Enable A10 audio codec driver as module

2016-02-09 Thread Maxime Ripard
On Sat, Feb 06, 2016 at 11:53:48PM +0800, Chen-Yu Tsai wrote: > The A10 audio codec driver supports the on-chip audio codec found on > Allwinner A10, A10s, A13, A20 SoCs. > > Build it as a module, since it is not critical. > > Signed-off-by: Chen-Yu Tsai Applied, thanks! Maxime -- Maxime Ripa

[linux-sunxi] Re: [PATCH 6/6] ARM: multi_v7_defconfig: Enable MUSB HDRC driver with Allwinner glue

2016-02-09 Thread Maxime Ripard
On Sat, Feb 06, 2016 at 11:53:49PM +0800, Chen-Yu Tsai wrote: > Allwinner SoCs typically have a Mentor Graphics Inventra MUSB high speed > dual role controller for USB OTG. > > Now that the issue with MUSB and USB gadget registration order has been > resolved, we can enable this driver in dual rol

[linux-sunxi] Re: [PATCH 4/6] ARM: sunxi_defconfig: Enable INPUT_EVDEV so axp20x-pek can be used

2016-02-09 Thread Maxime Ripard
On Sat, Feb 06, 2016 at 11:53:47PM +0800, Chen-Yu Tsai wrote: > sunxi_defconfig already enables INPUT_AXP20X_PEK, but the device is not > exposed to userspace. Enable INPUT_EVDEV so it is. > > Signed-off-by: Chen-Yu Tsai Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux,

[linux-sunxi] Re: [PATCH 1/6] ARM: sunxi_defconfig: Enable sunxi IR driver

2016-02-09 Thread Maxime Ripard
On Sat, Feb 06, 2016 at 11:53:44PM +0800, Chen-Yu Tsai wrote: > A consumer IR receiver is commonly found on Allwinner SoC based > development boards and set top boxes. The driver has been available > for some time. Enable it by default. > > Signed-off-by: Chen-Yu Tsai Applied, thanks! Maxime --

[linux-sunxi] Re: [PATCH 2/6] ARM: sunxi_defconfig: Enable A10 audio codec driver

2016-02-09 Thread Maxime Ripard
On Sat, Feb 06, 2016 at 11:53:45PM +0800, Chen-Yu Tsai wrote: > The A10 audio codec driver supports the on-chip audio codec found on > Allwinner A10, A10s, A13, A20 SoCs. > > Signed-off-by: Chen-Yu Tsai Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android