[linux-sunxi] [PATCH] cpufreq: sun50i: Fix CPU speed bin detection

2019-10-31 Thread Ondrej Jirman
in vendor's BSP as normal bin) - 0b001 slowest bin - 0b011 normal bin - 0b111 fastest bin Let's play it safe and interpret 0 as the slowest bin, but fix detection of other bins to match vendor code. Fixes: f328584f7bff ("cpufreq: Add sun50i nvmem based CPU scaling driver") Signed-off-by: Ond

[linux-sunxi] [PATCH v2 2/4] phy: allwinner: add phy driver for USB3 PHY on Allwinner H6 SoC

2019-10-24 Thread Ondrej Jirman
From: Icenowy Zheng Allwinner H6 SoC contains a USB3 PHY (with USB2 DP/DM lines also controlled). Add a driver for it. The register operations in this driver is mainly extracted from the BSP USB3 driver. Signed-off-by: Ondrej Jirman Signed-off-by: Icenowy Zheng Reviewed-by: Chen-Yu Tsai

[linux-sunxi] [PATCH v2 3/4] arm64: dts: allwinner: h6: add USB3 device nodes

2019-10-24 Thread Ondrej Jirman
From: Icenowy Zheng Allwinner H6 SoC features USB3 functionality, with a DWC3 controller and a custom PHY. Add device tree nodes for them. Signed-off-by: Ondrej Jirman Signed-off-by: Icenowy Zheng Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 32

[linux-sunxi] [PATCH v2 4/4] arm64: dts: allwinner: orange-pi-3: Enable USB 3.0 host support

2019-10-24 Thread Ondrej Jirman
-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts index eb379cd402ac..259af5b0f1a7 100644 --- a/arch/arm64

[linux-sunxi] [PATCH v2 1/4] dt-bindings: Add bindings for USB3 phy on Allwinner H6

2019-10-24 Thread Ondrej Jirman
The new Allwinner H6 SoC contains a USB3 PHY that is wired to the external USB3 pins of the SoC. Add a device tree binding for the PHY. Signed-off-by: Ondrej Jirman Acked-by: Maxime Ripard --- .../phy/allwinner,sun50i-h6-usb3-phy.yaml | 47 +++ 1 file changed, 47

[linux-sunxi] [PATCH v2 0/4] Add USB 3 support for H6 and Orange Pi 3

2019-10-24 Thread Ondrej Jirman
complicated. Please take a look. thank you and regards, Ondrej Jirman [1] https://lore.kernel.org/patchwork/patch/1058919/ Changes in v2: - Added Maxime's Acked-By's - Fixed title of DT bindings file Changes since Icenowy v5 series: - use earlier patches that did not include VBUS regulator/connector

[linux-sunxi] [PATCH] drm: sun4i: Add support for suspending the display driver

2019-10-28 Thread Ondrej Jirman
Shut down the display engine during suspend. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/sun4i/sun4i_drv.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index a5757b11b730..c519d7cfcf43

[linux-sunxi] [PATCH 1/3] input: edt-ft5x06: Add support for regulator

2019-10-28 Thread Ondrej Jirman
From: Mylène Josserand Add the support for enabling optional regulator that may be used as VCC source. Signed-off-by: Ondrej Jirman Signed-off-by: Mylène Josserand --- drivers/input/touchscreen/edt-ft5x06.c | 30 ++ 1 file changed, 30 insertions(+) diff --git

[linux-sunxi] [PATCH 0/3] Add touchscreen support for TBS A711 Tablet

2019-10-28 Thread Ondrej Jirman
and touching the panel resumes my soc. Please take a look. thank you and regards, Ondrej Jirman Changes since v4 of Mylène's series: - slight whitespace improvements - drop all modifications of suspend/resume hooks - drop useless header include - split the dt-bindings into a separate patch Mylène

[linux-sunxi] [PATCH 3/3] arm: dts: sun8i: a83t: a711: Add touchscreen node

