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

2019-10-20 Thread megous
From: 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 --- .../phy/allwinner,sun50i-h6-usb3-phy.yaml | 47 +++ 1 file changed, 47 insertions(+)

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

2019-10-20 Thread megous
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 ++

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

2019-10-20 Thread megous
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 ---

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

2019-10-20 Thread megous
From: Ondrej Jirman This series implements USB 3 support for Xunlong Orange Pi 3 board. This is a re-hash of the Icenowy's earlier USB3 work[1] without code that caused controversy previously. Orange Pi 3 board doesn't need vbus supply to be dynamically enabled, so that code is not needed to sup

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

2019-10-20 Thread megous
From: Ondrej Jirman Enable Allwinner's USB 3.0 phy and the host controller. Orange Pi 3 board has GL3510 USB 3.0 4-port hub connected to the SoC's USB 3.0 port. All four ports are exposed via USB3-A connectors. VBUS is always on, since it's powered directly from DCIN (VCC-5V) and not switchable.

[PATCH] pwm: sun4i: Fix incorrect calculation of duty_cycle/period

2019-10-14 Thread megous
From: Ondrej Jirman Since 5.4-rc1, pwm_apply_state calls ->get_state after ->apply if available, and this revealed an issue with integer precision when calculating duty_cycle and period for the currently set state in ->get_state callback. This issue manifested in broken backlight on several Allw

[RESEND PATCH 1/2] arm64: dts: allwinner: h6: Add pin configs for uart1

2019-10-07 Thread megous
From: Ondrej Jirman Orange Pi 3 uses UART1 for bluetooth. Add pinconfigs so that we can use them. Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/a

[RESEND PATCH 2/2] arm64: dts: allwinner: orange-pi-3: Enable UART1 / Bluetooth

2019-10-07 Thread megous
From: Ondrej Jirman The board contains AP6256 WiFi/BT module that has its bluetooth part connected to SoC's UART1 port. Enable this port, and add node for the bluetooth device. Bluetooth part is named bcm4345c5. You'll need a BCM4345C5.hcd firmware file that can be found in the Xulongs's reposi

[RESEND PATCH 0/2] Add bluetooth support for Orange Pi 3

2019-10-07 Thread megous
From: Ondrej Jirman (Re-send for Maxime, with already applied patches dropped. Nothing new.) This series implements bluetooth support for Xunlong Orange Pi 3 board. The board uses AP6256 WiFi/BT 5.0 chip. Summary of changes: - add more delay to let initialize the chip - let the kernel detect

[RESEND PATCH 4/5] arm64: dts: allwinner: h6: Add pin configs for uart1

2019-08-23 Thread megous
From: Ondrej Jirman Orange Pi 3 uses UART1 for bluetooth. Add pinconfigs so that we can use them. Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/a

[RESEND PATCH 2/5] bluetooth: bcm: Add support for loading firmware for BCM4345C5

2019-08-23 Thread megous
From: Ondrej Jirman Detect BCM4345C5 and load a corresponding firmware file. Signed-off-by: Ondrej Jirman --- Checkpatch reports a spurious error. drivers/bluetooth/btbcm.c | 3 +++ drivers/bluetooth/hci_bcm.c | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/bluetooth/btbcm.c b

[RESEND PATCH 1/5] dt-bindings: net: Add compatible for BCM4345C5 bluetooth device

2019-08-23 Thread megous
From: Ondrej Jirman This is present in the AP6526 WiFi/Bluetooth 5.0 module. Signed-off-by: Ondrej Jirman --- Documentation/devicetree/bindings/net/broadcom-bluetooth.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.txt b/Documen

[RESEND PATCH 5/5] arm64: dts: allwinner: orange-pi-3: Enable UART1 / Bluetooth

2019-08-23 Thread megous
From: Ondrej Jirman The board contains AP6256 WiFi/BT module that has its bluetooth part connected to SoC's UART1 port. Enable this port, and add node for the bluetooth device. Bluetooth part is named bcm4345c5. You'll need a BCM4345C5.hcd firmware file that can be found in the Xulongs's reposi

[RESEND PATCH 3/5] bluetooth: hci_bcm: Give more time to come out of reset

2019-08-23 Thread megous
From: Ondrej Jirman Some supported devices need more time to come out of reset (eg. BCM4345C5 in AP6256). I don't have/found a datasheet, so the value was arrive at experimentally with the Oprange Pi 3 board. Without increased delay, I got intermittent failures during probe. This is a Bluetooth

[RESEND PATCH 0/5] Add bluetooth support for Orange Pi 3

