Documentation / devicetree / bindings / arm / arm,juno-fpga-apb-regs.yaml


Based on kernel version 6.11. Page generated on 2024-09-24 08:21 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/arm/arm,juno-fpga-apb-regs.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ARM Juno FPGA APB Registers

maintainers:
  - Sudeep Holla <sudeep.holla@arm.com>

properties:
  compatible:
    items:
      - const: arm,juno-fpga-apb-regs
      - const: syscon
      - const: simple-mfd

  reg:
    maxItems: 1

  ranges: true
 
  "#address-cells":
    const: 1
 
  "#size-cells":
    const: 1

patternProperties:
  "^led@[0-9a-f]+,[0-9a-f]$":
    $ref: /schemas/leds/register-bit-led.yaml#

required:
  - compatible
  - reg
  - ranges
  - "#address-cells"
  - "#size-cells"

additionalProperties: false

examples:
  - |
    syscon@10000 {
        compatible = "arm,juno-fpga-apb-regs", "syscon", "simple-mfd";
        reg = <0x010000 0x1000>;
        ranges = <0x0 0x10000 0x1000>;
        #address-cells = <1>;
        #size-cells = <1>;
 
        led@8,0 {
            compatible = "register-bit-led";
            reg = <0x08 0x04>;
            offset = <0x08>;
            mask = <0x01>;
            label = "vexpress:0";
            linux,default-trigger = "heartbeat";
            default-state = "on";
        };
    };