pinctrl: qcom: Add Seca TLMM support
Subsystems (6)
cover pinctrl: qcom: Add Seca TLMM support
Add the TLMM pin controller binding and driver for the Qualcomm Seca automotive SoC.
This series was prepared with help from an AI coding assistant (Claude). It assisted with review on the device tree, bindings and driver (formatting and alignment fixes), rewording commit messages, and running the validation steps (checkpatch, dt_binding_check, dtbs_check and W=1 builds). All changes were reviewed and tested on the Seca Ride board.
Yadu M G (2):
dt-bindings: pinctrl: qcom: Add Seca TLMM bindings
pinctrl: qcom: Add seca pinctrl driver
.../bindings/pinctrl/qcom,seca-tlmm.yaml | 135 ++ drivers/pinctrl/qcom/Kconfig.msm | 11 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-seca.c | 1705 +++++++++++++++++ 4 files changed, 1852 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,seca-tlmm.yaml create mode 100644 drivers/pinctrl/qcom/pinctrl-seca.c
base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5
Signature · 1 line
2.43.0
PATCH 1/2 dt-bindings: pinctrl: qcom: Add Seca TLMM bindings
Add device tree bindings for TLMM pin controller found in Qualcomm Seca SoC.
--- .../bindings/pinctrl/qcom,seca-tlmm.yaml | 135 ++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,seca-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/qcom,seca-tlmm.yaml new file +135 -0
@@ -0,0 +1,135 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,seca-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. Seca TLMM block + +maintainers: + - Yadu M G <[email protected]> + +description: + Top Level Mode Multiplexer pin controller in Qualcomm Seca SoC. + +allOf: + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# + +properties: + compatible: + const: qcom,seca-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + gpio-reserved-ranges: + minItems: 1 + maxItems: 90 + + gpio-line-names: + maxItems: 181 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-seca-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-seca-tlmm-state" + additionalProperties: false + +$defs: + qcom-seca-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + oneOf: + - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9]|180)$" + - enum: [ ufs_reset ] + minItems: 1 + maxItems: 16 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ gpio, aoss_cti, atest_char, atest_usb20, atest_usb21, + aud_intfc0_clk, aud_intfc0_data, aud_intfc0_ws, aud_intfc10_clk, + aud_intfc10_data, aud_intfc10_ws, aud_intfc1_clk, + aud_intfc1_data, aud_intfc1_ws, aud_intfc2_clk, aud_intfc2_data, + aud_intfc2_ws, aud_intfc3_clk, aud_intfc3_data, aud_intfc3_ws, + aud_intfc4_clk, aud_intfc4_data, aud_intfc4_ws, aud_intfc5_clk, + aud_intfc5_data, aud_intfc5_ws, aud_intfc6_clk, aud_intfc6_data, + aud_intfc6_ws, aud_intfc7_clk, aud_intfc7_data, aud_intfc7_ws, + aud_intfc8_clk, aud_intfc8_data, aud_intfc8_ws, aud_intfc9_clk, + aud_intfc9_data, aud_intfc9_ws, aud_mclk0_mira, aud_mclk0_mirb, + aud_mclk1_mira, aud_mclk1_mirb, aud_mclk2_mira, aud_mclk2_mirb, + aud_refclk0, aud_refclk1, bist_done, ccu_async_in, ccu_i2c_scl, + ccu_i2c_sda, ccu_timer, dbg_out, dbg_out_clk, ddr_bist_complete, + ddr_bist_fail, ddr_bist_start, ddr_bist_stop, ddr_pxi, dp_rx0, + dp_rx00, dp_rx01, dp_rx0_mute, edp0_hot, edp0_lcd, edp1_hot, + edp1_lcd, edp2_hot, edp2_lcd, emac0_mcg, emac0_mdc, emac0_mdio, + emac0_ptp, emac1_mcg, emac1_mdc, emac1_mdio, emac1_ptp, + gcc_gp1_clk, gcc_gp2_clk, gcc_gp3_clk, gcc_gp4_clk, gcc_gp5_clk, + gcc_gp6_clk, gcc_gp7_clk, gcc_gp8_clk, jitter_bist, lbist_pass, + mbist_pass, mdp0_vsync_out, mdp1_vsync_out, mdp_vsync_e, + mdp_vsync_p, mdp_vsync_s, pcie0_clk_req_n, pcie1_clk_req_n, + pcie2_clk_req_n, pcie3_clk_req_n, phase_flag, pll_bist_sync, + pll_clk_aux, prng_rosc0, prng_rosc1, pwrbrk_i_n, qdss, qdss_cti, + qspi, qup0_se0, qup0_se1, qup0_se2, qup0_se3, qup0_se4, + qup0_se5, qup1_se0, qup1_se1, qup1_se2_01, qup1_se2_23, + qup1_se3_01, qup1_se3_23, qup1_se4, qup1_se5, qup1_se6, + qup2_se0, qup2_se1, qup2_se2, qup2_se3, qup2_se4, qup2_se5, + qup2_se6, qup3_se0_mira, qup3_se0_mirb, sailss_ospi, sdc4, + sdc4_clk, sdc4_cmd, smb_alert, smb_alert_n, smb_clk, smb_dat, + tb_trig_sdc4, tmess_prng0, tmess_prng1, tsc_timer, tsense_clm, + tsense_pwm, usb0_hs, usb0_phy_ps, usb1_hs, usb1_phy_ps, usb2_hs, + usxgmii0_phy, usxgmii1_phy, vsense_trigger_mirnat, wcn_sw, + wcn_sw_ctrl ] + + required: + - pins + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + + tlmm: pinctrl@f100000 { + compatible = "qcom,seca-tlmm"; + reg = <0x0f100000 0xc0000>; + interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 181>; + wakeup-parent = <&pdc>; + + qup_uart15_default: qup-uart15-default-state { + pins = "gpio147", "gpio148"; + function = "qup2_se2"; + drive-strength = <2>; + bias-disable; + }; + }; +...
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add Seca TLMM bindings
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: pinctrl: qcom: redundant word bindings in commit subject --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: pinctrl: qcom: redundant word bindings in commit subject
--
commit 5a47c8885c12a8f81d5c670407ee64752fc387c1
Author: Yadu M G <[email protected]>
dt-bindings: pinctrl: qcom: Add Seca TLMM bindings
This commit adds the Device Tree binding schema for the Top Level Mode Multiplexer (TLMM) pin controller on the Qualcomm Seca SoC.
Quoted 1 line
dt-bindings: pinctrl: qcom: Add Seca TLMM bindings
[Severity: Low]
This isn't a bug, but the word "bindings" in the commit subject is redundant with the "dt-bindings:" prefix and can be dropped (for example, "dt-bindings: pinctrl: qcom: Add Seca TLMM").
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH 2/2 pinctrl: qcom: Add seca pinctrl driver
In reply to Yadu M GAdd TLMM pinctrl driver to support pin configuration with pinctrl framework for Seca SoC.
--- drivers/pinctrl/qcom/Kconfig.msm | 11 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-seca.c | 1705 +++++++++++++++++++++++++++ 3 files changed, 1717 insertions(+) create mode 100644 drivers/pinctrl/qcom/pinctrl-seca.c
drivers/pinctrl/qcom/Kconfig.msm +11 -0
@@ -461,6 +461,17 @@ config PINCTRL_SDX75 Qualcomm Technologies Inc TLMM block found on the Qualcomm Technologies Inc SDX75 platform. +config PINCTRL_SECA + tristate "Qualcomm Seca pin controller driver" + depends on ARM64 || COMPILE_TEST + default ARCH_QCOM + help + This is the pinctrl, pinmux, pinconf and gpiolib driver for the + Qualcomm Technologies Inc Top Level Mode Multiplexer block (TLMM) + found on the Qualcomm Technologies Inc Seca platform. + Say Y here to compile statically, or M here to compile it as a module. + If unsure, say N. + config PINCTRL_SHIKRA tristate "Qualcomm Shikra pin controller driver" depends on ARM64 || COMPILE_TEST
drivers/pinctrl/qcom/Makefile +1 -0
@@ -63,6 +63,7 @@ obj-$(CONFIG_PINCTRL_SDM845) += pinctrl-sdm845.o obj-$(CONFIG_PINCTRL_SDX55) += pinctrl-sdx55.o obj-$(CONFIG_PINCTRL_SDX65) += pinctrl-sdx65.o obj-$(CONFIG_PINCTRL_SDX75) += pinctrl-sdx75.o +obj-$(CONFIG_PINCTRL_SECA) += pinctrl-seca.o obj-$(CONFIG_PINCTRL_SHIKRA) += pinctrl-shikra.o obj-$(CONFIG_PINCTRL_SM4250_LPASS_LPI) += pinctrl-sm4250-lpass-lpi.o obj-$(CONFIG_PINCTRL_SM4450) += pinctrl-sm4450.o
drivers/pinctrl/qcom/pinctrl-seca.c new file +1705 -0
1,705 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 2 lines · Yadu M G
Add the TLMM pin controller binding and driver for the Qualcomm Seca automotive SoC.
Where is the introduction of Seca ? what is Seca..?
Quoted 25 lines
This series was prepared with help from an AI coding assistant (Claude). It assisted with review on the device tree, bindings and driver (formatting and alignment fixes), rewording commit messages, and running the validation steps (checkpatch,
dt_binding_check,dtbs_checkand W=1 builds). All changes were reviewed and tested on the Seca Ride board.Yadu M G (2):
dt-bindings: pinctrl: qcom: Add Seca TLMM bindings
pinctrl: qcom: Add seca pinctrl driver.../bindings/pinctrl/qcom,seca-tlmm.yaml | 135 ++ drivers/pinctrl/qcom/Kconfig.msm | 11 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-seca.c | 1705 +++++++++++++++++ 4 files changed, 1852 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,seca-tlmm.yaml create mode 100644 drivers/pinctrl/qcom/pinctrl-seca.cbase-commit:
3191063649dbf7c0d0b768e1f3655e4c5fc6edb5Signature · 1 line
2.43.0
Signature · 1 line
-Mukesh Ojha