From patchwork Fri Apr 14 18:12:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangfl X-Patchwork-Id: 8218 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp577257vqo; Fri, 14 Apr 2023 11:22:33 -0700 (PDT) X-Google-Smtp-Source: AKy350aPfXmwIQuJmCc63vJzmVdq+9muIS2ZQpEd64nmSQy3I1tsSPPPVh/0wsrpmLM74xNvmCpO X-Received: by 2002:a17:902:f691:b0:1a1:a146:f6d7 with SMTP id l17-20020a170902f69100b001a1a146f6d7mr4870907plg.4.1681496553568; Fri, 14 Apr 2023 11:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681496553; cv=none; d=google.com; s=arc-20160816; b=LVno39o6Zl+FyHLvt50/e42I/Zc57HMarRcBshKrg8RZPfJy+yf6wtxjJTNdX1IPnw fc/7/8VLH75KkKyJaiKw4YHm/LU+q4+7NKLy+P1hfGQpOGtaty+xU7WqEI711Po4BPCU 2p6uUywPZM9w6rMxOU4f3sDx4+NKHsEwHJyyqnvoke0AvZrEc/jOFcQYiSfbhpmk8X6/ 7BsVRkQ0FULU34I7aWE6eTzltW9AiYiIG1Ol+Og23xhyapJf3tz/HvTXPzyNQLdFvtnp aFKyO3o0Xaslr5qOB3kxSSecjBM7uBa9MXmy73xTesldc2C1T6669gR8EXvlbDDbgdEF VtTA== 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=i64S1Gb6i6BXvs6qSii52zJ3ScYuWSR5RAeuO5Zmt1E=; b=KWVeUuZ/CbaKZSzvoSuD8AMwVLQ3DI0Kr+hvYxXVcUijzMnSeji+arpq2L2qdRj91y ZShYJsiDZ/qQbXLcSvwkod3zIyPxxK5/Tu/qQ9EEg/OICj8hO5mqjYg+2kodKdiS+iKD aFwVgE6aik7j5GPvtNAIkod4+I1NeGicKgKhnTqbybX2yyxOcbV1jY+rLD25GZJ7LBM4 rYRpUAjF7RvqZS0u+AJ26cqTnoJ6Kf9nctHYnnKM2pfonMvW1Fce3WA0FkodSnRFTtmT AunOcqJwAtu1yZKptXCsx/2aw2LlpjnEMkCLIl2WzCzp1j4vhV7htURrllsoQ7eTFqH9 3DhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=svfYttqf; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a170902bd0300b00192bac60af2si4834192pls.473.2023.04.14.11.22.18; Fri, 14 Apr 2023 11:22:33 -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=svfYttqf; 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 S229893AbjDNSNR (ORCPT + 99 others); Fri, 14 Apr 2023 14:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjDNSNP (ORCPT ); Fri, 14 Apr 2023 14:13:15 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F0589005; Fri, 14 Apr 2023 11:13:14 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id hg12so4632703pjb.2; Fri, 14 Apr 2023 11:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681495993; x=1684087993; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=i64S1Gb6i6BXvs6qSii52zJ3ScYuWSR5RAeuO5Zmt1E=; b=svfYttqfWSSUok6CpHujVXjjJvDgSsKJQ3NOi5dXibBi3pfs8SRbGvDnQwdLRSuGSw Z3uG2oGsPlA6qQH+j+vfsQm+ggEK/rfgGByiDyqMKhspdtsPls2XqkM8//O4CrryA4cS tMn+wVf/tF8+hii0o/qvUgNb3Gotp7vJx3T6JtWABlS98Zt8KLfQiI7J032xpCoXe9rv KOyoJ7cG7T6FivwbX12+UAMuq/GcaFEI4u47QyE+MY7wP3moelorBBempP2iCw3Dx+/e jd9Dl2r0vDJTdwo0fWhdXBjCVp/mbAUO7su8CscejVqfm776z8aF4BqkaciuaYLTdDtB gl9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681495993; x=1684087993; 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=i64S1Gb6i6BXvs6qSii52zJ3ScYuWSR5RAeuO5Zmt1E=; b=hMDwOg8FoYCNnBQfYZ2I7xGAFpmsoZ6ZLFB8+s71c2uanj6VAedXc8D++DGOIx9f0n c1YktRouJ0v4JWwocsCOzkH1VBevREmldrKBvSDmowJH+dm/Kbyq37xNMsuy/W0ALtmO RT/piYqa9VlUI4I13TWg79zMM0K9+oHRFDPGo9XiNH8woiqYziJ1Re8P/5JygYQiU/pv Zp7+5fMjYlGdJCcjKGRLaoW+31xPdw5jKQ9BbHE79RpR4+P1zc8daWfGIuB5gNCXnQnO /DPAQYMWw0CFJg+p9KCECthqNpfN/DiQ63ZT7yrgMq8dHqznvxEfrTPCY+dJap/lzGDK XDXg== X-Gm-Message-State: AAQBX9csje5WUeJcYVBJWeZZ4cgCKPJ2JV/7LvNaF8Y73tg7nKLCX358 t0ksopDODUp0gdDxWPKTveP5PlTbv9jeX/VpXZ0= X-Received: by 2002:a17:903:2290:b0:1a2:afdd:8476 with SMTP id b16-20020a170903229000b001a2afdd8476mr4116249plh.2.1681495993419; Fri, 14 Apr 2023 11:13:13 -0700 (PDT) Received: from d.home.yangfl.dn42 ([104.28.245.200]) by smtp.gmail.com with ESMTPSA id x11-20020a170902820b00b0019a593e45f1sm3309371pln.261.2023.04.14.11.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 11:13:13 -0700 (PDT) From: David Yang To: linux-clk@vger.kernel.org Cc: David Yang , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] clk: Add basic register clock controller Date: Sat, 15 Apr 2023 02:12:58 +0800 Message-Id: <20230414181302.986271-1-mmyangfl@gmail.com> X-Mailer: git-send-email 2.39.2 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763176930228917389?= X-GMAIL-MSGID: =?utf-8?q?1763176930228917389?= These clocks were provided in `include/linux/clk-provider.h`, but lacks DT bindings. Add a clock controller to avoid operation conflict on same register. *** BLURB HERE *** David Yang (2): dt-bindings: clock: Add reg-clock-controller clk: Add basic register clock controller .../bindings/clock/reg-clock-controller.yaml | 245 +++++++ drivers/clk/Makefile | 1 + drivers/clk/clk-reg.c | 638 ++++++++++++++++++ 3 files changed, 884 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/reg-clock-controller.yaml create mode 100644 drivers/clk/clk-reg.c base-commit: 7a934f4bd7d6f9da84c8812da3ba42ee10f5778e