[linux-sunxi] Re: [PATCH 2/3] ARM: sun8i: a83t: Drop leading zeroes from device node addresses

2017-04-18 Thread Maxime Ripard
On Tue, Apr 18, 2017 at 05:22:02PM +0800, Chen-Yu Tsai wrote: > On Tue, Apr 18, 2017 at 5:03 PM, Maxime Ripard > wrote: > > On Tue, Apr 18, 2017 at 12:22:04PM +0800, Chen-Yu Tsai wrote: > >> Kbuild now complains about leading zeroes in the address portion of > >> device node names. > >> > >> Get r

[linux-sunxi] Re: [PATCH 3/3] ARM: sun8i: a83t: Rename pinmux setting names

2017-04-18 Thread Maxime Ripard
On Tue, Apr 18, 2017 at 05:16:53PM +0800, Chen-Yu Tsai wrote: > On Tue, Apr 18, 2017 at 5:04 PM, Maxime Ripard > wrote: > > On Tue, Apr 18, 2017 at 12:22:05PM +0800, Chen-Yu Tsai wrote: > >> The pinmux setting nodes all have an address element in their node > >> names, however the pinctrl node doe

[linux-sunxi] [PATCH 2/4] ARM: sunxi: Drop mmc0_cd_pin_reference_design pinmux setting

2017-04-18 Thread Chen-Yu Tsai
As part of our effort to move pinctrl/GPIO interlocking into the driver where it belongs, this patch drops the definition and usage of the mmc0_cd_pin_reference_design pinmux setting for the default mmc0 card detect GPIO pin. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun4i-a10-a1000.dts

[linux-sunxi] [PATCH 0/4] ARM: sunxi: device tree pinctrl clean up and H3 OTG

2017-04-18 Thread Chen-Yu Tsai
Hi Maxime, This series has 2 parts. The parts are largely unrelated, though the second part should be applied after the first part, so we don't accidentally mux pins that we shouldn't. Hence I'm sending them together. The first 2 patches clean up the sunxi device tree files, removing pinmux setti

[linux-sunxi] [PATCH 1/4] ARM: sunxi: common-regulators: Drop pinmux settings for GPIO pins

2017-04-18 Thread Chen-Yu Tsai
As part of our effort to move pinctrl/GPIO interlocking into the driver where it belongs, this patch drops the definition and usage of the pinmux settings for the common regulators defined in sunxi-common-regulators.dtsi. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.d

[linux-sunxi] [PATCH 4/4] ARM: sun8i: h3: bananapi-m2-plus: Enable USB OTG

2017-04-18 Thread Chen-Yu Tsai
The Bananapi M2 Plus has a USB OTG port that can be used in both powered host mode and peripheral mode. When in peripheral mode, the port does not power the board. There is no VBUS sensing on the port. This patch adds the regulator controlling VBUS on the OTG port, the GPIO for the ID detect pin,

[linux-sunxi] [PATCH 3/4] ARM: sun8i: h3: orangepi-pc: Enable USB OTG

2017-04-18 Thread Chen-Yu Tsai
The Orange Pi PC, PC Plus, and Plus 2E all have a USB OTG port that can be used in both powered host mode and peripheral mode. When in peripheral mode, the port does not power the board. There is no VBUS sensing on the port. All three boards have all related pins routed the same way. The device tr

Re: [linux-sunxi] [PATCH v3 08/12] regulator: axp20x-regulator: add support for AXP803

2017-04-18 Thread Chen-Yu Tsai
On Mon, Apr 17, 2017 at 7:57 PM, Icenowy Zheng wrote: > AXP803 PMIC also have a series of regulators (DCDCs and LDOs) > controllable via I2C/RSB bus. > > Add support for them. > > Signed-off-by: Icenowy Zheng > --- > Changes in v2: > - Place AXP803 codes before AXP806/809 ones. > - Fixed some err

Re: [linux-sunxi] [PATCH v3 09/12] mfd: axp20x: add axp20x-regulator cell for AXP803

2017-04-18 Thread Chen-Yu Tsai
On Tue, Apr 18, 2017 at 6:55 PM, Icenowy Zheng wrote: > > > 于 2017年4月18日 GMT+08:00 下午6:38:09, Chen-Yu Tsai 写到: >>On Mon, Apr 17, 2017 at 7:57 PM, Icenowy Zheng wrote: >>> As axp20x-regulator now supports AXP803, add a cell for it. >>> >>> Signed-off-by: Icenowy Zheng >>> --- >>> Changes in v3:

[linux-sunxi] Re: [PATCH v4 05/11] drm/sun4i: abstract a engine type

2017-04-18 Thread Icenowy Zheng
于 2017年4月18日 GMT+08:00 下午4:55:48, Maxime Ripard 写到: >Hi, > >Thanks for that rework. > >On Sun, Apr 16, 2017 at 08:08:43PM +0800, Icenowy Zheng wrote: >> As we are going to add support for the Allwinner DE2 engine in >sun4i-drm >> driver, we will finally have two types of display engines -- the

Re: [linux-sunxi] Re: [PATCH v3 02/12] arm64: allwinner: a64: add NMI controller on A64

2017-04-18 Thread Icenowy Zheng
于 2017年4月18日 GMT+08:00 下午3:00:16, Maxime Ripard 写到: >On Mon, Apr 17, 2017 at 07:57:37PM +0800, Icenowy Zheng wrote: >> Allwinner A64 SoC features a NMI controller, which is usually >connected >> to the AXP PMIC. >> >> Add support for it. >> >> Signed-off-by: Icenowy Zheng >> Acked-by: Chen-Y

Re: [linux-sunxi] [PATCH v3 09/12] mfd: axp20x: add axp20x-regulator cell for AXP803

2017-04-18 Thread Icenowy Zheng
于 2017年4月18日 GMT+08:00 下午6:38:09, Chen-Yu Tsai 写到: >On Mon, Apr 17, 2017 at 7:57 PM, Icenowy Zheng wrote: >> As axp20x-regulator now supports AXP803, add a cell for it. >> >> Signed-off-by: Icenowy Zheng >> --- >> Changes in v3: >> - Make the new cell one-liner. >> >> drivers/mfd/axp20x.c | 3

[linux-sunxi] Re: [PATCH v4 06/11] drm/sun4i: add support for Allwinner DE2 mixers

2017-04-18 Thread Icenowy Zheng
于 2017年4月18日 GMT+08:00 下午5:00:47, Maxime Ripard 写到: >On Sun, Apr 16, 2017 at 08:08:44PM +0800, Icenowy Zheng wrote: >> Allwinner have a new "Display Engine 2.0" in their new SoCs, which >comes >> with mixers to do graphic processing and feed data to TCON, like the >old >> backends and frontends

Re: [linux-sunxi] [PATCH v3 09/12] mfd: axp20x: add axp20x-regulator cell for AXP803

2017-04-18 Thread Chen-Yu Tsai
On Mon, Apr 17, 2017 at 7:57 PM, Icenowy Zheng wrote: > As axp20x-regulator now supports AXP803, add a cell for it. > > Signed-off-by: Icenowy Zheng > --- > Changes in v3: > - Make the new cell one-liner. > > drivers/mfd/axp20x.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff

Re: [linux-sunxi] [PATCH v3 07/12] dt-bindings: add AXP803's regulator info

2017-04-18 Thread Chen-Yu Tsai
On Mon, Apr 17, 2017 at 7:57 PM, Icenowy Zheng wrote: > AXP803 have the most regulators in currently supported AXP PMICs. > > Add info for the regulators in the dt-bindings document. > > Signed-off-by: Icenowy Zheng > Acked-by: Rob Herring Acked-by: Chen-Yu Tsai -- You received this message

Re: [linux-sunxi] [PATCH v3 03/12] dt-bindings: make AXP20X compatible strings one per line

