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 29*12a18bb7SKrzysztof Kozlowski interrupts: 30*12a18bb7SKrzysztof Kozlowski maxItems: 1 31*12a18bb7SKrzysztof Kozlowski 32a095c7e0SKrzysztof Kozlowski interrupt-controller: true 33a095c7e0SKrzysztof Kozlowski "#interrupt-cells": true 34a095c7e0SKrzysztof Kozlowski gpio-controller: true 35a095c7e0SKrzysztof Kozlowski "#gpio-cells": true 36a095c7e0SKrzysztof Kozlowski gpio-ranges: true 37a095c7e0SKrzysztof Kozlowski gpio-reserved-ranges: true 38a095c7e0SKrzysztof Kozlowski wakeup-parent: true 39a095c7e0SKrzysztof Kozlowski 40a095c7e0SKrzysztof KozlowskipatternProperties: 41a095c7e0SKrzysztof Kozlowski "-state$": 42a095c7e0SKrzysztof Kozlowski oneOf: 43a095c7e0SKrzysztof Kozlowski - $ref: "#/$defs/qcom-sm6115-tlmm-state" 44a095c7e0SKrzysztof Kozlowski - patternProperties: 45a095c7e0SKrzysztof Kozlowski "-pins$": 46a095c7e0SKrzysztof Kozlowski $ref: "#/$defs/qcom-sm6115-tlmm-state" 47a095c7e0SKrzysztof Kozlowski additionalProperties: false 48a095c7e0SKrzysztof Kozlowski 49a095c7e0SKrzysztof Kozlowski$defs: 50a095c7e0SKrzysztof Kozlowski qcom-sm6115-tlmm-state: 51a095c7e0SKrzysztof Kozlowski type: object 52a095c7e0SKrzysztof Kozlowski description: 53a095c7e0SKrzysztof Kozlowski Pinctrl node's client devices use subnodes for desired pin configuration. 54a095c7e0SKrzysztof Kozlowski Client device subnodes use below standard properties. 55a095c7e0SKrzysztof Kozlowski $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 56a095c7e0SKrzysztof Kozlowski 57a095c7e0SKrzysztof Kozlowski properties: 58a095c7e0SKrzysztof Kozlowski pins: 59a095c7e0SKrzysztof Kozlowski description: 60a095c7e0SKrzysztof Kozlowski List of gpio pins affected by the properties specified in this 61a095c7e0SKrzysztof Kozlowski subnode. 62a095c7e0SKrzysztof Kozlowski items: 63a095c7e0SKrzysztof Kozlowski oneOf: 64a095c7e0SKrzysztof Kozlowski - pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$" 65a095c7e0SKrzysztof Kozlowski - enum: [ sdc1_rclk, sdc1_clk, sdc1_cmd, sdc1_data, 66a095c7e0SKrzysztof Kozlowski sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ] 67a095c7e0SKrzysztof Kozlowski minItems: 1 68a095c7e0SKrzysztof Kozlowski maxItems: 36 69a095c7e0SKrzysztof Kozlowski 70a095c7e0SKrzysztof Kozlowski function: 71a095c7e0SKrzysztof Kozlowski description: 72a095c7e0SKrzysztof Kozlowski Specify the alternative function to be configured for the specified 73a095c7e0SKrzysztof Kozlowski pins. 74a095c7e0SKrzysztof Kozlowski 75a095c7e0SKrzysztof Kozlowski enum: [ adsp_ext, agera_pll, atest, cam_mclk, cci_async, cci_i2c, 76a095c7e0SKrzysztof Kozlowski cci_timer, cri_trng, dac_calib, dbg_out, ddr_bist, ddr_pxi0, 77a095c7e0SKrzysztof Kozlowski ddr_pxi1, ddr_pxi2, ddr_pxi3, gcc_gp1, gcc_gp2, gcc_gp3, gpio, 78a095c7e0SKrzysztof Kozlowski gp_pdm0, gp_pdm1, gp_pdm2, gsm0_tx, gsm1_tx, jitter_bist, 79a095c7e0SKrzysztof Kozlowski mdp_vsync, mdp_vsync_out_0, mdp_vsync_out_1, mpm_pwr, mss_lte, 80a095c7e0SKrzysztof Kozlowski m_voc, nav_gpio, pa_indicator, pbs, pbs_out, phase_flag, 81a095c7e0SKrzysztof Kozlowski pll_bist, pll_bypassnl, pll_reset, prng_rosc, qdss_cti, 82a095c7e0SKrzysztof Kozlowski qdss_gpio, qup0, qup1, qup2, qup3, qup4, qup5, sdc1_tb, 83a095c7e0SKrzysztof Kozlowski sdc2_tb, sd_write, ssbi_wtr1, tgu, tsense_pwm, uim1_clk, 84a095c7e0SKrzysztof Kozlowski uim1_data, uim1_present, uim1_reset, uim2_clk, uim2_data, 85a095c7e0SKrzysztof Kozlowski uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger, 86a095c7e0SKrzysztof Kozlowski wlan1_adc0, elan1_adc1 ] 87a095c7e0SKrzysztof Kozlowski 88a095c7e0SKrzysztof Kozlowski bias-pull-down: true 89a095c7e0SKrzysztof Kozlowski bias-pull-up: true 90a095c7e0SKrzysztof Kozlowski bias-disable: true 91a095c7e0SKrzysztof Kozlowski drive-strength: true 92a095c7e0SKrzysztof Kozlowski output-high: true 93a095c7e0SKrzysztof Kozlowski output-low: true 94a095c7e0SKrzysztof Kozlowski 95a095c7e0SKrzysztof Kozlowski required: 96a095c7e0SKrzysztof Kozlowski - pins 97a095c7e0SKrzysztof Kozlowski 98a095c7e0SKrzysztof Kozlowski additionalProperties: false 99a095c7e0SKrzysztof Kozlowski 100a095c7e0SKrzysztof KozlowskiallOf: 101a095c7e0SKrzysztof Kozlowski - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 102a095c7e0SKrzysztof Kozlowski 103a095c7e0SKrzysztof Kozlowskirequired: 104a095c7e0SKrzysztof Kozlowski - compatible 105a095c7e0SKrzysztof Kozlowski - reg 106a095c7e0SKrzysztof Kozlowski - reg-names 107a095c7e0SKrzysztof Kozlowski 108a095c7e0SKrzysztof KozlowskiadditionalProperties: false 109a095c7e0SKrzysztof Kozlowski 110a095c7e0SKrzysztof Kozlowskiexamples: 111a095c7e0SKrzysztof Kozlowski - | 112a095c7e0SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/arm-gic.h> 113a095c7e0SKrzysztof Kozlowski tlmm: pinctrl@500000 { 114a095c7e0SKrzysztof Kozlowski compatible = "qcom,sm6115-tlmm"; 115a095c7e0SKrzysztof Kozlowski reg = <0x500000 0x400000>, 116a095c7e0SKrzysztof Kozlowski <0x900000 0x400000>, 117a095c7e0SKrzysztof Kozlowski <0xd00000 0x400000>; 118a095c7e0SKrzysztof Kozlowski reg-names = "west", "south", "east"; 119a095c7e0SKrzysztof Kozlowski interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>; 120a095c7e0SKrzysztof Kozlowski gpio-controller; 121a095c7e0SKrzysztof Kozlowski #gpio-cells = <2>; 122a095c7e0SKrzysztof Kozlowski interrupt-controller; 123a095c7e0SKrzysztof Kozlowski #interrupt-cells = <2>; 124a095c7e0SKrzysztof Kozlowski gpio-ranges = <&tlmm 0 0 114>; 125a095c7e0SKrzysztof Kozlowski 126a095c7e0SKrzysztof Kozlowski sdc2_on_state: sdc2-on-state { 127a095c7e0SKrzysztof Kozlowski clk-pins { 128a095c7e0SKrzysztof Kozlowski pins = "sdc2_clk"; 129a095c7e0SKrzysztof Kozlowski bias-disable; 130a095c7e0SKrzysztof Kozlowski drive-strength = <16>; 131a095c7e0SKrzysztof Kozlowski }; 132a095c7e0SKrzysztof Kozlowski 133a095c7e0SKrzysztof Kozlowski cmd-pins { 134a095c7e0SKrzysztof Kozlowski pins = "sdc2_cmd"; 135a095c7e0SKrzysztof Kozlowski bias-pull-up; 136a095c7e0SKrzysztof Kozlowski drive-strength = <10>; 137a095c7e0SKrzysztof Kozlowski }; 138a095c7e0SKrzysztof Kozlowski 139a095c7e0SKrzysztof Kozlowski data-pins { 140a095c7e0SKrzysztof Kozlowski pins = "sdc2_data"; 141a095c7e0SKrzysztof Kozlowski bias-pull-up; 142a095c7e0SKrzysztof Kozlowski drive-strength = <10>; 143a095c7e0SKrzysztof Kozlowski }; 144a095c7e0SKrzysztof Kozlowski 145a095c7e0SKrzysztof Kozlowski sd-cd-pins { 146a095c7e0SKrzysztof Kozlowski pins = "gpio88"; 147a095c7e0SKrzysztof Kozlowski function = "gpio"; 148a095c7e0SKrzysztof Kozlowski bias-pull-up; 149a095c7e0SKrzysztof Kozlowski drive-strength = <2>; 150a095c7e0SKrzysztof Kozlowski }; 151a095c7e0SKrzysztof Kozlowski }; 152a095c7e0SKrzysztof Kozlowski }; 153