~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/pinctrl/qcom,sdx75-tlmm.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/pinctrl/qcom,sdx75-tlmm.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Qualcomm Technologies, Inc. SDX75 TLMM block
  8 
  9 maintainers:
 10   - Rohit Agarwal <quic_rohiagar@quicinc.com>
 11 
 12 description:
 13   Top Level Mode Multiplexer pin controller in Qualcomm SDX75 SoC.
 14 
 15 allOf:
 16   - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
 17 
 18 properties:
 19   compatible:
 20     const: qcom,sdx75-tlmm
 21 
 22   reg:
 23     maxItems: 1
 24 
 25   interrupts:
 26     maxItems: 1
 27 
 28   gpio-reserved-ranges:
 29     minItems: 1
 30     maxItems: 67
 31 
 32   gpio-line-names:
 33     maxItems: 133
 34 
 35 patternProperties:
 36   "-state$":
 37     oneOf:
 38       - $ref: "#/$defs/qcom-sdx75-tlmm-state"
 39       - patternProperties:
 40           "-pins$":
 41             $ref: "#/$defs/qcom-sdx75-tlmm-state"
 42         additionalProperties: false
 43 
 44 $defs:
 45   qcom-sdx75-tlmm-state:
 46     type: object
 47     description:
 48       Pinctrl node's client devices use subnodes for desired pin configuration.
 49       Client device subnodes use below standard properties.
 50     $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
 51     unevaluatedProperties: false
 52 
 53     properties:
 54       pins:
 55         description:
 56           List of gpio pins affected by the properties specified in this
 57           subnode.
 58         items:
 59           oneOf:
 60             - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-2][0-9]|13[0-2])$"
 61             - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc1_rclk, sdc2_clk, sdc2_cmd, sdc2_data ]
 62         minItems: 1
 63         maxItems: 36
 64 
 65       function:
 66         description:
 67           Specify the alternative function to be configured for the specified
 68           pins.
 69         enum: [ adsp_ext, atest_char, audio_ref_clk, bimc_dte, char_exec, coex_uart2,
 70                 coex_uart, cri_trng, cri_trng0, cri_trng1, dbg_out_clk, ddr_bist,
 71                 ddr_pxi0, ebi0_wrcdc, ebi2_a, ebi2_lcd, ebi2_lcd_te, emac0_mcg,
 72                 emac0_ptp, emac1_mcg, emac1_ptp, emac_cdc, emac_pps_in, eth0_mdc,
 73                 eth0_mdio, eth1_mdc, eth1_mdio, ext_dbg, gcc_125_clk, gcc_gp1_clk,
 74                 gcc_gp2_clk, gcc_gp3_clk, gcc_plltest, gpio, i2s_mclk, jitter_bist,
 75                 ldo_en, ldo_update, m_voc, mgpi_clk, native_char, native_tsens,
 76                 native_tsense, nav_dr_sync, nav_gpio, pa_indicator, pci_e,
 77                 pcie0_clkreq_n, pcie1_clkreq_n, pcie2_clkreq_n, pll_bist_sync,
 78                 pll_clk_aux, pll_ref_clk, pri_mi2s, prng_rosc, qdss_cti, qdss_gpio,
 79                 qlink0_b_en, qlink0_b_req, qlink0_l_en, qlink0_l_req, qlink0_wmss,
 80                 qlink1_l_en, qlink1_l_req, qlink1_wmss, qup_se0, qup_se1_l2_mira,
 81                 qup_se1_l2_mirb, qup_se1_l3_mira, qup_se1_l3_mirb, qup_se2, qup_se3,
 82                 qup_se4, qup_se5, qup_se6, qup_se7, qup_se8, rgmii_rx_ctl, rgmii_rxc,
 83                 rgmii_rxd, rgmii_tx_ctl, rgmii_txc, rgmii_txd, sd_card, sdc1_tb,
 84                 sdc2_tb_trig, sec_mi2s, sgmii_phy_intr0_n, sgmii_phy_intr1_n,
 85                 spmi_coex, spmi_vgi, tgu_ch0_trigout, tmess_prng0, tmess_prng1,
 86                 tmess_prng2, tmess_prng3, tri_mi2s, uim1_clk, uim1_data, uim1_present,
 87                 uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset,
 88                 usb2phy_ac_en, vsense_trigger_mirnat]
 89 
 90     required:
 91       - pins
 92 
 93 required:
 94   - compatible
 95   - reg
 96 
 97 unevaluatedProperties: false
 98 
 99 examples:
100   - |
101     #include <dt-bindings/interrupt-controller/arm-gic.h>
102     tlmm: pinctrl@f100000 {
103         compatible = "qcom,sdx75-tlmm";
104         reg = <0x0f100000 0x300000>;
105         gpio-controller;
106         #gpio-cells = <2>;
107         gpio-ranges = <&tlmm 0 0 133>;
108         interrupt-controller;
109         #interrupt-cells = <2>;
110         interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
111 
112         gpio-wo-state {
113             pins = "gpio1";
114             function = "gpio";
115         };
116 
117         uart-w-state {
118             rx-pins {
119                 pins = "gpio12";
120                 function = "qup_se1_l2_mira";
121                 bias-disable;
122             };
123 
124             tx-pins {
125                 pins = "gpio13";
126                 function = "qup_se1_l3_mira";
127                 bias-disable;
128             };
129         };
130     };
131 ...

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php