Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1306999rda; Mon, 23 Oct 2023 08:39:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxrdxc0JuPGHPpSWUUXpQM8WX7g+lc8fRDzZJM4iStNAPL3+oWm0TM7zziwgHI7ofSZBfq X-Received: by 2002:a17:902:d482:b0:1ca:eccb:d58b with SMTP id c2-20020a170902d48200b001caeccbd58bmr2543183plg.23.1698075560614; Mon, 23 Oct 2023 08:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698075560; cv=none; d=google.com; s=arc-20160816; b=eUaK4kl7opypHAiF7aRdpgfJ24Br1tgpUwyrTY2bQy9/JEHwFgvE84Hv/B5Q6UsBAw SGOyJqOfJPLHOmxfPkCjTSZSIy9lteEYF3B8BjynK8HDM6WQHhvrWV52WIts3y4dp4Wa tFOGH8d0VL8lHIPPIhGa8Velh3S8FGvd3Y7On7D7gux04+dhQZ1XNJ/Ez1XmxXcI7i6V m152tYEakuWV98ikqQ3D91zeVFQ0DNJrchwK6peDvcK0D0jU02Be7nNIwl6QxH9uxnP1 1w6Ic+lwAQ1XhOW+zPv2wUPfAurkR/63oeBBUsRNvw5UvRj7qo25lO7dKSjFjsWTSZ+k PXTw== 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=1N//AnYmHXkSl9KLuAZmJ5UEbGwSxaTciSmclXgwpFw=; fh=HqXb5pKQmiRoUvTzW6ObiiLCOTom46cMUEwDs3yZjT8=; b=wwHZeZHuh7C1t9OmCyumOz7d3Em+UIQW2Jc3JGHlima99fpI+3rT78WxUEx+Uw18wU rEe6DWsoVPUx9xFdrX91NTjvSBm5KrTyLUv/gZP5L0rfDH1HCokC40vZTFy0jYyIhLQq IZP11LPBNF8VB7DE1WJpyHLZjgDyldt2B2caEgnqCc1MX1mNVX2Zv6ghQprH7zi8zutl rCNa2ogdau9rAWH05KWmVD3gfZAEmDacKYC74Qaj0ck1Ws2AxQFjxtpeYtkhhk4rRVlk yfiYDWX1OOaFHoDJR0JoiTl18eWbkNXNDc9pJaz+pJg8SBDRcpIopIxA7tJxTgLFypkK 7k0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lZn7xze6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id n7-20020a170903110700b001cad3a744aesi4304554plh.153.2023.10.23.08.39.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:39:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lZn7xze6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7E2848087E38; Mon, 23 Oct 2023 08:39:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231163AbjJWPib (ORCPT + 99 others); Mon, 23 Oct 2023 11:38:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231147AbjJWPi3 (ORCPT ); Mon, 23 Oct 2023 11:38:29 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE0DCFD for ; Mon, 23 Oct 2023 08:38:26 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4083740f92dso28683045e9.3 for ; Mon, 23 Oct 2023 08:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698075505; x=1698680305; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1N//AnYmHXkSl9KLuAZmJ5UEbGwSxaTciSmclXgwpFw=; b=lZn7xze6i5sJtxmEE7vElFR9RoDhpiKu6QzApjydBSoxrSeKmAtwStwgPjkbbAwgeP JqovTiQxodXK5+8cO2wAWb9dGkQUE6kYXCqXM+eQo7ZyldrX9e0KwvyXyL1I3oVaXP0G BimFLIGceGJasDlLrephb2R2EYVT+utG6lzjuT7OP5b0bbAbL5cR81k1MDfNHR0lIBFR c2mLZFgeWhwRibKf2MGI54ug2tqeYIwztH1ZK/S3V7MXwGgh05c6QmiYYdql2jUw4CpB RnQlAP13ET4p/TuF0faI0lhmKR7wJD58/Vxv7JYfIAtmgeDMlenEZo5lMCPhWv1zpZBB S99A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698075505; x=1698680305; 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=1N//AnYmHXkSl9KLuAZmJ5UEbGwSxaTciSmclXgwpFw=; b=Si6MT7yP39KnGnDBtP/keXD4VUR7Jol073AvibXmNfxSkNY689+adUKRnSn1dcO0YM tPvt/en32KR+inTSxTjFHxokX9bkRK8tCCphE61Pi1LNLlaRVvw+sSlWAvE211PYOMqd Bvncsetj9hVa8UpfBD0W5wzYpNhiVinFkZIMLakYri1nMhRjk4tGJUo49ZZn53t1clLI 5Hl8YqSVT8olIDT7MXPynywZudpboOiz3O9Y2/lg1cAZSu3mdI3SURrMkazW8/vZ2m+J yDFRMxwl3yFZZk5JRKn7H9CeuchPgxsDwKoIRguPHBrKcQgLWTetBt1AMGqL33M+MHaH bBFQ== X-Gm-Message-State: AOJu0YxdABPfxUxveSwsPX2MyHOKsl+UWclVKkD/eIBO+jSWPTeh4Asr 0rwSplcdGZd/j2PMbAiobv+GRg== X-Received: by 2002:a05:600c:310f:b0:408:febf:831f with SMTP id g15-20020a05600c310f00b00408febf831fmr2870502wmo.28.1698075505064; Mon, 23 Oct 2023 08:38:25 -0700 (PDT) Received: from x13s-linux.nxsw.local ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id f4-20020a5d50c4000000b0032da319a27asm8096929wrt.9.2023.10.23.08.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:38:24 -0700 (PDT) From: Bryan O'Donoghue To: andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, dmitry.baryshkov@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jonathan@marek.ca, quic_tdas@quicinc.com, vladimir.zapolskiy@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH v3.1 0/4] Add sc8280xp CAMCC bindings and driver Date: Mon, 23 Oct 2023 16:38:17 +0100 Message-Id: <20231023153821.189331-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 08:39:10 -0700 (PDT) V3.1 - Drops dependency from below, since that patch needs a rebase on clk-next now anyway. - Adds Krzysztof's RB as indicated to patches 1,2,4 Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/qcom-linux-clk-for-6.7-camcc-sc8280xp-v3.1 V3: This patch depends-on: https://lore.kernel.org/linux-arm-msm/20230923112105.18102-4-quic_luoj@quicinc.com - Resolves CLK_CRITICAL camcc_gdsc_clk by making camcc_gdsc_clk always-on and dropping the CLK_CRITICAL flag. We want camcc_gdsc_clk for retention, however CLK_CRITICAL is not compatible with pm_runtime suspend and power collapse. - Konrad, Bod - Uses gcc.yaml instead of camcc-common.yaml - Krzysztof - Drops fix for 8550, TBH I didn't know use for socname-ip.yaml with compat strings for different drivers was OK, so long as the content of the yaml was compliant for both. - Krzysztof - Drops clock-names, adds RB as indicated - Konrad - Reworks "really_probe" to account for patch from Lou Jie which is RB from Stephen Boyd but not in any -next tree I can point to right now. - Konrad, Bod - :g/CAM_CC/s//CAMCC/g - Bod Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/commits/clk-for-6.7-camcc-sc8280xp-v3 V2: I've expanded the scope of this series to include some fixups for the camcc.yaml in general. - Adds qcom,camcc-common.yaml There are a number of repeated patterns in the various camcc yaml files which we can contain in a common camcc .yaml instead. I used gcc.yaml as a base per Krzysztof's suggestion. - Adding the common values file I noticed that sm8450 and sm8550 were both listed as compatible strings in qcom,sm8450-camcc.yaml. This appears to be in error though since sm8450 and sm8550 are not compat strings of the same driver but different drivers entirely. - Switches to indexing, instead of fw_name for clocks - Konrad - Adds the GCC AHB to the clock index - Bod/Konrad - Changes reference "cam_cc" to "camcc" throughout camcc-sc8280xp.c Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/linux-next-26-10-23-sc8280xp-camcc-v2 V1: This is a bog-standard series to add in the CAMCC for 8280xp. As a precursor to adding in sc8280xp I thought a bit of tidy up on the existing yaml for the camcc controllers in general would be worthwhile. As a result there's a precursor patch which aggregates the various camcc yaml files into one location. The sc8280xp looks like sdm845 with more blocks. Similar to sc8280xp we park GDSC to CXO. Thanks to Dmitry for the suggestion the GDSC parking. Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/linux-next-23-09-23-sc8280xp-camcc Bryan O'Donoghue (4): dt-bindings: clock: Use gcc.yaml for common clock properties dt-bindings: clock: Add SC8280XP CAMCC clk: qcom: camcc-sc8280xp: Add sc8280xp CAMCC arm64: dts: qcom: sc8280xp: Add in CAMCC for sc8280xp .../bindings/clock/qcom,camcc-sm8250.yaml | 18 +- .../bindings/clock/qcom,sc7180-camcc.yaml | 18 +- .../bindings/clock/qcom,sc7280-camcc.yaml | 18 +- .../bindings/clock/qcom,sdm845-camcc.yaml | 18 +- .../bindings/clock/qcom,sm8450-camcc.yaml | 20 +- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 15 + drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/camcc-sc8280xp.c | 3048 +++++++++++++++++ .../dt-bindings/clock/qcom,sc8280xp-camcc.h | 179 + 10 files changed, 3274 insertions(+), 70 deletions(-) create mode 100644 drivers/clk/qcom/camcc-sc8280xp.c create mode 100644 include/dt-bindings/clock/qcom,sc8280xp-camcc.h -- 2.40.1