Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2745551pxa; Tue, 25 Aug 2020 01:56:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9K2rezkLuKYcdEe7luAnYHSux/CP53EsfWMKONNEdIA1nxetJEn915DZexqNlNyQNyPnU X-Received: by 2002:a50:fd84:: with SMTP id o4mr9063499edt.76.1598345813357; Tue, 25 Aug 2020 01:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598345813; cv=none; d=google.com; s=arc-20160816; b=F8sxMRIJlPki/JfXfp6rDxx43lPvh9/2DVkZZzEQLIGhyYvCW8b3DGTOtz6oMkrbol WjCWHwNoC93cFVggel1tKrhl8s+DjeGZU+QRgtL0EQaRISXe+Gq4Cik27eDNzSMv5jrZ xHzHzhtXBB1FW4B5dtW8+YI0LSS7Ea5sxPAgf80XzszsgC1ICzlo+fBY95fhLBleONCJ gQaqK4lwClVXk/UjXbrdOh+ddOLzFS3fRSWTHH5A7XHcKrhIkPklaQMCub9hOFM0smep u+G6a0KWUgpcq8B/2QjA/8BytwTL4YNKrVSD40BNODmlDRMvxRBdxwXTUuenpI+jCZLa GOyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=a/1rYNKSo7GZA26Ebuc5a4TuK3oA5MJdOwYhaRFjepY=; b=mDJ4gRZ0tPxPU/lRFY1zZnmhLuQS1VUpynPk5S1upDoJ23OhhYUs4Ge2dkcP6uf8sU Mb5udAoR8PBRP0bjWbhL7YU02hcuQlqmcP1+t+OhVWqW5mUrP/c+/UZFomRjU77hNHmq V089XmjQl7pMXHENjZCLJAt2SuHfIObHxOokBV6Reos7slk4BeZbCOkYWpWaQyw5CHeH SoiG7ebCVP5HOJT9qOZrSrVXspJUZWKJB7o4+hHZZ/EElYPC7bqshrcb/ToZ4/NCulGc 1IymJ6TR6NER9SVIedsFP06rx9WEWJ8+FhMbNyR4CZaNyHcrV3ifCAfP6H1u7m0ukXyf hrBA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si6782787edy.588.2020.08.25.01.56.30; Tue, 25 Aug 2020 01:56:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729167AbgHYGkp (ORCPT + 99 others); Tue, 25 Aug 2020 02:40:45 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:41349 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729110AbgHYGkn (ORCPT ); Tue, 25 Aug 2020 02:40:43 -0400 Received: from [2001:67c:670:100:1d::c0] (helo=ptx.hi.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kASd5-0006Yi-0e; Tue, 25 Aug 2020 08:40:23 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kASd2-0002aQ-Mk; Tue, 25 Aug 2020 08:40:20 +0200 Date: Tue, 25 Aug 2020 08:40:20 +0200 From: Sascha Hauer To: Krzysztof Kozlowski Cc: Lee Jones , Rob Herring , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Shawn Guo , 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 Subject: Re: [PATCH 02/16] dt-bindings: mtd: gpmi-nand: Fix matching of clocks on different SoCs Message-ID: <20200825064020.GM13023@pengutronix.de> References: <20200824190701.8447-1-krzk@kernel.org> <20200824190701.8447-2-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200824190701.8447-2-krzk@kernel.org> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:34:56 up 187 days, 14:05, 139 users, load average: 0.34, 0.21, 0.22 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 09:06:47PM +0200, Krzysztof Kozlowski wrote: > Driver requires different amount of clocks for different SoCs. Describe > these requirements properly to fix dtbs_check warnings like: > > arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dt.yaml: nand-controller@33002000: clock-names:1: 'gpmi_apb' was expected > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/mtd/gpmi-nand.yaml | 76 +++++++++++++++---- > 1 file changed, 61 insertions(+), 15 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml b/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml > index 28ff8c581837..9d764e654e1d 100644 > --- a/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml > +++ b/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml > + - if: > + properties: > + compatible: > + contains: > + enum: > + - fsl,imx6q-gpmi-nand > + - fsl,imx6sx-gpmi-nand > + then: > + properties: > + clocks: > + items: > + - description: SoC gpmi io clock > + - description: SoC gpmi apb clock > + - description: SoC gpmi bch clock > + - description: SoC gpmi bch apb clock > + - description: SoC per1 bch clock > + clock-names: > + items: > + - const: gpmi_io > + - const: gpmi_apb > + - const: gpmi_bch > + - const: gpmi_bch_apb > + - const: per1_bch This enforces this specific order of the clocks given in the dts. The clock binding itself doesn't require any specific order, that's what we have the names array for. Is this really what we want? Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |