[linux-sunxi] [PATCH 1/2] power: supply: axp20x_usb_power: enable USB BC detection on AXP813

2019-10-02 Thread Icenowy Zheng
The AXP813 PMIC has support for detection of USB Battery Charging specification, and it will limit the current to 500mA by default when the detection is not enabled or the detection result is SDP. Enable the BC detection to allow correctly selection of the current. Signed-off-by: Icenowy Zheng

[linux-sunxi] [PATCH 0/2] Enable USB BC detection to raise AXP813 Vbus current

2019-10-02 Thread Icenowy Zheng
Unlike previous AXP PMICs, the AXP813 PMIC (and AXP803) supports port detection defined in USB Battery Charging Specification 1.2, and sets the real Vbus current based on a pre-defined value (which is the original Vbus current limitation field) and the port status. However, the detection needs

[linux-sunxi] [PATCH 2/2] power: supply: axp20x_usb_power: add applied max Vbus support for AXP813

2019-10-02 Thread Icenowy Zheng
AXP813 PMIC has two Vbus maximum value settings -- one is the default value, which is currently the only supported one; the other is the really applied value, which is set according to the default value if the BC detection module detected a charging port, or 500mA if no charging port is detected.

Re: [linux-sunxi] [PATCH v2 04/11] ARM: dts: sun8i: R40: add crypto engine node

2019-10-02 Thread Corentin Labbe
On Wed, Oct 02, 2019 at 08:08:27AM +, Priit Laes wrote: > On Tue, Oct 01, 2019 at 08:41:34PM +0200, Corentin Labbe wrote: > > The Crypto Engine is a hardware cryptographic offloader that supports > > many algorithms. > > It could be found on most Allwinner SoCs. > > > > This patch enables the

[linux-sunxi] Re: [PATCH v2 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-02 Thread Corentin Labbe
On Wed, Oct 02, 2019 at 08:02:14AM +0200, Maxime Ripard wrote: > On Tue, Oct 01, 2019 at 08:41:35PM +0200, Corentin Labbe wrote: > > The Crypto Engine is a hardware cryptographic accelerator that supports > > many algorithms. > > It could be found on most Allwinner SoCs. > > > > This patch enables

Re: [linux-sunxi] [PATCH v2 04/11] ARM: dts: sun8i: R40: add crypto engine node

2019-10-02 Thread Priit Laes
On Tue, Oct 01, 2019 at 08:41:34PM +0200, Corentin Labbe wrote: > The Crypto Engine is a hardware cryptographic offloader that supports > many algorithms. > It could be found on most Allwinner SoCs. > > This patch enables the Crypto Engine on the Allwinner R40 SoC Device-tree. > > Signed-off-by:

Re: [linux-sunxi] [PATCH 3/3] Revert "drm/sun4i: dsi: Rework a bit the hblk calculation"

2019-10-02 Thread Jagan Teki
Hi Wens, On Tue, Oct 1, 2019 at 1:34 PM Icenowy Zheng wrote: > > This reverts commit 62e7511a4f4dcf07f753893d3424decd9466c98b. > > This commit, although claimed as a refactor, in fact changed the > formula. > > By expanding the original formula, we can find that the const 10 is not >

Re: [linux-sunxi] [PATCH 2/3] drm/sun4i: dsi: fix DRQ calculation

2019-10-02 Thread Jagan Teki
Hi, On Tue, Oct 1, 2019 at 1:34 PM Icenowy Zheng wrote: > > According to the BSP source code, when calculating the magic DRQ value > outside burst mode, a formula of "lcd_ht - lcd_x - lcd_hbp", which is > interpreted as right margin (HFP value). However, currently the > sun6i_mipi_dsi driver

[linux-sunxi] Re: [PATCH 0/3] drm/sun4i: dsi: misc timing fixes

2019-10-02 Thread Icenowy Zheng
在 2019-10-02三的 12:36 +0200,Maxime Ripard写道: > Hi, > > On Tue, Oct 01, 2019 at 04:02:50PM +0800, Icenowy Zheng wrote: > > This patchset fixes some portion of timing calculation in > > sun6i_mipi_dsi > > driver according to the BSP driver. > > > > Two of the patches are reverting, one is fixing