[linux-sunxi] Re: [PATCH] arm64: dts: allwinner: a64: bananapi-m64: Add LED device node

2017-12-04 Thread Chen-Yu Tsai
On Tue, Dec 5, 2017 at 2:15 PM, Jagan Teki wrote: > On Fri, Dec 1, 2017 at 9:57 PM, Chen-Yu Tsai wrote: >> The Bananapi-M64 has 3 LEDS in red, green, and blue. These are toggled >> via GPIO lines, which drive transistors that control current across the >> LEDS. The red LED is by default on, via a

[linux-sunxi] [PATCH v2] ARM: dts: sun8i: h3: Add dts file for Libre Computer Board ALL-H3-CC H3 ver.

2017-12-04 Thread Chen-Yu Tsai
The Libre Computer Board ALL-H3-CC from Libre Technology is a Raspberry Pi B+ form factor single board computer based on the Allwinner H3 SoC. The board has 1GB DDR3 SDRAM, provided by 4 2Gb chips. The mounting holes and connectors are in the exact same position as on the Raspberry Pi B+. Raspberr

[linux-sunxi] Re: [PATCH RFC 1/2] dt-bindings: Add vendor prefix for Brava Home

2017-12-04 Thread Jagan Teki
On Tue, Dec 5, 2017 at 3:06 AM, Rob Herring wrote: > On Fri, Dec 01, 2017 at 12:12:13AM +0530, Jagan Teki wrote: >> Added 'brava' as a vendor prefix for Brava Home, Inc. >> which is consumer electronics and IoT company. >> >> Signed-off-by: Jagan Teki >> --- >> Documentation/devicetree/bindings/

Re: [linux-sunxi] [PATCH 1/8] iio: adc: axp20x_adc: put ADC rate setting in a per-variant function

2017-12-04 Thread Chen-Yu Tsai
On Mon, Dec 4, 2017 at 10:12 PM, Quentin Schulz wrote: > 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 | 17 +

Re: [linux-sunxi] [PATCH 0/2] clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks

2017-12-04 Thread Chen-Yu Tsai
On Tue, Dec 5, 2017 at 7:25 AM, André Przywara wrote: > On 04/12/17 05:19, Chen-Yu Tsai wrote: >> Hi, >> >> This is a small fix to get MMC performance up to proper speeds on the > > Maybe a small fix for a skilled developer, but a giant leap for all > users ;-) > MMC performance goes from: (4.15-r

Re: [linux-sunxi] [PATCH 1/2] clk: sunxi-ng: Support fixed post-dividers on MP style clocks

2017-12-04 Thread Chen-Yu Tsai
On Tue, Dec 5, 2017 at 7:18 AM, André Przywara wrote: > Hi Chen-Yu, > > On 04/12/17 05:19, Chen-Yu Tsai wrote: >> On the A64, the MMC module clocks are fixed in the new timing mode, >> i.e. they do not have a bit to select the mode. These clocks have >> a 2x divider somewhere between the clock and

Re: [linux-sunxi] [PATCHv6 12/28] net: Add ability to set MAC address via EEPROM

2017-12-04 Thread Jonathan Liu
Hi Olliver, On 15 May 2017 at 18:02, Olliver Schinagl wrote: > This patch allows Kconfig to enable and set parameters to make it > possible to read the MAC address from an EEPROM. The net core layer then > uses this information to read MAC addresses from this EEPROM. > > Besides the various tunea

Re: [linux-sunxi] [PATCH 0/2] clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks

2017-12-04 Thread André Przywara
On 04/12/17 05:19, Chen-Yu Tsai wrote: > Hi, > > This is a small fix to get MMC performance up to proper speeds on the Maybe a small fix for a skilled developer, but a giant leap for all users ;-) MMC performance goes from: (4.15-rc1) SD: Timing buffered disk reads: 36 MB in 3.17 seconds = 1

Re: [linux-sunxi] [PATCH 1/2] clk: sunxi-ng: Support fixed post-dividers on MP style clocks

2017-12-04 Thread André Przywara
Hi Chen-Yu, On 04/12/17 05:19, Chen-Yu Tsai wrote: > On the A64, the MMC module clocks are fixed in the new timing mode, > i.e. they do not have a bit to select the mode. These clocks have > a 2x divider somewhere between the clock and the MMC module. > > To be consistent with other SoCs supporti

Re: [linux-sunxi] [PATCH 2/2] clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks

