All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Lee Jones <lee.jones@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	Anson Huang <Anson.Huang@nxp.com>,
	Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
	Han Xu <han.xu@nxp.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-mtd@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Subject: [PATCH v2 01/19] dt-bindings: mfd: rohm,bd71847-pmic: Correct clock properties requirements
Date: Fri, 28 Aug 2020 18:47:32 +0200	[thread overview]
Message-ID: <20200828164750.10377-2-krzk@kernel.org> (raw)
In-Reply-To: <20200828164750.10377-1-krzk@kernel.org>

The input clock and number of clock provider cells are not required for
the PMIC to operate.  They are needed only for the optional bd718x7
clock driver.

Add also clock-output-names as driver takes use of it.

This fixes dtbs_check warnings like:

    arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dt.yaml: pmic@4b: 'clocks' is a required property
    arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dt.yaml: pmic@4b: '#clock-cells' is a required property

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
---
 .../devicetree/bindings/mfd/rohm,bd71847-pmic.yaml       | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
index 77bcca2d414f..5d531051a153 100644
--- a/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
@@ -38,6 +38,9 @@ properties:
   "#clock-cells":
     const: 0
 
+  clock-output-names:
+    maxItems: 1
+
 # The BD71847 abd BD71850 support two different HW states as reset target
 # states. States are called as SNVS and READY. At READY state all the PMIC
 # power outputs go down and OTP is reload. At the SNVS state all other logic
@@ -116,12 +119,14 @@ required:
   - compatible
   - reg
   - interrupts
-  - clocks
-  - "#clock-cells"
   - regulators
 
 additionalProperties: false
 
+dependencies:
+  '#clock-cells': [clocks]
+  clocks: ['#clock-cells']
+
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-- 
2.17.1


WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Lee Jones <lee.jones@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	Anson Huang <Anson.Huang@nxp.com>,
	Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
	Han Xu <han.xu@nxp.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-mtd@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Subject: [PATCH v2 01/19] dt-bindings: mfd: rohm, bd71847-pmic: Correct clock properties requirements
Date: Fri, 28 Aug 2020 18:47:32 +0200	[thread overview]
Message-ID: <20200828164750.10377-2-krzk@kernel.org> (raw)
In-Reply-To: <20200828164750.10377-1-krzk@kernel.org>

The input clock and number of clock provider cells are not required for
the PMIC to operate.  They are needed only for the optional bd718x7
clock driver.

Add also clock-output-names as driver takes use of it.

This fixes dtbs_check warnings like:

    arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dt.yaml: pmic@4b: 'clocks' is a required property
    arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dt.yaml: pmic@4b: '#clock-cells' is a required property

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
---
 .../devicetree/bindings/mfd/rohm,bd71847-pmic.yaml       | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
index 77bcca2d414f..5d531051a153 100644
--- a/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
@@ -38,6 +38,9 @@ properties:
   "#clock-cells":
     const: 0
 
+  clock-output-names:
+    maxItems: 1
+
 # The BD71847 abd BD71850 support two different HW states as reset target
 # states. States are called as SNVS and READY. At READY state all the PMIC
 # power outputs go down and OTP is reload. At the SNVS state all other logic
@@ -116,12 +119,14 @@ required:
   - compatible
   - reg
   - interrupts
-  - clocks
-  - "#clock-cells"
   - regulators
 
 additionalProperties: false
 
+dependencies:
+  '#clock-cells': [clocks]
+  clocks: ['#clock-cells']
+
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-- 
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Lee Jones <lee.jones@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	Anson Huang <Anson.Huang@nxp.com>,
	Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
	Han Xu <han.xu@nxp.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-mtd@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Subject: [PATCH v2 01/19] dt-bindings: mfd: rohm, bd71847-pmic: Correct clock properties requirements
Date: Fri, 28 Aug 2020 18:47:32 +0200	[thread overview]
Message-ID: <20200828164750.10377-2-krzk@kernel.org> (raw)
In-Reply-To: <20200828164750.10377-1-krzk@kernel.org>

The input clock and number of clock provider cells are not required for
the PMIC to operate.  They are needed only for the optional bd718x7
clock driver.

Add also clock-output-names as driver takes use of it.