2019-10-28 Thread Ondrej Jirman
From: Mylène Josserand Enable a FocalTech EDT-FT5x06 Polytouch touchscreen. Signed-off-by: Ondrej Jirman Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711

[linux-sunxi] [PATCH 2/3] dt-bindings: input: edt-ft5x06: Add regulator support

2019-10-28 Thread Ondrej Jirman
Touch controller may have an optional regulator. Reviewed-by: Rob Herring Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/input/touchscreen/edt-ft5x06.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt b

[linux-sunxi] [PATCH] ARM: dts: sun8i-a83t-tbs-a711: Fix WiFi resume from suspend

2019-10-28 Thread Ondrej Jirman
-mmc 1c1.mmc: data error, sending stop command So to make the WiFi really a wakeup-source, we need to keep it powered during suspend. Fixes: 0e23372080def7 ("arm: dts: sun8i: Add the TBS A711 tablet devicetree") Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a7

[linux-sunxi] [PATCH] ARM: sunxi: Fix CPU powerdown on A83T

2019-10-28 Thread Ondrej Jirman
PRCM_PWROFF_GATING_REG has CPU0 at bit 4 on A83T. So without this patch, instead of gating the CPU0, the whole cluster was power gated, when shutting down first CPU in the cluster. Fixes: 6961275e72a8c1 ("ARM: sun8i: smp: Add support for A83T") Signed-off-by: Ondrej Jirma

[linux-sunxi] [PATCH] input: sun4i-lradc-keys: Add wakup support

2019-10-28 Thread Ondrej Jirman
Allow the driver to wakeup the system on key press. Signed-off-by: Ondrej Jirman --- drivers/input/keyboard/sun4i-lradc-keys.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/input/keyboard/sun4i-lradc-keys.c b/drivers/input/keyboard/sun4i

[linux-sunxi] [PATCH v2] drm: sun4i: Add support for suspending the display driver

2019-10-29 Thread Ondrej Jirman
Shut down the display engine during suspend. Signed-off-by: Ondrej Jirman --- Changes in v2: - spaces -> tabs drivers/gpu/drm/sun4i/sun4i_drv.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_dr

[linux-sunxi] [PATCH v3 2/4] phy: allwinner: add phy driver for USB3 PHY on Allwinner H6 SoC

2019-10-29 Thread Ondrej Jirman
From: Icenowy Zheng Allwinner H6 SoC contains a USB3 PHY (with USB2 DP/DM lines also controlled). Add a driver for it. The register operations in this driver is mainly extracted from the BSP USB3 driver. Signed-off-by: Ondrej Jirman Signed-off-by: Icenowy Zheng Reviewed-by: Chen-Yu Tsai

[linux-sunxi] [PATCH v3 1/4] dt-bindings: Add bindings for USB3 phy on Allwinner H6

2019-10-29 Thread Ondrej Jirman
The new Allwinner H6 SoC contains a USB3 PHY that is wired to the external USB3 pins of the SoC. Add a device tree binding for the PHY. Signed-off-by: Ondrej Jirman Acked-by: Maxime Ripard Reviewed-by: Rob Herring --- .../phy/allwinner,sun50i-h6-usb3-phy.yaml | 47 +++ 1

[linux-sunxi] [PATCH v3 4/4] arm64: dts: allwinner: orange-pi-3: Enable USB 3.0 host support

2019-10-29 Thread Ondrej Jirman
-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts index 2557cc6c8d50..32800204c22a 100644 --- a/arch/arm64

[linux-sunxi] [PATCH v3 0/4] Add USB 3 support for H6 and Orange Pi 3

2019-10-29 Thread Ondrej Jirman
complicated. Please take a look. thank you and regards, Ondrej Jirman [1] https://lore.kernel.org/patchwork/patch/1058919/ Changes in v3: - Added DT reviewed-by tag - more sun50i / H6 name clarifications (Kconfig, ...) - dropped USB_COMMON and linux/usb/of.h Changes in v2: - Added Maxime's Acked-By's

