Skip to content

Commit

Permalink
dt-bindings: power: Convert mti,mips-cpc to DT schema
Browse files Browse the repository at this point in the history
It's a Cluster Power Controller embedded into the MIPS IP cores.
Currently the corresponding dts node is supposed to have compatible
and reg properties.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Serge Semin authored and Thomas Bogendoerfer committed Jul 21, 2020
1 parent 67d0662 commit 29cf195
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Documentation/devicetree/bindings/power/mti,mips-cpc.txt

This file was deleted.

35 changes: 35 additions & 0 deletions Documentation/devicetree/bindings/power/mti,mips-cpc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/power/mti,mips-cpc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MIPS Cluster Power Controller

description: |
Defines a location of the MIPS Cluster Power Controller registers.
maintainers:
- Paul Burton <paulburton@kernel.org>

properties:
compatible:
const: mti,mips-cpc

reg:
description: |
Base address and size of an unoccupied memory region, which will be
used to map the MIPS CPC registers block.
maxItems: 1

required:
- compatible
- reg

examples:
- |
cpc@1bde0000 {
compatible = "mti,mips-cpc";
reg = <0x1bde0000 0x8000>;
};
...

0 comments on commit 29cf195

Please sign in to comment.