1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2354d7675SEmmanuel Vadot%YAML 1.2 3354d7675SEmmanuel Vadot--- 4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/qcom,pmic-gpio.yaml# 5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6354d7675SEmmanuel Vadot 7354d7675SEmmanuel Vadottitle: Qualcomm PMIC GPIO block 8354d7675SEmmanuel Vadot 9354d7675SEmmanuel Vadotmaintainers: 10354d7675SEmmanuel Vadot - Bjorn Andersson <bjorn.andersson@linaro.org> 11354d7675SEmmanuel Vadot 12354d7675SEmmanuel Vadotdescription: 13354d7675SEmmanuel Vadot This binding describes the GPIO block(s) found in the 8xxx series of 14354d7675SEmmanuel Vadot PMIC's from Qualcomm. 15354d7675SEmmanuel Vadot 16354d7675SEmmanuel Vadotproperties: 17354d7675SEmmanuel Vadot compatible: 18354d7675SEmmanuel Vadot items: 19354d7675SEmmanuel Vadot - enum: 20e67e8565SEmmanuel Vadot - qcom,pm2250-gpio 21354d7675SEmmanuel Vadot - qcom,pm660-gpio 22354d7675SEmmanuel Vadot - qcom,pm660l-gpio 23d5b0e70fSEmmanuel Vadot - qcom,pm6125-gpio 24354d7675SEmmanuel Vadot - qcom,pm6150-gpio 25354d7675SEmmanuel Vadot - qcom,pm6150l-gpio 268cc087a1SEmmanuel Vadot - qcom,pm6350-gpio 277ef62cebSEmmanuel Vadot - qcom,pm7250b-gpio 28354d7675SEmmanuel Vadot - qcom,pm7325-gpio 29*aa1a8ff2SEmmanuel Vadot - qcom,pm7550ba-gpio 30354d7675SEmmanuel Vadot - qcom,pm8005-gpio 31354d7675SEmmanuel Vadot - qcom,pm8008-gpio 32354d7675SEmmanuel Vadot - qcom,pm8018-gpio 33e67e8565SEmmanuel Vadot - qcom,pm8019-gpio 34354d7675SEmmanuel Vadot - qcom,pm8038-gpio 35354d7675SEmmanuel Vadot - qcom,pm8058-gpio 36354d7675SEmmanuel Vadot - qcom,pm8150-gpio 37354d7675SEmmanuel Vadot - qcom,pm8150b-gpio 38d5b0e70fSEmmanuel Vadot - qcom,pm8150l-gpio 39e67e8565SEmmanuel Vadot - qcom,pm8226-gpio 40354d7675SEmmanuel Vadot - qcom,pm8350-gpio 41354d7675SEmmanuel Vadot - qcom,pm8350b-gpio 42354d7675SEmmanuel Vadot - qcom,pm8350c-gpio 43c9ccf3a3SEmmanuel Vadot - qcom,pm8450-gpio 44cb7aa33aSEmmanuel Vadot - qcom,pm8550-gpio 45cb7aa33aSEmmanuel Vadot - qcom,pm8550b-gpio 46cb7aa33aSEmmanuel Vadot - qcom,pm8550ve-gpio 47cb7aa33aSEmmanuel Vadot - qcom,pm8550vs-gpio 48354d7675SEmmanuel Vadot - qcom,pm8916-gpio 49354d7675SEmmanuel Vadot - qcom,pm8917-gpio 50354d7675SEmmanuel Vadot - qcom,pm8921-gpio 51354d7675SEmmanuel Vadot - qcom,pm8941-gpio 52354d7675SEmmanuel Vadot - qcom,pm8950-gpio 53f126890aSEmmanuel Vadot - qcom,pm8953-gpio 54354d7675SEmmanuel Vadot - qcom,pm8994-gpio 55354d7675SEmmanuel Vadot - qcom,pm8998-gpio 56354d7675SEmmanuel Vadot - qcom,pma8084-gpio 57*aa1a8ff2SEmmanuel Vadot - qcom,pmc8180-gpio 58*aa1a8ff2SEmmanuel Vadot - qcom,pmc8180c-gpio 59fac71e4eSEmmanuel Vadot - qcom,pmi632-gpio 60354d7675SEmmanuel Vadot - qcom,pmi8950-gpio 61354d7675SEmmanuel Vadot - qcom,pmi8994-gpio 62354d7675SEmmanuel Vadot - qcom,pmi8998-gpio 63354d7675SEmmanuel Vadot - qcom,pmk8350-gpio 64cb7aa33aSEmmanuel Vadot - qcom,pmk8550-gpio 65d5b0e70fSEmmanuel Vadot - qcom,pmm8155au-gpio 66fac71e4eSEmmanuel Vadot - qcom,pmm8654au-gpio 67b97ee269SEmmanuel Vadot - qcom,pmp8074-gpio 68354d7675SEmmanuel Vadot - qcom,pmr735a-gpio 69354d7675SEmmanuel Vadot - qcom,pmr735b-gpio 70cb7aa33aSEmmanuel Vadot - qcom,pmr735d-gpio 71354d7675SEmmanuel Vadot - qcom,pms405-gpio 72354d7675SEmmanuel Vadot - qcom,pmx55-gpio 73d5b0e70fSEmmanuel Vadot - qcom,pmx65-gpio 74*aa1a8ff2SEmmanuel Vadot - qcom,pmx75-gpio 75354d7675SEmmanuel Vadot 76354d7675SEmmanuel Vadot - enum: 77354d7675SEmmanuel Vadot - qcom,spmi-gpio 78354d7675SEmmanuel Vadot - qcom,ssbi-gpio 79354d7675SEmmanuel Vadot 80354d7675SEmmanuel Vadot reg: 81354d7675SEmmanuel Vadot maxItems: 1 82354d7675SEmmanuel Vadot 83354d7675SEmmanuel Vadot interrupt-controller: true 84354d7675SEmmanuel Vadot 85354d7675SEmmanuel Vadot '#interrupt-cells': 86354d7675SEmmanuel Vadot const: 2 87354d7675SEmmanuel Vadot 88354d7675SEmmanuel Vadot gpio-controller: true 89354d7675SEmmanuel Vadot 90354d7675SEmmanuel Vadot gpio-ranges: 91354d7675SEmmanuel Vadot maxItems: 1 92354d7675SEmmanuel Vadot 93d5b0e70fSEmmanuel Vadot gpio-line-names: 94d5b0e70fSEmmanuel Vadot minItems: 2 95d5b0e70fSEmmanuel Vadot maxItems: 44 96d5b0e70fSEmmanuel Vadot 97d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 98d5b0e70fSEmmanuel Vadot minItems: 1 99d5b0e70fSEmmanuel Vadot # maxItems as half of total number of GPIOs, as there has to be at 100d5b0e70fSEmmanuel Vadot # least one usable GPIO between each reserved range. 101d5b0e70fSEmmanuel Vadot maxItems: 22 102d5b0e70fSEmmanuel Vadot 103354d7675SEmmanuel Vadot '#gpio-cells': 104354d7675SEmmanuel Vadot const: 2 105354d7675SEmmanuel Vadot description: 106354d7675SEmmanuel Vadot The first cell will be used to define gpio number and the 107354d7675SEmmanuel Vadot second denotes the flags for this gpio 108354d7675SEmmanuel Vadot 109354d7675SEmmanuel VadotadditionalProperties: false 110354d7675SEmmanuel Vadot 111354d7675SEmmanuel Vadotrequired: 112354d7675SEmmanuel Vadot - compatible 113354d7675SEmmanuel Vadot - reg 114354d7675SEmmanuel Vadot - gpio-controller 115354d7675SEmmanuel Vadot - '#gpio-cells' 116354d7675SEmmanuel Vadot - gpio-ranges 117354d7675SEmmanuel Vadot - interrupt-controller 118354d7675SEmmanuel Vadot 119d5b0e70fSEmmanuel VadotallOf: 120d5b0e70fSEmmanuel Vadot - if: 121d5b0e70fSEmmanuel Vadot properties: 122d5b0e70fSEmmanuel Vadot compatible: 123d5b0e70fSEmmanuel Vadot contains: 124d5b0e70fSEmmanuel Vadot enum: 125d5b0e70fSEmmanuel Vadot - qcom,pm8008-gpio 126d5b0e70fSEmmanuel Vadot - qcom,pmi8950-gpio 127cb7aa33aSEmmanuel Vadot - qcom,pmr735d-gpio 128d5b0e70fSEmmanuel Vadot then: 129d5b0e70fSEmmanuel Vadot properties: 130d5b0e70fSEmmanuel Vadot gpio-line-names: 131d5b0e70fSEmmanuel Vadot minItems: 2 132d5b0e70fSEmmanuel Vadot maxItems: 2 133d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 134d5b0e70fSEmmanuel Vadot maxItems: 1 135d5b0e70fSEmmanuel Vadot 136d5b0e70fSEmmanuel Vadot - if: 137d5b0e70fSEmmanuel Vadot properties: 138d5b0e70fSEmmanuel Vadot compatible: 139d5b0e70fSEmmanuel Vadot contains: 140d5b0e70fSEmmanuel Vadot enum: 141d5b0e70fSEmmanuel Vadot - qcom,pm8005-gpio 142d5b0e70fSEmmanuel Vadot - qcom,pm8450-gpio 143d5b0e70fSEmmanuel Vadot - qcom,pm8916-gpio 144d5b0e70fSEmmanuel Vadot - qcom,pmk8350-gpio 145d5b0e70fSEmmanuel Vadot - qcom,pmr735a-gpio 146d5b0e70fSEmmanuel Vadot - qcom,pmr735b-gpio 147d5b0e70fSEmmanuel Vadot then: 148d5b0e70fSEmmanuel Vadot properties: 149d5b0e70fSEmmanuel Vadot gpio-line-names: 150d5b0e70fSEmmanuel Vadot minItems: 4 151d5b0e70fSEmmanuel Vadot maxItems: 4 152d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 153d5b0e70fSEmmanuel Vadot minItems: 1 154d5b0e70fSEmmanuel Vadot maxItems: 2 155d5b0e70fSEmmanuel Vadot 156d5b0e70fSEmmanuel Vadot - if: 157d5b0e70fSEmmanuel Vadot properties: 158d5b0e70fSEmmanuel Vadot compatible: 159d5b0e70fSEmmanuel Vadot contains: 160d5b0e70fSEmmanuel Vadot enum: 161d5b0e70fSEmmanuel Vadot - qcom,pm8018-gpio 162d5b0e70fSEmmanuel Vadot - qcom,pm8019-gpio 163cb7aa33aSEmmanuel Vadot - qcom,pm8550vs-gpio 164cb7aa33aSEmmanuel Vadot - qcom,pmk8550-gpio 165d5b0e70fSEmmanuel Vadot then: 166d5b0e70fSEmmanuel Vadot properties: 167d5b0e70fSEmmanuel Vadot gpio-line-names: 168d5b0e70fSEmmanuel Vadot minItems: 6 169d5b0e70fSEmmanuel Vadot maxItems: 6 170d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 171d5b0e70fSEmmanuel Vadot minItems: 1 172d5b0e70fSEmmanuel Vadot maxItems: 3 173d5b0e70fSEmmanuel Vadot 174d5b0e70fSEmmanuel Vadot - if: 175d5b0e70fSEmmanuel Vadot properties: 176d5b0e70fSEmmanuel Vadot compatible: 177d5b0e70fSEmmanuel Vadot contains: 178d5b0e70fSEmmanuel Vadot enum: 179*aa1a8ff2SEmmanuel Vadot - qcom,pm7550ba-gpio 180b97ee269SEmmanuel Vadot - qcom,pm8226-gpio 181d5b0e70fSEmmanuel Vadot - qcom,pm8350b-gpio 182cb7aa33aSEmmanuel Vadot - qcom,pm8550ve-gpio 183d5b0e70fSEmmanuel Vadot - qcom,pm8950-gpio 184f126890aSEmmanuel Vadot - qcom,pm8953-gpio 185fac71e4eSEmmanuel Vadot - qcom,pmi632-gpio 186d5b0e70fSEmmanuel Vadot then: 187d5b0e70fSEmmanuel Vadot properties: 188d5b0e70fSEmmanuel Vadot gpio-line-names: 189d5b0e70fSEmmanuel Vadot minItems: 8 190d5b0e70fSEmmanuel Vadot maxItems: 8 191d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 192d5b0e70fSEmmanuel Vadot minItems: 1 193d5b0e70fSEmmanuel Vadot maxItems: 4 194d5b0e70fSEmmanuel Vadot 195d5b0e70fSEmmanuel Vadot - if: 196d5b0e70fSEmmanuel Vadot properties: 197d5b0e70fSEmmanuel Vadot compatible: 198d5b0e70fSEmmanuel Vadot contains: 199d5b0e70fSEmmanuel Vadot enum: 200d5b0e70fSEmmanuel Vadot - qcom,pm6350-gpio 201d5b0e70fSEmmanuel Vadot - qcom,pm8350c-gpio 202d5b0e70fSEmmanuel Vadot then: 203d5b0e70fSEmmanuel Vadot properties: 204d5b0e70fSEmmanuel Vadot gpio-line-names: 205d5b0e70fSEmmanuel Vadot minItems: 9 206d5b0e70fSEmmanuel Vadot maxItems: 9 207d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 208d5b0e70fSEmmanuel Vadot minItems: 1 209d5b0e70fSEmmanuel Vadot maxItems: 5 210d5b0e70fSEmmanuel Vadot 211d5b0e70fSEmmanuel Vadot - if: 212d5b0e70fSEmmanuel Vadot properties: 213d5b0e70fSEmmanuel Vadot compatible: 214d5b0e70fSEmmanuel Vadot contains: 215d5b0e70fSEmmanuel Vadot enum: 216d5b0e70fSEmmanuel Vadot - qcom,pm2250-gpio 217d5b0e70fSEmmanuel Vadot - qcom,pm6150-gpio 218d5b0e70fSEmmanuel Vadot - qcom,pm7325-gpio 219d5b0e70fSEmmanuel Vadot - qcom,pm8150-gpio 220d5b0e70fSEmmanuel Vadot - qcom,pm8350-gpio 221d5b0e70fSEmmanuel Vadot - qcom,pmc8180-gpio 222d5b0e70fSEmmanuel Vadot - qcom,pmi8994-gpio 223d5b0e70fSEmmanuel Vadot - qcom,pmm8155au-gpio 224d5b0e70fSEmmanuel Vadot then: 225d5b0e70fSEmmanuel Vadot properties: 226d5b0e70fSEmmanuel Vadot gpio-line-names: 227d5b0e70fSEmmanuel Vadot minItems: 10 228d5b0e70fSEmmanuel Vadot maxItems: 10 229d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 230d5b0e70fSEmmanuel Vadot minItems: 1 231d5b0e70fSEmmanuel Vadot maxItems: 5 232d5b0e70fSEmmanuel Vadot 233d5b0e70fSEmmanuel Vadot - if: 234d5b0e70fSEmmanuel Vadot properties: 235d5b0e70fSEmmanuel Vadot compatible: 236d5b0e70fSEmmanuel Vadot contains: 237d5b0e70fSEmmanuel Vadot enum: 238d5b0e70fSEmmanuel Vadot - qcom,pmx55-gpio 239d5b0e70fSEmmanuel Vadot then: 240d5b0e70fSEmmanuel Vadot properties: 241d5b0e70fSEmmanuel Vadot gpio-line-names: 242d5b0e70fSEmmanuel Vadot minItems: 11 243d5b0e70fSEmmanuel Vadot maxItems: 11 244d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 245d5b0e70fSEmmanuel Vadot minItems: 1 246d5b0e70fSEmmanuel Vadot maxItems: 6 247d5b0e70fSEmmanuel Vadot 248d5b0e70fSEmmanuel Vadot - if: 249d5b0e70fSEmmanuel Vadot properties: 250d5b0e70fSEmmanuel Vadot compatible: 251d5b0e70fSEmmanuel Vadot contains: 252d5b0e70fSEmmanuel Vadot enum: 253d5b0e70fSEmmanuel Vadot - qcom,pm660l-gpio 254d5b0e70fSEmmanuel Vadot - qcom,pm6150l-gpio 2557ef62cebSEmmanuel Vadot - qcom,pm7250b-gpio 256d5b0e70fSEmmanuel Vadot - qcom,pm8038-gpio 257d5b0e70fSEmmanuel Vadot - qcom,pm8150b-gpio 258d5b0e70fSEmmanuel Vadot - qcom,pm8150l-gpio 259cb7aa33aSEmmanuel Vadot - qcom,pm8550-gpio 260cb7aa33aSEmmanuel Vadot - qcom,pm8550b-gpio 261d5b0e70fSEmmanuel Vadot - qcom,pmc8180c-gpio 262b97ee269SEmmanuel Vadot - qcom,pmp8074-gpio 263d5b0e70fSEmmanuel Vadot - qcom,pms405-gpio 264d5b0e70fSEmmanuel Vadot then: 265d5b0e70fSEmmanuel Vadot properties: 266d5b0e70fSEmmanuel Vadot gpio-line-names: 267d5b0e70fSEmmanuel Vadot minItems: 12 268d5b0e70fSEmmanuel Vadot maxItems: 12 269d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 270d5b0e70fSEmmanuel Vadot minItems: 1 271d5b0e70fSEmmanuel Vadot maxItems: 6 272d5b0e70fSEmmanuel Vadot 273d5b0e70fSEmmanuel Vadot - if: 274d5b0e70fSEmmanuel Vadot properties: 275d5b0e70fSEmmanuel Vadot compatible: 276d5b0e70fSEmmanuel Vadot contains: 277d5b0e70fSEmmanuel Vadot enum: 278d5b0e70fSEmmanuel Vadot - qcom,pm660-gpio 279d5b0e70fSEmmanuel Vadot then: 280d5b0e70fSEmmanuel Vadot properties: 281d5b0e70fSEmmanuel Vadot gpio-line-names: 282d5b0e70fSEmmanuel Vadot minItems: 13 283d5b0e70fSEmmanuel Vadot maxItems: 13 284d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 285d5b0e70fSEmmanuel Vadot minItems: 1 286d5b0e70fSEmmanuel Vadot maxItems: 7 287d5b0e70fSEmmanuel Vadot 288d5b0e70fSEmmanuel Vadot - if: 289d5b0e70fSEmmanuel Vadot properties: 290d5b0e70fSEmmanuel Vadot compatible: 291d5b0e70fSEmmanuel Vadot contains: 292d5b0e70fSEmmanuel Vadot enum: 293d5b0e70fSEmmanuel Vadot - qcom,pmi8998-gpio 294d5b0e70fSEmmanuel Vadot then: 295d5b0e70fSEmmanuel Vadot properties: 296d5b0e70fSEmmanuel Vadot gpio-line-names: 297d5b0e70fSEmmanuel Vadot minItems: 14 298d5b0e70fSEmmanuel Vadot maxItems: 14 299d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 300d5b0e70fSEmmanuel Vadot minItems: 1 301d5b0e70fSEmmanuel Vadot maxItems: 7 302d5b0e70fSEmmanuel Vadot 303d5b0e70fSEmmanuel Vadot - if: 304d5b0e70fSEmmanuel Vadot properties: 305d5b0e70fSEmmanuel Vadot compatible: 306d5b0e70fSEmmanuel Vadot contains: 307d5b0e70fSEmmanuel Vadot enum: 308d5b0e70fSEmmanuel Vadot - qcom,pmx65-gpio 309*aa1a8ff2SEmmanuel Vadot - qcom,pmx75-gpio 310d5b0e70fSEmmanuel Vadot then: 311d5b0e70fSEmmanuel Vadot properties: 312d5b0e70fSEmmanuel Vadot gpio-line-names: 313d5b0e70fSEmmanuel Vadot minItems: 16 314d5b0e70fSEmmanuel Vadot maxItems: 16 315d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 316d5b0e70fSEmmanuel Vadot minItems: 1 317d5b0e70fSEmmanuel Vadot maxItems: 8 318d5b0e70fSEmmanuel Vadot 319d5b0e70fSEmmanuel Vadot - if: 320d5b0e70fSEmmanuel Vadot properties: 321d5b0e70fSEmmanuel Vadot compatible: 322d5b0e70fSEmmanuel Vadot contains: 323d5b0e70fSEmmanuel Vadot enum: 324d5b0e70fSEmmanuel Vadot - qcom,pm8994-gpio 325d5b0e70fSEmmanuel Vadot - qcom,pma8084-gpio 326d5b0e70fSEmmanuel Vadot then: 327d5b0e70fSEmmanuel Vadot properties: 328d5b0e70fSEmmanuel Vadot gpio-line-names: 329d5b0e70fSEmmanuel Vadot minItems: 22 330d5b0e70fSEmmanuel Vadot maxItems: 22 331d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 332d5b0e70fSEmmanuel Vadot minItems: 1 333d5b0e70fSEmmanuel Vadot maxItems: 11 334d5b0e70fSEmmanuel Vadot 335d5b0e70fSEmmanuel Vadot - if: 336d5b0e70fSEmmanuel Vadot properties: 337d5b0e70fSEmmanuel Vadot compatible: 338d5b0e70fSEmmanuel Vadot contains: 339d5b0e70fSEmmanuel Vadot enum: 340d5b0e70fSEmmanuel Vadot - qcom,pm8998-gpio 341d5b0e70fSEmmanuel Vadot then: 342d5b0e70fSEmmanuel Vadot properties: 343d5b0e70fSEmmanuel Vadot gpio-line-names: 344d5b0e70fSEmmanuel Vadot minItems: 26 345d5b0e70fSEmmanuel Vadot maxItems: 26 346d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 347d5b0e70fSEmmanuel Vadot minItems: 1 348d5b0e70fSEmmanuel Vadot maxItems: 13 349d5b0e70fSEmmanuel Vadot 350d5b0e70fSEmmanuel Vadot - if: 351d5b0e70fSEmmanuel Vadot properties: 352d5b0e70fSEmmanuel Vadot compatible: 353d5b0e70fSEmmanuel Vadot contains: 354d5b0e70fSEmmanuel Vadot enum: 355d5b0e70fSEmmanuel Vadot - qcom,pm8941-gpio 356d5b0e70fSEmmanuel Vadot then: 357d5b0e70fSEmmanuel Vadot properties: 358d5b0e70fSEmmanuel Vadot gpio-line-names: 359d5b0e70fSEmmanuel Vadot minItems: 36 360d5b0e70fSEmmanuel Vadot maxItems: 36 361d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 362d5b0e70fSEmmanuel Vadot minItems: 1 363d5b0e70fSEmmanuel Vadot maxItems: 18 364d5b0e70fSEmmanuel Vadot 365d5b0e70fSEmmanuel Vadot - if: 366d5b0e70fSEmmanuel Vadot properties: 367d5b0e70fSEmmanuel Vadot compatible: 368d5b0e70fSEmmanuel Vadot contains: 369d5b0e70fSEmmanuel Vadot enum: 370d5b0e70fSEmmanuel Vadot - qcom,pm8917-gpio 371d5b0e70fSEmmanuel Vadot then: 372d5b0e70fSEmmanuel Vadot properties: 373d5b0e70fSEmmanuel Vadot gpio-line-names: 374d5b0e70fSEmmanuel Vadot minItems: 38 375d5b0e70fSEmmanuel Vadot maxItems: 38 376d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 377d5b0e70fSEmmanuel Vadot minItems: 1 378d5b0e70fSEmmanuel Vadot maxItems: 19 379d5b0e70fSEmmanuel Vadot 380d5b0e70fSEmmanuel Vadot - if: 381d5b0e70fSEmmanuel Vadot properties: 382d5b0e70fSEmmanuel Vadot compatible: 383d5b0e70fSEmmanuel Vadot contains: 384d5b0e70fSEmmanuel Vadot enum: 385d5b0e70fSEmmanuel Vadot - qcom,pm8058-gpio 386d5b0e70fSEmmanuel Vadot - qcom,pm8921-gpio 387d5b0e70fSEmmanuel Vadot then: 388d5b0e70fSEmmanuel Vadot properties: 389d5b0e70fSEmmanuel Vadot gpio-line-names: 390d5b0e70fSEmmanuel Vadot minItems: 44 391d5b0e70fSEmmanuel Vadot maxItems: 44 392d5b0e70fSEmmanuel Vadot gpio-reserved-ranges: 393d5b0e70fSEmmanuel Vadot minItems: 1 394d5b0e70fSEmmanuel Vadot maxItems: 22 395d5b0e70fSEmmanuel Vadot 396354d7675SEmmanuel VadotpatternProperties: 397354d7675SEmmanuel Vadot '-state$': 398354d7675SEmmanuel Vadot oneOf: 399354d7675SEmmanuel Vadot - $ref: "#/$defs/qcom-pmic-gpio-state" 400354d7675SEmmanuel Vadot - patternProperties: 401d5b0e70fSEmmanuel Vadot "(pinconf|-pins)$": 402354d7675SEmmanuel Vadot $ref: "#/$defs/qcom-pmic-gpio-state" 403d5b0e70fSEmmanuel Vadot additionalProperties: false 404354d7675SEmmanuel Vadot 405354d7675SEmmanuel Vadot$defs: 406354d7675SEmmanuel Vadot qcom-pmic-gpio-state: 407354d7675SEmmanuel Vadot type: object 408354d7675SEmmanuel Vadot allOf: 409fac71e4eSEmmanuel Vadot - $ref: pinmux-node.yaml 410fac71e4eSEmmanuel Vadot - $ref: pincfg-node.yaml 411354d7675SEmmanuel Vadot properties: 412354d7675SEmmanuel Vadot pins: 413354d7675SEmmanuel Vadot description: 414354d7675SEmmanuel Vadot List of gpio pins affected by the properties specified in 415354d7675SEmmanuel Vadot this subnode. Valid pins are 416d5b0e70fSEmmanuel Vadot - gpio1-gpio9 for pm6125 417354d7675SEmmanuel Vadot - gpio1-gpio10 for pm6150 418354d7675SEmmanuel Vadot - gpio1-gpio12 for pm6150l 4198cc087a1SEmmanuel Vadot - gpio1-gpio9 for pm6350 4207ef62cebSEmmanuel Vadot - gpio1-gpio12 for pm7250b 421354d7675SEmmanuel Vadot - gpio1-gpio10 for pm7325 422*aa1a8ff2SEmmanuel Vadot - gpio1-gpio8 for pm7550ba 423354d7675SEmmanuel Vadot - gpio1-gpio4 for pm8005 424354d7675SEmmanuel Vadot - gpio1-gpio2 for pm8008 425354d7675SEmmanuel Vadot - gpio1-gpio6 for pm8018 426354d7675SEmmanuel Vadot - gpio1-gpio12 for pm8038 427354d7675SEmmanuel Vadot - gpio1-gpio40 for pm8058 428354d7675SEmmanuel Vadot - gpio1-gpio10 for pm8150 (holes on gpio2, gpio5, 429354d7675SEmmanuel Vadot gpio7 and gpio8) 430354d7675SEmmanuel Vadot - gpio1-gpio12 for pm8150b (holes on gpio3, gpio4 431354d7675SEmmanuel Vadot and gpio7) 432354d7675SEmmanuel Vadot - gpio1-gpio12 for pm8150l (hole on gpio7) 433354d7675SEmmanuel Vadot - gpio1-gpio4 for pm8916 434354d7675SEmmanuel Vadot - gpio1-gpio10 for pm8350 435354d7675SEmmanuel Vadot - gpio1-gpio8 for pm8350b 436354d7675SEmmanuel Vadot - gpio1-gpio9 for pm8350c 4377ef62cebSEmmanuel Vadot - gpio1-gpio4 for pm8450 438cb7aa33aSEmmanuel Vadot - gpio1-gpio12 for pm8550 439cb7aa33aSEmmanuel Vadot - gpio1-gpio12 for pm8550b 440cb7aa33aSEmmanuel Vadot - gpio1-gpio8 for pm8550ve 441cb7aa33aSEmmanuel Vadot - gpio1-gpio6 for pm8550vs 442354d7675SEmmanuel Vadot - gpio1-gpio38 for pm8917 443354d7675SEmmanuel Vadot - gpio1-gpio44 for pm8921 444354d7675SEmmanuel Vadot - gpio1-gpio36 for pm8941 445354d7675SEmmanuel Vadot - gpio1-gpio8 for pm8950 (hole on gpio3) 446f126890aSEmmanuel Vadot - gpio1-gpio8 for pm8953 (hole on gpio3 and gpio6) 447354d7675SEmmanuel Vadot - gpio1-gpio22 for pm8994 448354d7675SEmmanuel Vadot - gpio1-gpio26 for pm8998 449354d7675SEmmanuel Vadot - gpio1-gpio22 for pma8084 450fac71e4eSEmmanuel Vadot - gpio1-gpio8 for pmi632 451354d7675SEmmanuel Vadot - gpio1-gpio2 for pmi8950 452354d7675SEmmanuel Vadot - gpio1-gpio10 for pmi8994 453354d7675SEmmanuel Vadot - gpio1-gpio4 for pmk8350 454cb7aa33aSEmmanuel Vadot - gpio1-gpio6 for pmk8550 455d5b0e70fSEmmanuel Vadot - gpio1-gpio10 for pmm8155au 456fac71e4eSEmmanuel Vadot - gpio1-gpio12 for pmm8654au 457b97ee269SEmmanuel Vadot - gpio1-gpio12 for pmp8074 (holes on gpio1 and gpio12) 458354d7675SEmmanuel Vadot - gpio1-gpio4 for pmr735a 459354d7675SEmmanuel Vadot - gpio1-gpio4 for pmr735b 460cb7aa33aSEmmanuel Vadot - gpio1-gpio2 for pmr735d 461354d7675SEmmanuel Vadot - gpio1-gpio12 for pms405 (holes on gpio1, gpio9 462354d7675SEmmanuel Vadot and gpio10) 463354d7675SEmmanuel Vadot - gpio1-gpio11 for pmx55 (holes on gpio3, gpio7, gpio10 464354d7675SEmmanuel Vadot and gpio11) 465d5b0e70fSEmmanuel Vadot - gpio1-gpio16 for pmx65 466*aa1a8ff2SEmmanuel Vadot - gpio1-gpio16 for pmx75 467354d7675SEmmanuel Vadot 468354d7675SEmmanuel Vadot items: 469354d7675SEmmanuel Vadot pattern: "^gpio([0-9]+)$" 470354d7675SEmmanuel Vadot 471354d7675SEmmanuel Vadot function: 472354d7675SEmmanuel Vadot items: 473354d7675SEmmanuel Vadot - enum: 474354d7675SEmmanuel Vadot - normal 475354d7675SEmmanuel Vadot - paired 476354d7675SEmmanuel Vadot - func1 477354d7675SEmmanuel Vadot - func2 478354d7675SEmmanuel Vadot - dtest1 479354d7675SEmmanuel Vadot - dtest2 480354d7675SEmmanuel Vadot - dtest3 481354d7675SEmmanuel Vadot - dtest4 482354d7675SEmmanuel Vadot - func3 # supported by LV/MV GPIO subtypes 483354d7675SEmmanuel Vadot - func4 # supported by LV/MV GPIO subtypes 484354d7675SEmmanuel Vadot 485354d7675SEmmanuel Vadot bias-disable: true 486354d7675SEmmanuel Vadot bias-pull-down: true 487354d7675SEmmanuel Vadot bias-pull-up: true 488354d7675SEmmanuel Vadot 489354d7675SEmmanuel Vadot qcom,pull-up-strength: 490354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 491354d7675SEmmanuel Vadot description: 492354d7675SEmmanuel Vadot Specifies the strength to use for pull up, if selected. 493354d7675SEmmanuel Vadot Valid values are defined in 494354d7675SEmmanuel Vadot <dt-bindings/pinctrl/qcom,pmic-gpio.h> 495354d7675SEmmanuel Vadot If this property is omitted 30uA strength will be used 496354d7675SEmmanuel Vadot if pull up is selected 497354d7675SEmmanuel Vadot enum: [0, 1, 2, 3] 498354d7675SEmmanuel Vadot 499354d7675SEmmanuel Vadot bias-high-impedance: true 500354d7675SEmmanuel Vadot input-enable: true 501d5b0e70fSEmmanuel Vadot input-disable: true 502354d7675SEmmanuel Vadot output-high: true 503354d7675SEmmanuel Vadot output-low: true 5048cc087a1SEmmanuel Vadot output-enable: true 5058cc087a1SEmmanuel Vadot output-disable: true 506354d7675SEmmanuel Vadot power-source: true 507354d7675SEmmanuel Vadot 508354d7675SEmmanuel Vadot qcom,drive-strength: 509354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 510354d7675SEmmanuel Vadot description: 511354d7675SEmmanuel Vadot Selects the drive strength for the specified pins 512354d7675SEmmanuel Vadot Valid drive strength values are defined in 513354d7675SEmmanuel Vadot <dt-bindings/pinctrl/qcom,pmic-gpio.h> 514354d7675SEmmanuel Vadot enum: [0, 1, 2, 3] 515354d7675SEmmanuel Vadot 516354d7675SEmmanuel Vadot drive-push-pull: true 517354d7675SEmmanuel Vadot drive-open-drain: true 518354d7675SEmmanuel Vadot drive-open-source: true 519354d7675SEmmanuel Vadot 520354d7675SEmmanuel Vadot qcom,analog-pass: 521354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 522354d7675SEmmanuel Vadot description: 523354d7675SEmmanuel Vadot The specified pins are configured in 524354d7675SEmmanuel Vadot analog-pass-through mode. 525354d7675SEmmanuel Vadot 526354d7675SEmmanuel Vadot qcom,atest: 527354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 528354d7675SEmmanuel Vadot description: 529354d7675SEmmanuel Vadot Selects ATEST rail to route to GPIO when it's 530354d7675SEmmanuel Vadot configured in analog-pass-through mode. 531354d7675SEmmanuel Vadot enum: [1, 2, 3, 4] 532354d7675SEmmanuel Vadot 533354d7675SEmmanuel Vadot qcom,dtest-buffer: 534354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 535354d7675SEmmanuel Vadot description: 536354d7675SEmmanuel Vadot Selects DTEST rail to route to GPIO when it's 537354d7675SEmmanuel Vadot configured as digital input. 538354d7675SEmmanuel Vadot enum: [1, 2, 3, 4] 539354d7675SEmmanuel Vadot 540354d7675SEmmanuel Vadot required: 541354d7675SEmmanuel Vadot - pins 542354d7675SEmmanuel Vadot - function 543354d7675SEmmanuel Vadot 544354d7675SEmmanuel Vadot additionalProperties: false 545354d7675SEmmanuel Vadot 546354d7675SEmmanuel Vadotexamples: 547354d7675SEmmanuel Vadot - | 548354d7675SEmmanuel Vadot #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 549354d7675SEmmanuel Vadot 550354d7675SEmmanuel Vadot pm8921_gpio: gpio@150 { 551354d7675SEmmanuel Vadot compatible = "qcom,pm8921-gpio", "qcom,ssbi-gpio"; 552354d7675SEmmanuel Vadot reg = <0x150 0x160>; 553354d7675SEmmanuel Vadot interrupt-controller; 554354d7675SEmmanuel Vadot #interrupt-cells = <2>; 555354d7675SEmmanuel Vadot gpio-controller; 556354d7675SEmmanuel Vadot gpio-ranges = <&pm8921_gpio 0 0 44>; 557354d7675SEmmanuel Vadot #gpio-cells = <2>; 558354d7675SEmmanuel Vadot 559354d7675SEmmanuel Vadot pm8921_gpio_keys: gpio-keys-state { 560d5b0e70fSEmmanuel Vadot volume-keys-pins { 561354d7675SEmmanuel Vadot pins = "gpio20", "gpio21"; 562354d7675SEmmanuel Vadot function = "normal"; 563354d7675SEmmanuel Vadot 564354d7675SEmmanuel Vadot input-enable; 565354d7675SEmmanuel Vadot bias-pull-up; 566354d7675SEmmanuel Vadot drive-push-pull; 567354d7675SEmmanuel Vadot qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 568354d7675SEmmanuel Vadot power-source = <PM8921_GPIO_S4>; 569354d7675SEmmanuel Vadot }; 570354d7675SEmmanuel Vadot }; 571354d7675SEmmanuel Vadot }; 572354d7675SEmmanuel Vadot... 573