From patchwork Tue Jan 17 18:04:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 4122 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1922386wrn; Tue, 17 Jan 2023 10:46:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXvlxGGM9N+e/sy5SzWHBn5Sm22lOrAPdfMywikG3e4nbjsbaTScREEpA+9V+pr3Z260p436 X-Received: by 2002:a17:902:650e:b0:193:bec:497c with SMTP id b14-20020a170902650e00b001930bec497cmr5267389plk.68.1673981163492; Tue, 17 Jan 2023 10:46:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673981163; cv=none; d=google.com; s=arc-20160816; b=swwkeO2OL2IqBpvTv8is5gTNTv5b36Me/TGrJuNIbRoHj/eYtJVbUv0JSwCBKmtyh7 5PtPrD7yGAY20uGKyHtpe2Lbsi1aGoUdbF5qS4/lbrPjn7+Zkx+eyTRT/PppBv9SbFSw Gg8AUNCbnEzbudh+qLkzvyoV7Dvagxop0lP1a9KqfkM7suRdYIX5fe/w76lvyeVCupPh tnapOVuEyiiQlLCCg+uf9YWftJ6+WQjPkYnOlGnTxddsuMmLfP35BI67H3nQTWBS/sH8 ghgyPwCxA7OHOQ4A/M6vZx+TPkt24w32M23f27qcrDmj5dtD1dq58zfPszPYFvi54kUV sr9g== 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=KBPtb5kB7phRN2HyeU727IaxXRKzBI0qHI+gXLYhw7Y=; b=R1ruf2egvBz5az1x+AgxfxXc/Hlsz++q6tdmE8wRoxPyWsJwzAu6fTjaA/JJX1iIiN Bq9xw9k2zwbFz9NpReDnvAzRXbLvUte4+57OI2FXaUYco+NgxdNs//QtA1T0PqjXuR3P cHnFCRmU+U5sB+D3IYugrwoqASMA6d6KNtF1KVaNFHcASQg2oUyodJbkNn/BKo+3Lqoi JFRkJxxIhv5ZkcnNa+LpmTEuRasCFSwwLbfpnEroOSePSvHhrOBaXd4wZgm0322CwxVL UDeQAEIJvkxq8bFTHy+AxxXZ8HIKazpZ/8prwHlGEFNebzjAifVZgt3JTqYqk+dB8LHh +O+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=ClpPpXyn; 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 y4-20020a170902ed4400b00178170100fasi31490875plb.337.2023.01.17.10.45.50; Tue, 17 Jan 2023 10:46:03 -0800 (PST) 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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=ClpPpXyn; 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 S233571AbjAQSpB (ORCPT + 99 others); Tue, 17 Jan 2023 13:45:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232276AbjAQScy (ORCPT ); Tue, 17 Jan 2023 13:32:54 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A440453F8E for ; Tue, 17 Jan 2023 10:04:40 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id iv8-20020a05600c548800b003db04a0a46bso189286wmb.0 for ; Tue, 17 Jan 2023 10:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KBPtb5kB7phRN2HyeU727IaxXRKzBI0qHI+gXLYhw7Y=; b=ClpPpXyniScMXOMCRlplFUjOlwCjRSmBW9rMYR/cAmLHnmHaa2ASXhhoYZgW5AMz7D 7/1/E7MwBpNSPAdz+Ye155/YRdxU1XL9V8955MblAQGUlVaQDiQE1oJki8WsfKbeRgX5 i7fC3zAKp7KSgy3LzCJLRVcuTSt9kXDIrbO6+aQvd+7boGg00pItttB/7qGWlt6nWUCW O4H6RZtoGXg4WaSmkzd47EdA6WKM60SZDu00opIRR/cLXk55aLC416kpQ0jwBtEfVyRW 4sSJGUSt+zyiHsCPIkmmpn974Oa83ih3eltGA3CrnfItJF+cBhVfbyzPJ66F8IH6Jzd2 IDeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=KBPtb5kB7phRN2HyeU727IaxXRKzBI0qHI+gXLYhw7Y=; b=Kpo2um0XozucQCK26Pj2wfRFY9zrrpWw08sgZcQp/7eld8kkVnWiVz/Q28QJ69nJDy QMMlBVa1Jh+oVH9+cKsDCt13xWEngJIJbGBYmmewsfRoAWrqyWKrz7PQiAv+53p093cN AbjRHkL4lm3TRzHBZk5OwUlPeYhpGMGu72TXDbxG1dU8nbucVNZaS5YoaMxOJs5Yjm+W 30UCx3yDb6Tbo8+jHCgHu49fVULoSxO8KRUHri8HdUaUXgnRKO7TBB6CIrll7d047O5o QEPu0c6utMWc7gmNQvontHqKy+mr7KIEYqcpRrV3Ks0+8QTIChuKb3HIPIEJcispQIr0 ZJWg== X-Gm-Message-State: AFqh2kpDRpBK3A6yNvnCGER9S9aU8k22PsFzlOXpK+VO2P0lGKmfXvDz jijkAAUuQdDEE2+p9LHsyLw7tg== X-Received: by 2002:a05:600c:3b1e:b0:3cf:497c:c4f5 with SMTP id m30-20020a05600c3b1e00b003cf497cc4f5mr4116868wms.13.1673978679194; Tue, 17 Jan 2023 10:04:39 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:9236:abcb:4905:a64e]) by smtp.gmail.com with ESMTPSA id bp28-20020a5d5a9c000000b00273cd321a1bsm29356681wrb.107.2023.01.17.10.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 10:04:38 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 0/2] qcom: sa8775p: add the GCC clock driver for Qualcomm SA8775P platforms Date: Tue, 17 Jan 2023 19:04:27 +0100 Message-Id: <20230117180429.305266-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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?1755296472216781736?= X-GMAIL-MSGID: =?utf-8?q?1755296472216781736?= From: Bartosz Golaszewski Add the DT bindings and driver for the GCC clock on the sa8775p platform from Qualcomm. v1 -> v2: - fix examples in DT bindings and make sure they pass tests - use lowercase letters in hex numbers - fix the name of DT compatible and headers (gcc-sa8775p -> sa8775p-gcc) - fix licensing of DT bindings - fix the regmap's max_register property - use clk_regmap_phy_mux_ops where applicable - other minor tweaks and improvements Bartosz Golaszewski (1): dt-bindings: clock: qcom: document the GCC clock on Qualcomm sa8775p Shazad Hussain (1): clk: qcom: add the GCC driver for sa8775p .../bindings/clock/qcom,sa8775p-gcc.yaml | 79 + drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-sa8775p.c | 4805 +++++++++++++++++ include/dt-bindings/clock/qcom,sa8775p-gcc.h | 320 ++ 5 files changed, 5214 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,sa8775p-gcc.yaml create mode 100644 drivers/clk/qcom/gcc-sa8775p.c create mode 100644 include/dt-bindings/clock/qcom,sa8775p-gcc.h