1a095c7e0SKrzysztof Kozlowski# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2a095c7e0SKrzysztof Kozlowski%YAML 1.2 3a095c7e0SKrzysztof Kozlowski--- 4a095c7e0SKrzysztof Kozlowski$id: http://devicetree.org/schemas/pinctrl/qcom,sm6115-tlmm.yaml# 5a095c7e0SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 6a095c7e0SKrzysztof Kozlowski 7a095c7e0SKrzysztof Kozlowskititle: Qualcomm Technologies, Inc. SM6115, SM4250 TLMM block 8a095c7e0SKrzysztof Kozlowski 9a095c7e0SKrzysztof Kozlowskimaintainers: 10a095c7e0SKrzysztof Kozlowski - Iskren Chernev <iskren.chernev@gmail.com> 11a095c7e0SKrzysztof Kozlowski 12a095c7e0SKrzysztof Kozlowskidescription: 13a095c7e0SKrzysztof Kozlowski Top Level Mode Multiplexer pin controller in Qualcomm SM4250 and SM6115 14a095c7e0SKrzysztof Kozlowski SoCs. 15a095c7e0SKrzysztof Kozlowski 16a095c7e0SKrzysztof Kozlowskiproperties: 17a095c7e0SKrzysztof Kozlowski compatible: 18a095c7e0SKrzysztof Kozlowski const: qcom,sm6115-tlmm 19a095c7e0SKrzysztof Kozlowski 20a095c7e0SKrzysztof Kozlowski reg: 21a095c7e0SKrzysztof Kozlowski maxItems: 3 22a095c7e0SKrzysztof Kozlowski 23a095c7e0SKrzysztof Kozlowski reg-names: 24a095c7e0SKrzysztof Kozlowski items: 25a095c7e0SKrzysztof Kozlowski - const: west 26a095c7e0SKrzysztof Kozlowski - const: south 27a095c7e0SKrzysztof Kozlowski - const: east 28a095c7e0SKrzysztof Kozlowski 2912a18bb7SKrzysztof Kozlowski interrupts: 3012a18bb7SKrzysztof Kozlowski maxItems: 1 3112a18bb7SKrzysztof Kozlowski 32a095c7e0SKrzysztof Kozlowski gpio-reserved-ranges: true 33a095c7e0SKrzysztof Kozlowski 34a095c7e0SKrzysztof KozlowskipatternProperties: 35a095c7e0SKrzysztof Kozlowski "-state$": 36a095c7e0SKrzysztof Kozlowski oneOf: 37a095c7e0SKrzysztof Kozlowski - $ref: "#/$defs/qcom-sm6115-tlmm-state" 38a095c7e0SKrzysztof Kozlowski - patternProperties: 39a095c7e0SKrzysztof Kozlowski "-pins$": 40a095c7e0SKrzysztof Kozlowski $ref: "#/$defs/qcom-sm6115-tlmm-state" 41a095c7e0SKrzysztof Kozlowski additionalProperties: false 42a095c7e0SKrzysztof Kozlowski 43a095c7e0SKrzysztof Kozlowski$defs: 44a095c7e0SKrzysztof Kozlowski qcom-sm6115-tlmm-state: 45a095c7e0SKrzysztof Kozlowski type: object 46a095c7e0SKrzysztof Kozlowski description: 47a095c7e0SKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 48a095c7e0SKrzysztof Kozlowski Client device subnodes use below standard properties. 49a095c7e0SKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 505c470d4eSKrzysztof Kozlowski unevaluatedProperties: false 51a095c7e0SKrzysztof Kozlowski 52a095c7e0SKrzysztof Kozlowski properties: 53a095c7e0SKrzysztof Kozlowski pins: 54a095c7e0SKrzysztof Kozlowski description: 55a095c7e0SKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 56a095c7e0SKrzysztof Kozlowski subnode. 57a095c7e0SKrzysztof Kozlowski items: 58a095c7e0SKrzysztof Kozlowski oneOf: 59a095c7e0SKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$" 60a095c7e0SKrzysztof Kozlowski - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, 61a095c7e0SKrzysztof Kozlowski sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] 62a095c7e0SKrzysztof Kozlowski minItems: 1 63a095c7e0SKrzysztof Kozlowski maxItems: 36 64a095c7e0SKrzysztof Kozlowski 65a095c7e0SKrzysztof Kozlowski function: 66a095c7e0SKrzysztof Kozlowski description: 67a095c7e0SKrzysztof Kozlowski Specify the alternative function to be configured for the specified 68a095c7e0SKrzysztof Kozlowski pins. 69a095c7e0SKrzysztof Kozlowski 70a095c7e0SKrzysztof Kozlowski enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c, 71a095c7e0SKrzysztof Kozlowski cci_timer, cri_trng, dac_calib, dbg_out, ddr_bist, ddr_pxi0, 72a095c7e0SKrzysztof Kozlowski ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2, gcc_gp3, gpio, 73a095c7e0SKrzysztof Kozlowski gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx, jitter_bist, 74a095c7e0SKrzysztof Kozlowski mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1, mpm_pwr, mss_lte, 75a095c7e0SKrzysztof Kozlowski m_voc, nav_gpio, pa_indicator, pbs, pbs_out, phase_flag, 76a095c7e0SKrzysztof Kozlowski pll_bist, pll_bypassnl, pll_reset, prng_rosc, qdss_cti, 77a095c7e0SKrzysztof Kozlowski qdss_gpio, qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, 78a095c7e0SKrzysztof Kozlowski sdc2_tb, sd_write, ssbi_wtr1, tgu, tsense_pwm, uim1_clk, 79a095c7e0SKrzysztof Kozlowski uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data, 80a095c7e0SKrzysztof Kozlowski uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger, 81a095c7e0SKrzysztof Kozlowski wlan1_adc0, elan1_adc1 ] 82a095c7e0SKrzysztof Kozlowski 83a095c7e0SKrzysztof Kozlowski required: 84a095c7e0SKrzysztof Kozlowski - pins 85a095c7e0SKrzysztof Kozlowski 86a095c7e0SKrzysztof KozlowskiallOf: 87a095c7e0SKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 88a095c7e0SKrzysztof Kozlowski 89a095c7e0SKrzysztof Kozlowskirequired: 90a095c7e0SKrzysztof Kozlowski - compatible 91a095c7e0SKrzysztof Kozlowski - reg 92a095c7e0SKrzysztof Kozlowski - reg-names 93a095c7e0SKrzysztof Kozlowski 94*79d770afSKrzysztof KozlowskiunevaluatedProperties: false 95a095c7e0SKrzysztof Kozlowski 96a095c7e0SKrzysztof Kozlowskiexamples: 97a095c7e0SKrzysztof Kozlowski - | 98a095c7e0SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 99a095c7e0SKrzysztof Kozlowski tlmm: pinctrl@500000 { 100a095c7e0SKrzysztof Kozlowski compatible = "qcom,sm6115-tlmm"; 101a095c7e0SKrzysztof Kozlowski reg = <0x500000 0x400000>, 102a095c7e0SKrzysztof Kozlowski <0x900000 0x400000>, 103a095c7e0SKrzysztof Kozlowski <0xd00000 0x400000>; 104a095c7e0SKrzysztof Kozlowski reg-names = "west", "south", "east"; 105a095c7e0SKrzysztof Kozlowski interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>; 106a095c7e0SKrzysztof Kozlowski gpio-controller; 107a095c7e0SKrzysztof Kozlowski #gpio-cells = <2>; 108a095c7e0SKrzysztof Kozlowski interrupt-controller; 109a095c7e0SKrzysztof Kozlowski #interrupt-cells = <2>; 110a095c7e0SKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 114>; 111a095c7e0SKrzysztof Kozlowski 112a095c7e0SKrzysztof Kozlowski sdc2_on_state: sdc2-on-state { 113a095c7e0SKrzysztof Kozlowski clk-pins { 114a095c7e0SKrzysztof Kozlowski pins = "sdc2_clk"; 115a095c7e0SKrzysztof Kozlowski bias-disable; 116a095c7e0SKrzysztof Kozlowski drive-strength = <16>; 117a095c7e0SKrzysztof Kozlowski }; 118a095c7e0SKrzysztof Kozlowski 119a095c7e0SKrzysztof Kozlowski cmd-pins { 120a095c7e0SKrzysztof Kozlowski pins = "sdc2_cmd"; 121a095c7e0SKrzysztof Kozlowski bias-pull-up; 122a095c7e0SKrzysztof Kozlowski drive-strength = <10>; 123a095c7e0SKrzysztof Kozlowski }; 124a095c7e0SKrzysztof Kozlowski 125a095c7e0SKrzysztof Kozlowski data-pins { 126a095c7e0SKrzysztof Kozlowski pins = "sdc2_data"; 127a095c7e0SKrzysztof Kozlowski bias-pull-up; 128a095c7e0SKrzysztof Kozlowski drive-strength = <10>; 129a095c7e0SKrzysztof Kozlowski }; 130a095c7e0SKrzysztof Kozlowski 131a095c7e0SKrzysztof Kozlowski sd-cd-pins { 132a095c7e0SKrzysztof Kozlowski pins = "gpio88"; 133a095c7e0SKrzysztof Kozlowski function = "gpio"; 134a095c7e0SKrzysztof Kozlowski bias-pull-up; 135a095c7e0SKrzysztof Kozlowski drive-strength = <2>; 136a095c7e0SKrzysztof Kozlowski }; 137a095c7e0SKrzysztof Kozlowski }; 138a095c7e0SKrzysztof Kozlowski }; 139