2019-08-23 Thread megous
From: Ondrej Jirman (Resend to add missing lists, sorry for the noise.) This series implements bluetooth support for Xunlong Orange Pi 3 board. The board uses AP6256 WiFi/BT 5.0 chip. Summary of changes: - add more delay to let initialize the chip - let the kernel detect firmware file path -

[PATCH] arm64: dts: allwinner: orange-pi-3: Enable WiFi

2019-08-23 Thread megous
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 t

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

2019-08-20 Thread megous
From: Ondrej Jirman RTC on H6 is mostly the same as on H5 and H3. It has slight differences mostly in features that are not yet supported by this driver. Some differences are already stated in the comments in existing code. One other difference is that H6 has extra bit in LOSC_CTRL_REG, called E

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

2019-08-20 Thread megous
From: Ondrej Jirman RTC on H6 is similar to the one on H5 SoC, but incompatible in small details. See the driver for description of differences. For example H6 RTC needs to enable the external low speed oscillator. Add new compatible for this RTC. Signed-off-by: Ondrej Jirman --- .../bindings/

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

2019-08-20 Thread megous
From: Ondrej Jirman This patch adds RTC node and fixes the clock properties and nodes to reflect the real clock tree. The device nodes for the internal oscillator and osc32k are removed, as these clocks are now provided by the RTC device. Clock references are fixed accordingly, too. Signed-off-

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

2019-08-20 Thread megous
From: Ondrej Jirman I went through the datasheets for H6 and H5, and compared the differences. RTCs are largely similar, but not entirely compatible. Incompatibilities are in details not yet implemented by the rtc driver though. I also corrected the clock tree in H6 DTSI. This patchset is neces

[PATCH 1/6] dt-bindings: net: sun8i-a83t-emac: Add phy-supply property

2019-08-20 Thread megous
From: Ondrej Jirman This is already supported by the driver, but is missing from the bindings. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml| 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/allwinner

[PATCH 4/6] net: stmmac: sun8i: Rename PHY regulator variable to regulator_phy

2019-08-20 Thread megous
From: Ondrej Jirman We'll be adding further optional regulators, and this makes it clearer what the regulator is for. Signed-off-by: Ondrej Jirman --- .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 32 ++- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH 0/6] Add ethernet support for Orange Pi 3

2019-08-20 Thread megous
From: Ondrej Jirman This series implements ethernet support for Xunlong Orange Pi 3 board, by: - making small cleanups of existing dwmac-sun8i code - adding DT bindings docummentation - adding support for phy-io-supply to dwmac-sun8i code - adding DT configuration for Orange Pi 3 board For some

[PATCH 6/6] arm64: dts: allwinner: orange-pi-3: Enable ethernet

