[linux-sunxi] Re: [PATCH v3 0/8] ARM: sun9i: SMP and CPU hotplug support

2018-01-15 Thread Chen-Yu Tsai
On Tue, Jan 16, 2018 at 5:00 AM, Nicolas Pitre wrote: > On Mon, 15 Jan 2018, Chen-Yu Tsai wrote: > >> Changes since v2: >> - Do away with the MCPM framework, directly implement smp_ops >> - Some debug messages were clarified >> - New ARCH_SUNXI_MCPM Kconfig symbol

[linux-sunxi] Re: [PATCH v3 1/8] ARM: sun9i: Support SMP bring-up on A80

2018-01-15 Thread Chen-Yu Tsai
On Mon, Jan 15, 2018 at 8:04 PM, Dave Martin wrote: > On Mon, Jan 15, 2018 at 07:14:43AM +, Chen-Yu Tsai wrote: >> The A80 is a big.LITTLE SoC with 1 cluster of 4 Cortex-A7s and >> 1 cluster of 4 Cortex-A15s. >> >> This patch adds support to bring up the second cluster

[linux-sunxi] Re: [PATCH v3 0/8] ARM: sun9i: SMP and CPU hotplug support

2018-01-15 Thread Nicolas Pitre
On Mon, 15 Jan 2018, Chen-Yu Tsai wrote: > Changes since v2: > - Do away with the MCPM framework, directly implement smp_ops > - Some debug messages were clarified > - New ARCH_SUNXI_MCPM Kconfig symbol for this feature You should use ARCH_SUNXI_SMP instead to avoid confusion with the

[linux-sunxi] Sunxi dinner at Fosdem 2018 (sat 3 Feb 8PM at Amadeo)

2018-01-15 Thread Benjamin Henrion
Hi, Like previous years, the Amadeo restaurant is booked on Sat 3 Feb at 8PM for the Allwinner/Sunxi dinner: https://fr.yelp.be/biz/amadeo-bruxelles-3 Let me know (by private or public email) if you want to reserve a seat, there are 26 available (and maybe more, as Tim from Pine64 booked

[linux-sunxi] Re: [PATCH v2] arm64: allwinner: a64: orangepi-zero-plus2: add usb otg

2018-01-15 Thread Maxime Ripard
On Mon, Jan 15, 2018 at 04:05:07PM +0800, Icenowy Zheng wrote: > 在 2018年1月15日星期一 CST 下午4:01:39,Maxime Ripard 写道: > > Hi, > > > > On Fri, Jan 12, 2018 at 02:39:04PM +0530, Jagan Teki wrote: > > > Add usb otg support for orangepi-zero-plus2 board: > > > - Add usb_otg node with dr_mode as 'otg' > >

[linux-sunxi] [PATCH v3 07/16] iio: adc: axp20x_adc: add support for AXP813 ADC

2018-01-15 Thread Quentin Schulz
The X-Powers AXP813 PMIC is really close to what is already done for AXP20X/AXP22X. There are two pairs of bits to set the rate (one for Voltage and Current measurements and one for TS/GPIO0 voltage measurements) instead of one. The register to set the ADC rates is different from the one for

[linux-sunxi] [PATCH v3 05/16] ARM: dtsi: axp22x: add node for ADC

2018-01-15 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp22x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v3 13/16] mfd: axp20x: add battery power supply cell for AXP813

2018-01-15 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/axp20x.c

[linux-sunxi] [PATCH v3 15/16] ARM: dtsi: sun8i: a711: enable battery power supply subnode

2018-01-15 Thread Quentin Schulz
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 file changed, 4 insertions(+) diff --git

[linux-sunxi] [PATCH v3 08/16] ARM: dtsi: axp81x: add node for ADC

2018-01-15 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v3 00/16] add support for AXP813 ADC and battery power supply

2018-01-15 Thread Quentin Schulz
The AXP813 PMIC is relatively close to the already supported AXP20X and AXP22X. It provides three different power outputs: battery, AC and USB, and measures a few different things: temperature, power supply status, current current and voltage supplied, maximum current limit, battery capacity, min

[linux-sunxi] [PATCH v3 02/16] dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC

2018-01-15 Thread Quentin Schulz
X-Powers PMICs have several ADC channels that can be used for different purposes, e.g. PMIC internal temperature, battery voltage or AC current. This is the documentation for AXP209, AXP221/223 and AXP813 ADC bindings. Signed-off-by: Quentin Schulz

[linux-sunxi] [PATCH v3 14/16] ARM: dtsi: axp81x: add battery power supply subnode

2018-01-15 Thread Quentin Schulz
The X-Powers AXP81X 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 v3 10/16] power: supply: axp20x_battery: use data structure instead of ID for

