From patchwork Tue Jan 11 21:54:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Taube X-Patchwork-Id: 12710762 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 63725C433EF for ; Tue, 11 Jan 2022 21:56:09 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=m93qeIVox9G+R6n6HXIfA0Chubgg7Bom7yAjAoqXjeI=; b=OMyrgZtDfp/1KO Utg5MAGtp2jqIkp2I+lEk8H9TeMPRWBUqG9HIDnBH5sJCmjzHrH4ik/fyocaPtowjl6af5/559QIz xr6QEWNXKBbG57Q9ZWJvQ3YGLT2nXl157Y2KaZvW5nbQ26ZXlrLuVTgYjRW/m7C/WTiWfwvgVBl8E iCsq2PoLXprbvWJqBa8aIpQKtQroJYDiOKrdIbTnw2iV+vefC2VTLgf20pNz8C4bvI5F/wcgnp3Fh SaAprmo+Yz+plsfddipipPTDqcmdzkIRYqBM1u6bjRDW8IxlfwVIl+yBDCCEIG9NZ3+wPCN/bDXjF g9+Rb3D7xXuwufy2ojRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7P6L-000GEP-Aq; Tue, 11 Jan 2022 21:54:45 +0000 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7P61-000G7H-UI for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 21:54:27 +0000 Received: by mail-qk1-x72a.google.com with SMTP id w27so373232qkj.7 for ; Tue, 11 Jan 2022 13:54:25 -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=P9OHSPYXeRdku3OPt4mdo1n4K19IfyFJGs9lCs5rlrUomRY5YQOBU0p1Iwbe3Cp0wy Nk/qOLQY7zwoWyVP8w+RQdTpa7pOQ0ypioQZVDLPH6W9Ze+rRNvHSeD6WRy68y3fxHRK fz4VQk2fuKpXXAoUIFjuQ/0bVAhER9spoi4/EB/W2wTBaqJ7IckFWmVsGozPbwsKdgBY suEPCx0oXX+RSiYCIHkSQ3zvp94TSrXf8kPIq8wxXX2DfLUKTddXW06IDNxwFpu9X/ut x9Ypohf6nlo/NQvBIE1PZjxps1v7z320fdQFMvHzGdnnb5uH5gLkIiraXEFmTLu7hudy qawQ== 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=y01WGpn+hN0yiwFG4AFv33fKpyxn/KwXXybwiWsj8Xwb2act1c0F/FcyG7EGLWtqBt MjgGgjEeg/SwjuPGZdr2Lf+EiFgSEZcf22+nIewXPf54hdIP+eCvZbcpOB1ymbh4K1CV T4eUUx6lXM5gwM/HrtaNJDhv+3haho/3gqFJX/md4DdP3vLZ5dp9fAbJWOOMOKZaIqX/ lnxCmvNPHsQjKLrHDhy/9oV+s7PpaSMiwehh8IDewM0hzXE/uVgGhwsXJGS/s7AmLVtr pVJYouzblAJt3NV1doH90LS7OAyef56pKN2euaqZyvqkOSFgxISc1x2WyIKaNVJxSx1h S1fQ== X-Gm-Message-State: AOAM530rfyE+gSDTsXoEtFs2m8jfjfrBkzGxC1b42fGW61bEBq3k8Gnr Y/BsHxWUvYDDwrRS0LoATJg= X-Google-Smtp-Source: ABdhPJy9aEiC1HB6s6hRQUqhE3bahAIA4tMt6DKB4F/NaNWABJpboEZbHHCEg3tw38kzQfuAir5J4g== X-Received: by 2002:a37:ccc:: with SMTP id 195mr1480041qkm.304.1641938064951; Tue, 11 Jan 2022 13:54:24 -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 l10sm7591020qtk.18.2022.01.11.13.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 13:54:24 -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 v8 4/7] dt-bindings: clock: imx: Add documentation for i.MXRT1050 clock Date: Tue, 11 Jan 2022 16:54:12 -0500 Message-Id: <20220111215415.2075257-5-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220111215415.2075257-1-Mr.Bossman075@gmail.com> References: <20220111212606.2072669-1-Mr.Bossman075@gmail.com> <20220111215415.2075257-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_135425_989978_A17B4505 X-CRM114-Status: GOOD ( 15.20 ) 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 From: Jesse Taube Add DT binding documentation for i.MXRT1050 clock driver. Cc: Giulio Benetti Signed-off-by: Jesse Taube Reviewed-by: Stephen Boyd --- 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"; + };