[linux-sunxi] [PATCH v3 3/4] arm64: dts: allwinner: h6: add USB3 device nodes

2019-10-29 Thread Ondrej Jirman
From: Icenowy Zheng Allwinner H6 SoC features USB3 functionality, with a DWC3 controller and a custom PHY. Add device tree nodes for them. Signed-off-by: Ondrej Jirman Signed-off-by: Icenowy Zheng Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 32

[linux-sunxi] [PATCH] media: sun6i-csi: Fix incorrect HSYNC/VSYNC/PCLK polarity configuration

2019-11-27 Thread Ondrej Jirman
Signed-off-by: Ondrej Jirman --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c index f17e5550602d..98bbcca59

[linux-sunxi] [PATCH v2] cpufreq: sun50i: Fix CPU speed bin detection

2019-11-01 Thread Ondrej Jirman
. Let's play it safe and interpret 0 as the slowest bin, but fix detection of other bins to match this research. More research will be done before actual OPP tables are merged. Fixes: f328584f7bff ("cpufreq: Add sun50i nvmem based CPU scaling driver") Signed-off-by: Ondrej Jirman --- See

[linux-sunxi] [PATCH 2/4] leds: axp20x: Support charger LED on AXP20x like PMICs

2020-02-23 Thread Ondrej Jirman
was developed on AXP813, but should work on other PMICs like that without changes. Signed-off-by: Ondrej Jirman --- drivers/leds/Kconfig | 7 ++ drivers/leds/Makefile | 1 + drivers/leds/leds-axp20x.c | 240 + drivers/mfd/axp20x.c | 3

[linux-sunxi] [PATCH 3/3] arm64: dts: allwinner: Add initial support for Pine64 PinePhone

2020-02-23 Thread Ondrej Jirman
Signed-off-by: Luca Weiss Signed-off-by: Bhushan Shah Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/Makefile| 2 + .../allwinner/sun50i-a64-pinephone-1.0.dts| 11 + .../allwinner/sun50i-a64-pinephone-1.1.dts| 11 + .../dts

[linux-sunxi] [PATCH 0/3] Add support for Pine64 PinePhone Linux Smartphone

2020-02-23 Thread Ondrej Jirman
This series adds an initial support for Pine64 PinePhone. Please take a look. thank you and regards, Ondrej Jirman Ondrej Jirman (3): arm64: dts: sun50i-a64: Add i2c2 pins dt-bindings: arm: sunxi: Add PinePhone 1.0 and 1.1 bindings arm64: dts: allwinner: Add initial support for Pine64

[linux-sunxi] [PATCH 1/3] arm64: dts: sun50i-a64: Add i2c2 pins

2020-02-23 Thread Ondrej Jirman
PinePhone needs I2C2 pins description. Add it. Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index

[linux-sunxi] [PATCH 2/3] dt-bindings: arm: sunxi: Add PinePhone 1.0 and 1.1 bindings

2020-02-23 Thread Ondrej Jirman
Document board compatible names for Pine64 PinePhone: - 1.0 - Developer variant - 1.1 - Braveheart variant Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/arm/sunxi.yaml | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/arm

[linux-sunxi] [PATCH 4/4] ARM: dts: sun8i-a83t-tbs-a711: Enable charging LED

2020-02-23 Thread Ondrej Jirman
The tablet has a LED connected to the PMIC. The LED is visible in the top right corner of the tablet. Enable it. Signed-off-by: Ondrej Jirman --- 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.dts b/arch

[linux-sunxi] [PATCH 3/4] ARM: dts: axp813: Add charger LED

2020-02-23 Thread Ondrej Jirman
PMIC supports charging status indication via a LED. Add support for it. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 1dfeeceabf4c3..00b092f94433d 100644

[linux-sunxi] [PATCH 1/4] dt-bindings: leds: Add a binding for AXP813 charger led

2020-02-23 Thread Ondrej Jirman
The AXP813 PMIC can control one LED. Add binding to represent the LED. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/leds/leds-axp20x.yaml | 24 +++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-axp20x.yaml diff

