mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/2] pinctrl: qcom: Add the Molokai TLMM
@ 2026-11-26 16:51 Venkat Yadlapati via B4 Relay
  2026-11-26 16:51 ` [PATCH v5 1/2] dt-bindings: pinctrl: qcom: Add " Venkat Yadlapati via B4 Relay
  2026-11-26 16:51 ` [PATCH v5 2/2] pinctrl: qcom: Add Molokai TLMM driver Venkat Yadlapati via B4 Relay
  0 siblings, 2 replies; 4+ messages in thread
From: Venkat Yadlapati via B4 Relay @ 2026-11-26 16:51 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Linus Walleij, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, linux-gpio, devicetree, linux-kernel, phone-devel,
	Konrad Dybcio, Krzysztof Kozlowski, Venkat Yadlapati

Molokai (SM8845) is a Qualcomm SoC derived from Kaanapali (SM8850), found
for example in the Motorola Signature. Its TLMM has the Kaanapali register
layout, but 205 GPIOs instead of 217, the Kaanapali pin functions on only
29 pins and a GPIO to PDC wakeup map with no entry in common. With the
Kaanapali tables a wake-capable GPIO interrupt is routed to the wrong PDC
input and never fires, so this adds a binding and a driver of its own.

The SoC and board devicetree that use it are sent separately in "Add
support for the Qualcomm Molokai (SM8845) and the Motorola Signature".

Tested on the Motorola Signature: the UFS reset, the keys and the GPIO
interrupts that go through the PDC (touchscreen, amplifiers) work.

I used an LLM (Claude) to help write these patches and their commit
messages. I reviewed all of them and tested the result on the device.

---
Changes in v5:
- Binding commit message: Molokai does have SDC2, muxed on GPIOs; it
  only lacks the dedicated SDC2 pads of Kaanapali (Bartosz).
- Driver: add gp_mn on GPIO127 (Bartosz, Konrad).
- Driver: add the gp_pdm_mira, gp_pdm_mirb, rffe and grfc functions, and
  qup2_se5_l6, qup1_se5_l2_mirb and qup1_se5_l3_mirb for the second QUP
  mux setting of GPIO17, GPIO202 and GPIO203 (Konrad). The three RFFE
  buses share one rffe function, as Konrad suggested. The gp_mn,
  gp_pdm, rffe and grfc muxes are not in the downstream tables, they
  come from Konrad's review.
- Binding: add the new functions to the function enum. Krzysztof's
  Reviewed-by is kept, as the schema only gains enum entries.
- Driver: drop the comment above the pin group table (Konrad).
- Driver commit message and cover: 29 pins (not 35) now have the
  Kaanapali functions, as GPIO138-143 gained rffe and grfc.
- Link to v4: https://patch.msgid.link/20261123-molokai-tlmm-v4-0-eed6eeaacc70@yahoo.com

Changes in v4:
- Rebase on next-20261120 instead of the pinctrl for-next branch, no
  code change (Bartosz).
- Driver commit message: say that 35 pins share the Kaanapali functions
  instead of "different on every pin" (Bartosz).
- Link to v3: https://patch.msgid.link/20261120-molokai-tlmm-v3-0-e5fc37e37011@yahoo.com

Changes in v3:
- Drop the Assisted-by trailers and the LLM notes from the commit
  messages, the LLM use is stated in this cover letter (Krzysztof).
- Rewrap the GPIO to PDC wakeup map so that no entry is split across
  lines, no change in content.
- Pick up the Reviewed-by of Krzysztof.
- Link to v2: https://patch.msgid.link/20261116-molokai-tlmm-v2-0-429f8c8d8eb1@yahoo.com

Changes in v2:
- Binding: indent the example state node consistently.
- Driver: mark egpio as a GPIO function (MSM_GPIO_PIN_FUNCTION) so GPIO
  requests on pins muxed to egpio are not rejected.
- Kept the default 3-bit interrupt target field: on Molokai INTR_CFG[11]
  reads 0 out of reset and the target resets to 0x7.
- Link to v1: https://patch.msgid.link/20261116-molokai-tlmm-v1-0-3ba4840002cb@yahoo.com

---
Venkat Yadlapati (2):
      dt-bindings: pinctrl: qcom: Add Molokai TLMM
      pinctrl: qcom: Add Molokai TLMM driver

 .../bindings/pinctrl/qcom,molokai-tlmm.yaml        |  129 ++
 drivers/pinctrl/qcom/Kconfig.msm                   |   10 +
 drivers/pinctrl/qcom/Makefile                      |    1 +
 drivers/pinctrl/qcom/pinctrl-molokai.c             | 1727 ++++++++++++++++++++
 4 files changed, 1867 insertions(+)
---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20261116-molokai-tlmm-ba0ee416e513

Best regards,
--  
Venkat Yadlapati <venkat.yadlapati@yahoo.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-27  9:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 16:51 [PATCH v5 0/2] pinctrl: qcom: Add the Molokai TLMM Venkat Yadlapati via B4 Relay
2026-11-26 16:51 ` [PATCH v5 1/2] dt-bindings: pinctrl: qcom: Add " Venkat Yadlapati via B4 Relay
2026-11-26 16:51 ` [PATCH v5 2/2] pinctrl: qcom: Add Molokai TLMM driver Venkat Yadlapati via B4 Relay
2026-11-27  9:11   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®