[linux-sunxi] Re: [PATCH v4 11/18] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-03-15 Thread Sebastian Reichel
Hi, On Wed, Mar 15, 2017 at 11:41:07PM +0100, Quentin Schulz wrote: > Hi, > > On 15/03/2017 23:28, Sebastian Reichel wrote: > > Hi, > > > > On Wed, Mar 15, 2017 at 11:55:30AM +0100, Quentin Schulz wrote: > >> The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. > >> > >>

[linux-sunxi] Re: [PATCH v4 00/18] add support for AXP20X and AXP22X power supply drivers

2017-03-15 Thread Sebastian Reichel
On Wed, Mar 15, 2017 at 02:18:56PM +0100, Quentin Schulz wrote: > Hi Lee, > > On 15/03/2017 13:14, Lee Jones wrote: > > On Wed, 15 Mar 2017, Quentin Schulz wrote: > > > >> The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose > >> information and data of the various power supplies

[linux-sunxi] Re: [PATCH v4 11/18] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-03-15 Thread Quentin Schulz
Hi, On 15/03/2017 23:28, Sebastian Reichel wrote: > Hi, > > On Wed, Mar 15, 2017 at 11:55:30AM +0100, Quentin Schulz wrote: >> 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

[linux-sunxi] Re: [PATCH v4 13/18] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-03-15 Thread Sebastian Reichel
Hi, On Wed, Mar 15, 2017 at 11:55:32AM +0100, Quentin Schulz wrote: > 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, >

[linux-sunxi] Re: [PATCH v4 11/18] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-03-15 Thread Sebastian Reichel
Hi, On Wed, Mar 15, 2017 at 11:55:30AM +0100, Quentin Schulz wrote: > 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 >

[linux-sunxi] Re: [PATCH v4 02/18] power: supply: power_supply_core: add constant-charge-current optional property

2017-03-15 Thread Sebastian Reichel
Hi, On Wed, Mar 15, 2017 at 11:55:21AM +0100, Quentin Schulz wrote: > This adds the constant-charge-current property to the list of optional > properties for the battery. > > The constant charge current is critical for batteries as they can't > handle all charge currents. > > Signed-off-by:

[linux-sunxi] Applied "ASoC: sun8i-codec-analog: split out line in" to the asoc tree

2017-03-15 Thread Mark Brown
The patch ASoC: sun8i-codec-analog: split out line in has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

[linux-sunxi] Applied "ASoC: sun8i-codec-analog: split out mic2" to the asoc tree

2017-03-15 Thread Mark Brown
The patch ASoC: sun8i-codec-analog: split out mic2 has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

[linux-sunxi] Re: [PATCH 7/15] dt-bindings: display: sun4i: Add allwinner,tcon-channel property

2017-03-15 Thread Rob Herring
On Tue, Mar 07, 2017 at 09:56:26AM +0100, Maxime Ripard wrote: > The Allwinner Timings Controller has two, mutually exclusive, channels. > When the binding has been introduced, it was assumed that there would be > only a single user per channel in the system. > > While this is likely for the

[linux-sunxi] Re: How to handle quirky behavior with boards.

2017-03-15 Thread Mark Brown
On Fri, Mar 03, 2017 at 04:31:43PM +0100, Olliver Schinagl wrote: > So my question is, what is there against moving some of the constrants > before the always-on, so that the enable can atleast function properly > according to its parameters? No, and in general please don't ask to send patches -

[linux-sunxi] [PATCH v2 3/5] arm64: allwinner: a64: add r_ccu node

2017-03-15 Thread Icenowy Zheng
A64 SoC have a CCU (r_ccu) in PRCM block. Add support for it. Signed-off-by: Icenowy Zheng --- Changes in v2: - Add osc32000. arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

[linux-sunxi] [PATCH v2 4/5] ARM: sun8i: h3: switch apb0-related clocks to r_ccu

2017-03-15 Thread Icenowy Zheng
Now we have driver for the PRCM CCU, switch to use it instead of old-style clock nodes for apb0-related clocks in sunxi-h3-h5.dtsi . Signed-off-by: Icenowy Zheng --- New patch in v2. arch/arm/boot/dts/sunxi-h3-h5.dtsi | 46 +- 1 file

