Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp338781rdh; Thu, 26 Oct 2023 03:54:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtIG45TL50b9bb2+09WioyvgzN8XCclAvFHieP/BSUSzRpsIwGc7eglrnhMHgCkbiq2/uU X-Received: by 2002:a0d:cc47:0:b0:5a7:fae6:1cc6 with SMTP id o68-20020a0dcc47000000b005a7fae61cc6mr17863496ywd.24.1698317644113; Thu, 26 Oct 2023 03:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698317644; cv=none; d=google.com; s=arc-20160816; b=rQJ7lq9uw298yIwLG4xfOWwjPCsXqsdRREzv1gMA8PEMPLuYI3Fz+UatQJxHltY63r Ajd91FTH7gZ7zVAk92ZkXUbeIW+yvdKd0CJ9woYrBLlJWvxg7HWcsjT7vRJdKUZLmFhw kXwdQRE1HXpQaIqocV91EA5hBr7HysW0zblKWgPqz7pWXpEI04P4GRGCmVKWONB1M6j1 Lj7YutvJjsZFIJ2Jyr7vglU6ZoiHNVBPNp4OFsxtmOiXStIAsR4Ls5JXj3wOfEgAGzSl I3mv1ohBMm+SKS6kdRaW9tooJLFV32/OzWekbmr9PzIQsBTQHv4oGVq8EljE7R/AG1ik AS1w== 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=K389/iUEOu2iWXAIota1XUkSvSprBh9JTZllqycurr8=; fh=HqXb5pKQmiRoUvTzW6ObiiLCOTom46cMUEwDs3yZjT8=; b=k22dSLe0eOIZJxyXvCepuUY6TzWOooLbh5TzyDJoGuvZyD5TG7f9zIGP8KhcA0rmtc hamC6rhNBVjHCeSJ45juYUfti5cWjJe8+qU0MIbQSBeuohOxN2rHohHJlR6f8WEvbB+3 ElrFsyucAkWtbgSWmhYRvzg6LaYDThi3tbWeMyrHzAhvzIWJx1bvVwAeza/O6C0vOQGp d6zf54979iWlQbMmdMtLn6Xx1b3vPys4sQQrRtIUjNds740pNxM21cl1HqY762K8b141 O5sEJZLigNBTfhv2+zw9ZgfgPv85eWN8lCB9nPvW3FqjiAugHV0/TcCMnifcp/cu6Ijx SHew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="M/zUtuwF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z201-20020a0dd7d2000000b005a7af7e157dsi14390607ywd.124.2023.10.26.03.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 03:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="M/zUtuwF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 8BFB48217047; Thu, 26 Oct 2023 03:54:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344684AbjJZKxz (ORCPT + 99 others); Thu, 26 Oct 2023 06:53:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbjJZKxw (ORCPT ); Thu, 26 Oct 2023 06:53:52 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1376418A for ; Thu, 26 Oct 2023 03:53:50 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c594196344so11148401fa.3 for ; Thu, 26 Oct 2023 03:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698317628; x=1698922428; 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=K389/iUEOu2iWXAIota1XUkSvSprBh9JTZllqycurr8=; b=M/zUtuwFpK5l0CZ0dNSXH6igXvJkb2uyK8P95iA5Rxq0S/wAeJ+W8iLICbOWeFNW4q VuwIB+l5DdtoBf139cPPV5hawwyozOodJQPo9ciU54JSSNTU75ZCPnzLRTOo1l4/oGXR tbVjTWMJPCSFO6iHugva+3z88RgAnrXkhJ/4rXlqrDH9n2YU2OgFx6xpDedgoGCu+PPp xtFHs4NImZF4SdCPT1Cq+me7vqb6DLb7lCS3LUsZZmfrLVE/tBMH0K8lOXbfuCtZd+xp 7B/yxvlyz4KAeG0wNEdFo18LIyoCSVxsS+fHy2bVB+fEqy5gY3URsZUmxTG8xKxsRo4E L8DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698317628; x=1698922428; 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=K389/iUEOu2iWXAIota1XUkSvSprBh9JTZllqycurr8=; b=Nk+3SqmyDOLuuy54oMBFNGuGaFBLSCtFpQAH/YkvDI9RKj7ufy2iOmmTVZu8Yv9d/x FZjQSFISrvbsJT5EPGvWpsDX135a7tZdKY++0dX9mDTYj8PxXJ5LCL9TXpJceInRmyPz +XPkjt6VB62Bw4yIwu0EKLTXDZUCfqdN/ANuqMUJ2jtdrPV2rNNPnrM49Q1iJNM15wif kcrV4fHmhqzIXFFL2uuXsoMSd7JWVDzHeLA8a9NoB+mfZXBk79E3hqnZj15Ujwnulili 7zxsBhgFj/ZUDUn3TarxY2ffMbOlqx/wDMYTBCooQw7v8238xVjXXjF8Xwyj3SZ/dmBL hJfQ== X-Gm-Message-State: AOJu0YzNWWIYIH8qahhEpvnRrNPoWOEuo7Kaf7bDFS2voVSgnMSOuBRX AcBCGP2mXVm0LQmL82ni39J9Ww== X-Received: by 2002:a2e:a9a7:0:b0:2c0:34ed:b5ea with SMTP id x39-20020a2ea9a7000000b002c034edb5eamr13748650ljq.45.1698317628291; Thu, 26 Oct 2023 03:53:48 -0700 (PDT) Received: from x13s-linux.nxsw.local ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id y9-20020a7bcd89000000b00407efbc4361sm2239465wmj.9.2023.10.26.03.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 03:53:47 -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: [RESEND PATCH v4 0/4] Add sc8280xp CAMCC bindings and driver Date: Thu, 26 Oct 2023 11:53:41 +0100 Message-Id: <20231026105345.3376-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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 03:54:02 -0700 (PDT) v4-resend: - Remove erroneous "--in-reply-to" from git send-email v4: - Resend of v3.2 addendum as v4 for tooling purposes Link: https://lore.kernel.org/linux-arm-msm/20231024093919.226050-1-bryan.odonoghue@linaro.org/ Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/qcom-linux-clk-for-6.7-camcc-sc8280xp-v4 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 | 3044 +++++++++++++++++ .../dt-bindings/clock/qcom,sc8280xp-camcc.h | 179 + 10 files changed, 3270 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