xref: /linux/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml (revision 997f2cdea334fc78231a40fe36632cddb92d48e7)
1*997f2cdeSPeng Fan# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*997f2cdeSPeng Fan# Copyright 2024 NXP
3*997f2cdeSPeng Fan%YAML 1.2
4*997f2cdeSPeng Fan---
5*997f2cdeSPeng Fan$id: http://devicetree.org/schemas/firmware/nxp,imx95-scmi-pinctrl.yaml#
6*997f2cdeSPeng Fan$schema: http://devicetree.org/meta-schemas/core.yaml#
7*997f2cdeSPeng Fan
8*997f2cdeSPeng Fantitle: i.MX System Control and Management Interface (SCMI) Pinctrl Protocol
9*997f2cdeSPeng Fan
10*997f2cdeSPeng Fanmaintainers:
11*997f2cdeSPeng Fan  - Peng Fan <peng.fan@nxp.com>
12*997f2cdeSPeng Fan
13*997f2cdeSPeng FanallOf:
14*997f2cdeSPeng Fan  - $ref: /schemas/pinctrl/pinctrl.yaml
15*997f2cdeSPeng Fan
16*997f2cdeSPeng FanpatternProperties:
17*997f2cdeSPeng Fan  'grp$':
18*997f2cdeSPeng Fan    type: object
19*997f2cdeSPeng Fan    description:
20*997f2cdeSPeng Fan      Pinctrl node's client devices use subnodes for desired pin configuration.
21*997f2cdeSPeng Fan      Client device subnodes use below standard properties.
22*997f2cdeSPeng Fan
23*997f2cdeSPeng Fan    unevaluatedProperties: false
24*997f2cdeSPeng Fan
25*997f2cdeSPeng Fan    properties:
26*997f2cdeSPeng Fan      fsl,pins:
27*997f2cdeSPeng Fan        description:
28*997f2cdeSPeng Fan          each entry consists of 6 integers and represents the mux and config
29*997f2cdeSPeng Fan          setting for one pin. The first 5 integers <mux_reg conf_reg input_reg
30*997f2cdeSPeng Fan          mux_val input_val> are specified using a PIN_FUNC_ID macro, which can
31*997f2cdeSPeng Fan          be found in <arch/arm64/boot/dts/freescale/imx95-pinfunc.h>. The last
32*997f2cdeSPeng Fan          integer CONFIG is the pad setting value like pull-up on this pin.
33*997f2cdeSPeng Fan          Please refer to i.MX95 Reference Manual for detailed CONFIG settings.
34*997f2cdeSPeng Fan        $ref: /schemas/types.yaml#/definitions/uint32-matrix
35*997f2cdeSPeng Fan        items:
36*997f2cdeSPeng Fan          items:
37*997f2cdeSPeng Fan            - description: |
38*997f2cdeSPeng Fan                "mux_reg" indicates the offset of mux register.
39*997f2cdeSPeng Fan            - description: |
40*997f2cdeSPeng Fan                "conf_reg" indicates the offset of pad configuration register.
41*997f2cdeSPeng Fan            - description: |
42*997f2cdeSPeng Fan                "input_reg" indicates the offset of select input register.
43*997f2cdeSPeng Fan            - description: |
44*997f2cdeSPeng Fan                "mux_val" indicates the mux value to be applied.
45*997f2cdeSPeng Fan            - description: |
46*997f2cdeSPeng Fan                "input_val" indicates the select input value to be applied.
47*997f2cdeSPeng Fan            - description: |
48*997f2cdeSPeng Fan                "pad_setting" indicates the pad configuration value to be applied.
49*997f2cdeSPeng Fan
50*997f2cdeSPeng Fan    required:
51*997f2cdeSPeng Fan      - fsl,pins
52*997f2cdeSPeng Fan
53*997f2cdeSPeng FanadditionalProperties: true
54