From patchwork Tue Oct 18 13:05:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 4158 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1952217wrs; Tue, 18 Oct 2022 06:12:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5U1XiKZBkOYZxk+ICFxhALrPnbQ7MZBxlwUYG/hptrfdP1W0E14K0dOBcrMLZahql+VWJU X-Received: by 2002:a05:6402:278c:b0:45c:da8e:837d with SMTP id b12-20020a056402278c00b0045cda8e837dmr2632536ede.18.1666098741157; Tue, 18 Oct 2022 06:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666098741; cv=none; d=google.com; s=arc-20160816; b=P0E0yMD/GYs4BOMVUaD0NKGMhBthG94iO18Xeqd1tFCFQHjEdeWOR0Ihbl9kohYis3 n6hZXF7EPuXsOrT1wX77MwdOSjnTv6J2dtrOqVr/Rd9sEOmeeHX2ZK3RyAy6PIBGjzdn 48/5GRtewQTmRDjjX6EPU5dQpMiu+EL13J7jbNxM3nFxDE/P6/wLEEXS8Xin29h6a2p5 WbQJE+w8FUCndU6QK3T49fgO7vATXmT2qNin7y75BUFXdoGGIzuGYz1rVkQDv9YM9ynN vuycwerY41apOg5bumoBbCRNt32xRhLYUPhRYJEG06Msx/xu+0hDoWXFJhk7w6AnO5qq ARuQ== 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 :message-id:date:subject:to:from; bh=ep4MrooVfe+TKBcP5HCqy3tFmskdR24/wsJG25TderA=; b=VcidtZi7zVU24ix8uimplVCQ3iY650xOH3N7IJAxnaE7Bsr2VGxPSvJXyy2VT4SXSQ 3kKLdnQx/6IzMBx7U+onb5yxgyUHHM80zwzqKs7O6bvE+RPyac5/KnLtyqjBoh753y8z A0CsKnAElzFWBtsynUZ0+yzsmMS5BnnWNCWFPEgUxbPWQNy2ct83zbN7M8pz8Em7+lZ8 GRNipgZQmL2hlpAWFwu+mhiexuVZD5hE7wusMXYNRvXszRKbtr5PRf7JkXFA66FkpZ/N j5j7b9shSIaas9+yn1o0lkxReVU5rbyGLmxQhwVeN+ZprzYsimV333E4Cnxy2EEOoDyC PeXw== ARC-Authentication-Results: i=1; mx.google.com; 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 x5-20020a05640226c500b0044f288e02edsi12695583edd.15.2022.10.18.06.11.55; Tue, 18 Oct 2022 06:12:21 -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; 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 S230083AbiJRNF6 (ORCPT + 99 others); Tue, 18 Oct 2022 09:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbiJRNFv (ORCPT ); Tue, 18 Oct 2022 09:05:51 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 062DBC5895; Tue, 18 Oct 2022 06:05:46 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8AxzNippE5jdG0AAA--.2548S3; Tue, 18 Oct 2022 21:05:45 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxbuCipE5j_LMAAA--.2960S2; Tue, 18 Oct 2022 21:05:44 +0800 (CST) From: Yinbo Zhu To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Huacai Chen , WANG Xuerui , Jiaxun Yang , Jianmin Lv , Yang Li , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Yinbo Zhu Subject: [PATCH v1 1/3] clk: loongson2: add clock dt-bindings include file Date: Tue, 18 Oct 2022 21:05:29 +0800 Message-Id: <20221018130531.301-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxbuCipE5j_LMAAA--.2960S2 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7AF4UWr4rXFWfKrWUJw13Arb_yoW8uw48pr s7CFWfKry7KF4I9wsYgFy3Kr13uw4xCw17AF47uF1UAFn7Jw18JrsF9F1fAFZrXF4kCFyx Z3Z7uw409a9rWw7anT9S1TB71UUUUj7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAa w2AFwI0_JF0_Jw1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2 jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262 kKe7AKxVWUAVWUtwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km 07C267AKxVWUAVWUtwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r 1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWU CVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r 1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUv cSsGvfC2KfnxnUUI43ZEXa7IU8Ta0PUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747031153166637186?= X-GMAIL-MSGID: =?utf-8?q?1747031153166637186?= This file defines all loongson2 soc clock indexes, it should be included in the device tree in which there's device using the clocks. Signed-off-by: Yinbo Zhu --- MAINTAINERS | 6 +++++ include/dt-bindings/clock/loongson2-clock.h | 29 +++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 include/dt-bindings/clock/loongson2-clock.h diff --git a/MAINTAINERS b/MAINTAINERS index a162b6fba6fe..3db469f51d74 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11914,6 +11914,12 @@ S: Maintained F: Documentation/devicetree/bindings/timer/loongson,ls2k-hpet.yaml F: drivers/clocksource/loongson2_hpet.c +LOONGSON2 SOC SERIES CLOCK DRIVER +M: Yinbo Zhu +L: linux-clk@vger.kernel.org +S: Maintained +F: include/dt-bindings/clock/loongson2-clock.h + LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI) M: Sathya Prakash M: Sreekanth Reddy diff --git a/include/dt-bindings/clock/loongson2-clock.h b/include/dt-bindings/clock/loongson2-clock.h new file mode 100644 index 000000000000..23806408fe49 --- /dev/null +++ b/include/dt-bindings/clock/loongson2-clock.h @@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Author: Yinbo Zhu + * Copyright (C) 2022-2023 Loongson Technology Corporation Limited + */ + +#ifndef __DT_BINDINGS_CLOCK_LOONGSON2_H +#define __DT_BINDINGS_CLOCK_LOONGSON2_H + +#define LOONGSON2_REFCLK_100M 0 +#define LOONGSON2_NODE_PLL 1 +#define LOONGSON2_DDR_PLL 2 +#define LOONGSON2_DC_PLL 3 +#define LOONGSON2_PIX0_PLL 4 +#define LOONGSON2_PIX1_PLL 5 +#define LOONGSON2_NODE_CLK 6 +#define LOONGSON2_HDA_CLK 7 +#define LOONGSON2_GPU_CLK 8 +#define LOONGSON2_DDR_CLK 9 +#define LOONGSON2_GMAC_CLK 10 +#define LOONGSON2_DC_CLK 11 +#define LOONGSON2_APB_CLK 12 +#define LOONGSON2_USB_CLK 13 +#define LOONGSON2_SATA_CLK 14 +#define LOONGSON2_PIX0_CLK 15 +#define LOONGSON2_PIX1_CLK 16 +#define LOONGSON2_CLK_END 17 + +#endif