S805/S812 Device Tree upstreaming (was: Testing.)

Martin Blumenstingl martin.blumenstingl at googlemail.com
Sat May 13 02:03:41 PDT 2017


Hi Oleg,

On Thu, May 11, 2017 at 11:54 AM, Oleg <balbes-150 at yandex.ru> wrote:
>
>>> I found dtb to kernel 3.14 the string
>>>
>>> gpio-vbus-power = "GPIOZ_1";
>>>
>>> You can simply copy it to the unit or it needs to change according to
>>> certain rules ?
>>>
>>> &usb0 {
>>>      status = "okay";
>>> };
>>
>> you can have a look at the Vega S95 devicetree [0] which enables
>> GPIODV_24 (instead of GPIOZ_1, but that's easy to replace) for USB
>> VBUS. it then passes the regulator to the phy
>>
>>
>> Regards,
>> Martin
>>
>>
>> [0]
>> https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi#L67
>
>
> Is that about right ?
>
> https://github.com/150balbes/Amlogic_s8xx-kernel/blob/test/arch/arm/boot/dts/meson8m2-mxiii-plus.dts#L80
you have to play around and see whether you need "enable-active-high;"
or not (depends on the original .dts / Amlogic kernel implementation)

Additionally you need to add "phy-supply = <&usb_vbus>;" to the
usb0_phy node - otherwise the PHY does not know that it has to enable
the usb_vbus regulator.


Regards,
Martin



More information about the linux-amlogic mailing list