Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2321392rdb; Mon, 9 Oct 2023 23:30:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpsy8E8m1SxniLozY/3/bLeLX2RkXQ34wgh0D14W1WWDt/47MG+q/tlNQ9VaomKDAtyOI/ X-Received: by 2002:a17:902:ec8d:b0:1c3:4210:623f with SMTP id x13-20020a170902ec8d00b001c34210623fmr18313849plg.13.1696919418474; Mon, 09 Oct 2023 23:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696919418; cv=none; d=google.com; s=arc-20160816; b=mPIcPwy1MO3VB0G7+zLx5g57eBuOjoXQMdV+wGbGS5QYRPhbB0bo5ahGDEGWNE42db tnYDTOUwMrOsQ0XSYjHtedJCADOO1hbT7QxuP4uv8jgTDWOz9uLaO+JTqudeQ1V6Qe1h tgCnR7FCjPW6HImUw5cqPsYFeIhJu8O1nWJfO0q2milPOs7OLG8AEcgIrxQ4HiVedsDL 4/h4DRhqZ8O4+c6Z86sZa9BDDIpkA4Qm913lGd9lBWyCrsBG9zGMhTz0ey7YhistQNoi 5vZrdRU0L4z3JArwAqTkmSg360/ihf8QlIWLc8Bpw5cQsAZNkeevrB4wAyVh1k5raCTq PHeg== 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:cc:to:from; bh=FYvSOzJAkNTym0okJ5S6P6EZBDut28rXM+tqIZEE3L8=; fh=oBbb0mPe52rzzTIwtg9Xc2rZ0LejYIA322XCn8vhPVE=; b=Xzvcx7c7WhC0bkh9Vx0C6BnH11xDLbSsY+H+AoPqP99eENKOZZvLIn2By4xi4Xv2V4 kSaS5cthyhijBFCzsdmDsuFs1mnE+1ujJJK2qbR1YwPYetsxwv8oyQbmj4wQUrqINWsV jU8GxkYlozBGTX21Svq693v93Y9bKXrcZvO7ObW+DEwYTseKAQ9EDBb7eScmoieCkaxg kH7Ybuub/MEiMfaYdEq6I3DGbyoiXJZyUNH+hSNNXuVN3NDPjY0M/lU60QYY2Hqnlt06 5kPjlVq+nFxOsi1fdXAK6ZChG5+KMp3cvURICbEyjmnOOvdTVRkjzCH2mZJHk7KeFSYJ VlJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id n6-20020a170903110600b001c624237977si11996364plh.252.2023.10.09.23.30.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 23:30:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3C43B811F926; Mon, 9 Oct 2023 23:30:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442245AbjJJGaO (ORCPT + 99 others); Tue, 10 Oct 2023 02:30:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442202AbjJJGaN (ORCPT ); Tue, 10 Oct 2023 02:30:13 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3FF5B7; Mon, 9 Oct 2023 23:29:31 -0700 (PDT) Received: from droid01-cd.amlogic.com (10.98.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Tue, 10 Oct 2023 14:29:19 +0800 From: Xianwei Zhao To: , , , , CC: Neil Armstrong , Jerome Brunet , Michael Turquette , "Stephen Boyd" , Rob Herring , "Krzysztof Kozlowski" , Kevin Hilman , Martin Blumenstingl , Chuan Liu , Xianwei Zhao Subject: [PATCH V2 0/4] Add C3 SoC PLLs and Peripheral clock Date: Tue, 10 Oct 2023 14:29:13 +0800 Message-ID: <20231010062917.3624223-1-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.98.11.200] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 (snail.vger.email [0.0.0.0]); Mon, 09 Oct 2023 23:30:17 -0700 (PDT) Add C3 SoC PLLs and Peripheral clock controller dt-bindings. Add PLLs and Peripheral clock controller driver for C3 SOC. V1 -> V2: 1. Fix errors when check binding by using "make dt_binding_check" 2. Delete macro definition Xianwei Zhao (4): dt-bindings: clock: add Amlogic C3 PLL clock controller bindings dt-bindings: clock: add Amlogic C3 peripherals clock controller bindings clk: meson: c3: add support for the C3 SoC PLL clock clk: meson: c3: add c3 clock peripherals controller driver .../clock/amlogic,c3-peripherals-clkc.yaml | 92 + .../bindings/clock/amlogic,c3-pll-clkc.yaml | 59 + drivers/clk/meson/Kconfig | 25 + drivers/clk/meson/Makefile | 2 + drivers/clk/meson/c3-peripherals.c | 3096 +++++++++++++++++ drivers/clk/meson/c3-peripherals.h | 48 + drivers/clk/meson/c3-pll.c | 808 +++++ drivers/clk/meson/c3-pll.h | 35 + .../clock/amlogic,c3-peripherals-clkc.h | 230 ++ .../dt-bindings/clock/amlogic,c3-pll-clkc.h | 42 + 10 files changed, 4437 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,c3-peripherals-clkc.yaml create mode 100644 Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml create mode 100644 drivers/clk/meson/c3-peripherals.c create mode 100644 drivers/clk/meson/c3-peripherals.h create mode 100644 drivers/clk/meson/c3-pll.c create mode 100644 drivers/clk/meson/c3-pll.h create mode 100644 include/dt-bindings/clock/amlogic,c3-peripherals-clkc.h create mode 100644 include/dt-bindings/clock/amlogic,c3-pll-clkc.h base-commit: 57b55c76aaf1ba50ecc6dcee5cd6843dc4d85239 -- 2.37.1