[linux-sunxi] [PATCH 0/4] Add support for charger LED for AXP813 and TBS A711 Tablet

2020-02-23 Thread Ondrej Jirman
The tablet has a charger LED exposed on the top. This LED is controlled by AXP813 PMIC. Add support for enabling the LED and using it either for charging indication (handled by PMIC automatically) or for other uses via user control. Please take a look. thank you and regards, Ondrej Jirman

[linux-sunxi] [PATCH v2 2/3] dt-bindings: arm: sunxi: Add PinePhone 1.0 and 1.1 bindings

2020-02-26 Thread Ondrej Jirman
Document board compatible names for Pine64 PinePhone: - 1.0 - Developer variant - 1.1 - Braveheart variant Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/arm/sunxi.yaml | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/arm

[linux-sunxi] [PATCH v2 1/3] arm64: dts: sun50i-a64: Add i2c2 pins

2020-02-26 Thread Ondrej Jirman
PinePhone needs I2C2 pins description. Add it, and make it default for i2c2, since it's the only possiblilty. Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner

[linux-sunxi] [PATCH v2 0/3] Add support for Pine64 PinePhone Linux Smartphone

2020-02-26 Thread Ondrej Jirman
This series adds an initial support for Pine64 PinePhone. Please take a look. thank you and regards, Ondrej Jirman Changes in v2: - make i2c2_pins default pinctrl config for i2c2 node - add description of the differences between 1.0 and 1.1 to the commit message - added copyright header

[linux-sunxi] [PATCH v2 3/3] arm64: dts: allwinner: Add initial support for Pine64 PinePhone

2020-02-26 Thread Ondrej Jirman
-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/Makefile| 2 + .../allwinner/sun50i-a64-pinephone-1.0.dts| 11 + .../allwinner/sun50i-a64-pinephone-1.1.dts| 11 + .../dts/allwinner/sun50i-a64-pinephone.dtsi | 379 ++ 4 files changed, 403 insertions

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

2020-02-24 Thread Ondrej Jirman
recommended ambient temperature (70°C) for the SoC from the datasheet, so there's some headroom even at such a high ambient temperature. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 25 + 1 file changed, 25 insertions(+) v2: - added more detail

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

2020-02-24 Thread Ondrej Jirman
at such a high ambient temperature. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t.dtsi | 60 +++ 1 file changed, 54 insertions(+), 6 deletions(-) v2: - added more detail to the commit description diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch

[linux-sunxi] [PATCH] bus: sunxi-rsb: Return correct data when mixing 16-bit and 8-bit reads

2020-02-18 Thread Ondrej Jirman
of the read with the correct mask based on the size of the read. There are no 16-bit users in the mainline kernel, so this doesn't need to get into the stable tree. Signed-off-by: Ondrej Jirman --- drivers/bus/sunxi-rsb.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers

[linux-sunxi] [PATCH v2] bus: sunxi-rsb: Return correct data when mixing 16-bit and 8-bit reads

2020-02-21 Thread Ondrej Jirman
of the read with the correct mask based on the size of the read. There are no 16-bit users in the mainline kernel, so this doesn't need to get into the stable tree. Signed-off-by: Ondrej Jirman Acked-by: Chen-Yu Tsai --- drivers/bus/sunxi-rsb.c | 1 +- 1 file changed, 1 insertion(+), 1 deletion

