]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: Switch to PMIC USB power supply VBUS detection
authorSamuel Holland <samuel@sholland.org>
Sun, 22 Jan 2023 23:46:21 +0000 (17:46 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Fri, 28 Apr 2023 00:30:05 +0000 (01:30 +0100)
commit7d5b17cca626a45b8e414820044831470ae1b300
treed43336e279db056a40b2778eb0037b617f58d023
parentee6a678263598b737bbc3f9a6f4932eb2739f5c4
sunxi: Switch to PMIC USB power supply VBUS detection

Update boards to use the USB power supply driver, as referenced in the
device tree, instead of a virtual GPIO. This removes the need for some
DM-incompatible special cases in the GPIO driver.

The following five boards used AXP0-VBUS-DETECT in their config, but are
missing the "usb0_vbus_power-supply" property in their device tree:
 - Ainol_AW1_defconfig / sun7i-a20-ainol-aw1
 - Cubieboard4_defconfig / sun9i-a80-cubieboard4
 - Merrii_A80_Optimus_defconfig / sun9i-a80-optimus
 - Yones_Toptech_BD1078_defconfig / sun7i-a20-yones-toptech-bd1078
 - Yones_Toptech_BS1078_V2_defconfig /
   sun6i-a31s-yones-toptech-bs1078-v2

None of those five boards have the MUSB controller (USB OTG) enabled in
their device trees, so this change should not break anything for them.

Additionally, the following board intentionally omits the property
because VBUS is always enabled:
 - Nintendo_NES_Classic_Edition_defconfig /
   sun8i-r16-nintendo-nes-classic

The PHY driver already assumes VBUS is enabled when no detection method
is available, so again this will not cause any problems.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
23 files changed:
configs/A33-OLinuXino_defconfig
configs/Ainol_AW1_defconfig
configs/Cubieboard4_defconfig
configs/Cubietruck_plus_defconfig
configs/MSI_Primo81_defconfig
configs/Merrii_A80_Optimus_defconfig
configs/Nintendo_NES_Classic_Edition_defconfig
configs/Sinovoip_BPI_M3_defconfig
configs/Wexler_TAB7200_defconfig
configs/Yones_Toptech_BD1078_defconfig
configs/Yones_Toptech_BS1078_V2_defconfig
configs/colorfly_e708_q1_defconfig
configs/ga10h_v1_1_defconfig
configs/gt90h_v4_defconfig
configs/iNet_D978_rev2_defconfig
configs/inet86dz_defconfig
configs/inet_q972_defconfig
configs/polaroid_mid2407pxe03_defconfig
configs/polaroid_mid2809pxe04_defconfig
configs/q8_a23_tablet_800x480_defconfig
configs/q8_a33_tablet_1024x600_defconfig
configs/q8_a33_tablet_800x480_defconfig
configs/tbs_a711_defconfig