2017-04-18 Thread Chen-Yu Tsai
On Mon, Apr 17, 2017 at 7:57 PM, Icenowy Zheng wrote: > In the binding documentation of AXP20X mfd, the compatible strings used > to be listed for three per line, which leads to some mess when trying to > add AXP803 compatible string (as we have already AXP806 and AXP809 > compatibles, which is af

[linux-sunxi] Re: [PATCH 09/11] drm/sun4i: Support two display pipelines

2017-04-18 Thread Chen-Yu Tsai
On Tue, Apr 18, 2017 at 5:57 PM, Maxime Ripard wrote: > Hi Chen-Yu, > > On Sat, Apr 08, 2017 at 01:30:55AM +0800, Chen-Yu Tsai wrote: >> Hi, >> >> On Thu, Mar 9, 2017 at 10:40 PM, Maxime Ripard >> wrote: >> > On Thu, Mar 09, 2017 at 07:20:30PM +0800, Chen-Yu Tsai wrote: >> >> On Thu, Mar 9, 2017

[linux-sunxi] Re: [PATCH 09/11] drm/sun4i: Support two display pipelines

2017-04-18 Thread Maxime Ripard
Hi Chen-Yu, On Sat, Apr 08, 2017 at 01:30:55AM +0800, Chen-Yu Tsai wrote: > Hi, > > On Thu, Mar 9, 2017 at 10:40 PM, Maxime Ripard > wrote: > > On Thu, Mar 09, 2017 at 07:20:30PM +0800, Chen-Yu Tsai wrote: > >> On Thu, Mar 9, 2017 at 6:36 PM, Maxime Ripard > >> wrote: > >> > Hi, > >> > > >> > O

[linux-sunxi] Re: [PATCH 2/3] ARM: sun8i: a83t: Drop leading zeroes from device node addresses

2017-04-18 Thread Chen-Yu Tsai
On Tue, Apr 18, 2017 at 5:03 PM, Maxime Ripard wrote: > On Tue, Apr 18, 2017 at 12:22:04PM +0800, Chen-Yu Tsai wrote: >> Kbuild now complains about leading zeroes in the address portion of >> device node names. >> >> Get rid of them. >> >> Signed-off-by: Chen-Yu Tsai >> --- >> arch/arm/boot/dts/

[linux-sunxi] Re: [PATCH 3/3] ARM: sun8i: a83t: Rename pinmux setting names

2017-04-18 Thread Chen-Yu Tsai
On Tue, Apr 18, 2017 at 5:04 PM, Maxime Ripard wrote: > On Tue, Apr 18, 2017 at 12:22:05PM +0800, Chen-Yu Tsai wrote: >> The pinmux setting nodes all have an address element in their node >> names, however the pinctrl node does not have #address-cells. >> >> Rename the existing pinmux setting node

[linux-sunxi] Re: [PATCH 3/3] ARM: sun8i: a83t: Rename pinmux setting names

2017-04-18 Thread Maxime Ripard
On Tue, Apr 18, 2017 at 12:22:05PM +0800, Chen-Yu Tsai wrote: > The pinmux setting nodes all have an address element in their node > names, however the pinctrl node does not have #address-cells. > > Rename the existing pinmux setting nodes and labels in sun8i-a83t.dtsi, > dropping identifiers for

[linux-sunxi] Re: [PATCH 2/3] ARM: sun8i: a83t: Drop leading zeroes from device node addresses

2017-04-18 Thread Maxime Ripard
On Tue, Apr 18, 2017 at 12:22:04PM +0800, Chen-Yu Tsai wrote: > Kbuild now complains about leading zeroes in the address portion of > device node names. > > Get rid of them. > > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 10 +- > 1 file changed, 5 insertions

[linux-sunxi] Re: [PATCH v4 06/11] drm/sun4i: add support for Allwinner DE2 mixers

2017-04-18 Thread Maxime Ripard
On Sun, Apr 16, 2017 at 08:08:44PM +0800, Icenowy Zheng wrote: > Allwinner have a new "Display Engine 2.0" in their new SoCs, which comes > with mixers to do graphic processing and feed data to TCON, like the old > backends and frontends. > > Add support for the mixer on Allwinner V3s SoC; it's th

[linux-sunxi] Re: [PATCH v4 05/11] drm/sun4i: abstract a engine type

2017-04-18 Thread Maxime Ripard
Hi, Thanks for that rework. On Sun, Apr 16, 2017 at 08:08:43PM +0800, Icenowy Zheng wrote: > As we are going to add support for the Allwinner DE2 engine in sun4i-drm > driver, we will finally have two types of display engines -- the DE1 > backend and the DE2 mixer. They both do some display blend

[linux-sunxi] [PATCH 0/3] ARM: sun8i: a83t: device tree cleanup

2017-04-18 Thread Chen-Yu Tsai
Hi Maxime, Here are a few patches cleaning up sun8i-a83t.dtsi. These get rid of known warnings and deprecated features. I'm sending these now before I send patches that add new stuff. Regards ChenYu Chen-Yu Tsai (3): ARM: sun8i: a83t: Drop skeleton.dtsi ARM: sun8i: a83t: Drop leading zeroes

[linux-sunxi] [PATCH 3/3] ARM: sun8i: a83t: Rename pinmux setting names

2017-04-18 Thread Chen-Yu Tsai
The pinmux setting nodes all have an address element in their node names, however the pinctrl node does not have #address-cells. Rename the existing pinmux setting nodes and labels in sun8i-a83t.dtsi, dropping identifiers for functions that only have one possible setting, and using the pingroup na

[linux-sunxi] [PATCH 2/3] ARM: sun8i: a83t: Drop leading zeroes from device node addresses

2017-04-18 Thread Chen-Yu Tsai
Kbuild now complains about leading zeroes in the address portion of device node names. Get rid of them. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/

[linux-sunxi] [PATCH 1/3] ARM: sun8i: a83t: Drop skeleton.dtsi

2017-04-18 Thread Chen-Yu Tsai
skeleton.dtsi is deprecated. Remove it from sun8i-a83t.dtsi and add the needed device nodes directly. Also drop an extra, non-style-conforming line in the copyright license header. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 16 +--- 1 file changed, 13 insert

[linux-sunxi] [PATCH v6 1/6] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-04-18 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the DT binding documentation for the battery power supply which gets various data from the PMIC, such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capa

[linux-sunxi] [PATCH v6 2/6] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-04-18 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the battery power supply driver to get various data from the PMIC, such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage

[linux-sunxi] [PATCH v6 0/6] add support for AXP20X and AXP22X battery power supply driver

2017-04-18 Thread Quentin Schulz
This is a series for AXP20X and AXP22X battery power supply without the support for changing constant charge current from the DT. The patches for supporting the constant charge current from DT are ready and will be sent once the battery framework required to make this work has been merged. v6: -

[linux-sunxi] [PATCH v6 5/6] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-04-18 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and a battery connector, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4 insert

[linux-sunxi] [PATCH v6 4/6] ARM: dtsi: axp22x: add battery power supply subnode

2017-04-18 Thread Quentin Schulz
The X-Powers AXP22X PMIC exposes battery supply various data such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage max limit, current voltage, and battery capacity (in Ah). This adds the battery power supply su

[linux-sunxi] [PATCH v6 3/6] ARM: dtsi: axp209: add battery power supply subnode

2017-04-18 Thread Quentin Schulz
The X-Powers AXP209 PMIC exposes battery supply various data such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage max and min limits, current voltage, and battery capacity (in Ah). This adds the battery power

[linux-sunxi] [PATCH v6 6/6] ARM: sun5i: chip: enable battery power supply subnode

2017-04-18 Thread Quentin Schulz
The NextThing Co. CHIP has an AXP209 PMIC with battery connector. This enables the battery power supply subnode. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/ar

Re: [linux-sunxi] [PATCH v3 10/12] arm64: allwinner: a64: add DTSI file for AXP803 PMIC

2017-04-18 Thread Chen-Yu Tsai
Hi, On Mon, Apr 17, 2017 at 7:57 PM, Icenowy Zheng wrote: > As nearly all A64 boards are using AXP803 PMIC, add a DTSI file for it, > like the old DTSI files for AXP20x/22x, for the common parts of the > PMIC. > > Signed-off-by: Icenowy Zheng > --- > arch/arm64/boot/dts/allwinner/axp803.dtsi |

[linux-sunxi] Re: [PATCH] arm64: allwinner: h5: add support for NanoPi NEO2 board

2017-04-18 Thread Maxime Ripard
On Mon, Apr 17, 2017 at 07:15:41PM +0800, Icenowy Zheng wrote: > NanoPi NEO2 is a board with the same size factor with the original > NanoPi NEO by FriendlyELEC. > > It has a H5 instead of H3 on NanoPi NEO, and the ethernet is upgraded to > 1Gbps (with external RTL8211E PHY). > > Add support for

[linux-sunxi] Re: [PATCH v3 10/12] arm64: allwinner: a64: add DTSI file for AXP803 PMIC

2017-04-18 Thread Maxime Ripard
On Mon, Apr 17, 2017 at 07:57:45PM +0800, Icenowy Zheng wrote: > As nearly all A64 boards are using AXP803 PMIC, add a DTSI file for it, > like the old DTSI files for AXP20x/22x, for the common parts of the > PMIC. > > Signed-off-by: Icenowy Zheng > --- > arch/arm64/boot/dts/allwinner/axp803.dts

[linux-sunxi] Re: [PATCH v3 02/12] arm64: allwinner: a64: add NMI controller on A64

2017-04-18 Thread Maxime Ripard
On Mon, Apr 17, 2017 at 07:57:37PM +0800, Icenowy Zheng wrote: > Allwinner A64 SoC features a NMI controller, which is usually connected > to the AXP PMIC. > > Add support for it. > > Signed-off-by: Icenowy Zheng > Acked-by: Chen-Yu Tsai > --- > Changes in v2: > - Added Chen-Yu's ACK. > > arc