[linux-sunxi] [PATCH v2 2/5] clk: sunxi-ng: add support for PRCM CCUs

2017-03-15 Thread Icenowy Zheng
SoCs after A31 has a clock controller module in the PRCM part. Support the clock controller module on H5 and A64 now. Signed-off-by: Icenowy Zheng --- Changes in v2: - Replace all sun6i to sun8i, as this driver currently doesn't really support sun6i(A31). - Add osc32000 mux

[linux-sunxi] [PATCH v2 0/5] Add support for the R_CCU on Allwinner H3/A64 SoCs

2017-03-15 Thread Icenowy Zheng
Allwinner SoCs after sun6i-a31 nearly all have a R_CCU in PRCM part. (V3s and R40 do not have it, as they have even no PRCM) This patch adds support for the ones on H3/A64. Some clock/reset values are reserved for easier extending the support to A31/A23, but for this I think some changes to the

[linux-sunxi] [PATCH v2 1/5] dt-bindings: update device tree binding for Allwinner PRCM CCUs

2017-03-15 Thread Icenowy Zheng
Many Allwinner SoCs after A31 have a CCU in PRCM block. Give the ones on H3 and A64 compatible strings. Signed-off-by: Icenowy Zheng --- Changes in v2: - Add iosc for R_CCU's on H3/A64. (A31, A23 and A33 seem to have different clock for mux 3 of ar100 clk. Investgations are

[linux-sunxi] Re: [PATCH 6/15] dt-bindings: display: sun4i: Add HDMI display bindings

2017-03-15 Thread Rob Herring
On Tue, Mar 07, 2017 at 09:56:25AM +0100, Maxime Ripard wrote: > One of the possible output of the display pipeline, on the SoCs that have > it, is the HDMI controller. > > Add a binding for it. > > Signed-off-by: Maxime Ripard > --- >

[linux-sunxi] [PATCH v4 10/18] ARM: sun5i: chip: enable ACIN power supply subnode

2017-03-15 Thread Quentin Schulz
The NextThing Co. CHIP has an AXP209 PMIC and can be power-supplied by ACIN via the CHG-IN pin. This enables the ACIN power supply subnode in the DT. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard

[linux-sunxi] [PATCH v4 02/18] power: supply: power_supply_core: add constant-charge-current optional property

2017-03-15 Thread Quentin Schulz
This adds the constant-charge-current property to the list of optional properties for the battery. The constant charge current is critical for batteries as they can't handle all charge currents. Signed-off-by: Quentin Schulz --- v4: - switch from

[linux-sunxi] [PATCH v4 11/18] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-03-15 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

[linux-sunxi] [PATCH v4 17/18] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-03-15 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

[linux-sunxi] [PATCH v4 04/18] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose the battery voltage, battery charge and discharge currents, AC-in and VBUS voltages and currents, 2 GPIOs muxable in ADC mode and PMIC temperature. This adds support for most of AXP20X and AXP22X ADCs. Signed-off-by: Quentin

[linux-sunxi] [PATCH v4 14/18] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the AXP20X/AXP22X battery driver to the MFD cells of the AXP209, AXP221 and AXP223 MFD. Signed-off-by: Quentin Schulz Acked-for-MFD-by: Lee Jones

[linux-sunxi] [PATCH v4 00/18] add support for AXP20X and AXP22X power supply drivers

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose information and data of the various power supplies they support such as ACIN, battery and VBUS. For example, they expose the current battery voltage, charge or discharge, as well as ACIN and VBUS current voltages and currents,

[linux-sunxi] [PATCH v4 12/18] mfd: axp20x: add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X

2017-03-15 Thread Quentin Schulz
The CHRG_CTRL1 and CHRG_CTRL2 registers are made for controlling different battery charging settings such as the constant current charge value. The AXP22X also have a third register CHRG_CTRL3 which has settings for battery charging too. This adds the CHRG_CTRL1, CHRG_CTRL2 and CHRG_CTRL3

