157 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only2%YAML 1.23---4$id: http://devicetree.org/schemas/pinctrl/pincfg-node.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Generic Pin Configuration Node8 9maintainers:10 - Linus Walleij <linus.walleij@linaro.org>11 12description:13 Many data items that are represented in a pin configuration node are common14 and generic. Pin control bindings should use the properties defined below15 where they are applicable; not all of these properties are relevant or useful16 for all hardware or binding structures. Each individual binding document17 should state which of these generic properties, if any, are used, and the18 structure of the DT nodes that contain these properties.19 20properties:21 bias-disable:22 type: boolean23 description: disable any pin bias24 25 bias-high-impedance:26 type: boolean27 description: high impedance mode ("third-state", "floating")28 29 bias-bus-hold:30 type: boolean31 description: latch weakly32 33 bias-pull-up:34 oneOf:35 - type: boolean36 - $ref: /schemas/types.yaml#/definitions/uint3237 description: pull up the pin. Takes as optional argument on hardware38 supporting it the pull strength in Ohm.39 40 bias-pull-down:41 oneOf:42 - type: boolean43 - $ref: /schemas/types.yaml#/definitions/uint3244 description: pull down the pin. Takes as optional argument on hardware45 supporting it the pull strength in Ohm.46 47 bias-pull-pin-default:48 oneOf:49 - type: boolean50 - $ref: /schemas/types.yaml#/definitions/uint3251 description: use pin-default pull state. Takes as optional argument on52 hardware supporting it the pull strength in Ohm.53 54 drive-push-pull:55 oneOf:56 - type: boolean57 - $ref: /schemas/types.yaml#/definitions/uint3258 enum: [ 0, 1 ]59 deprecated: true60 description: drive actively high and low61 62 drive-open-drain:63 oneOf:64 - type: boolean65 - $ref: /schemas/types.yaml#/definitions/uint3266 const: 1 # No known cases of 067 deprecated: true68 description: drive with open drain69 70 drive-open-source:71 type: boolean72 description: drive with open source73 74 drive-strength:75 $ref: /schemas/types.yaml#/definitions/uint3276 description: sink or source at most X mA77 78 drive-strength-microamp:79 description: sink or source at most X uA80 81 input-enable:82 type: boolean83 description: enable input on pin (no effect on output, such as84 enabling an input buffer)85 86 input-disable:87 type: boolean88 description: disable input on pin (no effect on output, such as89 disabling an input buffer)90 91 input-schmitt-enable:92 type: boolean93 description: enable schmitt-trigger mode94 95 input-schmitt-disable:96 type: boolean97 description: disable schmitt-trigger mode98 99 input-schmitt-microvolt:100 description: threshold strength for schmitt-trigger101 102 input-debounce:103 $ref: /schemas/types.yaml#/definitions/uint32-array104 description: Takes the debounce time in usec as argument or 0 to disable105 debouncing106 107 power-source:108 $ref: /schemas/types.yaml#/definitions/uint32109 description: select between different power supplies110 111 low-power-enable:112 type: boolean113 description: enable low power mode114 115 low-power-disable:116 type: boolean117 description: disable low power mode118 119 output-disable:120 type: boolean121 description: disable output on a pin (such as disable an output buffer)122 123 output-enable:124 type: boolean125 description: enable output on a pin without actively driving it126 (such as enabling an output buffer)127 128 output-impedance-ohms:129 description: set the output impedance of a pin to at most X ohms130 131 output-low:132 type: boolean133 description: set the pin to output mode with low level134 135 output-high:136 type: boolean137 description: set the pin to output mode with high level138 139 sleep-hardware-state:140 type: boolean141 description: indicate this is sleep related state which will be142 programmed into the registers for the sleep state.143 144 slew-rate:145 $ref: /schemas/types.yaml#/definitions/uint32146 description: set the slew rate147 148 skew-delay:149 $ref: /schemas/types.yaml#/definitions/uint32150 description:151 this affects the expected clock skew on input pins152 and the delay before latching a value to an output153 pin. Typically indicates how many double-inverters are154 used to delay the signal.155 156additionalProperties: true157