162306a36Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
262306a36Sopenharmony_ci%YAML 1.2
362306a36Sopenharmony_ci---
462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/pinctrl/samsung,pinctrl-pins-cfg.yaml#
562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
662306a36Sopenharmony_ci
762306a36Sopenharmony_cititle: Samsung S3C/S5P/Exynos SoC pin controller - pins configuration
862306a36Sopenharmony_ci
962306a36Sopenharmony_cimaintainers:
1062306a36Sopenharmony_ci  - Krzysztof Kozlowski <krzk@kernel.org>
1162306a36Sopenharmony_ci  - Sylwester Nawrocki <s.nawrocki@samsung.com>
1262306a36Sopenharmony_ci  - Tomasz Figa <tomasz.figa@gmail.com>
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_cidescription: |
1562306a36Sopenharmony_ci  This is a part of device tree bindings for Samsung S3C/S5P/Exynos SoC pin
1662306a36Sopenharmony_ci  controller.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci  Pins configuration for Samsung S3C/S5P/Exynos SoC pin controller.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci  The values used for config properties should be derived from the hardware
2162306a36Sopenharmony_ci  manual and these values are programmed as-is into the pin pull up/down and
2262306a36Sopenharmony_ci  driver strength register of the pin-controller.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci  See also Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml for
2562306a36Sopenharmony_ci  additional information and example.
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciproperties:
2862306a36Sopenharmony_ci  samsung,pins:
2962306a36Sopenharmony_ci    description: |
3062306a36Sopenharmony_ci      List of pins to configure. For initial and sleep states, the maximum
3162306a36Sopenharmony_ci      number is one pin. In other cases there is no upper limit.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci      The pins should use lowercase names matching hardware manual, e.g. for
3462306a36Sopenharmony_ci      GPA0 bank: gpa0-0, gpa0-1, gpa0-2.
3562306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/string-array
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci  samsung,pin-function:
3862306a36Sopenharmony_ci    description: |
3962306a36Sopenharmony_ci      The pin function selection that should be applied on the pins listed in the
4062306a36Sopenharmony_ci      child node is specified using the "samsung,pin-function" property. The value
4162306a36Sopenharmony_ci      of this property that should be applied to each of the pins listed in the
4262306a36Sopenharmony_ci      "samsung,pins" property should be picked from the hardware manual of the SoC
4362306a36Sopenharmony_ci      for the specified pin group. This property is optional in the child node if
4462306a36Sopenharmony_ci      no specific function selection is desired for the pins listed in the child
4562306a36Sopenharmony_ci      node. The value of this property is used as-is to program the pin-controller
4662306a36Sopenharmony_ci      function selector register of the pin-bank.
4762306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
4862306a36Sopenharmony_ci    minimum: 0
4962306a36Sopenharmony_ci    maximum: 15
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci  samsung,pin-drv:
5262306a36Sopenharmony_ci    description: Drive strength configuration.
5362306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
5462306a36Sopenharmony_ci    minimum: 0
5562306a36Sopenharmony_ci    maximum: 15
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci  samsung,pin-pud:
5862306a36Sopenharmony_ci    description: Pull up/down configuration.
5962306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
6062306a36Sopenharmony_ci    enum: [0, 1, 2, 3]
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci  samsung,pin-val:
6362306a36Sopenharmony_ci    description: Initial value of pin output buffer.
6462306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
6562306a36Sopenharmony_ci    enum: [0, 1]
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ci  samsung,pin-con-pdn:
6862306a36Sopenharmony_ci    description: Function in power down mode.
6962306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
7062306a36Sopenharmony_ci    enum: [0, 1, 2, 3]
7162306a36Sopenharmony_ci
7262306a36Sopenharmony_ci  samsung,pin-pud-pdn:
7362306a36Sopenharmony_ci    description: Pull up/down configuration in power down mode.
7462306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
7562306a36Sopenharmony_ci    enum: [0, 1, 2, 3]
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_cirequired:
7862306a36Sopenharmony_ci  - samsung,pins
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ciadditionalProperties: false
81