From patchwork Thu Jun 1 05:33:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101720 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp71153vqr; Wed, 31 May 2023 22:47:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57YxvRM1uKTwJbooTXAW/RCld4vKWgtSGV9pYKbTceLmONkuRcbqlHKxR/QI8s7o93mco/ X-Received: by 2002:a17:90a:db94:b0:253:6e6f:f5c5 with SMTP id h20-20020a17090adb9400b002536e6ff5c5mr995793pjv.7.1685598439131; Wed, 31 May 2023 22:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598439; cv=none; d=google.com; s=arc-20160816; b=J0+6j9+/MPwjUAyXwH4v6I4dtdOFgOF/k8JlcLRXVqvvEmvftNpFdhDK13xIw+sxtR MgPtZ6vHgi4ThsVIz5E5N/O4tOwtZN9/sL5I9aT1INdu8VSzWGS8/ECszHS6Lf4UJQi7 oCie15r4Ccy41eJvcOl7zO/d7FHGhOP9u5BIXWYHrCtcSyGPL0seL46pHrlnYWeR2qxu z3HDxMbhZIV2mtxHNjs515NP3yHXV3Ih8Jl3c7P1Nrus5JvGskzjAkh2zmSH4aMCMz9T kcgpytOY8S2mBjMNzIT0Qq8X7psRo6dXwM8m0VQjZ+JTI4mFhVgcOUrzBIXbn649zzmd JREw== 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 :dkim-signature; bh=zIJEhcZ91Oaqa6Xmm24KHPdM/EoDuW4yx6hKsFtUgXw=; b=oF9tNxsZypIFGPxX0RIsFYpzn2khHNIeSJgc+p7j7xCVYMUtyW3c54TuTIen4tHXDD piboDZ+xEhTH/WKhKppAzaMZg/PwNNzYg3z5SM375LqlvJfAS435vKmGZLSewo9lgER6 2PRdqiqGmu1n4nTBxGulrRmBhCsvsDD0q5LSU8b8c56xLsJCpdmOcfDBjWjLMixxDmhy BMMsC6wYoZC6qVczBuJDp999A4gZQOGSUS2f4mvkKefRNMLYZd/EJVJdHhWEWB4f85Xd kuS2+1bm5ZGanr+yH1q4A77EpHutFSsR2BZAeUtUsnyMEjm2xhVWXmKSDozXPm+h8XnY ixRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=idlakvnN; 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 20-20020a631854000000b0053ef518d7ffsi2271060pgy.303.2023.05.31.22.47.05; Wed, 31 May 2023 22:47:19 -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; dkim=pass header.i=@maquefel.me header.s=mail header.b=idlakvnN; 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 S229689AbjFAFhZ (ORCPT + 99 others); Thu, 1 Jun 2023 01:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbjFAFhR (ORCPT ); Thu, 1 Jun 2023 01:37:17 -0400 Received: from forward101c.mail.yandex.net (forward101c.mail.yandex.net [178.154.239.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 284561BE; Wed, 31 May 2023 22:36:58 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:c83:0:640:84f9:0]) by forward101c.mail.yandex.net (Yandex) with ESMTP id CA60F600FB; Thu, 1 Jun 2023 08:36:55 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id OaGNfZvWv8c0-ljXORRHt; Thu, 01 Jun 2023 08:36:55 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685597815; bh=zIJEhcZ91Oaqa6Xmm24KHPdM/EoDuW4yx6hKsFtUgXw=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=idlakvnNspTx/hhaf1scWcevr+yryNuzxvfQEdwBri6tBVlLw8q+i9LEJ1rFbfXvP VWI3pcacmkyMJkSqi/yJkfrLllDi5wFiXPRLIMULIdz65wwmZs9VcAPSI4UFrQwtci G1/yTh1J1qbmJd19/0fmpteYQn9kNbb3rkCQXuq8= Authentication-Results: mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Nikita Shubin Cc: Michael Peters , Kris Bahnsen , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 04/43] dt-bindings: clock: Add Cirrus EP93xx Date: Thu, 1 Jun 2023 08:33:55 +0300 Message-Id: <20230601053546.9574-5-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767478069050368156?= X-GMAIL-MSGID: =?utf-8?q?1767478069050368156?= This adds device tree bindings for the Cirrus Logic EP93xx clock block used in these SoCs. Signed-off-by: Nikita Shubin --- Notes: v0 -> v1: - it's now a clock controller .../bindings/clock/cirrus,ep9301.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/cirrus,ep9301.yaml diff --git a/Documentation/devicetree/bindings/clock/cirrus,ep9301.yaml b/Documentation/devicetree/bindings/clock/cirrus,ep9301.yaml new file mode 100644 index 000000000000..4f9e0d483698 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/cirrus,ep9301.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/cirrus,ep9301.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic ep93xx SoC's clock controller + +maintainers: + - Nikita Shubin + - Alexander Sverdlin + +description: | + Cirrus Logic EP93XX SoC clocks driver bindings. The clock + controller node must be defined as a child node of the ep93xx + system controller node. + + See also: + - dt-bindings/clock/cirrus,ep93xx-clock.h + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-clk + - items: + - enum: + - cirrus,ep9302-clk + - cirrus,ep9307-clk + - cirrus,ep9312-clk + - cirrus,ep9315-clk + - const: cirrus,ep9301-clk + + "#clock-cells": + const: 1 + + clocks: + description: List of clock specifiers which are external input + clocks to the given clock controller. + items: + - description: reference clock + +required: + - compatible + - "#clock-cells" + - clocks + +additionalProperties: false + +examples: + - | + clocks { + xtali: oscillator { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <14745600>; + }; + }; + + clock-controller { + #clock-cells = <1>; + compatible = "cirrus,ep9301-clk"; + clocks = <&xtali>; + }; +...