From: Caleb Connolly <caleb.connolly@linaro.org>
To: Tom Rini <trini@konsulko.com>,
Caleb Connolly <caleb.connolly@linaro.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Sumit Garg <sumit.garg@linaro.org>,
Lukasz Majewski <lukma@denx.de>,
Sean Anderson <seanga2@gmail.com>
Cc: u-boot@lists.denx.de, Bhupesh Sharma <bhupesh.linux@gmail.com>,
Bhupesh Sharma <bhupesh.linux@gmail.com>
Subject: [PATCH v4 00/14] Qualcomm platform USB support
Date: Wed, 20 Mar 2024 14:57:03 +0000 [thread overview]
Message-ID: <20240320-b4-qcom-livetree-v4-0-d867ab1f06c2@linaro.org> (raw)
This series enables USB on Qualcomm SDM845 platforms and lays the
foundation for future SoCs as well.
It introduces two new high-speed PHY drivers, one for SDM845 and one for
an upcoming platform. The SDM845 clock driver gains support for
configuring the USB clocks, and the GPIO driver is updated to use .set_flags
which fixes a strange bug where GPIOs would also be configured as input.
Support for super-speed USB modes is not currently available, however
configuring the device to be high-speed only requires modifications to
DT.
To improve compatibility with upstream DT, we switch Qualcomm platforms
over to OF_LIVE and apply fixups to the tree to remove references to the
super-speed phy, as well as configure the Qualcomm glue for high-speed
only mode.
The db845c requires a vbus-supply to be hooked up for its usb type-A
port. A U-Boot dtsi file is added to configure this.
With these patches, it is now also possible to run U-Boot on some SDM845
phones like the OnePlus 6 using a dtb from Linux, and access the U-Boot
shell via the CDC ACM USB serial gadget.
This series depends on the ("Qualcomm DWC3 USB support") series [1], as
well as Volodymyrs patches enabling power domain support [2].
A feature branch based on qcom-next with the necessary dependencies
for testing the Dragonboard845c can be found at [3].
[1]: https://lore.kernel.org/u-boot/20240320-b4-qcom-usb-v4-0-41be480172e1@linaro.org
[2]: https://lore.kernel.org/u-boot/20240311213334.3567389-1-volodymyr_babchuk@epam.com
[3]: https://git.codelinaro.org/linaro/qcomlt/u-boot/-/tree/b4/qcom-livetree
---
Changes in v4:
- Fix defconfig.
- Mark db845c vbus regulator always-on to fix a bug in Linux.
- Add a timer in qcom_of_fixup_nodes() so the boot time impact can
be easily measured.
- Drop unused macros from femto v2 phy, general cleanup, remove custom
set/clrbits impl.
- Rename "7nm" phy driver to "femto-v2" to match Linux, also fix
copyright.
- Use set/clrbits() in qusb2 phy driver.
- Link to v3: https://lore.kernel.org/r/20240319-b4-qcom-livetree-v3-0-e1b38d9b4fa4@linaro.org
Changes in v3:
- Add back missing gadget options to qcom_defconfig (thanks Neil)
- Link to v2: https://lore.kernel.org/r/20240315-b4-qcom-livetree-v2-0-ab635774b2dc@linaro.org
Changes in v2:
- Fix incorrect order of NULL/0 parameters to of_write_prob() in
fixup_qcom_dwc3()
- Move fixup_usb_nodes() to a separate file in preparation for future
additions.
- Add missing break to switch case in sdm845_clk_enable()
- Remove rogue return statement in msm_gpio_set_flags()
- Rebase on Volodymyrs power domain patches.
- Link to v1: https://lore.kernel.org/r/20240131-b4-qcom-livetree-v1-0-4071c0787db0@linaro.org
---
Bhupesh Sharma (2):
phy: qcom: add Qualcomm QUSB2 USB PHY driver
phy: qcom: Add SNPS femto v2 USB HS phy
Caleb Connolly (12):
mailmap: update Bhupesh's email address
mach-snapdragon: disable power-domains for pre-reloc drivers
clk/qcom: use offsets for RCG registers
clk/qcom: sdm845: add gdscs
clk/qcom: sdm845: add USB clocks
gpio: msm_gpio: add .set_flags op
serial: msm-geni: support livetree
mach-snapdragon: fixup USB nodes
mach-snapdragon: fixup power-domains
dts: sdm845-db845c: add u-boot fixups
qcom_defconfig: enable livetree
qcom_defconfig: enable USB
.mailmap | 1 +
arch/arm/dts/sdm845-db845c-u-boot.dtsi | 16 ++
arch/arm/mach-snapdragon/Makefile | 1 +
arch/arm/mach-snapdragon/board.c | 3 +
arch/arm/mach-snapdragon/of_fixup.c | 155 +++++++++++
arch/arm/mach-snapdragon/qcom-priv.h | 19 ++
configs/qcom_defconfig | 53 ++--
drivers/clk/qcom/clock-apq8016.c | 39 +--
drivers/clk/qcom/clock-apq8096.c | 28 +-
drivers/clk/qcom/clock-qcom.c | 24 +-
drivers/clk/qcom/clock-qcom.h | 16 +-
drivers/clk/qcom/clock-qcs404.c | 122 ++-------
drivers/clk/qcom/clock-sdm845.c | 61 +++--
drivers/gpio/msm_gpio.c | 27 +-
drivers/phy/qcom/Kconfig | 15 ++
drivers/phy/qcom/Makefile | 2 +
drivers/phy/qcom/phy-qcom-qusb2.c | 430 ++++++++++++++++++++++++++++++
drivers/phy/qcom/phy-qcom-snps-femto-v2.c | 207 ++++++++++++++
drivers/serial/serial_msm_geni.c | 15 +-
19 files changed, 999 insertions(+), 235 deletions(-)
---
base-commit: 54b3fad8f70250d27e2c871d7d6b588e18b909a5
// Caleb (they/them)
next reply other threads:[~2024-03-20 14:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-20 14:57 Caleb Connolly [this message]
2024-03-20 14:57 ` [PATCH v4 01/14] mailmap: update Bhupesh's email address Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 02/14] phy: qcom: add Qualcomm QUSB2 USB PHY driver Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 03/14] phy: qcom: Add SNPS femto v2 USB HS phy Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 04/14] mach-snapdragon: disable power-domains for pre-reloc drivers Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 05/14] clk/qcom: use offsets for RCG registers Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 06/14] clk/qcom: sdm845: add gdscs Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 07/14] clk/qcom: sdm845: add USB clocks Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 08/14] gpio: msm_gpio: add .set_flags op Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 09/14] serial: msm-geni: support livetree Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 10/14] mach-snapdragon: fixup USB nodes Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 11/14] mach-snapdragon: fixup power-domains Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 12/14] dts: sdm845-db845c: add u-boot fixups Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 13/14] qcom_defconfig: enable livetree Caleb Connolly
2024-03-20 14:57 ` [PATCH v4 14/14] qcom_defconfig: enable USB Caleb Connolly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240320-b4-qcom-livetree-v4-0-d867ab1f06c2@linaro.org \
--to=caleb.connolly@linaro.org \
--cc=bhupesh.linux@gmail.com \
--cc=lukma@denx.de \
--cc=neil.armstrong@linaro.org \
--cc=seanga2@gmail.com \
--cc=sumit.garg@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.