From patchwork Tue Aug 3 07:29:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 12415485 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B32C9C4338F for ; Tue, 3 Aug 2021 07:32:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 77B9D60C3E for ; Tue, 3 Aug 2021 07:32:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 77B9D60C3E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Nwdv2kPmpOoLgokUSX0NO//dThyJR07ia6Ff3evIJ0s=; b=0btwIvzoO7+wgj yR2wG6whE4a/EC4WNZHAUD/k4EbovM0s5B9iDKHrJZC3mz2PVq3eVs5su1xeRaXaojsQP7+eHOepE sf56AcGMPVq1oDSx3eY3xZWeRoSqwrBnfIbrXDbmiBtsbitPxScGZ6WD1L2VNK7i2LeduIPfJs0gA p0OJRXbsH/QF8pO7KjJfQVKHSLlyCBGng31VPh8VTIJSIqLHAYDIFbxsv62UH8qGwysrb4GWiqR5I e4grDEsTg8oN06hCYIPCDTMYDUqLaMfqU2IynQUPY+hCgtzP6WQ7839qgpRoYQJlknc2t8chSJqpG nvbsm0TEbrYGcHrfRaPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAosQ-001PRx-L0; Tue, 03 Aug 2021 07:30:14 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAosL-001PRF-Ut for linux-arm-kernel@lists.infradead.org; Tue, 03 Aug 2021 07:30:11 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAosC-00051A-OX; Tue, 03 Aug 2021 09:30:00 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mAosB-0001GX-OK; Tue, 03 Aug 2021 09:29:59 +0200 From: Oleksij Rempel To: Shawn Guo , Sascha Hauer , Rob Herring Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Fabio Estevam , NXP Linux Team , Daniel Lezcano , Thomas Gleixner Subject: [PATCH v1] dt-bindings: timer: fsl, imxgpt: add optional osc_per clock Date: Tue, 3 Aug 2021 09:29:58 +0200 Message-Id: <20210803072958.4815-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 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-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210803_003010_038568_C575076B X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add optional osc_per and fix dts validation warnings on imx6 SoCs. Fixes: df8cad689eae ("dt-bindings: timer: Convert i.MX GPT to json-schema") Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/timer/fsl,imxgpt.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml index a4f51f46b7a1..e496dd9f4988 100644 --- a/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml +++ b/Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml @@ -43,11 +43,15 @@ properties: items: - description: SoC GPT ipg clock - description: SoC GPT per clock + - description: optional SoC GPT oscillator + minItems: 2 clock-names: items: - const: ipg - const: per + - const: osc_per + minItems: 2 required: - compatible @@ -70,3 +74,16 @@ examples: <&clks IMX27_CLK_PER1_GATE>; clock-names = "ipg", "per"; }; + + - | + #include + + timer@2098000 { + compatible = "fsl,imx6q-gpt", "fsl,imx31-gpt"; + reg = <0x02098000 0x4000>; + interrupts = <26>; + clocks = <&clks IMX6QDL_CLK_GPT_IPG>, + <&clks IMX6QDL_CLK_GPT_IPG_PER>, + <&clks IMX6QDL_CLK_GPT_3M>; + clock-names = "ipg", "per", "osc_per"; + };