18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28bab661aSEmmanuel Vadot%YAML 1.2 38bab661aSEmmanuel Vadot--- 48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,sdm845-pinctrl.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: Qualcomm SDM845 TLMM pin controller 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Bjorn Andersson <andersson@kernel.org> 118bab661aSEmmanuel Vadot - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 128bab661aSEmmanuel Vadot 138bab661aSEmmanuel Vadotdescription: 148bab661aSEmmanuel Vadot Top Level Mode Multiplexer pin controller in Qualcomm SDM845 SoC. 158bab661aSEmmanuel Vadot 168bab661aSEmmanuel VadotallOf: 178bab661aSEmmanuel Vadot - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# 188bab661aSEmmanuel Vadot 198bab661aSEmmanuel Vadotproperties: 208bab661aSEmmanuel Vadot compatible: 218bab661aSEmmanuel Vadot const: qcom,sdm845-pinctrl 228bab661aSEmmanuel Vadot 238bab661aSEmmanuel Vadot reg: 248bab661aSEmmanuel Vadot maxItems: 1 258bab661aSEmmanuel Vadot 26cb7aa33aSEmmanuel Vadot interrupts: 27cb7aa33aSEmmanuel Vadot maxItems: 1 28cb7aa33aSEmmanuel Vadot 298bab661aSEmmanuel Vadot gpio-reserved-ranges: 308bab661aSEmmanuel Vadot minItems: 1 318bab661aSEmmanuel Vadot maxItems: 75 328bab661aSEmmanuel Vadot 338bab661aSEmmanuel Vadot gpio-line-names: 348bab661aSEmmanuel Vadot maxItems: 150 358bab661aSEmmanuel Vadot 368bab661aSEmmanuel VadotpatternProperties: 378bab661aSEmmanuel Vadot "-state$": 388bab661aSEmmanuel Vadot oneOf: 398bab661aSEmmanuel Vadot - $ref: "#/$defs/qcom-sdm845-tlmm-state" 408bab661aSEmmanuel Vadot - patternProperties: 418bab661aSEmmanuel Vadot "-pins$": 428bab661aSEmmanuel Vadot $ref: "#/$defs/qcom-sdm845-tlmm-state" 438bab661aSEmmanuel Vadot additionalProperties: false 448bab661aSEmmanuel Vadot 45cb7aa33aSEmmanuel Vadot "-hog(-[0-9]+)?$": 46cb7aa33aSEmmanuel Vadot required: 47cb7aa33aSEmmanuel Vadot - gpio-hog 48cb7aa33aSEmmanuel Vadot 498bab661aSEmmanuel Vadot$defs: 508bab661aSEmmanuel Vadot qcom-sdm845-tlmm-state: 518bab661aSEmmanuel Vadot type: object 528bab661aSEmmanuel Vadot description: 538bab661aSEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 548bab661aSEmmanuel Vadot Client device subnodes use below standard properties. 558bab661aSEmmanuel Vadot $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state 56fac71e4eSEmmanuel Vadot unevaluatedProperties: false 578bab661aSEmmanuel Vadot 588bab661aSEmmanuel Vadot properties: 598bab661aSEmmanuel Vadot pins: 608bab661aSEmmanuel Vadot description: 618bab661aSEmmanuel Vadot List of gpio pins affected by the properties specified in this 628bab661aSEmmanuel Vadot subnode. 638bab661aSEmmanuel Vadot items: 648bab661aSEmmanuel Vadot oneOf: 658bab661aSEmmanuel Vadot - pattern: "^gpio([0-9]|[1-9][0-9]|1[0-4][0-9])$" 668bab661aSEmmanuel Vadot - enum: [ ufs_reset, sdc2_clk, sdc2_cmd, sdc2_data ] 678bab661aSEmmanuel Vadot minItems: 1 688bab661aSEmmanuel Vadot maxItems: 36 698bab661aSEmmanuel Vadot 708bab661aSEmmanuel Vadot function: 718bab661aSEmmanuel Vadot description: 728bab661aSEmmanuel Vadot Specify the alternative function to be configured for the specified 738bab661aSEmmanuel Vadot pins. 748bab661aSEmmanuel Vadot enum: [ adsp_ext, agera_pll, atest_char, atest_tsens, atest_tsens2, 758bab661aSEmmanuel Vadot atest_usb1, atest_usb10, atest_usb11, atest_usb12, atest_usb13, 768bab661aSEmmanuel Vadot atest_usb2, atest_usb20, atest_usb21, atest_usb22, atest_usb23, 778bab661aSEmmanuel Vadot audio_ref, btfm_slimbus, cam_mclk, cci_async, cci_i2c, 788bab661aSEmmanuel Vadot cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, 798bab661aSEmmanuel Vadot cri_trng, cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, 808bab661aSEmmanuel Vadot ddr_pxi1, ddr_pxi2, ddr_pxi3, edp_hot, edp_lcd, gcc_gp1, 818bab661aSEmmanuel Vadot gcc_gp2, gcc_gp3, gpio, jitter_bist, ldo_en, ldo_update, 828bab661aSEmmanuel Vadot lpass_slimbus, mdp_vsync, mdp_vsync0, mdp_vsync1, mdp_vsync2, 838bab661aSEmmanuel Vadot mdp_vsync3, mss_lte, m_voc, nav_pps, pa_indicator, pci_e0, 848bab661aSEmmanuel Vadot pci_e1, phase_flag, pll_bist, pll_bypassnl, pll_reset, 858bab661aSEmmanuel Vadot pri_mi2s, pri_mi2s_ws, prng_rosc, qdss, qdss_cti, qlink_enable, 868bab661aSEmmanuel Vadot qlink_request, qspi_clk, qspi_cs, qspi_data, qua_mi2s, qup0, 878bab661aSEmmanuel Vadot qup1, qup10, qup11, qup12, qup13, qup14, qup15, qup2, qup3, 888bab661aSEmmanuel Vadot qup4, qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, 898bab661aSEmmanuel Vadot sdc4_clk, sdc4_cmd, sdc4_data, sd_write, sec_mi2s, sp_cmu, 908bab661aSEmmanuel Vadot spkr_i2s, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, 918bab661aSEmmanuel Vadot tsense_pwm1, tsense_pwm2, tsif1_clk, tsif1_data, tsif1_en, 928bab661aSEmmanuel Vadot tsif1_error, tsif1_sync, tsif2_clk, tsif2_data, tsif2_en, 938bab661aSEmmanuel Vadot tsif2_error, tsif2_sync, uim1_clk, uim1_data, uim1_present, 948bab661aSEmmanuel Vadot uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, 958bab661aSEmmanuel Vadot uim_batt, usb_phy, vfr_1, vsense_trigger, wlan1_adc0, 968bab661aSEmmanuel Vadot wlan1_adc1, wlan2_adc0, wlan2_adc1] 978bab661aSEmmanuel Vadot 988bab661aSEmmanuel Vadot required: 998bab661aSEmmanuel Vadot - pins 1008bab661aSEmmanuel Vadot 1018bab661aSEmmanuel Vadotrequired: 1028bab661aSEmmanuel Vadot - compatible 1038bab661aSEmmanuel Vadot - reg 1048bab661aSEmmanuel Vadot 105*8d13bc63SEmmanuel VadotunevaluatedProperties: false 1068bab661aSEmmanuel Vadot 1078bab661aSEmmanuel Vadotexamples: 1088bab661aSEmmanuel Vadot - | 109cb7aa33aSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 1108bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1118bab661aSEmmanuel Vadot 1128bab661aSEmmanuel Vadot pinctrl@3400000 { 1138bab661aSEmmanuel Vadot compatible = "qcom,sdm845-pinctrl"; 1148bab661aSEmmanuel Vadot reg = <0x03400000 0xc00000>; 1158bab661aSEmmanuel Vadot interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1168bab661aSEmmanuel Vadot gpio-controller; 1178bab661aSEmmanuel Vadot #gpio-cells = <2>; 1188bab661aSEmmanuel Vadot interrupt-controller; 1198bab661aSEmmanuel Vadot #interrupt-cells = <2>; 1208bab661aSEmmanuel Vadot gpio-ranges = <&tlmm 0 0 151>; 1218bab661aSEmmanuel Vadot wakeup-parent = <&pdc_intc>; 1228bab661aSEmmanuel Vadot 123cb7aa33aSEmmanuel Vadot ap-suspend-l-hog { 124cb7aa33aSEmmanuel Vadot gpio-hog; 125cb7aa33aSEmmanuel Vadot gpios = <126 GPIO_ACTIVE_LOW>; 126cb7aa33aSEmmanuel Vadot output-low; 127cb7aa33aSEmmanuel Vadot }; 128cb7aa33aSEmmanuel Vadot 1298bab661aSEmmanuel Vadot cci0-default-state { 1308bab661aSEmmanuel Vadot pins = "gpio17", "gpio18"; 1318bab661aSEmmanuel Vadot function = "cci_i2c"; 1328bab661aSEmmanuel Vadot 1338bab661aSEmmanuel Vadot bias-pull-up; 1348bab661aSEmmanuel Vadot drive-strength = <2>; 1358bab661aSEmmanuel Vadot }; 1368bab661aSEmmanuel Vadot 1378bab661aSEmmanuel Vadot cam0-default-state { 1388bab661aSEmmanuel Vadot rst-pins { 1398bab661aSEmmanuel Vadot pins = "gpio9"; 1408bab661aSEmmanuel Vadot function = "gpio"; 1418bab661aSEmmanuel Vadot 1428bab661aSEmmanuel Vadot drive-strength = <16>; 1438bab661aSEmmanuel Vadot bias-disable; 1448bab661aSEmmanuel Vadot }; 1458bab661aSEmmanuel Vadot 1468bab661aSEmmanuel Vadot mclk0-pins { 1478bab661aSEmmanuel Vadot pins = "gpio13"; 1488bab661aSEmmanuel Vadot function = "cam_mclk"; 1498bab661aSEmmanuel Vadot 1508bab661aSEmmanuel Vadot drive-strength = <16>; 1518bab661aSEmmanuel Vadot bias-disable; 1528bab661aSEmmanuel Vadot }; 1538bab661aSEmmanuel Vadot }; 1548bab661aSEmmanuel Vadot }; 155