Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2367180pxa; Mon, 24 Aug 2020 12:08:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw79oR9Uh9Kzfbu9tZGbww/kwV/KiKF3WiGKF4NCq8Gr7wHMn1mvoziKnTXVcoygELKOyS/ X-Received: by 2002:aa7:d68b:: with SMTP id d11mr3840686edr.143.1598296101365; Mon, 24 Aug 2020 12:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598296101; cv=none; d=google.com; s=arc-20160816; b=F7dLrud+T5RxpurnwOlJU9OZdh7lpcQWW3jC9YWhJO2owoeztFFnv+52nu0lXbYu3M /Tnl3p1UL28gMuE3L3yKfderEg1m8PxyBjpTAPMhmESZxKfmFk76T7LCT9FZH2RBaWAx Q82ibDIPgN16cX9PIbN4ee/+CdltTEWcgDzCjFWStb+Y9MrylJViT6GkHfrT2sPYjnkI 2WDDdNlHjOFaRgbNVUl2Am31i18LmXc6X1xczeKZgH+1iOAdqboCif9sI68ygW0cRaT3 oEWkmIPA1ALWPDwMbym5LqbGM22U7qXnez4esRFn9MlZb1T2Q6mt0ByPgTjNh9MiBl8x B/CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=VhKhy+ilc7eJWcYx60PwBfcYEmMl+hXyKSKfZoNBgiw=; b=pJ0L57qVidlfKrvufqa//wcjt1L62kQp94VPrpSqAAWmrB3AX8QoXrzdNk4ux7Vxrf DpuilE5UeHuAdDHWnvUE+V/alriZ4j+aTW5D0hhH6WidNg2qE+Dy6UCXeywEjja4k/ov 9d6HkdcXc1f0r+oPqzJ7bJldeh/5hsxO/x6NB58FBpEaYE0ldtYvnGesfpNWdlzGbHn5 HOdVOw95lTa3cf3Jt0MUnUOx63sNxuCxbNsVCxfOWAyCSh0HOWTKNHMQsU8nuKn3gz6s nQAxJ3ra4mmnQypTn7I5k2OnbxyrGFhislgwfqBDiQJHV1wHLpQ5kxQAiTINcUuDqJP9 2MVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xroCTR8e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s27si1156342edw.412.2020.08.24.12.07.58; Mon, 24 Aug 2020 12:08:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xroCTR8e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726700AbgHXTHU (ORCPT + 99 others); Mon, 24 Aug 2020 15:07:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:56944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgHXTHQ (ORCPT ); Mon, 24 Aug 2020 15:07:16 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF8FC2074D; Mon, 24 Aug 2020 19:07:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598296035; bh=D49DFnKwX3H2+4/JHutRBjl6onsdr+JMHUvotdX4JOA=; h=From:To:Cc:Subject:Date:From; b=xroCTR8eKxl6V1lvgh/HrBdL5yumIzn+QzqCpV0HmoTNHLBcd3BOlUqvYqiQ83PtV +jE0X2cY7O73uflWwXcWluqNlVZ9SdesRA885D2C0dd3UtzB5zoCx2kjOhk6I+djzV DXQeTZZ+iNeRWQbKb9Y2vaA8SQNF3ozNUVvJU0vc= From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Adam Ford , Daniel Baluta , Anson Huang , Robin Gong , Li Jun , Matti Vaittinen , Han Xu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 01/16] dt-bindings: mfd: rohm,bd71847-pmic: Correct clock properties requirements Date: Mon, 24 Aug 2020 21:06:46 +0200 Message-Id: <20200824190701.8447-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.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 --- .../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 -- 2.17.1