[linux-sunxi] [PATCH] ARM: dts: sun8i-h3: Add thermal trip points/cooling maps

2020-02-22 Thread Ondrej Jirman
This enables passive cooling by down-regulating CPU voltage and frequency. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index

[linux-sunxi] [PATCH 4/4] ARM: dts: sun8i-a83t-tbs-a711: Drop superfluous dr_mode

2020-02-22 Thread Ondrej Jirman
Property dr_mode = "otg" is the default in sun8i-a83t.dtsi Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index

[linux-sunxi] [PATCH 2/4] ARM: dts: sun8i-a83t-tbs-a711: HM5065 doesn't like such a high voltage

2020-02-22 Thread Ondrej Jirman
Lowering the voltage solves the quick image degradation over time (minutes), that was probably caused by overheating. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[linux-sunxi] [PATCH 0/4] Assortment of fixes for TBS A711 Tablet

2020-02-22 Thread Ondrej Jirman
This series fixes some issues with camera overvolting, USB-OTG/charging, and WiFi OOB interrupt being stuck. Please take a look. thank you and regards, Ondrej Jirman Ondrej Jirman (4): ARM: dts: sun8i-a83t-tbs-a711: OOB WiFi interrupt doesn't work ARM: dts: sun8i-a83t-tbs-a711: HM5065

[linux-sunxi] [PATCH 1/4] ARM: dts: sun8i-a83t-tbs-a711: OOB WiFi interrupt doesn't work

2020-02-22 Thread Ondrej Jirman
It just causes a constant rate of 5000 interrupts per second for both GPIO and MMC, even if nothing is happening. Rely on in-band interrupts instead. Fixes: 0e23372080def7bb ("arm: dts: sun8i: Add the TBS A711 tablet devicetree") Signed-off-by: Ondrej Jirman ---

[linux-sunxi] [PATCH 3/4] ARM: dts: sun8i-a83t-tbs-a711: Fix USB OTG mode detection

2020-02-22 Thread Ondrej Jirman
USB-ID signal has a pullup on the schematic, but in reality it's not pulled up, so add a GPIO pullup. And we also need a usb0_vbus_power-supply for VBUS detection. This fixes OTG mode detection and charging issues on TBS A711 tablet. The issues came from ID pin reading 0, causing host mode to be

