Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1335730pxa; Fri, 28 Aug 2020 09:50:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLvAmuEdChHgYhTbv+HHa8FGwY+525QAEwm40wIHRiQfQFODsMj5UMICj5rSGgb871RMs1 X-Received: by 2002:a17:906:408d:: with SMTP id u13mr2726667ejj.325.1598633412653; Fri, 28 Aug 2020 09:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598633412; cv=none; d=google.com; s=arc-20160816; b=NUznbbbboFaHZmwurP+eQD+BUfvR0ggIO1ZcH+8/cj74c/gnH8C02+DF23pziCR9N7 5AMK81G490Lgd3i818dDpcDmMZDFuX5RfetUUOMiZ02zqtY0Rkbnmr327+yOsLWxHZ6Y SzWOZd4PMRp4Du5hBFEzzlmGOzWIFGONSApQdjvDbD/KPmmYXtU534RhnQfM9FkzRzAn TtpXLrIVjz6x6xGLf/8PgxGd6z9Vl1JpXubB6acfFSkS/JCH8GZs45GkLpgx6/HRl6Hb BS2/BVYIng9BzXXrSpO0NAvh7nYT2qBbR8bJGuWUG8IBndUfFBHyUYxP+QbkOXpzocSd o43Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=3oyhz4K3HVIaGMWlUgaT6SQCAz3O3QRDY7Pno+tT+UY=; b=fUASJ8NZQvBXBJrABF/9bRnNynqwezwmlhACXIcHu9yCpnV8iMVeeB8AFZRBf67ZHz NtpK4/mIvcbPka/75N8CmxX2TvOVrqIVEpLEUF3adR6rFcZsSOQDm04SeXl5ZXk34F2Z EjJPdYrnwNPoTIKeSmWL9NDuuNBHDiLywcyqLC6wtcJuPJfqMxdoZtBa4ClonIqK+b43 hRmRb+X1uSBA+i/s+q1I2wzxgddMs4bkRaEVmo+0NjFxQuY15jpSvDKJyvc/VmjqYtb3 GMX0skvQJAuH3Dpf1sI2cEXY3PXxM7/TNp8kC+FTxr739tSMIdf7frchqvaKl45Ulx6i RUQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mzM4sHYL; 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 u23si1126275edb.517.2020.08.28.09.49.49; Fri, 28 Aug 2020 09:50:12 -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=mzM4sHYL; 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 S1728380AbgH1QtH (ORCPT + 99 others); Fri, 28 Aug 2020 12:49:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:42892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbgH1QtF (ORCPT ); Fri, 28 Aug 2020 12:49:05 -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 BEC5320936; Fri, 28 Aug 2020 16:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598633344; bh=Pq6AMCutClAdC1MVlFH4CnQL+gGmRAYhCy6R3i2GV1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mzM4sHYL06XpLQomfCEMXKL2NwP9POamCCfvGAT/a6QRr8556l2Sog2D2xw85j4pF B4XOUauS/CJ96R4CbxZuKebJlz99XHj3Gpg54ba5O8tASkW39k5dbpnxJLYWFyPrUB UNYsGr2Poye+HkNuPi2vBiSMzPyi+FT+yTOTEOyc= 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 , Anson Huang , 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 v2 01/19] dt-bindings: mfd: rohm,bd71847-pmic: Correct clock properties requirements Date: Fri, 28 Aug 2020 18:47:32 +0200 Message-Id: <20200828164750.10377-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200828164750.10377-1-krzk@kernel.org> References: <20200828164750.10377-1-krzk@kernel.org> 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 Acked-by: Matti Vaittinen --- .../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