This fixes dtbs_check warnings like:

    arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dt.yaml: pmic@4b: 'clocks' is a required property
    arch/arm64/boot/dts/freescale/imx8mn-ddr4-evk.dt.yaml: pmic@4b: '#clock-cells' is a required property

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
---
 .../devicetree/bindings/mfd/rohm,bd71847-pmic.yaml       | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
index 77bcca2d414f..5d531051a153 100644
--- a/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
@@ -38,6 +38,9 @@ properties:
   "#clock-cells":
     const: 0
 
+  clock-output-names:
+    maxItems: 1
+
 # The BD71847 abd BD71850 support two different HW states as reset target
 # states. States are called as SNVS and READY. At READY state all the PMIC
 # power outputs go down and OTP is reload. At the SNVS state all other logic
@@ -116,12 +119,14 @@ required:
   - compatible
   - reg
   - interrupts
-  - clocks
-  - "#clock-cells"
   - regulators
 
 additionalProperties: false
 
+dependencies:
+  '#clock-cells': [clocks]
+  clocks: ['#clock-cells']
+
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2020-08-28 16:49 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-28 16:47 [PATCH v2 00/19] arm64: dts: imx8: Align pins and regulators with dtschema Krzysztof Kozlowski
2020-08-28 16:47 ` Krzysztof Kozlowski
2020-08-28 16:47 ` Krzysztof Kozlowski
2020-08-28 16:47 ` Krzysztof Kozlowski [this message]
2020-08-28 16:47   ` [PATCH v2 01/19] dt-bindings: mfd: rohm, bd71847-pmic: Correct clock properties requirements Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 02/19] dt-bindings: mtd: gpmi-nand: Fix matching of clocks on different SoCs Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 03/19] arm64: dts: imx8mm-beacon-kit: Add missing build through Makefile Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 04/19] arm64: dts: imx8mm-beacon-som: Align regulator names with schema Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 05/19] arm64: dts: imx8mm-beacon-som: Fix atmel,24c64 EEPROM compatible Krzysztof Kozlowski
2020-08-28 16:47   ` [PATCH v2 05/19] arm64: dts: imx8mm-beacon-som: Fix atmel, 24c64 " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 06/19] arm64: dts: imx8mm-beacon: Align pin configuration group names with schema Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-09-05  6:11   ` Shawn Guo
2020-09-05  6:11     ` Shawn Guo
2020-09-05  6:11     ` Shawn Guo
2020-08-28 16:47 ` [PATCH v2 07/19] arm64: dts: imx8mm-evk: Align regulator " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 08/19] arm64: dts: imx8mm-evk: Add 32.768 kHz clock to PMIC Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-31  5:30   ` Vaittinen, Matti
2020-08-31  5:30     ` Vaittinen, Matti
2020-08-31  5:30     ` Vaittinen, Matti
2020-09-05  6:11   ` Shawn Guo
2020-09-05  6:11     ` Shawn Guo
2020-09-05  6:11     ` Shawn Guo
2020-08-28 16:47 ` [PATCH v2 09/19] arm64: dts: imx8mm-evk: Align pin configuration group names with schema Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-09-05  6:13   ` Shawn Guo
2020-09-05  6:13     ` Shawn Guo
2020-09-05  6:13     ` Shawn Guo
2020-08-28 16:47 ` [PATCH v2 10/19] arm64: dts: imx8mm-ddr4-evk: " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 11/19] arm64: dts: imx8mn-ddr4-evk: Align regulator " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-31  5:27   ` Vaittinen, Matti
2020-08-31  5:27     ` Vaittinen, Matti
2020-08-31  5:27     ` Vaittinen, Matti
2020-08-28 16:47 ` [PATCH v2 12/19] arm64: dts: imx8mn-evk: Align pin configuration group " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 13/19] arm64: dts: imx8mq-evk: " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 14/19] arm64: dts: imx8mq-librem5-devkit: " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 15/19] arm64: dts: imx8mq-phanbell: " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 16/19] arm64: dts: imx8mq-pico-pi: " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 17/19] arm64: dts: imx8mq-sr-som: " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 18/19] arm64: dts: imx8mq-hummingboard-pulse: " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47 ` [PATCH v2 19/19] arm64: dts: imx8qxp-colibri: " Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski
2020-08-28 16:47   ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200828164750.10377-2-krzk@kernel.org \
    --to=krzk@kernel.org \
    --cc=Anson.Huang@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=han.xu@nxp.com \
    --cc=kernel@pengutronix.de \
    --cc=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=matti.vaittinen@fi.rohmeurope.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.