Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml
Extension
.yaml
Size
3641 bytes
Lines
152
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6318-pinctrl.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Broadcom BCM6318 pin controller

maintainers:
  - Álvaro Fernández Rojas <noltari@gmail.com>
  - Jonas Gorski <jonas.gorski@gmail.com>

description:
  Bindings for Broadcom's BCM6318 memory-mapped pin controller.

properties:
  compatible:
    const: brcm,bcm6318-pinctrl

  reg:
    maxItems: 2

patternProperties:
  '-pins$':
    type: object
    $ref: pinmux-node.yaml#
    additionalProperties: false

    properties:
      function:
        enum: [ ephy0_spd_led, ephy1_spd_led, ephy2_spd_led, ephy3_spd_led,
                ephy0_act_led, ephy1_act_led, ephy2_act_led, ephy3_act_led,
                serial_led_data, serial_led_clk, inet_act_led, inet_fail_led,
                dsl_led, post_fail_led, wlan_wps_led, usb_pwron,
                usb_device_led, usb_active ]

      pins:
        enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7,
                gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ]

    patternProperties:
      '-pins$':
        $ref: '#/patternProperties/-pins$'

allOf:
  - $ref: pinctrl.yaml#

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    pinctrl@18 {
      compatible = "brcm,bcm6318-pinctrl";
      reg = <0x18 0x10>, <0x54 0x18>;

      pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
        function = "ephy0_spd_led";
        pins = "gpio0";
      };

      pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
        function = "ephy1_spd_led";
        pins = "gpio1";
      };

      pinctrl_ephy2_spd_led: ephy2_spd_led-pins {

Annotation

Implementation Notes