Message ID | 20230601101451.357662-4-o.rempel@pengutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp204741vqr; Thu, 1 Jun 2023 03:37:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5uc/hAP0t9G+2P8mINFFjN1ijMpQWrSE2RvVtFEbSYGqfBQuTEujsyrNmnhj9DR2EnkWZN X-Received: by 2002:a17:902:c403:b0:1b0:61dd:e523 with SMTP id k3-20020a170902c40300b001b061dde523mr6675701plk.41.1685615879208; Thu, 01 Jun 2023 03:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685615879; cv=none; d=google.com; s=arc-20160816; b=ccabb7+VpdXhG5dm45g9ghKET/kfHhs6D2aOelI4qXq/Fioa5kA6EokDQ2RnD3qq/N PGOuLMchJedFvkQw6wShO9i4kqSmSCDLSusl1xnTSTHlgQxjOeoUr0+XXSV1HLpdb7KS 6dhX5tG3doDRbZttkGhMeBikpiQBx4EwQH4u5WBGDc58sn5Zm8/1TEgbbvmC1+4Aw40n IxkpGD5cpM5FJfWM7eu+guKO2zc+tgnBDBwIahkp/5Vb1+bd5rMm9cIFTUzm8EjcO2VH S/kPM2gVC/V8940+xZ5bSI+10X8mTgAdcckCuebUaDnAOCaZ2FaLgWZY4mi+CIPwIVDM mQPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IN/2ZH3W5mHoemEolSqJBLlezoUMKrTEaHQxuTfQys8=; b=sGwXx6PPtommtMW9cdfS0qaZhv+nsCWhh9yZ5+1lXP5w68anoYFdRzBQaEtQTlAbKo dnWGC9hdFNHTpo//JAw05LReAqZYzcy3aV67Ntjl/G1QRAt2aFSuT8dtMH2pCQ+IW64s 7vrnY8zy3TkqMPRNe3LzXlCZ7/kPjTE8HcFLo7QNBHBDUuiDzvj9jjthGWtIqQWjh9W5 2ke+MDtFiLxImx8a/OEnyp7vDpRRi5aA4jfmXoz3XE+b5rNBiugpJKDVul8TUMryza1i D0wrK7XXSof5HfcDf9ujg7kVY4QfzY/MNjQ3emBJ0K4hWbvEKzdk+oEjcvtbBK47S9eu nJIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a17090311c400b001aaf6228a70si1419943plh.325.2023.06.01.03.37.44; Thu, 01 Jun 2023 03:37:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233093AbjFAKVG (ORCPT <rfc822;limurcpp@gmail.com> + 99 others); Thu, 1 Jun 2023 06:21:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232910AbjFAKTN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 1 Jun 2023 06:19:13 -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 A475CE7C for <linux-kernel@vger.kernel.org>; Thu, 1 Jun 2023 03:16:14 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <ore@pengutronix.de>) id 1q4fKZ-0004WD-5l; Thu, 01 Jun 2023 12:14:55 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from <ore@pengutronix.de>) id 1q4fKX-004KWH-WF; Thu, 01 Jun 2023 12:14:54 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from <ore@pengutronix.de>) id 1q4fKW-001V3z-KX; Thu, 01 Jun 2023 12:14:52 +0200 From: Oleksij Rempel <o.rempel@pengutronix.de> To: Abel Vesa <abelvesa@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Herbert Xu <herbert@gondor.apana.org.au>, "David S. Miller" <davem@davemloft.net>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Ulf Hansson <ulf.hansson@linaro.org> Cc: Oleksij Rempel <o.rempel@pengutronix.de>, kernel@pengutronix.de, Peng Fan <peng.fan@nxp.com>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Michael Trimarchi <michael@amarulasolutions.com>, Mark Brown <broonie@kernel.org>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Anson Huang <Anson.Huang@nxp.com>, Marek Vasut <marex@denx.de>, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-input@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCH v1 3/7] dt-bindings: timer: gpt: Support 3rd clock for i.MX6DL Date: Thu, 1 Jun 2023 12:14:47 +0200 Message-Id: <20230601101451.357662-4-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230601101451.357662-1-o.rempel@pengutronix.de> References: <20230601101451.357662-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767496356487399386?= X-GMAIL-MSGID: =?utf-8?q?1767496356487399386?= |
Series |
Add support for various features to i.MX6 bindings
|
|
Commit Message
Oleksij Rempel
June 1, 2023, 10:14 a.m. UTC
Add support for a 3rd clock, 'osc_per', for i.MX6DL to the 'fsl,imxgpt'
binding to resolve the following dtbs_check warning:
imx6dl-alti6p.dtb: timer@2098000: clocks: [[2, 119], [2, 120], [2, 237]]
is too long
From schema: Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
imx6dl-alti6p.dtb: timer@2098000: clock-names: ['ipg', 'per', 'osc_per']
is too long
From schema: Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
.../devicetree/bindings/timer/fsl,imxgpt.yaml | 22 ++++++++++++++-----
1 file changed, 16 insertions(+), 6 deletions(-)
Comments
On Thu, Jun 01, 2023 at 12:14:47PM +0200, Oleksij Rempel wrote: > Add support for a 3rd clock, 'osc_per', for i.MX6DL to the 'fsl,imxgpt' > binding to resolve the following dtbs_check warning: > imx6dl-alti6p.dtb: timer@2098000: clocks: [[2, 119], [2, 120], [2, 237]] > is too long > From schema: Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > imx6dl-alti6p.dtb: timer@2098000: clock-names: ['ipg', 'per', 'osc_per'] > is too long > From schema: Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > --- > .../devicetree/bindings/timer/fsl,imxgpt.yaml | 22 ++++++++++++++----- > 1 file changed, 16 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > index adf617b8f353..21ff51c3f38f 100644 > --- a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > +++ b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > @@ -46,14 +46,24 @@ properties: > maxItems: 1 > > clocks: > - items: > - - description: SoC GPT ipg clock > - - description: SoC GPT per clock > + anyOf: > + - items: > + - description: SoC GPT ipg clock > + - description: SoC GPT per clock > + - items: > + - description: SoC GPT ipg clock > + - description: SoC GPT per clock > + - description: SoC GPT osc_per clock > > clock-names: > - items: > - - const: ipg > - - const: per > + anyOf: > + - items: > + - const: ipg > + - const: per > + - items: > + - const: ipg > + - const: per > + - const: osc_per Hmm, should we not do per-compatible enforcement here so that the extra clock is only used on the appropriate platforms? Cheers, Conor. > > required: > - compatible > -- > 2.39.2 >
On Thu, Jun 01, 2023 at 12:14:47PM +0200, Oleksij Rempel wrote: > Add support for a 3rd clock, 'osc_per', for i.MX6DL to the 'fsl,imxgpt' > binding to resolve the following dtbs_check warning: > imx6dl-alti6p.dtb: timer@2098000: clocks: [[2, 119], [2, 120], [2, 237]] > is too long > From schema: Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > imx6dl-alti6p.dtb: timer@2098000: clock-names: ['ipg', 'per', 'osc_per'] > is too long > From schema: Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > --- > .../devicetree/bindings/timer/fsl,imxgpt.yaml | 22 ++++++++++++++----- > 1 file changed, 16 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > index adf617b8f353..21ff51c3f38f 100644 > --- a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > +++ b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml > @@ -46,14 +46,24 @@ properties: > maxItems: 1 > > clocks: > - items: > - - description: SoC GPT ipg clock > - - description: SoC GPT per clock > + anyOf: No need for anyOf. Just add the 3rd entry and 'minItems: 2'. > + - items: > + - description: SoC GPT ipg clock > + - description: SoC GPT per clock > + - items: > + - description: SoC GPT ipg clock > + - description: SoC GPT per clock > + - description: SoC GPT osc_per clock > > clock-names: > - items: > - - const: ipg > - - const: per > + anyOf: > + - items: > + - const: ipg > + - const: per > + - items: > + - const: ipg > + - const: per > + - const: osc_per > > required: > - compatible > -- > 2.39.2 >
diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml index adf617b8f353..21ff51c3f38f 100644 --- a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml +++ b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml @@ -46,14 +46,24 @@ properties: maxItems: 1 clocks: - items: - - description: SoC GPT ipg clock - - description: SoC GPT per clock + anyOf: + - items: + - description: SoC GPT ipg clock + - description: SoC GPT per clock + - items: + - description: SoC GPT ipg clock + - description: SoC GPT per clock + - description: SoC GPT osc_per clock clock-names: - items: - - const: ipg - - const: per + anyOf: + - items: + - const: ipg + - const: per + - items: + - const: ipg + - const: per + - const: osc_per required: - compatible