[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 32f

[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 a/arch/arm/boot/dts/sun8i-a83t

[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 --- arch/arm/boot/dts/sun8

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

2020-02-22 Thread Ondrej Jirman
to be enabled, when it should not be, leading to DRVVBUS being enabled, which disabled the charger. Fixes: f2f221c7810b824e ("ARM: dts: sun8i: a711: Enable USB OTG") Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

[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 b/arch/arm/boot/dts/sun8i-a83t-tbs

[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 b

[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 b/arch/arm64/boot

[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

[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 b/arch/arm/boot

[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 a/drivers/regulator

[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 327ce67308237

[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 --- arch/arm/boot/dts

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

2020-02-22 Thread Ondrej Jirman
. Please take a look. thank you and regards, Ondrej Jirman Ondrej Jirman (3): dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA dt-bindings: arm: sunxi: Add PocketBook Touch Lux 3 ARM: dts: sun5i: Add PocketBook Touch Lux 3 support .../devicetree/bindings/arm

[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.

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

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

[linux-sunxi] [PATCH] arm64: dts: allwinner: sun50i-a64: Add missing address/size-cells

2020-04-20 Thread Ondrej Jirman
00:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1) mbus #address-cells should be 1. Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 2 ++ 1 file chang

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

2020-05-12 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 b/arch/arm/boot/dts/sun8i-a83t-tbs

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

2020-05-12 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 v2 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios

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

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

2020-05-12 Thread Ondrej Jirman
CMOS logic output circuitry (typically limited to around 20-35mA, but not specified in this datasheet). 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

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

2020-05-12 Thread Ondrej Jirman
a power supply itself. There's not additional gpio driven switch on this tablet between the power supply for the motor and the motor. Please take a look. Changes in v2: - Added DT ack tag - Add more information to the commit log (re use of LDO for the power) thank you and regards, Ondrej Jirman

[linux-sunxi] [PATCH v3 2/5] dt-bindings: panel: Add binding for Xingbangda XBD599 panel

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller. Add its device tree binding. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- .../display/panel/sitronix,st7703.yaml| 63 +

[linux-sunxi] [PATCH v3 3/5] drm: panel: Add Xingbangda XBD599 panel (ST7703 controller)

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI IPS LCD panel made by Xingbangda, which is used on PinePhone final assembled phones. It is based on Sitronix ST7703 LCD controller. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- dr

[linux-sunxi] [PATCH v3 1/5] dt-bindings: vendor-prefixes: Add Xingbangda

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels for the PinePhone. Add the vendor prefix of it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/vendor

[linux-sunxi] [PATCH v3 4/5] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-05-13 Thread Ondrej Jirman
From: Icenowy Zheng PinePhone uses PWM backlight and a XBD599 LCD panel over DSI for display. Backlight levels curve was optimized by Martijn Braam using a lux meter. Add its device nodes. Signed-off-by: Icenowy Zheng Signed-off-by: Martijn Braam Signed-off-by: Ondrej Jirman

[linux-sunxi] [PATCH v3 5/5] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-05-13 Thread Ondrej Jirman
Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64

[linux-sunxi] [PATCH v3 0/5] Add support for PinePhone LCD panel

2020-05-13 Thread Ondrej Jirman
This patchset adds support for the LCD panel of PinePhone. The first 3 patches are for the panel itself, and the last 2 patches are for enabling it on PinePhone. I've tested this on PinePhone 1.0 and 1.2. Please take a look. thank you and regards, Ondrej Jirman Changes in v3: - Panel

[linux-sunxi] [PATCH v5 04/13] drm/panel: rocktech-jh057n00900: Rename the driver to st7703

2020-06-25 Thread Ondrej Jirman
This rename is done so that the driver matches the name of the display controller and in preparation for adding support for more panels to the driver. This is just a basic file rename, with no code changes. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/Kconfig | 26

[linux-sunxi] [PATCH v5 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-06-25 Thread Ondrej Jirman
Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64

[linux-sunxi] [PATCH v5 10/13] drm/panel: st7703: Enter sleep after display off

2020-06-25 Thread Ondrej Jirman
The datasheet suggests to issue sleep in after display off as a part of the panel's shutdown sequence. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel

[linux-sunxi] [PATCH v5 05/13] drm/panel: st7703: Rename functions from jh057n prefix to st7703

2020-06-25 Thread Ondrej Jirman
This is done so that code that's not specific to a particular jh057n panel is named after the controller. Functions specific to the panel are kept named after the panel. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 90 ++- 1 file changed, 46

[linux-sunxi] [PATCH v5 07/13] drm/panel: st7703: Move code specific to jh057n closer together

2020-06-25 Thread Ondrej Jirman
It's better than having it spread around the driver. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel

[linux-sunxi] [PATCH v5 02/13] dt-bindings: panel: Convert rocktech,jh057n00900 to yaml

2020-06-25 Thread Ondrej Jirman
Convert Rocktech MIPI DSI panel driver from txt to yaml bindings. Signed-off-by: Ondrej Jirman --- .../display/panel/rocktech,jh057n00900.txt| 23 --- .../display/panel/rocktech,jh057n00900.yaml | 66 +++ 2 files changed, 66 insertions(+), 23 deletions(-) delete mode

[linux-sunxi] [PATCH v5 00/13] Add support for PinePhone LCD panel

2020-06-25 Thread Ondrej Jirman
This patchset adds support for the LCD panel of PinePhone. I've tested this on PinePhone 1.0 and 1.2. Please take a look. thank you and regards, Ondrej Jirman Changes in v5: - rewritten on top of rocktech-jh057n00900 driver - rocktech-jh057n00900 renamed to st7703 (controller name

[linux-sunxi] [PATCH v5 01/13] dt-bindings: vendor-prefixes: Add Xingbangda

2020-06-25 Thread Ondrej Jirman
From: Icenowy Zheng Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels for the PinePhone. Add the vendor prefix of it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Acked-by: Rob Herring --- Documentation

[linux-sunxi] [PATCH v5 09/13] drm/panel: st7703: Add support for Xingbangda XBD599

2020-06-25 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel used in PinePhone. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 199 +- 1 file changed, 197 insertions(+), 2 deletions(-) diff

[linux-sunxi] [PATCH v5 06/13] drm/panel: st7703: Prepare for supporting multiple panels

2020-06-25 Thread Ondrej Jirman
Parametrize the driver so that it can support more panels based on st7703 controller. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 43 +-- 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix

[linux-sunxi] [PATCH v5 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators

2020-06-25 Thread Ondrej Jirman
The reset pin is inverted, so if we don't assert reset, the actual gpio will be high and may keep driving the IO port of the panel. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel

[linux-sunxi] [PATCH v5 08/13] drm/panel: st7703: Move generic part of init sequence to enable callback

2020-06-25 Thread Ondrej Jirman
Calling sleep out and display on is a controller specific part of the initialization process. Move it out of the panel specific initialization function to the enable callback. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 33 ++- 1 file changed

[linux-sunxi] [PATCH v5 03/13] dt-bindings: panel: Add compatible for Xingbangda XBD599 panel

2020-06-25 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller just like rocktech,jh057n00900. It is used in PinePhone. Add a compatible for it. Signed-off-by: Ondrej Jirman --- .../bindings/display/panel/rocktech,jh057n00900.yaml| 6

[linux-sunxi] [PATCH v5 12/13] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-06-25 Thread Ondrej Jirman
From: Icenowy Zheng PinePhone uses PWM backlight and a XBD599 LCD panel over DSI for display. Backlight levels curve was optimized by Martijn Braam using a lux meter. Add its device nodes. Signed-off-by: Icenowy Zheng Signed-off-by: Martijn Braam Signed-off-by: Ondrej Jirman

[linux-sunxi] [PATCH v4 4/5] arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone

2020-06-16 Thread Ondrej Jirman
From: Icenowy Zheng PinePhone uses PWM backlight and a XBD599 LCD panel over DSI for display. Backlight levels curve was optimized by Martijn Braam using a lux meter. Add its device nodes. Signed-off-by: Icenowy Zheng Signed-off-by: Martijn Braam Signed-off-by: Ondrej Jirman

[linux-sunxi] [PATCH v4 1/5] dt-bindings: vendor-prefixes: Add Xingbangda

2020-06-16 Thread Ondrej Jirman
From: Icenowy Zheng Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels for the PinePhone. Add the vendor prefix of it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Acked-by: Rob Herring --- Documentation

[linux-sunxi] [PATCH v4 5/5] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-06-16 Thread Ondrej Jirman
Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64

[linux-sunxi] [PATCH v4 3/5] drm: panel: Add Xingbangda XBD599 panel (ST7703 controller)

2020-06-16 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI IPS LCD panel made by Xingbangda, which is used on PinePhone final assembled phones. It is based on Sitronix ST7703 LCD controller. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman --- dr

[linux-sunxi] [PATCH v4 2/5] dt-bindings: panel: Add binding for Xingbangda XBD599 panel

2020-06-16 Thread Ondrej Jirman
From: Icenowy Zheng Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller. Add its device tree binding. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- .../display/

[linux-sunxi] [PATCH v4 0/5] Add support for PinePhone LCD panel

2020-06-16 Thread Ondrej Jirman
This patchset adds support for the LCD panel of PinePhone. The first 3 patches are for the panel itself, and the last 2 patches are for enabling it on PinePhone. I've tested this on PinePhone 1.0 and 1.2. Please take a look. thank you and regards, Ondrej Jirman Changes in v4: - use ->t

[linux-sunxi] [PATCH v6 03/13] dt-bindings: panel: Add compatible for Xingbangda XBD599 panel

2020-07-01 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on Sitronix ST7703 LCD controller just like rocktech,jh057n00900. It is used in PinePhone. Add a compatible for it. Signed-off-by: Ondrej Jirman --- .../bindings/display/panel/rocktech,jh057n00900.yaml| 6

[linux-sunxi] [PATCH v6 01/13] dt-bindings: vendor-prefixes: Add Xingbangda

2020-07-01 Thread Ondrej Jirman
From: Icenowy Zheng Shenzhen Xingbangda Display Technology Co., Ltd is a company which produces LCD modules. It supplies the LCD panels for the PinePhone. Add the vendor prefix of it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Acked-by: Rob Herring --- Documentation

[linux-sunxi] [PATCH v6 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support

2020-07-01 Thread Ondrej Jirman
Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman Acked-by: Linus Walleij --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts

[linux-sunxi] [PATCH v6 11/13] drm/panel: st7703: Assert reset prior to powering down the regulators

2020-07-01 Thread Ondrej Jirman
The reset pin is inverted, so if we don't assert reset, the actual gpio will be high and may keep driving the IO port of the panel. Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 1 + 1 file changed, 1 insertion(+) diff --git

[linux-sunxi] [PATCH v6 10/13] drm/panel: st7703: Enter sleep after display off

2020-07-01 Thread Ondrej Jirman
The datasheet suggests to issue sleep in after display off as a part of the panel's shutdown sequence. Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH v6 05/13] drm/panel: st7703: Rename functions from jh057n prefix to st7703

2020-07-01 Thread Ondrej Jirman
This is done so that code that's not specific to a particular jh057n panel is named after the controller. Functions specific to the panel are kept named after the panel. Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 90

[linux-sunxi] [PATCH v6 04/13] drm/panel: rocktech-jh057n00900: Rename the driver to st7703

2020-07-01 Thread Ondrej Jirman
This rename is done so that the driver matches the name of the display controller and in preparation for adding support for more panels to the driver. This is just a basic file rename, with no code changes. Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel

[linux-sunxi] [PATCH v6 09/13] drm/panel: st7703: Add support for Xingbangda XBD599

2020-07-01 Thread Ondrej Jirman
Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel used in PinePhone. Add support for it. Signed-off-by: Icenowy Zheng Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 200 +- 1 file changed, 198 insertions(

[linux-sunxi] [PATCH v6 08/13] drm/panel: st7703: Move generic part of init sequence to enable callback

2020-07-01 Thread Ondrej Jirman
Calling sleep out and display on is a controller specific part of the initialization process. Move it out of the panel specific initialization function to the enable callback. Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 33

  1   2   >