Commit fd69e8be authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski
Browse files

dt-bindings: pinctrl: qcom,sm8250: use common TLMM pin schema



The common Qualcomm TLMM pin controller schema for pin mux and config
already brings requirement of function for gpio pins and the definition
of drive-strength.

Acked-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221016172212.49105-13-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent a094b8d8
Loading
Loading
Loading
Loading
+2 −17
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ patternProperties:
    if:
      type: object
    then:
      $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
      properties:
        pins:
          description:
@@ -99,18 +100,12 @@ patternProperties:
                  tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en,
                  tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, vsense_trigger ]

        drive-strength:
          enum: [2, 4, 6, 8, 10, 12, 14, 16]
          default: 2
          description:
            Selects the drive strength for the specified pins, in mA.

        bias-pull-down: true

        bias-pull-up: true

        bias-disable: true

        drive-strength: true
        output-high: true

        output-low: true
@@ -118,16 +113,6 @@ patternProperties:
      required:
        - pins

      allOf:
        - $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state"
        - if:
            properties:
              pins:
                pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$"
          then:
            required:
              - function

      additionalProperties: false

allOf: