From patchwork Mon Dec 26 04:21:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 637477 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1CF9C46467 for ; Mon, 26 Dec 2022 04:22:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231573AbiLZEV7 (ORCPT ); Sun, 25 Dec 2022 23:21:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbiLZEV6 (ORCPT ); Sun, 25 Dec 2022 23:21:58 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8A6821AC for ; Sun, 25 Dec 2022 20:21:57 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id g13so14672425lfv.7 for ; Sun, 25 Dec 2022 20:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+3SEVXCpqtMQ7g1JXR22/XO6zUi+AE7nM2fHDOiRODo=; b=xsINPV2IWkJHhVZvcG4Xea2uI16QV1FXkcXDJrc45h4mPuQxbsvlbrmQBc7Q9u992z M2whfyxRnsO2LhhIzURRkPUdROLDNPIb7k8fdW65l3t82I9HYZQWwsDN7ZV35QIndMX3 2qro9LWR7C9YbZi/nPMJD7BD8mPJWeoTRpOP9cib8Cwsj6NJ+P4Xo4rqTndVBvFIz2NS YbrGgB8HXNr9kh6MDdm3KqKMff1JNQ+KZKx2CXT1X7oCbDbWH3nuVjGap3Y+WNE9TbyZ Bi1eDYNPDwghjub+RDxP2sKjLaIPBCthsSTGpbj4XX5Qj394PMkKOjbybigJqwGGIL3X 2Qjw== 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=+3SEVXCpqtMQ7g1JXR22/XO6zUi+AE7nM2fHDOiRODo=; b=kHnYILseOw195Y4bA4PgiOoOK1fGMFQ6lb34gUGQtzxdjoaqX6OzdPcN8PP2hTBKws KsTm4w1fgfXg/bCdxHgBaX/UnGRPnk1a1Y8IqPyE1qdA4ib5C/YpeUwmhYQsOVgsVRV7 imsDS28heKNBt++kifUan4+9Tslrfh6Wh6/G8Ml3iSvJjOmGYbUa2nznrwo4IAv3+9Sx pRhbRyWU6kbfr+dk7sdkHiJfClsYyFrGlYTKwbQIDiJJGQ2bJ2NWje3vf3nKBxL2PeJi pDcfN9pN38C+K3v58bL4oNZCJ6ZtWPaJhVOTVdtveoCF6f8gjedYuXvzMGZQvL6UAv76 Iwfw== X-Gm-Message-State: AFqh2kraZDtwqml3g45sWKr8BkYQ+MtTJqJ++24Zu+fNZMndhMHRFvjh Zw5cMoOOuLv0gTmu/JPXZR8tcA== X-Google-Smtp-Source: AMrXdXtEyxcUu4KSqzIWG86PCTaQVWmuwiR94Vitd+SGffEoqiqVJMRnodhEC3A62MvlRWU6ZS+Fiw== X-Received: by 2002:a05:6512:1688:b0:4ca:fa75:a64a with SMTP id bu8-20020a056512168800b004cafa75a64amr2651323lfb.0.1672028515566; Sun, 25 Dec 2022 20:21:55 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id o9-20020ac25e29000000b004b4b5da5f80sm1641129lfg.219.2022.12.25.20.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Dec 2022 20:21:55 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 00/16] clk: qcom: gcc-qcs404: convert to parent_data Date: Mon, 26 Dec 2022 06:21:38 +0200 Message-Id: <20221226042154.2666748-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patchset reworks and improves the Qualcomm QCS404 global clock controller driver and it's platform usage. It fixes some omissions (MDSS and oxili GDSCs, incorrect clock names, direct number usage in the qcs404.dtsi). Then it converts the gcc driver to use parent_data/parent_hws where prefereable and finally applies these features and fixes to the qcs404.dtsi. Dependency: [1] (for the qcs404.dtsi changes only) [1] https://lore.kernel.org/linux-arm-msm/20221226031059.2563165-1-dmitry.baryshkov@linaro.org Changes since v1: - Reworked the patchset to use indices for the clocks rather than fw names (suggested by Konrad) - Added a patch to add the xo clock to the rpmcc node. Dmitry Baryshkov (16): dt-bindings: clock: qcom: gcc-qcs404: add two GDSC entries dt-bindings: clock: qcom: gcc-qcs404: switch to gcc.yaml dt-bindings: clock: qcom: gcc-qcs404: define clocks/clock-names for QCS404 clk: qcom: gcc-qcs404: use ARRAY_SIZE instead of specifying num_parents clk: qcom: gcc-qcs404: disable gpll[04]_out_aux parents clk: qcom: gcc-qcs404: fix names of the DSI clocks used as parents clk: qcom: gcc-qcs404: fix the name of the HDMI PLL clock clk: qcom: gcc-qcs404: get rid of the test clock clk: qcom: gcc-qcs404: move PLL clocks up clk: qcom: gcc-qcs404: use parent_hws/_data instead of parent_names clk: qcom: gcc-qcs404: sort out the cxo clock clk: qcom: gcc-qcs404: add support for GDSCs arm64: dts: qcom: qcs404: use symbol names for PCIe resets arm64: dts: qcom: qcs404: add power-domains-cells to gcc node arm64: dts: qcom: qcs404: add clocks to the gcc node arm64: dts: qcom: qcs404: add xo clock to rpm clock controller .../bindings/clock/qcom,gcc-qcs404.yaml | 38 +- arch/arm64/boot/dts/qcom/qcs404.dtsi | 22 +- drivers/clk/qcom/gcc-qcs404.c | 841 +++++++++--------- include/dt-bindings/clock/qcom,gcc-qcs404.h | 4 + 4 files changed, 455 insertions(+), 450 deletions(-)