As U-Boot works to align itself with upstream devicetrees, there are
some common issues we start to run into, that of hardware blocks which
might be important for an OS like Linux, but which aren't useful in
U-Boot.

For example, the Resource Power Manager found on Qualcomm platforms
includes clock controllers and power domains which are only useful for
managing power consumption and enabling low power states.

As this is not at all relevant for U-Boot, we can safely ignore these
devices, but we don't have a good way to communicate that to U-Boot.

As an initial step, implement a "stub" clock driver which can be bound
to these devices so that drivers will work as expected. Add the
necessary compatibles for the rpmcc and rpmh-clk controllers on older
rpm (non-h) platforms and the sm8250/8550/8650 platforms.

This is necessary for certain peripherals to work on various platforms,
most notably the sdcard reader on SM8150 phones and the SM8250 RB5
development board.

To: Tom Rini <[email protected]>
To: Lukasz Majewski <[email protected]>
To: Sean Anderson <[email protected]>
To: Caleb Connolly <[email protected]>
To: Neil Armstrong <[email protected]>
To: Sumit Garg <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: [email protected]
Cc: [email protected]

Changes in v4:
- Add sm8150 compatible
- Link to v3: 
https://lore.kernel.org/r/[email protected]

Changes in v3:
- Add 8250/855/8650 rpmh clk stubs
- Link to v2: 
https://lore.kernel.org/r/[email protected]

Changes in v2:
- Take the other discussed approach of just implementing a stub driver.
- Link to v1: 
https://lore.kernel.org/r/[email protected]

---
Caleb Connolly (2):
      clk: add stub clock driver
      qcom_defconfig: enable stub clock

Julius Lehmann (1):
      clk: stub: add sm8150 compatible id

 configs/qcom_defconfig |  1 +
 drivers/clk/Kconfig    |  7 ++++++
 drivers/clk/Makefile   |  1 +
 drivers/clk/clk-stub.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 76 insertions(+)
---
base-commit: ac3dcb0c2710c4917d93d6d2eb34dbfb00516bc2

Caleb Connolly <[email protected]>

Reply via email to