Message ID | 20200506174238.15385-2-Sergey.Semin@baikalelectronics.ru (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | mips: Prepare MIPS-arch code for Baikal-T1 SoC support | expand |
On Wed, 6 May 2020 20:42:19 +0300, wrote: > From: Serge Semin <Sergey.Semin@baikalelectronics.ru> > > 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> > Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru> > Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> > Cc: Paul Burton <paulburton@kernel.org> > Cc: Ralf Baechle <ralf@linux-mips.org> > Cc: Arnd Bergmann <arnd@arndb.de> > Cc: linux-pm@vger.kernel.org > > --- > > Changelog v2: > - Reword the changelog summary - use shorter version. > - Lowercase the example hex'es. > --- > .../bindings/power/mti,mips-cpc.txt | 8 ----- > .../bindings/power/mti,mips-cpc.yaml | 35 +++++++++++++++++++ > 2 files changed, 35 insertions(+), 8 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/power/mti,mips-cpc.txt > create mode 100644 Documentation/devicetree/bindings/power/mti,mips-cpc.yaml > Reviewed-by: Rob Herring <robh@kernel.org>
On Thu, May 14, 2020 at 10:09:03AM -0500, Rob Herring wrote: > On Wed, 6 May 2020 20:42:19 +0300, wrote: > > From: Serge Semin <Sergey.Semin@baikalelectronics.ru> > > > > 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> > > Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru> > > Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> > > Cc: Paul Burton <paulburton@kernel.org> > > Cc: Ralf Baechle <ralf@linux-mips.org> > > Cc: Arnd Bergmann <arnd@arndb.de> > > Cc: linux-pm@vger.kernel.org > > > > --- > > > > Changelog v2: > > - Reword the changelog summary - use shorter version. > > - Lowercase the example hex'es. > > --- > > .../bindings/power/mti,mips-cpc.txt | 8 ----- > > .../bindings/power/mti,mips-cpc.yaml | 35 +++++++++++++++++++ > > 2 files changed, 35 insertions(+), 8 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/power/mti,mips-cpc.txt > > create mode 100644 Documentation/devicetree/bindings/power/mti,mips-cpc.yaml > > > > Reviewed-by: Rob Herring <robh@kernel.org> Great! Thanks. -Sergey
diff --git a/Documentation/devicetree/bindings/power/mti,mips-cpc.txt b/Documentation/devicetree/bindings/power/mti,mips-cpc.txt deleted file mode 100644 index c6b82511ae8a..000000000000 --- a/Documentation/devicetree/bindings/power/mti,mips-cpc.txt +++ /dev/null @@ -1,8 +0,0 @@ -Binding for MIPS Cluster Power Controller (CPC). - -This binding allows a system to specify where the CPC registers are -located. - -Required properties: -compatible : Should be "mti,mips-cpc". -regs: Should describe the address & size of the CPC register region. diff --git a/Documentation/devicetree/bindings/power/mti,mips-cpc.yaml b/Documentation/devicetree/bindings/power/mti,mips-cpc.yaml new file mode 100644 index 000000000000..9cd92a57130c --- /dev/null +++ b/Documentation/devicetree/bindings/power/mti,mips-cpc.yaml @@ -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 = <0 0x1bde0000 0 0x8000>; + }; +...