Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3145164rwe; Sun, 16 Apr 2023 12:49:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bHayMdT3Sl5XEyWqS+PygwUCvaJS26a6yNzoFfUjLlnAQEu1CS0SzZOVAt9FmlZ2DyFH+0 X-Received: by 2002:a17:903:2451:b0:1a1:aa68:7e61 with SMTP id l17-20020a170903245100b001a1aa687e61mr10372537pls.33.1681674540967; Sun, 16 Apr 2023 12:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681674540; cv=none; d=google.com; s=arc-20160816; b=MacRf5RZvjy8SrK3pq0sc6V1ufKRn+vW5Hi7mI8jAYwJcw5qnkPjukViPSHSUTgDCa nO87USq2dEOuMjqf+P2kzSf6blKrSIVJgk1nAaOe8rRyvpmY/sCGxJ+l2x0NvVziVxPg qr/TtxUBVki8txa9KIwmdGx8RTQZlmUn/cniTiDU03jqQsNLyq+ngKTtmMBVoWRQhQdZ D1yJhnyj8mtk3pHyNYyTaNbWGa27qZuolT4XJeNxHms4cTf+6hsDp/ephSFJINCSS40d vNzRaE+AJIxj98MwrrlLHVuYQHW18Oyg04xZhEjzadKZhU3zW+TxEnPpxUHEoKiRAvIA +71w== 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:dkim-signature; bh=Meto6gsXNk91gHx8C0HmnEYuyxHZvVGTyKoqO9PiMNc=; b=T+H/Ztje5ZZu3yMO5G9+W5y3nb8iQoTXKBkXbK1yu2GuAVa/Xn0D18HqW2fo6ABVtn 8BtdFhY0TPLJDhpxjpSbBSjxrmwjyy8bkulmRhNy66eczYXlIWzwR9gI7Vh/xQ41FiGG VtLvk5sKnd/Y11MtTlceIRm5JU/wLqBcWmfheoUj1OiPgv3UIkKLdSFMizcOqBIotFXw qAnB2NcnNsLg2ILtyteEQoe9U1MlKkLBhpCXb/0jcQ71QHf8UNjqvTeIUJ7oRL7gcHUo C4us0bg6tcZekD4/ZFzP7g4kgBRuY+zbBqcn6KRxsyBwYERbnEZDrRcQV/FAHwBsldu2 MdtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=eJYqFrJG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a170902b70600b001a507d6feb8si9214216pls.628.2023.04.16.12.48.47; Sun, 16 Apr 2023 12:49:00 -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=@gmail.com header.s=20221208 header.b=eJYqFrJG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbjDPTrb (ORCPT + 99 others); Sun, 16 Apr 2023 15:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbjDPTra (ORCPT ); Sun, 16 Apr 2023 15:47:30 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC7A10F1; Sun, 16 Apr 2023 12:47:21 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id v9so28746560pjk.0; Sun, 16 Apr 2023 12:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681674440; x=1684266440; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Meto6gsXNk91gHx8C0HmnEYuyxHZvVGTyKoqO9PiMNc=; b=eJYqFrJGLk24WuxpY5JuFFW1v/FDUKlryz7xwHJakzKAdUk+S8VU0iiF5MekiOHc5o ur0UALCSXSovdVFI191ofEm/D3GC32OPO80FM+Wl2ols3dif7zxY3rHS4NPa4ErHJ1+e Im5jtiI1cWSha24rQLgrnFOHskXJ7t+6nZsR9DLrzGAEgZlcJqB4d+LaUObadc57YyKk Lk2zAkOK3KOtE/R+8xcoExUwApUmw8NiA+VOC0Ssmdklx0XPTFVNTfPCSE46CxX0BtJg j+lKuwjuySDz3Gq562LEvS4LvcuJiAcH+ymN0qB2auqXrbluYoNCoI83WhOYyhE/Rgoz 0L1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681674440; x=1684266440; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Meto6gsXNk91gHx8C0HmnEYuyxHZvVGTyKoqO9PiMNc=; b=G0kbFytODT+cCwT9UC6ruXTSK0CMPYUfsaLgR307lHjhHnw+FC4Nt8pw5xuCaXphEf bG3iX0ux78emTYYpW/au0grqE0PDNeKC6U+cKdtGyGhzPfOrJskGsYqNdE3IlVubkJWV HalWfWwKaaufOHpsXpywf4oNIxeHuKuXxQh67RHwC360FVYcvJOgRVQ2f+x0TMZ98w9+ nfOiysf5y/AVcAPSoDhJlOE638kNUsrxSXOf7IKa+oWidOkxAgk8lXS3YJp5RVsY96Or 0jRm/MBGzXk1gMYq0hhbWSxQwFCI0p08uKtnK2POmF7dAGY3ixeStMQm//PkUu3xhj+8 qEgA== X-Gm-Message-State: AAQBX9eNat8otMiSjWxlXfeJNbL/g68cqUdF+iW5CsPdil0lFC3fdYoj Izm1zrQrTwkaP9UsIljZMwAVlZr5NAtkvol1CRU= X-Received: by 2002:a17:903:454:b0:1a0:50bd:31c0 with SMTP id iw20-20020a170903045400b001a050bd31c0mr8920831plb.24.1681674440450; Sun, 16 Apr 2023 12:47:20 -0700 (PDT) Received: from d.home.yangfl.dn42 ([104.28.245.201]) by smtp.gmail.com with ESMTPSA id jd9-20020a170903260900b001a69b28f5c5sm4490375plb.222.2023.04.16.12.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Apr 2023 12:47:20 -0700 (PDT) From: David Yang To: linux-clk@vger.kernel.org Cc: David Yang , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] clk: Add basic register clock controller Date: Mon, 17 Apr 2023 03:46:18 +0800 Message-Id: <20230416194624.1258860-1-mmyangfl@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 These clocks were provided in `include/linux/clk-provider.h`, but lacks DT bindings. Add DT bindings for them. v2: split clock controller and its clocks v3: * rewrite commit message * rewrite descriptions in dt-bindings to describe the devices * fix format error of dt-bindings Links: v1: https://lore.kernel.org/r/20230414181302.986271-1-mmyangfl@gmail.com v2: https://lore.kernel.org/r/20230416173302.1185683-1-mmyangfl@gmail.com David Yang (4): dt-bindings: clock: Add simple-clock-controller clk: Add simple clock controller dt-bindings: clock: Add gate-clock clk: gate: Add DT binding .../devicetree/bindings/clock/gate-clock.yaml | 59 ++++ .../clock/simple-clock-controller.yaml | 39 +++ drivers/clk/Makefile | 1 + drivers/clk/clk-gate.c | 81 +++++ drivers/clk/clk-of.c | 292 ++++++++++++++++++ drivers/clk/clk-of.h | 26 ++ 6 files changed, 498 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/gate-clock.yaml create mode 100644 Documentation/devicetree/bindings/clock/simple-clock-controller.yaml create mode 100644 drivers/clk/clk-of.c create mode 100644 drivers/clk/clk-of.h base-commit: 7a934f4bd7d6f9da84c8812da3ba42ee10f5778e -- 2.39.2