From 9beba3aef1e33db17ca65e8a3461785b1351a2b8 Mon Sep 17 00:00:00 2001 From: Ankur Matariya Date: Tue, 8 Apr 2025 11:36:42 +0530 Subject: [PATCH] bindings: pinctrl: Add pinctrl bindings for SM610 Added bindings for SM6150 pinctrl. Change-Id: I7e06b398f3bdd705669f14bd94b652dfd8d2c19c Signed-off-by: Ankur Matariya --- bindings/pinctrl/qcom,sm6150-pinctrl.yaml | 97 +++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 bindings/pinctrl/qcom,sm6150-pinctrl.yaml diff --git a/bindings/pinctrl/qcom,sm6150-pinctrl.yaml b/bindings/pinctrl/qcom,sm6150-pinctrl.yaml new file mode 100644 index 00000000..9fed1124 --- /dev/null +++ b/bindings/pinctrl/qcom,sm6150-pinctrl.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm6150-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. SM6150 TLMM block + +maintainers: + - Ankur Matariya + +description: | + This binding describes the Top Level Mode Multiplexer block found in the SM6150 platform. + +allOf: + - $ref: "pinctrl.yaml#" + - $ref: "/schemas/pinctrl/qcom,tlmm-common.yaml#" + +properties: + compatible: + description: Must be "qcom,sm6150-pinctrl" + + reg: + description: The base address and size of the north, south, west, and east TLMM tiles. + minItems: 1 + items: + - description: "North TLMM tile" + - description: "South TLMM tile" + - description: "West TLMM tile" + - description: "East TLMM tile" + + reg-names: + description: Names for the reg cells, must contain "north", "south", "west", and "east". + items: + - const: "west" + - const: "south" + - const: "east" + - const: "north" + + interrupts: + description: Specifies the TLMM summary IRQ. + maxItems: 1 + + interrupt-controller: + description: Identifies this node as an interrupt controller. + type: boolean + + '#interrupt-cells': + description: Must be 2, specifying the pin number and flags. + const: 2 + + gpio-controller: + description: Identifies this node as a GPIO controller. + type: boolean + + '#gpio-cells': + description: Must be 2, specifying the pin number and flags. + const: 2 + + gpio-ranges: + description: See ../gpio/gpio.txt. + maxItems: 1 + + gpio-reserved-ranges: + description: Optional reserved ranges of GPIOs. + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - interrupts + - interrupt-controller + - '#interrupt-cells' + - gpio-controller + - '#gpio-cells' + - gpio-ranges + +unevaluatedProperties: false + +examples: + - | + tlmm: pinctrl@3000000 { + compatible = "qcom,sm6150-pinctrl"; + reg = <0x03100000 0x300000>, + <0x03500000 0x300000>, + <0x03900000 0x300000>, + <0x03D00000 0x300000>; + reg-names = "west", "east", "north", "south"; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 175>; + gpio-reserved-ranges = <0 4>, <126 4>; + interrupt-controller; + #interrupt-cells = <2>; + }; \ No newline at end of file