From patchwork Tue Jan 11 21:26:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse T X-Patchwork-Id: 1578783 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=iCUGw1wb; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4JYNzd3294z9sRR for ; Wed, 12 Jan 2022 08:26:21 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245070AbiAKV0S (ORCPT ); Tue, 11 Jan 2022 16:26:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245049AbiAKV0Q (ORCPT ); Tue, 11 Jan 2022 16:26:16 -0500 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8814C061756; Tue, 11 Jan 2022 13:26:15 -0800 (PST) Received: by mail-qt1-x82e.google.com with SMTP id i8so820990qtw.0; Tue, 11 Jan 2022 13:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rr6jELGvG2LF019fePgIA2z2VD3l6GZzUoZbl9xOC9k=; b=iCUGw1wbx5IeLepIJG/oq6CGXCHBv+lmkrXHLOiCSWPNaeJQ1QNMcCdjf40ScN5OUL Ji52GH4tIiJ4HIamzR/ZfsglLzaqs/+Glie/KyeUoCMsyk/uGGo0BeFGDCg4PP5Vd9Ar KJjX8bqeoG8HuyEAV2vxXyfd/L1rEJFOdBNlKlIBgudxvuLYmCNXJRCSTwBU/57M6RgP PsEQyHpdt9DiGEAqU9j/R8KoxvkhT9W4WnCfNCQ3Rmh5MOeUHA6YfKIqe19jCl+WqLcL vqbHPCpIFM2wik7w19HGPgM9AhVixjg/snL2qGUi3bgGgpH3zH7kJa9/NSZrRzxrBXqQ 01/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rr6jELGvG2LF019fePgIA2z2VD3l6GZzUoZbl9xOC9k=; b=oPrJd1xqqlHf3E8aroTKbJbuKi4Lmahgr+PpJnDMGDxh6Wdwj3DnVO/ikHf3tQRCsF AJPplgttUcOh5oblZX3TIXkMUOuKDbz4LP2ZXRDI/859qEDZThvahsTxanIsxYog9eBv 8RSfpTUskSGtjaK/RjAyUs69fDTMiVIeV01LjidS3IJkhKvbfToRzoVZ6x+/PRfu2oJg DmuybcpdCoO4PVLpIbcDHGg21+YgKDaTviRwB9YuaevZuL86sWGC1K9ftkWc7VkKN6Sk 8hQXpfNbKHNuwCsfiDmksPbAQKqxMC24n9hm0vL9k4RO3LlzPO52pmoGxcrGtvKBZ+Z7 6CjA== X-Gm-Message-State: AOAM530pGXbZaXOkXVX4IluER9L/aPnhT2UO7b9qFbm7d5z08kncUiwt DlZvdWJDWNM+l6LNrmBJpto= X-Google-Smtp-Source: ABdhPJzMj0pkWt2mG5wEzlhEQH+agI7sjkoUccPyZvLkNYargZ32CtuysIOdkkrYjXxQ6FyhgxTgkA== X-Received: by 2002:ac8:5ec1:: with SMTP id s1mr5349844qtx.584.1641936375059; Tue, 11 Jan 2022 13:26:15 -0800 (PST) Received: from jesse-desktop.jtp-bos.lab (146-115-144-188.s4282.c3-0.nwt-cbr1.sbo-nwt.ma.cable.rcncustomer.com. [146.115.144.188]) by smtp.gmail.com with ESMTPSA id l15sm7761990qkp.16.2022.01.11.13.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 13:26:14 -0800 (PST) From: Jesse Taube X-Google-Original-From: Jesse Taube To: linux-imx@nxp.com Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, ulf.hansson@linaro.org, aisheng.dong@nxp.com, stefan@agner.ch, linus.walleij@linaro.org, gregkh@linuxfoundation.org, arnd@arndb.de, olof@lixom.net, soc@kernel.org, linux@armlinux.org.uk, abel.vesa@nxp.com, adrian.hunter@intel.com, jirislaby@kernel.org, giulio.benetti@benettiengineering.com, nobuhiro1.iwamatsu@toshiba.co.jp, Mr.Bossman075@gmail.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, Jesse Taube Subject: [PATCH v7 4/7] dt-bindings: clock: imx: Add documentation for i.MXRT1050 clock Date: Tue, 11 Jan 2022 16:26:03 -0500 Message-Id: <20220111212606.2072669-5-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220111212606.2072669-1-Mr.Bossman075@gmail.com> References: <20220111212606.2072669-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Jesse Taube Add DT binding documentation for i.MXRT1050 clock driver. Cc: Giulio Benetti Signed-off-by: Jesse Taube --- V1->V2: * Replace macros with values V2->V3: * Remove anatop * Use lpuart not gpt * include imxrt1050-clock.h * 2 space tabs to 4 * Remove oneOf enum * Change maxItems to 2 V3->V4: * Nothing done V4->V5: * Remove extra newline * Rename ccm to clock-controller * Change minItems to const * Change minItems to description * Rename file to add 1050 * Change commit description to just 1050 V5->V6: * Add maxItems for clocks description V6->V7: * Nothing done V7->V8: * Nothing done --- .../bindings/clock/imxrt1050-clock.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/imxrt1050-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/imxrt1050-clock.yaml b/Documentation/devicetree/bindings/clock/imxrt1050-clock.yaml new file mode 100644 index 000000000000..35fd08c143f4 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/imxrt1050-clock.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/imxrt1050-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Clock bindings for Freescale i.MXRT + +maintainers: + - Giulio Benetti + - Jesse Taube + +description: | + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. See include/dt-bindings/clock/imxrt*-clock.h + for the full list of i.MXRT clock IDs. + +properties: + compatible: + const: fsl,imxrt1050-ccm + + reg: + maxItems: 1 + + interrupts: + maxItems: 2 + + clocks: + description: 24m osc + maxItems: 1 + + clock-names: + const: osc + + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - '#clock-cells' + +additionalProperties: false + +examples: + - | + #include + + clks: clock-controller@400fc000 { + compatible = "fsl,imxrt1050-ccm"; + reg = <0x400fc000 0x4000>; + interrupts = <95>, <96>; + clocks = <&osc>; + clock-names = "osc"; + #clock-cells = <1>; + }; + + lpuart1: serial@40184000 { + compatible = "fsl,imxrt1050-lpuart"; + reg = <0x40184000 0x4000>; + interrupts = <20>; + clocks = <&clks IMXRT1050_CLK_LPUART1>; + clock-names = "ipg"; + };