Commit 38d09a34 authored by Frank Li's avatar Frank Li Committed by Lee Jones
Browse files

dt-bindings: mfd: Convert zii,rave-sp.txt to yaml format



Convert device binding doc zii,rave-sp.txt to yaml format.
Additional change:
- ref to other zii yaml files.
- remove rave-sp-hwmon and rave-sp-leds.

Signed-off-by: default avatarFrank Li <Frank.Li@nxp.com>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20241010-zii_yaml-v2-5-0ab730607422@nxp.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 894d915d
Loading
Loading
Loading
Loading
+0 −39
Original line number Diff line number Diff line
Zodiac Inflight Innovations RAVE Supervisory Processor

RAVE Supervisory Processor communicates with SoC over UART. It is
expected that its Device Tree node is specified as a child of a node
corresponding to UART controller used for communication.

Required parent device properties:

 - compatible: Should be one of:
	- "zii,rave-sp-niu"
	- "zii,rave-sp-mezz"
	- "zii,rave-sp-esb"
	- "zii,rave-sp-rdu1"
	- "zii,rave-sp-rdu2"

 - current-speed: Should be set to baud rate SP device is using

RAVE SP consists of the following sub-devices:

Device				 Description
------				 -----------
rave-sp-wdt			: Watchdog
rave-sp-nvmem			: Interface to onboard EEPROM
rave-sp-backlight		: Display backlight
rave-sp-hwmon			: Interface to onboard hardware sensors
rave-sp-leds			: Interface to onboard LEDs
rave-sp-input			: Interface to onboard power button

Example of usage:

	rdu {
		compatible = "zii,rave-sp-rdu2";
		current-speed = <1000000>;

		watchdog {
			compatible = "zii,rave-sp-watchdog";
		};
	};
+63 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mfd/zii,rave-sp.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Zodiac Inflight Innovations RAVE Supervisory Processor

maintainers:
  - Frank Li <Frank.Li@nxp.com>

description:
  RAVE Supervisory Processor communicates with SoC over UART. It is
  expected that its Device Tree node is specified as a child of a node
  corresponding to UART controller used for communication.

properties:
  compatible:
    enum:
      - zii,rave-sp-niu
      - zii,rave-sp-mezz
      - zii,rave-sp-esb
      - zii,rave-sp-rdu1
      - zii,rave-sp-rdu2

  "#address-cells":
    const: 1

  "#size-cells":
    const: 1

  watchdog:
    $ref: /schemas/watchdog/zii,rave-sp-wdt.yaml

  backlight:
    $ref: /schemas/leds/backlight/zii,rave-sp-backlight.yaml

  pwrbutton:
    $ref: /schemas/input/zii,rave-sp-pwrbutton.yaml

patternProperties:
  '^eeprom@[0-9a-f]+$':
    $ref: /schemas/nvmem/zii,rave-sp-eeprom.yaml

required:
  - compatible

allOf:
  - $ref: /schemas/serial/serial-peripheral-props.yaml

unevaluatedProperties: false

examples:
  - |
    mfd {
        compatible = "zii,rave-sp-rdu2";
        current-speed = <1000000>;

        watchdog {
            compatible = "zii,rave-sp-watchdog";
        };
    };