[linux-sunxi] [PATCH v4 05/18] mfd: axp20x: add ADC cells for AXP20X and AXP22X PMICs

2017-03-15 Thread Quentin Schulz
This adds the AXP20X/AXP22x ADCs driver to the mfd cells of the AXP209, AXP221 and AXP223 MFD. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Acked-for-MFD-by: Lee Jones Acked-by: Chen-Yu Tsai

[linux-sunxi] [PATCH v4 09/18] ARM: dts: sun8i: sina33: enable ACIN power supply subnode

2017-03-15 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and an ACIN connector, thus, we enable the ACIN power supply in its Device Tree. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard ---

[linux-sunxi] [PATCH v4 13/18] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-03-15 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 v4 08/18] ARM: dtsi: axp22x: add AC power supply subnode

2017-03-15 Thread Quentin Schulz
The X-Powers AXP22X PMIC exposes the status of AC power supply. This adds the AC power supply subnode for the AXP22X PMIC. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- v2:

[linux-sunxi] [PATCH v4 15/18] ARM: dtsi: axp209: add battery power supply subnode

2017-03-15 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 v4 16/18] ARM: dtsi: axp22x: add battery power supply subnode

2017-03-15 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

[linux-sunxi] [PATCH v4 07/18] ARM: dtsi: axp209: add AC power supply subnode

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X PMIC exposes the status of AC power supply, the current current and voltage supplied to the board by the AC power supply. This adds the AC power supply subnode for AXP20X PMIC. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai

[linux-sunxi] [PATCH v4 03/18] mfd: axp20x: correct name of temperature data ADC registers

2017-03-15 Thread Quentin Schulz
The registers 0x56 and 0x57 of AXP22X PMIC store the value of the internal temperature of the PMIC. This patch modifies the name of these registers from AXP22X_PMIC_ADC_H/L to AXP22X_PMIC_TEMP_H/L so their purpose is clearer. Signed-off-by: Quentin Schulz

[linux-sunxi] [PATCH v4 06/18] mfd: axp20x: add AC power supply cells for AXP22X PMICs

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs expose the status of AC power supply. This adds the AC power supply driver to the MFD cells of the AXP22X PMICs. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Acked-by: Sebastian

[linux-sunxi] Re: [PATCH v2 08/11] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2017-03-15 Thread Lee Jones
On Fri, 10 Mar 2017, Quentin Schulz wrote: > This adds support for the Allwinner A33 thermal sensor. > > Unlike the A10, A13 and A31, the Allwinner A33 only has one channel > which is dedicated to the thermal sensor. Moreover, its thermal sensor > does not generate interruptions, thus we only

Re: [linux-sunxi] [PATCH v3 5/5] ARM: dts: sun8i: h2+: enable USB OTG for Orange Pi Zero board

2017-03-15 Thread Chen-Yu Tsai
Hi, On Tue, Mar 7, 2017 at 6:34 AM, Icenowy Zheng wrote: > Orange Pi Zero board features a USB OTG port, which has a ID pin, and > can be used to power up the board. However, even if the board is powered > via +5V pin in GPIO/expansion headers, the VBUS in the OTG port cannot >

Re: [linux-sunxi] [PATCH v3 4/5] ARM: dts: sun8i: h3: enable USB OTG on Orange Pi One

2017-03-15 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 6:34 AM, Icenowy Zheng wrote: > Orange Pi One features a MicroUSB port that can work in both host mode > and peripheral mode. > > When in host mode, its VBUS is controlled via a GPIO; when in peripheral > mode, its VBUS cannot be used to power up the

Re: [linux-sunxi] [PATCH v3 3/5] ARM: dts: sun8i: h3: add usb_otg and OHCI/EHCI for usbc0 on H3

2017-03-15 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 6:34 AM, Icenowy Zheng wrote: > Allwinner H3 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI > or MUSB controller. > > Add device nodes for these controllers. > > Signed-off-by: Icenowy Zheng Acked-by: Chen-Yu Tsai