xref: /linux/Documentation/devicetree/bindings/pinctrl/maxim,max77620-pinctrl.yaml (revision faeab166167f5787719eb8683661fd41a3bb1514)
1*c43b91eeSSvyatoslav Ryhel# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*c43b91eeSSvyatoslav Ryhel%YAML 1.2
3*c43b91eeSSvyatoslav Ryhel---
4*c43b91eeSSvyatoslav Ryhel$id: http://devicetree.org/schemas/pinctrl/maxim,max77620-pinctrl.yaml#
5*c43b91eeSSvyatoslav Ryhel$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c43b91eeSSvyatoslav Ryhel
7*c43b91eeSSvyatoslav Ryheltitle: Pinmux controller function for Maxim MAX77620 Power management IC
8*c43b91eeSSvyatoslav Ryhel
9*c43b91eeSSvyatoslav Ryhelmaintainers:
10*c43b91eeSSvyatoslav Ryhel  - Svyatoslav Ryhel <clamor95@gmail.com>
11*c43b91eeSSvyatoslav Ryhel
12*c43b91eeSSvyatoslav Ryheldescription:
13*c43b91eeSSvyatoslav Ryhel  Device has 8 GPIO pins which can be configured as GPIO as well as the
14*c43b91eeSSvyatoslav Ryhel  special IO functions.
15*c43b91eeSSvyatoslav Ryhel
16*c43b91eeSSvyatoslav RyhelallOf:
17*c43b91eeSSvyatoslav Ryhel  - $ref: /schemas/pinctrl/pincfg-node.yaml
18*c43b91eeSSvyatoslav Ryhel  - $ref: /schemas/pinctrl/pinmux-node.yaml
19*c43b91eeSSvyatoslav Ryhel
20*c43b91eeSSvyatoslav RyhelpatternProperties:
21*c43b91eeSSvyatoslav Ryhel  "^(pin|gpio).":
22*c43b91eeSSvyatoslav Ryhel    type: object
23*c43b91eeSSvyatoslav Ryhel    additionalProperties: false
24*c43b91eeSSvyatoslav Ryhel
25*c43b91eeSSvyatoslav Ryhel    properties:
26*c43b91eeSSvyatoslav Ryhel      pins:
27*c43b91eeSSvyatoslav Ryhel        items:
28*c43b91eeSSvyatoslav Ryhel          enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7 ]
29*c43b91eeSSvyatoslav Ryhel
30*c43b91eeSSvyatoslav Ryhel      function:
31*c43b91eeSSvyatoslav Ryhel        items:
32*c43b91eeSSvyatoslav Ryhel          enum: [ gpio, lpm-control-in, fps-out, 32k-out1, sd0-dvs-in, sd1-dvs-in,
33*c43b91eeSSvyatoslav Ryhel                  reference-out ]
34*c43b91eeSSvyatoslav Ryhel
35*c43b91eeSSvyatoslav Ryhel      drive-push-pull: true
36*c43b91eeSSvyatoslav Ryhel      drive-open-drain: true
37*c43b91eeSSvyatoslav Ryhel      bias-pull-up: true
38*c43b91eeSSvyatoslav Ryhel      bias-pull-down: true
39*c43b91eeSSvyatoslav Ryhel
40*c43b91eeSSvyatoslav Ryhel      maxim,active-fps-source:
41*c43b91eeSSvyatoslav Ryhel        $ref: /schemas/types.yaml#/definitions/uint32
42*c43b91eeSSvyatoslav Ryhel        description: |
43*c43b91eeSSvyatoslav Ryhel          FPS source for the GPIOs to get enabled/disabled when system is in
44*c43b91eeSSvyatoslav Ryhel          active state. Valid values are:
45*c43b91eeSSvyatoslav Ryhel          - MAX77620_FPS_SRC_0: FPS source is FPS0.
46*c43b91eeSSvyatoslav Ryhel          - MAX77620_FPS_SRC_1: FPS source is FPS1
47*c43b91eeSSvyatoslav Ryhel          - MAX77620_FPS_SRC_2: FPS source is FPS2
48*c43b91eeSSvyatoslav Ryhel          - MAX77620_FPS_SRC_NONE: GPIO is not controlled by FPS events and
49*c43b91eeSSvyatoslav Ryhel                                   it gets enabled/disabled by register access.
50*c43b91eeSSvyatoslav Ryhel          Absence of this property will leave the FPS configuration register
51*c43b91eeSSvyatoslav Ryhel          for that GPIO to default configuration.
52*c43b91eeSSvyatoslav Ryhel
53*c43b91eeSSvyatoslav Ryhel      maxim,active-fps-power-up-slot:
54*c43b91eeSSvyatoslav Ryhel        $ref: /schemas/types.yaml#/definitions/uint32
55*c43b91eeSSvyatoslav Ryhel        description:
56*c43b91eeSSvyatoslav Ryhel          Sequencing event slot number on which the GPIO get enabled when
57*c43b91eeSSvyatoslav Ryhel          master FPS input event set to HIGH. This is applicable if FPS source
58*c43b91eeSSvyatoslav Ryhel          is selected as FPS0, FPS1 or FPS2.
59*c43b91eeSSvyatoslav Ryhel        enum: [0, 1, 2, 3, 4, 5, 6, 7]
60*c43b91eeSSvyatoslav Ryhel
61*c43b91eeSSvyatoslav Ryhel      maxim,active-fps-power-down-slot:
62*c43b91eeSSvyatoslav Ryhel        $ref: /schemas/types.yaml#/definitions/uint32
63*c43b91eeSSvyatoslav Ryhel        description:
64*c43b91eeSSvyatoslav Ryhel          Sequencing event slot number on which the GPIO get disabled when
65*c43b91eeSSvyatoslav Ryhel          master FPS input event set to LOW. This is applicable if FPS source
66*c43b91eeSSvyatoslav Ryhel          is selected as FPS0, FPS1 or FPS2.
67*c43b91eeSSvyatoslav Ryhel        enum: [0, 1, 2, 3, 4, 5, 6, 7]
68*c43b91eeSSvyatoslav Ryhel
69*c43b91eeSSvyatoslav Ryhel      maxim,suspend-fps-source:
70*c43b91eeSSvyatoslav Ryhel        $ref: /schemas/types.yaml#/definitions/uint32
71*c43b91eeSSvyatoslav Ryhel        description:
72*c43b91eeSSvyatoslav Ryhel          This is same as property "maxim,active-fps-source" but value get
73*c43b91eeSSvyatoslav Ryhel          configured when system enters in to suspend state.
74*c43b91eeSSvyatoslav Ryhel
75*c43b91eeSSvyatoslav Ryhel      maxim,suspend-fps-power-up-slot:
76*c43b91eeSSvyatoslav Ryhel        $ref: /schemas/types.yaml#/definitions/uint32
77*c43b91eeSSvyatoslav Ryhel        description:
78*c43b91eeSSvyatoslav Ryhel          This is same as property "maxim,active-fps-power-up-slot" but this
79*c43b91eeSSvyatoslav Ryhel          value get configured into FPS configuration register when system
80*c43b91eeSSvyatoslav Ryhel          enters into suspend. This is applicable if suspend state FPS source
81*c43b91eeSSvyatoslav Ryhel          is selected as FPS0, FPS1 or FPS2.
82*c43b91eeSSvyatoslav Ryhel        enum: [0, 1, 2, 3, 4, 5, 6, 7]
83*c43b91eeSSvyatoslav Ryhel
84*c43b91eeSSvyatoslav Ryhel      maxim,suspend-fps-power-down-slot:
85*c43b91eeSSvyatoslav Ryhel        $ref: /schemas/types.yaml#/definitions/uint32
86*c43b91eeSSvyatoslav Ryhel        description:
87*c43b91eeSSvyatoslav Ryhel          This is same as property "maxim,active-fps-power-down-slot" but this
88*c43b91eeSSvyatoslav Ryhel          value get configured into FPS configuration register when system
89*c43b91eeSSvyatoslav Ryhel          enters into suspend. This is applicable if suspend state FPS source
90*c43b91eeSSvyatoslav Ryhel          is selected as FPS0, FPS1 or FPS2.
91*c43b91eeSSvyatoslav Ryhel        enum: [0, 1, 2, 3, 4, 5, 6, 7]
92*c43b91eeSSvyatoslav Ryhel
93*c43b91eeSSvyatoslav Ryhel    required:
94*c43b91eeSSvyatoslav Ryhel      - pins
95*c43b91eeSSvyatoslav Ryhel
96*c43b91eeSSvyatoslav RyheladditionalProperties: false
97*c43b91eeSSvyatoslav Ryhel
98*c43b91eeSSvyatoslav Ryhel# see maxim,max77620.yaml for an example
99