[linux-sunxi] [PATCH 02/14] ARM: clk: sunxi: Add driver for the H3 THS clock

2016-06-23 Thread megous
From: Josef Gajdusek This patch adds a driver for the THS clock which is present on the Allwinner H3. Signed-off-by: Josef Gajdusek --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/Makefile| 1 +

[linux-sunxi] [PATCH 03/14] thermal: Add support for sun8i THS on Allwinner H3

2016-06-23 Thread megous
From: Ondrej Jirman This patch adds support for the sun8i thermal sensor on Allwinner H3 SoC. Signed-off-by: Ondřej Jirman --- drivers/thermal/Kconfig | 7 ++ drivers/thermal/Makefile| 1 + drivers/thermal/sun8i_ths.c | 295

[linux-sunxi] [PATCH 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-23 Thread megous
From: Ondrej Jirman Use Xulong Orange Pi One GPIO based regulator for passive cooling and thermal management. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 39 + 1 file changed, 39 insertions(+)

[linux-sunxi] [PATCH 06/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi

2016-06-23 Thread megous
From: Ondrej Jirman Add label to the first cpu so that it can be referenced from derived dts files. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH 10/14] ARM: dts: sun8i: Add sy8106a regulator to Orange Pi PC

2016-06-23 Thread megous
From: Ondrej Jirman Add sy8106a regulator to r_twi bus on Orange Pi PC. This regulator controls the CPUX voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git

[linux-sunxi] [PATCH 11/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-06-23 Thread megous
From: Ondrej Jirman PLL1 on H3 requires special factors application algorithm, when the rate is changed. This algorithm was extracted from the arisc code that handles frequency scaling in the BSP kernel. This commit adds optional apply function to struct factors_data, that

[linux-sunxi] [PATCH 08/14] ARM: dts: sun8i: Add r_twi I2C controller

2016-06-23 Thread megous
From: Ondrej Jirman H3 SoC contains I2C controller optionally available on the PL0 and PL1 pins. This patch makes this controller available. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 26 -- 1 file changed,

[linux-sunxi] [PATCH 13/14] ARM: dts: sun8i: Add gpio-regulator used on Orange Pi One

2016-06-23 Thread megous
From: Ondrej Jirman Xulong Orange Pi One uses GPIO based regulator that switches between two voltages: 1.1V and 1.3V. The regulator is controlled from the PL6 pin. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 26

[linux-sunxi] Thermal regulation for Orange Pi PC and Orange Pi One

2016-06-23 Thread megous
This patch series implements thermal regulation on Orange Pi PC and Orange Pi One. For that purpose I've taken over the work on THS of Josef Gajdusek, and cleaned up his patches according to the previous review on the mailing list. The patch series also contains: - Regulator driver for sy8106a

[linux-sunxi] [PATCH 04/14] dt-bindings: document sun8i_ths

2016-06-23 Thread megous
From: Ondrej Jirman This patch adds the binding documentation for the sun8i_ths driver Signed-off-by: Ondřej Jirman --- .../devicetree/bindings/thermal/sun8i-ths.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644

[linux-sunxi] [PATCH 12/14] ARM: dts: sun8i: Setup CPU operating points for Onrage PI PC

2016-06-23 Thread megous
From: Ondrej Jirman Orange PI PC uses SY8106A regulator for fine grained CPUX voltage regulation. Setup appropriate operating points for the board. --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 50 ++ 1 file changed, 50 insertions(+) diff --git

[linux-sunxi] [PATCH 05/14] ARM: dts: sun8i: Add THS node to the sun8i-h3.dtsi

2016-06-23 Thread megous
From: Ondrej Jirman This patch adds nodes for the THS driver and the THS clock to the Allwinner sun8i-h3.dtsi file. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 33 + 1 file changed, 33 insertions(+)

[linux-sunxi] [PATCH 01/14] ARM: dts: sun8i: Add SID node

2016-06-23 Thread megous
From: Josef Gajdusek Add a node describing the Security ID memory to the Allwinner H3 .dtsi file. Signed-off-by: Josef Gajdusek --- arch/arm/boot/dts/sun8i-h3.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi

[linux-sunxi] [PATCH 07/14] regulator: SY8106A regulator driver

2016-06-23 Thread megous
From: Ondrej Jirman SY8106A is I2C attached single output voltage regulator made by Silergy. Signed-off-by: Ondrej Jirman --- drivers/regulator/Kconfig | 8 +- drivers/regulator/Makefile| 2 +-

[linux-sunxi] [PATCH 09/14] ARM: dts: sun8i: Enable r_twi on Orange Pi PC

2016-06-23 Thread megous
From: Ondrej Jirman Enable I2C controller where the SY8106A regulator for CPUX voltage is attached on Orange Pi PC SBC. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 4 1 file changed, 4 insertions(+) diff --git

[linux-sunxi] [PATCH v2 11/14] ARM: dts: sun8i: Add sy8106a regulator to Orange Pi PC

2016-06-24 Thread megous
From: Ondrej Jirman Add sy8106a regulator to r_twi bus and enable the r_twi bus on Orange Pi PC. This regulator controls the CPUX voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 14 ++ 1 file changed, 14

[linux-sunxi] [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-06-24 Thread megous
From: Ondrej Jirman PLL1 on H3 requires special factors application algorithm, when the rate is changed. This algorithm was extracted from the arisc code that handles frequency scaling in the BSP kernel. This commit adds optional apply function to struct factors_data, that

[linux-sunxi] [PATCH v2 03/14] dt-bindings: document sun8i_ths - H3 thermal sensor driver

2016-06-24 Thread megous
From: Ondrej Jirman This patch adds the binding documentation for the sun8i_ths driver. This is a driver for thermal sensor found in Allwinner H3 SoC. Signed-off-by: Ondřej Jirman --- .../devicetree/bindings/thermal/sun8i-ths.txt | 26

[linux-sunxi] [PATCH v2 12/14] ARM: dts: sun8i: Setup CPU operating points for Onrage PI PC

2016-06-24 Thread megous
From: Ondrej Jirman Orange PI PC uses SY8106A regulator for fine grained CPUX voltage regulation. Setup appropriate operating points for the board. --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 48 ++ 1 file changed, 48 insertions(+) diff --git

[linux-sunxi] [PATCH v2 13/14] ARM: dts: sun8i: Add gpio-regulator used on Orange Pi One

2016-06-24 Thread megous
From: Ondrej Jirman Xulong Orange Pi One uses GPIO based regulator that switches between two voltages: 1.1V and 1.3V. The regulator is controlled from the PL6 pin. Signed-off-by: Ondrej Jirman --- v2 - add missing pinctrl-names for gpio-regulator ---

[linux-sunxi] [PATCH v2 10/14] ARM: dts: sun8i: Add r_twi I2C controller

2016-06-24 Thread megous
From: Ondrej Jirman H3 SoC contains I2C controller optionally available on the PL0 and PL1 pins. This patch makes this controller available. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 26 -- 1 file changed,

[linux-sunxi] [PATCH v2 04/14] regulator: SY8106A regulator driver

2016-06-24 Thread megous
From: Ondrej Jirman SY8106A is I2C attached single output voltage regulator made by Silergy. Signed-off-by: Ondrej Jirman --- v2 - added dt-bindings for the regulator - changed to use of_device_id for probing - added initialization failure checks ---

[linux-sunxi] [PATCH v2 01/14] ARM: clk: sunxi: Add driver for the H3 THS clock

2016-06-24 Thread megous
From: Josef Gajdusek This patch adds a driver for the THS clock which is present on the Allwinner H3. Signed-off-by: Josef Gajdusek --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/Makefile| 1 +

[linux-sunxi] [PATCH v2 09/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi

2016-06-24 Thread megous
From: Ondrej Jirman Add label to the first cpu so that it can be referenced from derived dts files. Signed-off-by: Ondrej Jirman --- v2 - move clocks/clock-latency to sun8i-h3.dtsi --- arch/arm/boot/dts/sun8i-h3.dtsi | 4 +++- 1 file changed, 3

[linux-sunxi] [PATCH v2 02/14] thermal: sun8i_ths: Add support for the thermal sensor on Allwinner H3

2016-06-24 Thread megous
From: Ondrej Jirman This patch adds support for the sun8i thermal sensor on Allwinner H3 SoC. Signed-off-by: Ondřej Jirman --- v2: - removed incorrect use of SID driver in sun8i_ths - read calibration data directly from iomem - better explanation for the

[linux-sunxi] [PATCH v2 07/14] ARM: dts: sun8i: Use sun8i-h3-pll1-clk for pll1 in H3

2016-06-24 Thread megous
From: Ondrej Jirman PLL1 on H3 requires special factors application algorithm, when the rate is changed. This algorithm was extracted from the arisc code that handles frequency scaling in the BSP kernel. This algorithm is implemented by sun8i-h3-pll1-clk. Signed-off-by:

[linux-sunxi] [PATCH v2] Thermal regulation for Orange Pi PC and Orange Pi One

2016-06-24 Thread megous
This patch series implements thermal regulation on Orange Pi PC and Orange Pi One. The patch series contains: - Thermal sensor driver for Allwinner H3 SoC - Regulator driver for sy8106a I2C connected regulator - DTS setup for gpio regulator used on Orange Pi One - Operating points and thermal

[linux-sunxi] [PATCH v2 08/14] ARM: dts: sun8i: Add thermal sensor node to the sun8i-h3.dtsi

2016-06-24 Thread megous
From: Ondrej Jirman This patch adds nodes for the thermal sensor driver and the THS clock to the Allwinner sun8i-h3.dtsi file. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 28 1 file changed, 28

[linux-sunxi] [PATCH v2 05/14] dt-bindings: document SY8106A regulator driver

2016-06-24 Thread megous
From: Ondrej Jirman This patch adds the binding documentation for the sy8106a regulator driver. Signed-off-by: Ondrej Jirman --- .../bindings/regulator/sy8106a-regulator.txt| 21 + 1 file changed, 21 insertions(+) create mode

[linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-24 Thread megous
From: Ondrej Jirman Use Xulong Orange Pi One GPIO based regulator for passive cooling and thermal management. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 39 + 1 file changed, 39 insertions(+)

[linux-sunxi] [PATCH v2 3/3] arm64: dts: sun50i-h6: Add support for RTC and fix the clock tree

2019-08-20 Thread megous
gt;, <>, <>; + clocks = <_ccu CLK_R_APB1>, <>, < 0>; clock-names = "apb", "hosc", "losc"; gpio-controller; #gpio-cells = <3>; -- 2.22.1 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190820151934.3860-4-megous%40megous.com.

[linux-sunxi] [PATCH v2 0/3] Add basic support for RTC on Allwinner H6 SoC

2019-08-20 Thread megous
p and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190820151934.3860-1-megous%40megous.com.

[linux-sunxi] [PATCH v2 1/3] dt-bindings: Add compatible for H6 RTC

2019-08-20 Thread megous
i+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190820151934.3860-2-megous%40megous.com.

[linux-sunxi] [PATCH v2 2/3] rtc: sun6i: Add support for H6 RTC

2019-08-20 Thread megous
s from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190820151934.3860-3-megous%40megous.com.

[linux-sunxi] [PATCH v8 4/4] arm64: dts: allwinner: orange-pi-3: Enable HDMI output

2019-08-06 Thread megous
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190806155744.10263-5-megous%40megous.com.

[linux-sunxi] [PATCH v8 3/4] drm: sun4i: Add support for enabling DDC I2C bus to sun8i_dw_hdmi glue

2019-08-06 Thread megous
stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190806155744.10263-4-megous%40megous.com.

[linux-sunxi] [PATCH v8 0/4] Add support for Orange Pi 3

2019-08-06 Thread megous
; group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190806155744.10263-1-megous%40megous.com.

[linux-sunxi] [PATCH v8 2/4] dt-bindings: display: hdmi-connector: Support DDC bus enable

2019-08-06 Thread megous
"linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190806155744.10263-3-megous%40megous.com.

[linux-sunxi] [PATCH v8 1/4] arm64: dts: allwinner: orange-pi-3: Enable ethernet

2019-08-06 Thread megous
cause you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190806155744.10263-2-megous%40megous.com.

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

2019-10-20 Thread megous
uot;Allwinner sun50i USB 3.0 phy driver"); +MODULE_AUTHOR("Icenowy Zheng "); +MODULE_LICENSE("GPL"); -- 2.23.0 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20191020134229.1216351-3-megous%40megous.com.

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

2019-10-20 Thread megous
and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20191020134229.1216351-2-megous%40megous.com.

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

2019-10-20 Thread megous
inux-sunxi/20191020134229.1216351-1-megous%40megous.com.

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

2019-10-20 Thread megous
er,sun50i-h6-ehci", "generic-ehci"; reg = <0x05311000 0x100>; -- 2.23.0 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20191020134229.1216351-4-megous%40megous.com.

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

2019-10-20 Thread megous
p receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20191020134229.1216351-5-megous%40megous.com.

[linux-sunxi] [PATCH] clk: sunxi-ng: a83t: Fix invalid csi-mclk mux offset

2017-10-04 Thread megous via linux-sunxi
From: Ondrej Jirman Datasheet specified that parent MUX settings are at bits [10:8], but current implementation specifies incorrect offset at [10:12]. Fix this. Signed-off-by: Ondrej Jirman --- drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 2 +- 1 file changed,

[linux-sunxi] [PATCH] ARM: dts: sun8i-a83t-tbs-a711: Add missing axp813 compatible

2017-12-16 Thread megous via linux-sunxi
From: Ondrej Jirman Without this the AXP813 PMIC fails to probe on TBS A711. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

[linux-sunxi] [PATCH RFC] drm/sun4i: Enable the output on the pins (tcon0)

2018-02-22 Thread megous via linux-sunxi
From: Ondrej Jirman I noticed that with 4.16-rc1 LVDS output on A83T based TBS A711 tablet doesn't work (there's output but it's garbled). I compared some older patches for LVDS support with the mainlined ones and this change is missing from mainline Linux. I don't know what

[linux-sunxi] [PATCH] drm/sun4i: Fix exclusivity of the TCON clocks

2018-03-10 Thread megous via linux-sunxi
From: Ondrej Jirman Currently the exclusivity is enabled when the rate is set by the mode setting functions. These functions are called by mode_set_nofb callback of drm_crc_helper. Then exclusivity is disabled when tcon is disabled by atomic_disable callback. What happens is

[linux-sunxi] [PATCH] Revert "drm/sun4i: add lvds mode_valid function"

2018-04-20 Thread megous via linux-sunxi
From: Ondrej Jirman The reverted commit broke LVDS output on TBS A711 Tablet. That tablet has simple-panel node that has fixed pixel clock-frequency that A83T SoC used in the tablet can't generate exactly. Requested rate is 5200 and rounded_rate is calculated as 51857142.

[linux-sunxi] [PATCH] ARM: dts: sun8i-a83t-tbs-a711: Change MMC0 bus-width to 4

2018-10-22 Thread megous via linux-sunxi
From: Ondrej Jirman The actual hardware has 4 data lines. Use them. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 1 + 1 file changed, 1 insertion(+) 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] media: sunxi: cedrus: Fix missing error message context

2018-12-21 Thread megous via linux-sunxi
From: Ondrej Jirman When cedrus_hw_probe is called, v4l2_dev is not yet initialized. Use dev_err instead. Signed-off-by: Ondrej Jirman --- .../staging/media/sunxi/cedrus/cedrus_hw.c| 28 +-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[linux-sunxi] [PATCH] media: v4l2-fwnode: Fix setting V4L2_MBUS_DATA_ACTIVE_HIGH/LOW flag

2018-12-07 Thread megous via linux-sunxi
From: Ondrej Jirman When parallel bus is used and data-active is being parsed, incorrect flags are cleared. Clear the correct flag bits. Fixes: e9be1b863e2c2948deb003df8edd9635b4611a8a (media: v4l: fwnode: Use default parallel flags). Signed-off-by: Ondrej Jirman ---

[linux-sunxi] [PATCH 12/12] arm64: dts: allwinner: orange-pi-3: Enable WiFi

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman Orange Pi 3 has AP6256 WiFi/BT module. WiFi part of the module is called bcm43356 and can be used with the brcmfmac driver. The module is powered by the two always on regulators (not AXP805). WiFi uses a PG port with 1.8V voltage level signals. SoC needs to be configured so

[linux-sunxi] [PATCH 03/12] dt-bindings: display: sun4i-drm: Add DDC power supply

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman Some Allwinner SoC using boards need to enable a regulator for the DDC bus to be usable. Add binding documentation for it. Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[linux-sunxi] [PATCH 08/12] arm64: dts: allwinner: h6: Add MMC1 pins

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 91fecab58836..dccad79da90c 100644 ---

[linux-sunxi] [PATCH] drm: sun4i: Fix NULL/invalid pointer dereference in sun8i_tcon_top_un/bind

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman There are two problems here: 1. Not all clk_data->hws[] need to be initialized, depending on various configured quirks. This leads to NULL ptr deref in clk_hw_unregister_gate() in sun8i_tcon_top_unbind() 2. If there is error when registering the clk_data->hws[],

[linux-sunxi] [PATCH 06/12] net: stmmac: sun8i: force select external PHY when no internal one

2019-04-05 Thread megous via linux-sunxi
From: Icenowy Zheng The PHY selection bit also exists on SoCs without an internal PHY; if it's set to 1 (internal PHY) then the MAC will not make use of any PHY. This problem appears when adapting for H6, which has no real internal PHY (the "internal PHY" on H6 is not on-die, but on a

[linux-sunxi] [PATCH 04/12] arm64: dts: allwinner: orange-pi-3: Enable HDMI output

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman Orange Pi 3 has a DDC_CEC_EN signal connected to PH2, that enables the DDC I2C bus. Before EDID can be read, we need to pull PH2 high. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-h6-orangepi-3.dts| 35 +++ 1 file changed, 35 insertions(+)

[linux-sunxi] [PATCH 11/12] brcmfmac: Loading the correct firmware for brcm43456

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman SDIO based brcm43456 is currently misdetected as brcm43455 and the wrong firmware name is used. Correct the detection and load the correct firmware file. Chiprev for brcm43456 is "9". Signed-off-by: Ondrej Jirman --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c

[linux-sunxi] [PATCH 10/12] pinctrl: sunxi: Support I/O bias voltage setting on H6

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman H6 SoC has a "pio group withstand voltage mode" register (datasheet description), that needs to be used to select either 1.8V or 3.3V I/O mode, based on what voltage is powering the respective pin banks and is thus used for I/O signals. Add support for configuring this

[linux-sunxi] [PATCH 02/12] drm: sun4i: Add support for enabling DDC I2C bus to dw_hdmi glue

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman Orange Pi 3 board requires enabling DDC I2C bus via some GPIO connected transistors, before it can be used. Model this as a power supply for DDC (via regulator framework). Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 17 -

[linux-sunxi] [PATCH 00/12] Add support for Orange Pi 3

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman This series implements support for Xunlong Orange Pi 3 board. Unfortunately, this board needs some small driver patches, so I have split the boards DT patch into chunks that require patches for drivers in various subsystems: - Basic DT for the board (patch 1) - HDMI

[linux-sunxi] [PATCH 01/12] arm64: dts: allwinner: h6: Add Orange Pi 3 DTS

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman Orange Pi 3 is a H6 based SBC made by Xulong, released in January 2019. It has the following features: - Allwinner H6 quad-core 64-bit ARM Cortex-A53 - GPU Mali-T720 - 1GB or 2GB LPDDR3 RAM - AXP805 PMIC - AP6256 Wifi/BT 5.0 - USB 2.0 host port (A) - USB 2.0 micro usb, OTG -

[linux-sunxi] [PATCH 07/12] arm64: dts: allwinner: orange-pi-3: Enable ethernet

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman Orange Pi 3 has two regulators that power the Realtek RTL8211E. According to the phy datasheet, both regulators need to be enabled at the same time, but we can only specify a single phy-supply in the DT. This can be achieved by making one regulator depedning on the other via

[linux-sunxi] [PATCH 09/12] pinctrl: sunxi: Prepare for alternative bias voltage setting methods

2019-04-05 Thread megous via linux-sunxi
From: Ondrej Jirman H6 has a different I/O voltage bias setting method than A80. Prepare existing code for using alternative bias voltage setting methods. Signed-off-by: Ondrej Jirman --- drivers/pinctrl/sunxi/pinctrl-sun9i-a80.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 38

[linux-sunxi] [PATCH 05/12] net: stmmac: sun8i: add support for Allwinner H6 EMAC

2019-04-05 Thread megous via linux-sunxi
From: Icenowy Zheng The EMAC on Allwinner H6 is just like the one on A64. The "internal PHY" on H6 is on a co-packaged AC200 chip, and it's not really internal (it's connected via RMII at PA GPIO bank). Add support for the Allwinner H6 EMAC in the dwmac-sun8i driver. Signed-off-by: Icenowy

[linux-sunxi] [PATCH v2 1/2] ARM: dts: sun8i: a83t: Add missing cooling device properties for CPUs

2019-03-28 Thread megous via linux-sunxi
From: Ondrej Jirman Enable to use CPUs as cooling device in the future, by adding "#cooling-cells" to each CPU node. This property should be present for all the CPUs of a cluster. If these are present only for a subset of CPUs of a cluster then things will start falling apart as soon as the CPUs

[linux-sunxi] [PATCH v2 2/2] ARM: dts: sun8i: a83t: Add missing CPU clock references

2019-03-28 Thread megous via linux-sunxi
From: Ondrej Jirman A83T DTSI has cpu clocks defined only on the first CPU in each cluster. We can bring down any CPU in the cluster, so we need to define clock for each CPU, so that the system knows what clock to use if the first CPU is down. Signed-off-by: Ondrej Jirman ---

[linux-sunxi] [PATCH v2 0/2] ARM: dts: sun8i: a83t: Add missing cooling device properties for CPUs

2019-03-28 Thread megous via linux-sunxi
From: Ondrej Jirman This series adds some properties to prepare for passive cooling via CPU frequency down-regulation, and fixes cpufreq for various CPU hotplug situations. #cooling-cells patch is not strictly necessary now, but now that SID changes are soon to be merged, thermal sensor patches

[linux-sunxi] [PATCH v2 2/5] ARM: dts: sun8i: a83t: Add UART2 PB pins

2019-04-01 Thread megous via linux-sunxi
From: Ondrej Jirman Add pin definitions for UART2 PB pins. These are used on TBS-A711 tablet. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi

[linux-sunxi] [PATCH v2 0/5] Add bluetooth, gps and accelerometer to TBS A711

2019-04-01 Thread megous via linux-sunxi
From: Ondrej Jirman This series enables some peripherals on TBS A711 tablet that already have mainline drivers: - GPS u-blox neo-6m (via gnss u-blox driver) - Bluetooth (via recently added OF support in the Broadcom bluetooth driver) - Accelermomter BMA-250 (hooked to the I2C bus) It also

[linux-sunxi] [PATCH v2 1/5] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer

2019-04-01 Thread megous via linux-sunxi
From: Ondrej Jirman A711 tablet has BMA250 accelerometer connected to I2C1 bus. Enable both the I2C1 bus and add the accelerometer device to it. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 13 + 1 file changed, 13 insertions(+) diff --git

[linux-sunxi] [PATCH v2 4/5] dt-bindings: gnss: Add u-blox,neo-6m compatible

2019-04-01 Thread megous via linux-sunxi
From: Ondrej Jirman Add compatible for u-blox NEO-6M GPS module. Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/gnss/u-blox.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gnss/u-blox.txt

[linux-sunxi] [PATCH v2 5/5] ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module)

2019-04-01 Thread megous via linux-sunxi
From: Ondrej Jirman TBS A711 tablet contains u-blox NEO-6M module connected to UART2. Enable UART2 to gain access to the module from userspace. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 21 + 1 file changed, 21 insertions(+) diff --git

[linux-sunxi] [PATCH v2 3/5] gnss: Add u-blox,neo-6m compatible

2019-04-01 Thread megous via linux-sunxi
From: Ondrej Jirman Add compatible for u-blox NEO-6M GPS module. Signed-off-by: Ondrej Jirman --- drivers/gnss/ubx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gnss/ubx.c b/drivers/gnss/ubx.c index 12568aebb7f6..1ada2fad1d4e 100644 --- a/drivers/gnss/ubx.c +++

[linux-sunxi] [PATCH v3 0/1] ARM: dts: sun8i: a83t: Add missing cooling device properties for CPUs

2019-04-01 Thread megous via linux-sunxi
From: Ondrej Jirman (Part of the series was already applied, so this only contains the remaining patch.) This series adds some properties to prepare for passive cooling via CPU frequency down-regulation, and fixes cpufreq for various CPU hotplug situations. #cooling-cells patch is not strictly

[linux-sunxi] [PATCH v3 1/1] ARM: dts: sun8i: a83t: Add missing CPU clock references

2019-04-01 Thread megous via linux-sunxi
From: Ondrej Jirman A83T DTSI has cpu clocks defined only on the first CPU in each cluster. We can bring down any CPU in the cluster, so we need to define clock for each CPU, so that the system knows what clock to use if the first CPU is down. Also move the clocks property below the compatible

[linux-sunxi] [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman This series enables some peripherals on TBS A711 tablet that already have mainline drivers: - GPS u-blox neo-6m (via gnss u-blox driver) - Bluetooth (via recently added OF support in the Broadcom bluetooth driver) - Accelermomter BMA-250 (hooked to the I2C bus) It also

[linux-sunxi] [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman Add pin definitions for UART2 PB pins. These are used on TBS-A711 tablet. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi

[linux-sunxi] [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman TBS A711 tablet has a bcm20702a1 bluetooth chip (part of AP6210 WiFi/BT module) connected to UART1. Add node for the blutooth chip. The driver needs brcm/BCM20702A1.hcd firmware file to run. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 13

[linux-sunxi] [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman A83T has 5 UART interfaces, but only the first two have their nodes defined in sun8i-a83t.dtsi. Add nodes for the missing interfaces. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t.dtsi | 33 +++ 1 file changed, 33 insertions(+)

[linux-sunxi] [PATCH 7/7] ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module)

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman TBS A711 tablet contains u-blox NEO-6M module connected to UART2. Enable UART2 to gain access to the module from userspace. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 21 + 1 file changed, 21 insertions(+) diff --git

[linux-sunxi] [PATCH 5/7] gnss: Add u-blox,neo-6m compatible

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman Add compatible for u-blox NEO-6M GPS module. Signed-off-by: Ondrej Jirman --- drivers/gnss/ubx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gnss/ubx.c b/drivers/gnss/ubx.c index 12568aebb7f6..1ada2fad1d4e 100644 --- a/drivers/gnss/ubx.c +++

[linux-sunxi] [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman A711 tablet has BMA250 accelerometer connected to I2C1 bus. Enable both the I2C1 bus and add the accelerometer device to it. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git

[linux-sunxi] [PATCH 6/7] dt-bindings: gnss: Add u-blox,neo-6m compatible

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman Add compatible for u-blox NEO-6M GPS module. Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/gnss/u-blox.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gnss/u-blox.txt

[linux-sunxi] [PATCH v4 4/4] ARM: dts: sun8i: tbs-a711: Add support for volume keys input

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman TBS A711 tablet has volume up/down keys connected to r_lradc. Add support for these keys. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 20 1 file changed, 20 insertions(+) diff --git

[linux-sunxi] [PATCH v4 2/4] dt-bindings: input: Add R_LRADC support for A83T

2019-03-26 Thread megous via linux-sunxi
From: Ziping Chen Allwinner A83T SoC has a low res ADC like the one in Allwinner A10 SoC. Add binding for it. Signed-off-by: Ziping Chen Acked-by: Rob Herring --- .../devicetree/bindings/input/sun4i-lradc-keys.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[linux-sunxi] [PATCH v4 0/4] Add support for lradc on A83T

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman This series implements r_lradc (low res ADC) support for A83T. This is a continuation of v3 patch series from 2017 by Ziping Chen. I've rebased it on top of linux-next and changed the compatibe string as requested back then.[1] There was some talk of iio based lradc driver

[linux-sunxi] [PATCH v4 3/4] ARM: dts: sunxi: Add R_LRADC support for A83T

2019-03-26 Thread megous via linux-sunxi
From: Ziping Chen Allwinner A83T SoC has a low res adc like the one in Allwinner A10 SoC. Now the driver has been modified to support it. Add support for it. Signed-off-by: Ziping Chen --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[linux-sunxi] [PATCH] ARM: dts: sun8i: a83t: Add missing cooling device properties for CPUs

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman This is inspired by the similar patch for H3. Original description applies, and is copied below: The cooling device properties, like "#cooling-cells" and "dynamic-power-coefficient", should either be present for all the CPUs of a cluster or none. If these are present only

[linux-sunxi] [PATCH RESEND v4 0/4] Add support for lradc on A83T

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman (This is a re-send, with input subsystem maintainer added. Sorry, for the extra noise, I did only send the v4 to the previous recipients of v3, and didn't notice input subsystem was missing back then too. Thank you wens for pointing it out.) This series implements r_lradc

[linux-sunxi] [PATCH RESEND v4 4/4] ARM: dts: sun8i: tbs-a711: Add support for volume keys input

2019-03-26 Thread megous via linux-sunxi
From: Ondrej Jirman TBS A711 tablet has volume up/down keys connected to r_lradc. Add support for these keys. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 20 1 file changed, 20 insertions(+) diff --git

[linux-sunxi] [PATCH RESEND v4 1/4] input: sun4i-a10-lradc-keys: Add support for A83T

2019-03-26 Thread megous via linux-sunxi
From: Ziping Chen Allwinner A83T SoC has a low res adc like the one in Allwinner A10 SoC, however, the A10 SoC's vref of lradc internally is divided by 2/3 and the A83T SoC's vref of lradc internally is divided by 3/4, thus add a hardware variant for it to be compatible with various devices.

[linux-sunxi] [PATCH RESEND v4 2/4] dt-bindings: input: Add R_LRADC support for A83T

2019-03-26 Thread megous via linux-sunxi
From: Ziping Chen Allwinner A83T SoC has a low res ADC like the one in Allwinner A10 SoC. Add binding for it. Signed-off-by: Ziping Chen Acked-by: Rob Herring --- .../devicetree/bindings/input/sun4i-lradc-keys.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[linux-sunxi] [PATCH RESEND v4 3/4] ARM: dts: sunxi: Add R_LRADC support for A83T

2019-03-26 Thread megous via linux-sunxi
From: Ziping Chen Allwinner A83T SoC has a low res adc like the one in Allwinner A10 SoC. Now the driver has been modified to support it. Add support for it. Signed-off-by: Ziping Chen --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[linux-sunxi] [PATCH] regulator: axp20x: fix DCDCB and BLDO2 definitions for AXP806

2019-02-17 Thread megous via linux-sunxi
From: Ondrej Jirman This fixes another set of errors from the refactoring of literals to mask preproccesor definitions. Found by debugging a broken voltage setup on Orange Pi One Plus. Fixes: db4a555f7c4cf ("regulator: axp20x: use defines for masks") Signed-off-by: Ondrej Jirman --- This is a

[linux-sunxi] [PATCH v2] regulator: axp20x: fix BLDO2 definition for AXP806

2019-02-18 Thread megous via linux-sunxi
From: Ondrej Jirman This fixes an error from the refactoring of literals to mask preproccesor definitions that was done during the 5.0 release cycle. Found by debugging a broken voltage setup on Orange Pi One Plus. Fixes: db4a555f7c4cf ("regulator: axp20x: use defines for masks")

[linux-sunxi] [PATCH v3 10/11] arm64: dts: allwinner: h6: Add MMC1 pins

2019-04-11 Thread megous via linux-sunxi
From: Ondrej Jirman MMC1 is used on some H6 boards we want to support. Typical use is 4-bit SDIO interface with a WiFi chip. Add pin definitions for this use case. As this is the only possible configration for mmc1, make it the default one, too. Signed-off-by: Ondrej Jirman ---

[linux-sunxi] [PATCH v3 01/11] net: stmmac: sun8i: add support for Allwinner H6 EMAC

2019-04-11 Thread megous via linux-sunxi
From: Icenowy Zheng The EMAC on Allwinner H6 is just like the one on A64. The "internal PHY" on H6 is on a co-packaged AC200 chip, and it's not really internal (it's connected via RMII at PA GPIO bank). Add support for the Allwinner H6 EMAC in the dwmac-sun8i driver. Signed-off-by: Icenowy

[linux-sunxi] [PATCH v3 05/11] arm64: dts: allwinner: orange-pi-3: Enable ethernet

2019-04-11 Thread megous via linux-sunxi
From: Ondrej Jirman Orange Pi 3 has two regulators that power the Realtek RTL8211E. According to the phy datasheet, both regulators need to be enabled at the same time, but we can only specify a single phy-supply in the DT. This can be achieved by making one regulator depedning on the other via

  1   2   >