Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4714797ybl; Mon, 9 Dec 2019 15:34:36 -0800 (PST) X-Google-Smtp-Source: APXvYqx8VIfmJS9qEqhDEn3H9P6/xm+ZQcTksb4sEeg+XkOWE+SeoY+QR231Bo5Wh7JY0DUN49dn X-Received: by 2002:a05:6808:4c7:: with SMTP id a7mr1525366oie.83.1575934476201; Mon, 09 Dec 2019 15:34:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575934476; cv=none; d=google.com; s=arc-20160816; b=qZobMDcpMMyaHrW+bLclw9X1OAk470LszaLP0byYAeMudvD8+rzK0kc1mnOmkNQ5XS nqEebY1l4fwNPzaCeNFucebZFVzD2Sbg3O/Dxubdwectqwkx89MgVbkkxyuFvcBB1UsU U3BGVv6UW/i8y/G0KEgVA45DAymkwIrG/W3rftgNIxBTXjRvqZWetYAvx3A7veSHkX6g QyU4yPXaCr5d33aWSGtuh63Ghoqo31zG1JU/gFwDW6EWC9PeppLwbpbW/yvoFdGrGB/p iqSsh3VwMd/i3WMXR33rTNHXmcf3K3IJ5QxjrFUc+yG+AGgWNxVLJggc5cSOzYfliHP0 S6Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=f8Uo7ifPm+CfV+D6uJbIVG4ldke9udnYDU6wXV+SvFw=; b=zdGxgiQiqGiGkYd6yVIBRAjftRGZ6wuS8xf//emas58RiBuSGdKH+SYfrWERImQLLh MjiRp+fgFDbHlqA8ykL08wj2HGahSjr5HQ2AKFUftYI+ygdUoUH0zcLjJiJB31LjSD3e Veuk2BDZVGtQWWj1V+Dt71oBuFtM1FHkRGHU+RF+FAJtwR7YVyWhptGb3RiMP+Z4uZkN qdehiXe33WECs5S2FU9+w9oyHu1PbfWksJXy+oh9YXYxbr/Qb+gUmuqh9qxo49gWAtc7 nUpDHGGKN7yNl54s0V1+XImEwiQ2ySBgsftILtyZEL07Na6TfM9KeBgGJhZBsdQUHj9B 9RZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=DEpaEsBO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si854152otc.130.2019.12.09.15.34.23; Mon, 09 Dec 2019 15:34:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=DEpaEsBO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727123AbfLIXdz (ORCPT + 99 others); Mon, 9 Dec 2019 18:33:55 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:35723 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbfLIXdz (ORCPT ); Mon, 9 Dec 2019 18:33:55 -0500 Received: from apollo.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:6257:18ff:fec4:ca34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id B44D22304C; Tue, 10 Dec 2019 00:33:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1575934432; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=f8Uo7ifPm+CfV+D6uJbIVG4ldke9udnYDU6wXV+SvFw=; b=DEpaEsBOYGJHTKgRtticGHb5RRDs9FvM4Lu/8QhTqXdxvYRPcPAl9umo3qG6IRQ7rA3wP+ YI8rz6FetM+sEe7tp5WZNc6qmvsXrLIkgBmXsAQ8F+qzdzG1N0CbhaLT7nQWeSlunievaC 4e+hJJh3f1XGV3jnFSuSw60JuVGHs3A= From: Michael Walle To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Michael Walle Subject: [PATCH v2 1/2] dt-bindings: clock: document the fsl-sai driver Date: Tue, 10 Dec 2019 00:33:04 +0100 Message-Id: <20191209233305.18619-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++++ X-Spam-Level: ****** X-Rspamd-Server: web X-Spam-Status: Yes, score=6.40 X-Spam-Score: 6.40 X-Rspamd-Queue-Id: B44D22304C X-Spamd-Result: default: False [6.40 / 15.00]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; RCPT_COUNT_SEVEN(0.00)[8]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31334, ipnet:2a02:810c::/31, country:DE]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-0.00)[-0.757]; SUSPICIOUS_RECIPS(1.50)[] X-Spam: Yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Michael Walle --- changes since v1: - dual license gpl-2.0-only and bsd-2-clause - add "additionalProperties: false" - wrap example in soc {} node with correct #address-cells and #size-cells .../bindings/clock/fsl,sai-clock.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/fsl,sai-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/fsl,sai-clock.yaml b/Documentation/devicetree/bindings/clock/fsl,sai-clock.yaml new file mode 100644 index 000000000000..8fb2060ac47f --- /dev/null +++ b/Documentation/devicetree/bindings/clock/fsl,sai-clock.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/clock/fsl,sai-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale SAI bitclock-as-a-clock binding + +maintainers: + - Michael Walle + +description: | + It is possible to use the BCLK pin of a SAI module as a generic clock + output. Some SoC are very constrained in their pin multiplexer + configuration. Eg. pins can only be changed groups. For example, on the + LS1028A SoC you can only enable SAIs in pairs. If you use only one SAI, + the second pins are wasted. Using this binding it is possible to use the + clock of the second SAI as a MCLK clock for an audio codec, for example. + + This is a composite of a gated clock and a divider clock. + +properties: + compatible: + const: fsl,vf610-sai-clock + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + '#clock-cells': + const: 0 + +required: + - compatible + - reg + - clocks + - '#clock-cells' + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + mclk: clock-mclk@f130080 { + compatible = "fsl,vf610-sai-clock"; + reg = <0x0 0xf130080 0x0 0x80>; + #clock-cells = <0>; + clocks = <&parentclk>; + }; + }; -- 2.20.1