Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp914555ybz; Wed, 15 Apr 2020 22:24:11 -0700 (PDT) X-Google-Smtp-Source: APiQypKAz2+eaDRrmqKqwH0SRhFPl85V9vTUOq43rxPrCAP4uZOLTy9nxERbWgzTtIxgMZjuSNKu X-Received: by 2002:a17:906:8501:: with SMTP id i1mr7609237ejx.203.1587014651146; Wed, 15 Apr 2020 22:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587014651; cv=none; d=google.com; s=arc-20160816; b=oTlsvSADmrc6boPDkW8+Z/VkD/PhHiX33rYwVtmVTFaWzKcoDUWcVxMG4oeJtV7iot /erZTnqHIuXDQUm5VjqovuoZbbXmoSwdRpz9y8d+5g7zUNs4CtbLVgosTe2qFXyI97d8 8Lwl1M/Xi0umS+shHG89u4Xja+DSv87+jMePZ42/o41M8GCm4odysI+OmjG1QEm2IriZ sBhUQ/Y+9StDDUzSEGyJDv0aeI86R7PmvGNJ3JBU49qcRhkgjGLv3vqsW6zVlOiqECOm YIjuQImQpzZdphyTesp7NHkcOpJM6WXWkrCRHCzPPbIw+VwNdgc86mGZ2KXj91pKEVw2 1aFA== 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=CBXOowLT+jbCq+bxtE71uFtxI6oZEdg1W9Ca8q2h2ok=; b=T/q0K6xvhg/oRT4NDS0HWzqJg/aC52oluf1l0Kuixraz2g/FamdUK6eeCUSi5ITJrq OI4MA2CEBs2RBBCWUXYNKCnKlsIkFEw6F+JWAHqvYE5lzKUlj965m40DmAu4MkZ2kzcQ +hRh4zh/xxBDYa6LrL5jtmgGKFTIfOoWa9P3vk1MvDfbNrzX6/zyp5YgP7Q6zXglhjeJ eJrmRc92yQ2UYVmDt3sTKvdykNiHhNX11dV+xNzQPJXaAVRoU3r5lALoG1DRpNr/FLtv KciJbI6JBOxglvLsH8XgEHUsoaAUJtZNlzhBSP1qBfyWfvTu5d3kSk0azNFkEJuwkwYT xTIQ== 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 a72si12244234edf.28.2020.04.15.22.23.46; Wed, 15 Apr 2020 22:24:11 -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 S2406152AbgDPFWo (ORCPT + 99 others); Thu, 16 Apr 2020 01:22:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405910AbgDPFWm (ORCPT ); Thu, 16 Apr 2020 01:22:42 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA60C061A0C for ; Wed, 15 Apr 2020 22:22:42 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOwyv-0003eK-7t; Thu, 16 Apr 2020 07:22:33 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jOwyr-0007W6-OK; Thu, 16 Apr 2020 07:22:29 +0200 Date: Thu, 16 Apr 2020 07:22:29 +0200 From: Marco Felsch To: Anson Huang Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH 1/5] dt-bindings: clock: Convert i.MX6Q clock to json-schema Message-ID: <20200416052229.m6ur2coyfg6ef7vz@pengutronix.de> References: <1587011171-24532-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1587011171-24532-1-git-send-email-Anson.Huang@nxp.com> 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: 07:12:42 up 152 days, 20:31, 155 users, load average: 0.08, 0.14, 0.08 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@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 Hi Anson, thanks for the patch. I have two questions please see inline which applies to all patches. On 20-04-16 12:26, Anson Huang wrote: ... > diff --git a/Documentation/devicetree/bindings/clock/imx6q-clock.yaml b/Documentation/devicetree/bindings/clock/imx6q-clock.yaml > new file mode 100644 > index 0000000..084d4f0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/imx6q-clock.yaml > @@ -0,0 +1,69 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/imx6q-clock.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Clock bindings for Freescale i.MX6 Quad > + > +maintainers: > + - Anson Huang > + > +properties: > + compatible: > + const: fsl,imx6q-ccm > + > + reg: > + maxItems: 1 > + > + interrupts: > + minItems: 1 Why 1 and not 2? The RM describes that the ccm has 2 interrupts. > + maxItems: 2 > + > + '#clock-cells': > + const: 1 > + > + clocks: > + items: > + - description: 24m osc > + - description: 32k osc > + - description: ckih1 clock input > + - description: anaclk1 clock input > + - description: anaclk2 clock input > + > + clock-names: > + items: > + - const: osc > + - const: ckil > + - const: ckih1 > + - const: anaclk1 > + - const: anaclk2 > + > + fsl,pmic-stby-poweroff: > + $ref: /schemas/types.yaml#/definitions/flag > + description: | > + Use this property if the SoC should be powered off by external power > + management IC (PMIC) triggered via PMIC_STBY_REQ signal. > + Boards that are designed to initiate poweroff on PMIC_ON_REQ signal should > + be using "syscon-poweroff" driver instead. > + > +required: > + - compatible > + - reg > + - interrupts > + - '#clock-cells' > + > +examples: > + # Clock Control Module node: > + - | > + #include > + > + clks: clock-controller@20c4000 { > + compatible = "fsl,imx6q-ccm"; > + reg = <0x020c4000 0x4000>; > + interrupts = <0 87 IRQ_TYPE_LEVEL_HIGH>, > + <0 88 IRQ_TYPE_LEVEL_HIGH>; > + #clock-cells = <1>; > + }; > + > +... Why these '...' here? Regards, Marco > -- > 2.7.4