]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
arm64: dts: qcom: sc7180-trogdor: Make pp3300_a the default supply for pp3300_hub
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 25 Nov 2020 00:48:13 +0000 (16:48 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Nov 2020 00:07:40 +0000 (18:07 -0600)
commit066c2a9448681b5fb1cfe459c5a1b9d817b017fb
treee3c8b282e97305acffaf426d74c206fbc5033db3
parent3c9c31c2523ecd5b609a2eecb5ad524ef4fc931c
arm64: dts: qcom: sc7180-trogdor: Make pp3300_a the default supply for pp3300_hub

The trogdor design has two options for supplying the 'pp3300_hub' power
rail, it can be supplied by 'pp3300_l7c' or 'pp3300_a'. The 'pp3300_a'
path includes a load switch that can be controlled through GPIO84.
Initially trogdor boards used 'pp3300_l7c' to power the USB hub, newer
revisions (will) use 'pp3300_a' as supply for 'pp3300_hub'.

Add a DT node for the 'pp3300_a' path and a pinctrl entry for the GPIO.
Make this path the default and keep trogdor rev1, lazor rev0 and rev1
on 'pp3300_l7c'. These earlier revisions also allocated the GPIO to the
purpose of controlling the power switch, so there is no need to limit
the pinctrl config to newer revisions. Remove the platform-wide
'always/boot-on' properties from 'pp3300_l7c' and add them to the
boards that use this supply. Also delete the 'always/boot-on'
properties of 'pp3300_hub' for these boards.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20201124164714.v4.1.I0ed4abdd2b2916fbedf76be254bc3457fb8b9655@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi