Fix USB and enable ADC on Khadas VIM
Subsystems (2)
cover Fix USB and enable ADC on Khadas VIM
This patch series add power supply entry for P212 like meson-gx boards. It also enable ADC support for Khadas VIM board.
Based on the Neil Armstrong's patches.
Note: it's my first (small!) patch for U-Boot, I tried to add all needed and useful informations :-)
Loic Devulder (2):
ARM64: meson: Add 'usb2_phy0' in P212 DT file
configs: Update Meson GX configs
arch/arm/dts/meson-gxl-s905x-p212.dtsi | 8 ++++++++ configs/khadas-vim_defconfig | 5 +++++ 2 files changed, 13 insertions(+)
Signature · 1 line
2.13.7
PATCH 1/2 ARM64: meson: Add 'usb2_phy0' in P212 DT file
Enable power supply for USB Amlogic Meson GXL P212 based boards.
Signed-off-by Loic Devulder <[email protected]>
--- arch/arm/dts/meson-gxl-s905x-p212.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/dts/meson-gxl-s905x-p212.dtsi +8 -0
@@ -189,3 +189,11 @@ &usb0 { status = "okay"; }; + +&usb2_phy0 { + /* + * even though the schematics don't show it: + * HDMI_5V is also used as supply for the USB VBUS. + */ + phy-supply = <&hdmi_5v>; +};
Signature · 1 line
2.13.7
PATCH 2/2 configs: Update Meson GX configs
In reply to Loic DevulderEnable ADC support on the Khadas VIM board.
Signed-off-by Loic Devulder <[email protected]>
--- configs/khadas-vim_defconfig | 5 +++++ 1 file changed, 5 insertions(+)
configs/khadas-vim_defconfig +5 -0
@@ -13,18 +13,23 @@ CONFIG_OF_BOARD_SETUP=y # CONFIG_DISPLAY_BOARDINFO is not set # CONFIG_CMD_BDI is not set # CONFIG_CMD_IMI is not set +CONFIG_CMD_ADC=y CONFIG_CMD_GPIO=y # CONFIG_CMD_LOADS is not set CONFIG_CMD_MMC=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_REGULATOR=y +CONFIG_ADC=y +CONFIG_SARADC_MESON=y CONFIG_OF_CONTROL=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DM_GPIO=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y CONFIG_DM_RESET=y +CONFIG_ADC=y ++CONFIG_SARADC_MESON=y CONFIG_DM_MMC=y CONFIG_MMC_MESON_GX=y CONFIG_PHY_ADDR_ENABLE=y
Signature · 1 line
2.13.7