Commit f07f2b3f authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Damien Le Moal
Browse files

dt-bindings: ata: Convert ti,dm816-ahci to DT schema



Convert the TI DM816 AHCI SATA Controller to DT schema format. It's a
straight-forward conversion.

Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Reviewed-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
parent 439d4760
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
Device tree binding for the TI DM816 AHCI SATA Controller
---------------------------------------------------------

Required properties:
  - compatible: must be "ti,dm816-ahci"
  - reg: physical base address and size of the register region used by
         the controller (as defined by the AHCI 1.1 standard)
  - interrupts: interrupt specifier (refer to the interrupt binding)
  - clocks: list of phandle and clock specifier pairs (or only
            phandles for clock providers with '0' defined for
            #clock-cells); two clocks must be specified: the functional
            clock and an external reference clock

Example:

	sata: sata@4a140000 {
		compatible = "ti,dm816-ahci";
		reg = <0x4a140000 0x10000>;
		interrupts = <16>;
		clocks = <&sysclk5_ck>, <&sata_refclk>;
	};
+43 −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/ata/ti,dm816-ahci.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TI DM816 AHCI SATA Controller

maintainers:
  - Bartosz Golaszewski <brgl@bgdev.pl>

allOf:
  - $ref: ahci-common.yaml#

properties:
  compatible:
    const: ti,dm816-ahci

  reg:
    maxItems: 1

  clocks:
    items:
      - description: functional clock
      - description: external reference clock

  ti,hwmods:
    const: sata

required:
  - compatible
  - clocks

unevaluatedProperties: false

examples:
  - |
    sata@4a140000 {
        compatible = "ti,dm816-ahci";
        reg = <0x4a140000 0x10000>;
        interrupts = <16>;
        clocks = <&sysclk5_ck>, <&sata_refclk>;
    };