[linux-sunxi] [PATCH 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor

2020-02-22 Thread Ondrej Jirman
The board has a vibrator mottor. Hook it to the input subsystem. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index

[linux-sunxi] [PATCH 4/4] ARM: dts: sun8i-a83t-tbs-a711: Increase voltage on the vibrator

2020-02-22 Thread Ondrej Jirman
Vibrator motor is weak at the current voltage. Increase the voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

[linux-sunxi] [PATCH 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios

2020-02-22 Thread Ondrej Jirman
It is possible to turn the motor on/off just by enabling/disabling the vcc-supply. Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/gpio-vibrator.yaml

[linux-sunxi] [PATCH 2/4] input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator

2020-02-22 Thread Ondrej Jirman
Make enable-gpio optional to allow using this driver with boards that have vibrator connected to a power supply without intermediate gpio based enable circuitry. Signed-off-by: Ondrej Jirman --- drivers/input/misc/gpio-vibra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH 0/4] Add support for vibrator motor for TBS A711 Tablet

2020-02-22 Thread Ondrej Jirman
The tablet has a vibrator. Expose it via input subsystem (EV_FF). Please take a look. thank you and regards, Ondrej Jirman Ondrej Jirman (4): dt-bindings: input: gpio-vibrator: Don't require enable-gpios input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator ARM:

[linux-sunxi] [PATCH] arm64: dts: sun50i-h5-orange-pi-pc2: Add CPUX voltage regulator

2020-02-22 Thread Ondrej Jirman
Orange Pi PC2 features sy8106a regulator just like Orange Pi PC. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-h5-orangepi-pc2.dts | 29 +++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts

[linux-sunxi] [PATCH v2 RESEND] phy: allwinner: Fix GENMASK misuse

2020-02-22 Thread Ondrej Jirman
From: Rikard Falkeborn Arguments are supposed to be ordered high then low. Fixes: a228890f9458 ("phy: allwinner: add phy driver for USB3 PHY on Allwinner H6 SoC") Signed-off-by: Rikard Falkeborn Tested-by: Ondrej Jirman Signed-off-by: Ondrej Jirman --- v1->v2: Add fixes tax. Add Ondrejs

[linux-sunxi] [PATCH] ARM: dts: sun8i-a83t: Add thermal trip points/cooling maps

2020-02-22 Thread Ondrej Jirman
This enables passive cooling by down-regulating CPU voltage and frequency. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t.dtsi | 60 +++ 1 file changed, 54 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi

[linux-sunxi] [PATCH] regulator: axp20x: Fix misleading use of negation

2020-02-22 Thread Ondrej Jirman
It works incidentally, because AXP20X_DCDC2_LDO3_V_RAMP_DCDC2_EN is non-zero, but the false branch value really should be just 0. Signed-off-by: Ondrej Jirman --- drivers/regulator/axp20x-regulator.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [linux-sunxi] [PATCH v2 RESEND] phy: allwinner: Fix GENMASK misuse

2020-02-22 Thread Chen-Yu Tsai
On Sun, Feb 23, 2020 at 7:42 AM Ondrej Jirman wrote: > > From: Rikard Falkeborn > > Arguments are supposed to be ordered high then low. > > Fixes: a228890f9458 ("phy: allwinner: add phy driver for USB3 PHY on > Allwinner H6 SoC") > Signed-off-by: Rikard Falkeborn > Tested-by: Ondrej Jirman >

Re: [linux-sunxi] [PATCH] arm64: dts: sun50i-h5-orange-pi-pc2: Add CPUX voltage regulator

2020-02-22 Thread Samuel Holland
Hi Ondrej, On 2/22/20 3:45 PM, Ondrej Jirman wrote: > Orange Pi PC2 features sy8106a regulator just like Orange Pi PC. > > Signed-off-by: Ondrej Jirman > --- > .../dts/allwinner/sun50i-h5-orangepi-pc2.dts | 29 +++ > 1 file changed, 29 insertions(+) > > diff --git

Re: [linux-sunxi] [PATCH 1/4] ARM: dts: sun8i-a83t-tbs-a711: OOB WiFi interrupt doesn't work

2020-02-22 Thread Chen-Yu Tsai
Hi, On Sun, Feb 23, 2020 at 6:32 AM Ondrej Jirman wrote: > > It just causes a constant rate of 5000 interrupts per second for both > GPIO and MMC, even if nothing is happening. Rely on in-band interrupts > instead. > > Fixes: 0e23372080def7bb ("arm: dts: sun8i: Add the TBS A711 tablet >

[linux-sunxi] [PATCH v7 2/6] mailbox: sun6i-msgbox: Add a new mailbox driver

2020-02-22 Thread Samuel Holland
Allwinner sun6i, sun8i, sun9i, and sun50i SoCs contain a hardware message box used for communication between the ARM CPUs and the ARISC management coprocessor. This mailbox contains 8 unidirectional 4-message FIFOs. Add a driver for it, so it can be used with the Linux mailbox framework.

[linux-sunxi] [PATCH v7 1/6] dt-bindings: mailbox: Add a binding for the sun6i msgbox

2020-02-22 Thread Samuel Holland
This mailbox hardware is present in Allwinner sun6i, sun8i, sun9i, and sun50i SoCs. Add a device tree binding for it. Acked-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Samuel Holland --- .../mailbox/allwinner,sun6i-a31-msgbox.yaml | 80 +++ 1 file changed, 80

[linux-sunxi] [PATCH v7 0/6] Allwinner sun6i message box support

2020-02-22 Thread Samuel Holland
This series adds support for the "hardware message box" in sun8i, sun9i, and sun50i SoCs, used for communication with the ARISC management processor (the platform's equivalent of the ARM SCP). The end goal is to use the arm_scpi driver as a client, communicating with firmware running on the ARISC

[linux-sunxi] [PATCH v7 3/6] ARM: dts: sunxi: a83t: Add msgbox node

2020-02-22 Thread Samuel Holland
The A83T SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Tested-by: Ondrej Jirman Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10

[linux-sunxi] [PATCH v7 6/6] arm64: dts: allwinner: h6: Add msgbox node

2020-02-22 Thread Samuel Holland
The H6 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v7 5/6] arm64: dts: allwinner: a64: Add msgbox node

2020-02-22 Thread Samuel Holland
The A64 SoC contains a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH v7 4/6] ARM: dts: sunxi: h3/h5: Add msgbox node

2020-02-22 Thread Samuel Holland
The H3 and H5 SoCs contain a message box that can be used to send messages and interrupts back and forth between the ARM application CPUs and the ARISC coprocessor. Add a device tree node for it. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 10 ++ 1 file

[linux-sunxi] [PATCH 2/3] dt-bindings: arm: sunxi: Add PocketBook Touch Lux 3

2020-02-22 Thread Ondrej Jirman
Add a new board name. Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index

[linux-sunxi] [PATCH 3/3] ARM: dts: sun5i: Add PocketBook Touch Lux 3 support

2020-02-22 Thread Ondrej Jirman
What works: - Serial console - mmc0, mmc2 (both microSD card slots on the board) - All buttons (gpio and lradc based) - Power LED - PMIC - RTC - USB OTG/gadgets mode - Realtek USB WiFi - Display backlight - eInk display SPI NOR flash memory Signed-off-by: Ondrej Jirman ---

[linux-sunxi] [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader

2020-02-22 Thread Ondrej Jirman
This series adds a fairly complete support for this e-book reader. Missing parts are eink display driver and the touch panel driver. Support for both is available out-of-tree for now at: https://megous.com/git/linux/log/?h=pb-5.6 The rest of the board is supported by the mainline drivers.

[linux-sunxi] [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA

2020-02-22 Thread Ondrej Jirman
Call it "pocketbook". Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index

Re: [linux-sunxi] [PATCH 2/4] ARM: dts: sun8i-a83t-tbs-a711: HM5065 doesn't like such a high voltage

2020-02-22 Thread Chen-Yu Tsai
On Sun, Feb 23, 2020 at 6:32 AM Ondrej Jirman wrote: > > Lowering the voltage solves the quick image degradation over time > (minutes), that was probably caused by overheating. > > Signed-off-by: Ondrej Jirman Makes sense. A lot of camera sensors run their digital parts off 1.8V. This one is no

Re: [linux-sunxi] [PATCH] regulator: axp20x: Fix misleading use of negation

2020-02-22 Thread Chen-Yu Tsai
On Sun, Feb 23, 2020 at 7:56 AM Ondrej Jirman wrote: > > It works incidentally, because AXP20X_DCDC2_LDO3_V_RAMP_DCDC2_EN > is non-zero, but the false branch value really should be just 0. > > Signed-off-by: Ondrej Jirman Acked-by: Chen-Yu Tsai -- You received this message because you are

[linux-sunxi] Re: [PATCH] ARM: dts: sun8i-h3: Add thermal trip points/cooling maps

2020-02-22 Thread Chen-Yu Tsai
On Sun, Feb 23, 2020 at 5:42 AM Ondrej Jirman wrote: > > This enables passive cooling by down-regulating CPU voltage > and frequency. Please state for the record how the trip points were derived. Were they from the BSP? Or the user manual? ChenYu > Signed-off-by: Ondrej Jirman -- You

[linux-sunxi] Re: [PATCH] ARM: dts: sun8i-a83t: Add thermal trip points/cooling maps

2020-02-22 Thread Chen-Yu Tsai
Hi, On Sun, Feb 23, 2020 at 5:40 AM Ondrej Jirman wrote: > > This enables passive cooling by down-regulating CPU voltage > and frequency. Please state for the record how the trip points were derived. Were they from the BSP? Or the user manual? ChenYu -- You received this message because you

Re: [linux-sunxi] [PATCH 1/4] ARM: dts: sun8i-a83t-tbs-a711: OOB WiFi interrupt doesn't work

2020-02-22 Thread Chen-Yu Tsai
On Sun, Feb 23, 2020 at 11:26 AM Chen-Yu Tsai wrote: > > Hi, > > > On Sun, Feb 23, 2020 at 6:32 AM Ondrej Jirman wrote: > > > > It just causes a constant rate of 5000 interrupts per second for both > > GPIO and MMC, even if nothing is happening. Rely on in-band interrupts > > instead. > > > >