2017-12-04 Thread André Przywara
On 04/12/17 05:19, Chen-Yu Tsai wrote: > On the A64, the MMC module clocks are fixed in the new timing mode, > i.e. they do not have a bit to select the mode. These clocks have > a 2x divider somewhere between the clock and the MMC module. > > To be consistent with other SoCs supporting the new ti

[linux-sunxi] Re: [PATCH RFC 1/2] dt-bindings: Add vendor prefix for Brava Home

2017-12-04 Thread Rob Herring
On Fri, Dec 01, 2017 at 12:12:13AM +0530, Jagan Teki wrote: > Added 'brava' as a vendor prefix for Brava Home, Inc. > which is consumer electronics and IoT company. > > Signed-off-by: Jagan Teki > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+)

[linux-sunxi] Re: [PATCH RFC 2/2] arm64: allwinner: a64: Add Brava Keller initial support

2017-12-04 Thread Rob Herring
On Thu, Nov 30, 2017 at 10:36:55PM +0100, Philippe Ombredanne wrote: > Jagan, > > On Thu, Nov 30, 2017 at 7:42 PM, Jagan Teki wrote: > [] > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-brava-keller.dts > > b/arch/arm64/boot/dts/allwinner/sun50i-a64-brava-keller.dts > > new file mode 1

[linux-sunxi] Re: [Buildroot] [PATCH v5 03/11] board: Add Bananapi M64 support

2017-12-04 Thread Andre Przywara
Hi, On 02/12/17 15:10, Jagan Teki wrote: > + Andre > > On Sat, Dec 2, 2017 at 8:28 PM, Thomas Petazzoni > wrote: >> Hello, >> >> On Wed, 1 Nov 2017 19:05:45 +0100, Jagan Teki wrote: >> >>> +# Firmware >>> +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y >>> +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y >>> +

[linux-sunxi] [PATCH 6/8] mfd: axp20x: add battery power supply cell for AXP813

2017-12-04 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 42e54d1..7566358 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/

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

2017-12-04 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 | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --gi

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

2017-12-04 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 a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.d

[linux-sunxi] [PATCH 7/8] ARM: dtsi: axp81x: add battery power supply subnode

2017-12-04 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 4/8] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2017-12-04 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 --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++ 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindi

[linux-sunxi] [PATCH 5/8] power: supply: axp20x_battery: add support for AXP813

2017-12-04 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 2/8] iio: adc: axp20x_adc: add support for AXP813 ADC

2017-12-04 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 AXP2

[linux-sunxi] [PATCH 3/8] mfd: axp20x: probe axp20x_adc driver for AXP813

2017-12-04 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 2468b43..42e54d1 100644 --- a/drivers/mfd/a

[linux-sunxi] [PATCH 0/8] add support for AXP813 ADC and battery power supply

2017-12-04 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 a

[linux-sunxi] Re: [PATCH v2 1/3] media: V3s: Add support for Allwinner CSI.

2017-12-04 Thread Yong
Hi Maxime, I just noticed that you are using the second iteration? Have you received my third iteration? On Sat, 25 Nov 2017 17:02:33 +0100 Maxime Ripard wrote: > On Thu, Nov 23, 2017 at 09:14:44AM +0800, Yong wrote: > > > On Wed, Nov 22, 2017 at 09:33:06AM +0800, Yong wrote: > > > > > On Thu,

[linux-sunxi] Re: [PATCH v4 08/10] mfd: axp20x: add pinctrl cell for AXP813

2017-12-04 Thread Lee Jones
On Sat, 02 Dec 2017, Linus Walleij wrote: > On Fri, Dec 1, 2017 at 2:44 PM, Quentin Schulz > wrote: > > > As GPIO/pinctrl driver now supports AXP813, add a cell for it. > > > > Signed-off-by: Quentin Schulz > > Acked-by: Maxime Ripard > > Acked-by: Linus Walleij > > It doesn't seem to have

[linux-sunxi] Re: [PATCH v4 02/10] pinctrl: axp209: add pinctrl features

2017-12-04 Thread Quentin Schulz
Hi Maxime, On 01/12/2017 16:57, Maxime Ripard wrote: > On Fri, Dec 01, 2017 at 02:44:43PM +0100, Quentin Schulz wrote: >> +static void axp20x_gpio_set(struct gpio_chip *chip, unsigned offset, >> +int value) >> +{ > > checkpatch output: > WARNING: Prefer 'unsigned int' to b