Re: [linux-sunxi] Backlight problems on A23 Q8 Tablet

2017-03-19 Thread Icenowy Zheng
20.03.2017, 04:21, "Eyad Majali" : > I did these changes before I know about the patch to prevent complete lcd > turn off , yes I'm on 4.11-rc , the problem is mainly with pwm-sun4i > when its enabled alone without pwm_bl the screen brightness is very low, > enabling

[linux-sunxi] AXP209 question

2017-03-19 Thread 'destroyedlolo' via linux-sunxi
Hello, The power supply of my BananaPI died ... during my holidays so sent craps for days, creating troubles on system disk but also on peripherals connected. I would like to know if there is anything in AXP209 allowing me to discover when the power received is all but stabilized ? Thanks

[linux-sunxi] [PATCH v4 5/8] ARM: sunxi: h3/h5: add usb_otg and OHCI/EHCI for usbc0 on H3/H5

2017-03-19 Thread Icenowy Zheng
Allwinner H3/H5 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI or MUSB controller. Add device nodes for these controllers. Signed-off-by: Icenowy Zheng --- Changes in v4: - Add h5 to commit message. Changes in v3: - Add "h3:" to commit message.

Re: [linux-sunxi] Backlight problems on A23 Q8 Tablet

2017-03-19 Thread Icenowy Zheng
20.03.2017, 00:08, "Quentin Schulz" : > Hi, > > On 19/03/2017 15:59, Eyad Majali wrote: >>  Hi, >>  pwm is configured in dtsi , when the module loads screen brightness >>  decrease to minimum ( barely sees anything) how to fix that ? >>  also when i enable

[linux-sunxi] [PATCH v4 4/8] phy: sun4i-usb: support automatically switch PHY0 route to MUSB/HCI

2017-03-19 Thread Icenowy Zheng
On newer Allwinner SoCs (H3 and after), the PHY0 node is routed to both MUSB controller for peripheral and host support (the host support is slightly broken), and a pair of EHCI/OHCI controllers, which provide a better support for host mode. Add support for automatically switch the route of PHY0

[linux-sunxi] [PATCH v4 3/8] phy: sun4i-usb: add PHYCTL offset for H3 SoC

2017-03-19 Thread Icenowy Zheng
The config structure of H3 in phy-sun4i-usb driver have the PHYCTL register offset missing. Add it. Because it's a SoC after A33, its PHYCTL offset should be 0x10. Signed-off-by: Icenowy Zheng --- New patch in v4. drivers/phy/phy-sun4i-usb.c | 1 + 1 file changed, 1

[linux-sunxi] [PATCH v4 1/8] dt: bindings: add pmu0 regs for USB PHYs on Allwinner H3/V3s/A64

2017-03-19 Thread Icenowy Zheng
Allwinner H3/V3s/A64 SoCs have a special USB PHY0 that can route to two controllers: one is MUSB and the other is a EHCI/OHCI pair. When it's routed to EHCI/OHCI pair, it will needs a "pmu0" regs to tweak, like other EHCI/OHCI pairs in Allwinner SoCs. Add this to the binding of USB PHYs on

[linux-sunxi] [PATCH v4 0/8] Add dual-role OTG support for Allwinner H3

2017-03-19 Thread Icenowy Zheng
Allwinner H3 have a its USB PHY0 routed to two USB controllers: one is a MUSB controller, which can work in peripheral mode, but works badly in host mode (several hardware will fail on the MUSB controller, even connect one MUSB controller in peripheral mode to another one in host mode cannot

Re: [linux-sunxi] Backlight problems on A23 Q8 Tablet

2017-03-19 Thread Quentin Schulz
Hi, On 19/03/2017 15:59, Eyad Majali wrote: > Hi, > pwm is configured in dtsi , when the module loads screen brightness > decrease to minimum ( barely sees anything) how to fix that ? > also when i enable pwm-bl it turns off the screen completely , but when > i removed the enable-gpios the result

[linux-sunxi] Backlight problems on A23 Q8 Tablet

2017-03-19 Thread Eyad Majali
Hi, pwm is configured in dtsi , when the module loads screen brightness decrease to minimum ( barely sees anything) how to fix that ? also when i enable pwm-bl it turns off the screen completely , but when i removed the enable-gpios the result was the same with pwm-sun4i alone but if i rmmod