2019-08-20 Thread megous
From: Ondrej Jirman Orange Pi 3 has two regulators that power the Realtek RTL8211E PHY. According to the datasheet, both regulators need to be enabled at the same time, or that "phy-io" should be enabled slightly earlier than "phy" regulator. RTL8211E/RTL8211EG datasheet says: Note 4: 2.5V (o

[PATCH 2/6] dt-bindings: net: sun8i-a83t-emac: Add phy-io-supply property

2019-08-20 Thread megous
From: Ondrej Jirman Some PHYs require separate power supply for I/O pins in some modes of operation. Add phy-io-supply property, to allow enabling this power supply. Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml| 4 1 file changed, 4 inser

[PATCH 5/6] net: stmmac: sun8i: Add support for enabling a regulator for PHY I/O pins

2019-08-20 Thread megous
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. Add support for the second optional regulator, "phy-io", to the glue driver. Signed-off-by: Ondrej Jirman --- .../net/ethern

[PATCH 3/6] net: stmmac: sun8i: Use devm_regulator_get for PHY regulator

2019-08-20 Thread megous
From: Ondrej Jirman Use devm_regulator_get instead of devm_regulator_get_optional and rely on dummy supply. This avoids NULL checks before regulator_enable/disable calls. This path also improves error reporting, because we now report both use of dummy supply and error during registration with mo

[PATCH v7 2/6] net: stmmac: sun8i: force select external PHY when no internal one

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

[PATCH v7 4/6] dt-bindings: display: hdmi-connector: Support DDC bus enable

2019-06-20 Thread megous
From: Ondrej Jirman Some Allwinner SoC using boards (Orange Pi 3 for example) need to enable on-board voltage shifting logic for the DDC bus using a gpio to be able to access DDC bus. Use ddc-en-gpios property on the hdmi-connector to model this. Add binding documentation for optional ddc-en-gpi

[PATCH v2] clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register

2019-06-04 Thread megous
From: Ondrej Jirman The current code defines W1 clock gate to be at 0x1cc, overlaying it with the IR gate. Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver causing interrupt floods on H6 (because interrupt flags can't be cleared, due to IR module's bus being disabled). S

[PATCH] clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register

2019-06-04 Thread megous
From: Ondrej Jirman The current code defines W1 clock gate to be at 0x1cc, overlaying it with the IR gate. Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver causing interrupt floods on H6 (because interrupt flags can't be cleared, due to IR module's bus being disabled). S

[PATCH v2 1/3] dt-bindings: media: sun6i-csi: Add compatible string for A83T variant

2019-05-20 Thread megous
From: Chen-Yu Tsai The A83T SoC has a camera sensor interface (known as CSI in Allwinner lingo), which is similar to the one found on the A64 and H3. The only difference seems to be that support of MIPI CSI through a connected MIPI CSI-2 bridge. Add a compatible string for this variant. Signed-

[PATCH v2 3/3] ARM: dts: sun8i: a83t: Add device node for CSI (Camera Sensor Interface)

2019-05-20 Thread megous
From: Chen-Yu Tsai The A83T SoC has a camera sensor interface (known as CSI in Allwinner lingo), which is similar to the one found on the A64 and H3. The only difference seems to be that support of MIPI CSI through a connected MIPI CSI-2 bridge. Add a device node for it, and pinctrl nodes for th

[PATCH v2 0/3] ARM: sun8i: a83t: Support Camera Sensor Interface controller

2019-05-20 Thread megous
From: Ondrej Jirman This is a re-send of Chen-Yu's A83T CSI patch series with review tags applied and removed address/size cells from csi_in port. Already applied patches from v1 were dropped. The series is ready to be merged: Patch 1 and 2 via sunxi tree Patch 3 via media tree v2: - drop

[PATCH v2 2/3] media: sun6i: Support A83T variant

2019-05-20 Thread megous
From: Chen-Yu Tsai The A83T SoC has a camera sensor interface (known as CSI in Allwinner lingo), which is similar to the one found on the A64 and H3. The only difference seems to be that support of MIPI CSI through a connected MIPI CSI-2 bridge. Add support for this variant. Signed-off-by: Chen

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

2019-03-28 Thread megous
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

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

2019-03-26 Thread megous
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 a/

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

2019-02-18 Thread megous
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") Signed-off-by:

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

2019-02-17 Thread megous
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

[PATCH] media: sunxi: cedrus: Fix missing error message context

2018-12-21 Thread megous
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 a/drivers/staging/med

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

2018-12-07 Thread megous
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 --- drivers/media/v4l2-core/

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

2018-10-22 Thread megous
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 7a1b61

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

2018-04-20 Thread megous
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. It's close enough f

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

2018-03-10 Thread megous
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 that mode_set_nofb c

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

2018-02-22 Thread megous
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 the register does ex

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

2017-12-16 Thread megous
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 b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts ind

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

2017-10-04 Thread megous
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, 1 insertion(+), 1 deletion(-) diff --

[PATCH] clk: sunxi-ng: fix PLL_CPUX adjusting on H3

2016-11-24 Thread megous
From: Ondrej Jirman When adjusting PLL_CPUX on H3, the PLL is temporarily driven too high, and the system becomes unstable (oopses or hangs). Add a notifier to avoid this situation by temporarily switching to a known stable 24 MHz oscillator. Signed-off-by: Ondrej Jirman Tested-by: Lutz Sammer

[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 thermal sensor driver - dt documentati

[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 + drivers/clk/sunxi/clk-h3-ths.c

[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 100644 Documentation/devicetree/bindin

[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: Ondrej Jirman --- arch

[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 insertions(+), 1 deletion(-) diff --git a/arch

[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(+) diff --git a/arch/arm/boot/dts/sun8i-

[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 can implement non-triv

[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 --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts

[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 insertions(+) diff --git a/arch/arm/boot/dts/su

[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 insertions(+) diff --git a/arch/arm/bo

[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, 24 insertions(+), 2 deletions(-) diff

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

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

[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 ++ 1 file changed, 26 insertions(

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

[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 b/arch/arm/boot/dts/sun8i-h3.dtsi index

[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 ++ 1 file changed, 26 i

[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 a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.d

[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 a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.

[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(+) diff --git a/arch/arm/boot/dts/sun8i-

[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(+) diff --git a/arch/arm/boot/dts/sun8i-h3

[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 a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts

[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 can implement non-triv

[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 +- drivers/regulator/sy8106a-regulator.c | 153

[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, 24 insertions(+), 2 deletions(-) diff

[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 + drivers/clk/sunxi/clk-h3-ths.c

[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 Documentation/devicetree/bindings/thermal

[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 3 files chan