Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4422562rdb; Fri, 15 Sep 2023 01:23:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8wJGQDfp/PLNwwXgFSIgYcZVCGncSSIwR2xdBPGGk3W+5lWuaY0FNRAX2Byaq0ma2UEie X-Received: by 2002:a17:902:dac4:b0:1bd:bba1:be78 with SMTP id q4-20020a170902dac400b001bdbba1be78mr1009245plx.23.1694766198679; Fri, 15 Sep 2023 01:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694766198; cv=none; d=google.com; s=arc-20160816; b=DTUwBNum0USRA1z1/FRmJkGjmvb/0wPhU1jbhD9Ix0wF1/MIGHy4GlUS7Lv3wwimbA szY2vsUyhJCdpeFQmeDpqr8JBeK1c6aBw3MpoMAQ4j6C1Vc5Dk6oSZ11KzemI78iUKay ooQt93wlmUfXR+6QzT1pWyGosB8R9L460Q2SS1nr580CqDzdFrRpQdqqrGv7A8pz+tj6 cxF4b1hOcD2gydDLL4rgEOpQoCXFqy06GB3uloKmelRsmZjEiSIFrCf8DiWq6WgMpRyL eNmv0592GPu6S1Hfhy1KkZv8wbviBnzeQ493L64LVv4Vz5uRMj+6vKK9/no/kb1wDzLs NJUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=855CG3Q+N0LKkXdct1u/zyrTHehEOlhcSeqiGxxImYE=; fh=M1kxEPtXWRQhQoGh6/BTBoqLxdxwsQNbrXmpUECeE30=; b=Qw7JjnNqehZYLjLMa9QkErmpPAycKx3efcvSrmNIsjcJpDlUeU3jVg8LpMdiPs9+da 2kRP6fwAkJzXUd7RYoSeWuJyfoxoPvvEfcrT6ABvAssnllRygam73zxmsGVhGHR8S46i NvGAzUUya1yRuIX+YVvRryyhElC6yG6lcHW1AFS2/xiGDeYXo6d+g2NV4yYlkqw1RBbi grOlMGRTOOOyBdZEwCABmNrrW5+ZARMydogoog3GKJgJyFfuWWBozxvbUbSbLnH/CdKJ 26+ETvvWyUVcteDmtryo0QJBJ8PH317XGeuE/zycFrLcu/ReePjliCSl5FGh64bkjM6w dd5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HGVHQBx8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p12-20020a170902c70c00b001c32d285db9si3008590plp.194.2023.09.15.01.23.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 01:23:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HGVHQBx8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CC31985BF2FF; Fri, 15 Sep 2023 01:12:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232915AbjIOIMU (ORCPT + 99 others); Fri, 15 Sep 2023 04:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbjIOIMO (ORCPT ); Fri, 15 Sep 2023 04:12:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98CED2719; Fri, 15 Sep 2023 01:12:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 35106C433B8; Fri, 15 Sep 2023 08:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694765528; bh=l19KZnKYEFFOwn2M66ea8D8C171a/stgTT9iwsB1EMo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HGVHQBx8qxe5GZeHBz28WBhJHu3lrppHKzCmB7D5TChpz7Q1EX5pXEdJK13YYdatA EFGzpSedxDv8+NSIADQ2zO8lJAr8n3tvcbaa+aEC1ZmLUavpe8A8hTbtKdYaLPacHh zQ3fF5Y+i+F4Qn4nhlcbRejW/JY0ARMXK5mr6ive9+VvJsBfyU/uK8cG+5/qwOfeXs 456n0cfM/X4t4gN2cWQMPmZFc913al2YBdQ60QnWdhz/Khw9ceMpOjSrCaeZ2U2BHf tFMI4T67hVv+olRtRpyWuzNVGaS6pDQCdQ0ebhwgVQeMI+rv6oFJaMkctFn8R8SJbc iRpxcC0504S9Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18123EE6439; Fri, 15 Sep 2023 08:12:08 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Fri, 15 Sep 2023 11:10:45 +0300 Subject: [PATCH v4 03/42] dt-bindings: clock: Add Cirrus EP93xx MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230915-ep93xx-v4-3-a1d779dcec10@maquefel.me> References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> In-Reply-To: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Shubin , Alexander Sverdlin Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Alexander Sverdlin X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694765525; l=2984; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=GUdqrgbAU34v8FbfCO2TBmgUA9HZei0/j6RpndpiMV8=; =?utf-8?q?b=3DsrFPNgRarz3y?= =?utf-8?q?yQ+j4h0VmkWyRaRzoXNmZl2xW/IWCQYiuzcmjPy+G0qzc2fiYznlB5rUmYgh5JDV?= P5jeDDz1B/X00daGWtZLPZgiOxs6//cP+9j0yN1RtisKj+ljyM1i X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:12:21 -0700 (PDT) From: Nikita Shubin Add device tree bindings for the Cirrus Logic EP93xx clock block used in these SoCs. Signed-off-by: Nikita Shubin --- .../bindings/clock/cirrus,ep9301-clk.yaml | 46 ++++++++++++++++++++++ include/dt-bindings/clock/cirrus,ep9301-clk.h | 41 +++++++++++++++++++ 2 files changed, 87 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/cirrus,ep9301-clk.yaml b/Documentation/devicetree/bindings/clock/cirrus,ep9301-clk.yaml new file mode 100644 index 000000000000..111e016601fb --- /dev/null +++ b/Documentation/devicetree/bindings/clock/cirrus,ep9301-clk.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/cirrus,ep9301-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic ep93xx SoC's clock controller + +maintainers: + - Nikita Shubin + - Alexander Sverdlin + +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: + items: + - description: reference clock + +required: + - compatible + - "#clock-cells" + - clocks + +additionalProperties: false + +examples: + - | + clock-controller { + compatible = "cirrus,ep9301-clk"; + #clock-cells = <1>; + clocks = <&xtali>; + }; +... diff --git a/include/dt-bindings/clock/cirrus,ep9301-clk.h b/include/dt-bindings/clock/cirrus,ep9301-clk.h new file mode 100644 index 000000000000..3cd053c0fdea --- /dev/null +++ b/include/dt-bindings/clock/cirrus,ep9301-clk.h @@ -0,0 +1,41 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ +#ifndef DT_BINDINGS_CIRRUS_EP93XX_CLOCK_H +#define DT_BINDINGS_CIRRUS_EP93XX_CLOCK_H + +#define EP93XX_CLK_UART1 0 +#define EP93XX_CLK_UART2 1 +#define EP93XX_CLK_UART3 2 + +#define EP93XX_CLK_ADC 3 +#define EP93XX_CLK_ADC_EN 4 + +#define EP93XX_CLK_KEYPAD 5 + +#define EP93XX_CLK_VIDEO 6 + +#define EP93XX_CLK_I2S_MCLK 7 +#define EP93XX_CLK_I2S_SCLK 8 +#define EP93XX_CLK_I2S_LRCLK 9 + +#define EP93XX_CLK_UART 10 +#define EP93XX_CLK_SPI 11 +#define EP93XX_CLK_PWM 12 +#define EP93XX_CLK_USB 13 + +#define EP93XX_CLK_M2M0 14 +#define EP93XX_CLK_M2M1 15 + +#define EP93XX_CLK_M2P0 16 +#define EP93XX_CLK_M2P1 17 +#define EP93XX_CLK_M2P2 18 +#define EP93XX_CLK_M2P3 19 +#define EP93XX_CLK_M2P4 20 +#define EP93XX_CLK_M2P5 21 +#define EP93XX_CLK_M2P6 22 +#define EP93XX_CLK_M2P7 23 +#define EP93XX_CLK_M2P8 24 +#define EP93XX_CLK_M2P9 25 + +#define EP93XX_CLK_END 26 + +#endif /* DT_BINDINGS_CIRRUS_EP93XX_CLOCK_H */ -- 2.39.2