2018-01-15 Thread Quentin Schulz
variant specific code We used to use IDs to select a function or a feature depending on the variant. It's easier to maintain the code by adding data structure storing the few differences between variants so that we don't add a pile of if conditions. Let's use this data structure and update the

[linux-sunxi] [PATCH v3 11/16] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2018-01-15 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++ 1 file

[linux-sunxi] [PATCH v3 06/16] mfd: axp20x: make AXP209/22x cells probe their ADC via DT

2018-01-15 Thread Quentin Schulz
This makes AXP209 and AXP22x ADCs probe first via DT and then by fallback via platform. Signed-off-by: Quentin Schulz --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c

[linux-sunxi] [PATCH v3 09/16] mfd: axp20x: probe axp20x_adc driver for AXP813

2018-01-15 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index

[linux-sunxi] [PATCH v3 04/16] ARM: dtsi: axp209: add node for ADC

2018-01-15 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp209.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v3 12/16] power: supply: axp20x_battery: add support for AXP813

2018-01-15 Thread Quentin Schulz
The X-Powers AXP813 PMIC has got some slight differences from AXP20X/AXP22X PMICs: - the maximum voltage supplied by the PMIC is 4.35 instead of 4.36/4.24 for AXP20X/AXP22X, - the constant charge current formula is different, It also has a bit to tell whether the battery percentage returned by

[linux-sunxi] [PATCH v3 16/16] ARM: dtsi: axp81x: remove IP name from DT node name

2018-01-15 Thread Quentin Schulz
The DT node should be named after its functionality and not after the IP it's defining. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/axp81x.dtsi

[linux-sunxi] [PATCH v3 01/16] iio: adc: axp20x_adc: put ADC rate setting in a per-variant function

2018-01-15 Thread Quentin Schulz
To prepare for a new comer that set a different register with different values, move rate setting in a function that is specific to each AXP variant. Signed-off-by: Quentin Schulz --- drivers/iio/adc/axp20x_adc.c | 18 +++--- 1 file changed, 11

[linux-sunxi] [PATCH v3 03/16] iio: adc: axp20x_adc: make it possible to probe from DT

2018-01-15 Thread Quentin Schulz
To prepare for a future patch that will add a DT node for the ADC, make axp20x_adc able to probe from DT and get the per-variant data from of_device_id.data since platform_device_id.driver_data won't be set when probing by DT. Leave the ability to probe via platform for driver compatibility with

[linux-sunxi] Re: [PATCH 1/1] ARM: dts: sunxi: Add Olimex A20-SOM204-EVB board

2018-01-15 Thread Maxime Ripard
Hi Stefan, On Fri, Jan 12, 2018 at 11:01:05AM +0200, Stefan Mavrodiev wrote: > This is new System-On-Module platform with universal dimm socket for > easy insertation. The EVB board is designed to be universal with > future modules. Product page is located here [1]. > > There are two dts files -

Re: [linux-sunxi] Lamobo-R1 instability

2018-01-15 Thread Chen-Yu Tsai
On Mon, Jan 15, 2018 at 5:41 PM, Paul Kocialkowski wrote: > Hi, > > I'm using a Lamobo-R1 with the latest stable U-Boot (2017.11) and Linux > (4.14) as a server that runs continuously. It has a SATA disk attached > to the SATA connector and it is powered by the microUSB PSU that

[linux-sunxi] Lamobo-R1 instability

2018-01-15 Thread Paul Kocialkowski
Hi, I'm using a Lamobo-R1 with the latest stable U-Boot (2017.11) and Linux (4.14) as a server that runs continuously. It has a SATA disk attached to the SATA connector and it is powered by the microUSB PSU that was sold with the board. It seems that whenever I try to access the SATA disk with

[linux-sunxi] Re: [PATCH v2] arm64: allwinner: a64: orangepi-zero-plus2: add usb otg

2018-01-15 Thread Icenowy Zheng
在 2018年1月15日星期一 CST 下午4:01:39,Maxime Ripard 写道: > Hi, > > On Fri, Jan 12, 2018 at 02:39:04PM +0530, Jagan Teki wrote: > > Add usb otg support for orangepi-zero-plus2 board: > > - Add usb_otg node with dr_mode as 'otg' > > - USB0-IDDET connected to PA21 > > - VBUS connected through DCIN which

[linux-sunxi] Re: [PATCH v2] arm64: allwinner: a64: orangepi-zero-plus2: add usb otg

2018-01-15 Thread Maxime Ripard
Hi, On Fri, Jan 12, 2018 at 02:39:04PM +0530, Jagan Teki wrote: > Add usb otg support for orangepi-zero-plus2 board: > - Add usb_otg node with dr_mode as 'otg' > - USB0-IDDET connected to PA21 > - VBUS connected through DCIN which always on > > Tested mass storage function. > > Signed-off-by: