[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b17a0414-8503-950e-a133-e5a1b1cab8c4@digi.com>
Date: Tue, 27 Aug 2024 12:15:08 +1000 (AEST)
From: David Leonard <David.Leonard@...i.com>
To: linux-arm-kernel@...ts.infradead.org
cc: Dong Aisheng <aisheng.dong@....com>, Fabio Estevam <festevam@...il.com>,
Shawn Guo <shawnguo@...nel.org>, Jacky Bai <ping.bai@....com>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Linus Walleij <linus.walleij@...aro.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 6/6] dt-bindings: pinctrl: Add fsl,ls1046a-pinctrl yaml
file
Add a binding schema and examples for the LS1046A's pinctrl function.
Signed-off-by: David Leonard <David.Leonard@...i.com>
---
.../bindings/pinctrl/fsl,ls1046a-pinctrl.yaml | 74 +++++++++++++++++++
1 file changed, 74 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,ls1046a-pinctrl.yaml
diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,ls1046a-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,ls1046a-pinctrl.yaml
new file mode 100644
index 000000000000..3d49e42d33e8
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/fsl,ls1046a-pinctrl.yaml
@@ -0,0 +1,74 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/fsl,ls1046a-pinctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP QorIQ LS1046A pin multiplexing
+
+maintainers:
+ - David.Leonard@...i.com
+
+description: >
+ Bindings for LS1046A pinmux control.
+
+properties:
+ compatible:
+ const: fsl,ls1046a-pinctrl
+
+ reg:
+ description: >
+ Specifies the base address of SCFG_RCWPMUXCR0
+ maxItems: 2
+
+ big-endian:
+ description: >
+ If present, the register is implemented in big endian mode.
+ type: boolean
+
+patternProperties:
+ '^pinctrl-':
+ type: object
+ $ref: pinmux-node.yaml#
+ unevaluatedProperties: false
+
+ properties:
+ function:
+ enum: [ i2c, gpio, evt, usb, ftm ]
+
+ groups:
+ items:
+ enum: [ L4, M4, M3, N3 ]
+
+allOf:
+ - $ref: pinctrl.yaml#
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ pinmux: pinmux@...040c {
+ compatible = "fsl,ls1046a-pinctrl";
+ reg = <0 0x157040c 0 4>;
+ big-endian;
+ pinctrl_i2c2: pinctrl-i2c2 {
+ groups = "L4", "M4";
+ function = "i2c";
+ };
+ pinctrl_i2c2_gpio: pinctrl-i2c2-gpio3 {
+ groups = "L4", "M4";
+ function = "gpio";
+ };
+ pinctrl_i2c3: pinctrl-i2c3 {
+ groups = "M3", "N3";
+ function = "i2c";
+ };
+ pinctrl_i2c3_gpio: pinctrl-i2c3-gpio {
+ groups = "M3", "N3";
+ function = "gpio";
+ };
+ };
--
2.43.0
Powered by blists - more mailing lists