Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1381707rwb; Tue, 29 Nov 2022 12:48:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BmvHsRLDQ07tBjgLFAJ2ytlWhfXpP3PPhMYmt5QxxYhBGCFktF7C0v5GCetzpblfEfOAa X-Received: by 2002:a17:90a:d38a:b0:218:a7e6:60df with SMTP id q10-20020a17090ad38a00b00218a7e660dfmr47893354pju.38.1669754902869; Tue, 29 Nov 2022 12:48:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669754902; cv=none; d=google.com; s=arc-20160816; b=GmRATeuLjB7zS6XbfeCNsaN8+V6I3J4uObmN7lnI+Ofv1NfQpqfr8ET9k+TwXHGLvD lIt1I0306E2D+FEr/MwqIKFeqRPLU19xgZEi5cEQJ0ioiGDbvLzoEQs5js/Xb2lu92+m EJ4DxEKsIEGjweONy61VrNP+aBcUWOZ3ji8c0bB+Y4KSyUsUEpwnGHxaSCYJkiw4YpxZ PJ4TaR1NTzKta4Y9NxA+xaJUwEwBuhKSMI9KmsBPi+FQDKelKPA61WNy28l18A1l3iSn XIY/b5Wno+s7Fkx5IKOXiF8J5wELdA0IN7skLnWCBaxzj2RdKwdJLRD+tOYMybi9LGJD ZooQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=tSu1txevdRDvf+sjHpSwkWYMoyBAXs2clWWE081Dl98=; b=kcqv7aZ5kDM1HWr//UWqBMoxoqQp4j+8CpPh8qbjcBu9V1SwamrrwHTXyGHz46rAHq UuwVuxuMRhBa8M6D96JU36CslneOU2cGM4vQsUZfgOYWgxQff46o/CPv4SIznEck2r34 fVExL323Q2HbbyifIj1SR8RfmHoJyURmuYyZ1DRpTxNGE4egBe/iMaJ0K7Fvm8T95zXN Ynk5mTMI8lmuPrvQcbx7cAJp6wehKf3N9asCBmiGYna3ie0th/q6LEsPYhsRMrstP9US akML23VmfPhk8wAXNn07sO3p/CrfHn15lTWag/+pazqDglcVkE9GYpCgatPkFOZZDPuy eOmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=k4BZ95Py; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k70-20020a638449000000b00477c0bc4844si1943066pgd.135.2022.11.29.12.48.12; Tue, 29 Nov 2022 12:48:22 -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=fail header.i=@gmail.com header.s=20210112 header.b=k4BZ95Py; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236375AbiK2UrH (ORCPT + 85 others); Tue, 29 Nov 2022 15:47:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235138AbiK2UrB (ORCPT ); Tue, 29 Nov 2022 15:47:01 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E15A27B3C; Tue, 29 Nov 2022 12:47:00 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id b9so18648634ljr.5; Tue, 29 Nov 2022 12:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tSu1txevdRDvf+sjHpSwkWYMoyBAXs2clWWE081Dl98=; b=k4BZ95Py3bK6fYlB1MFLHgwl9yftQvPDe7FUCSwJx9NQx9uYWGh2Nziw+P2NhPKGya Z5zHfkIB9YbpADkcqcowkrxPJ+oVd6yHlvjUDbqEhDjUi8jzfVIm/jfrFBK7mNs5aTHC 9meg/WDqrTCZO+Ty6MprnrssnMy5RcK/VSagXAMtMMgo/df0Sr4c8K4+sWZ0lLuOTqQS gm4gyRPHU7Zg7wwfZzG+7BCxrh3M2Vf+8P+MXZPOQiHNy1Gcrj689hKYVCLHs9qyeT+s KaeVmMq8JTxedXK3T5f0Pw7SqhuZJeNUYfiMQw7hYzf5I35gbXmU3OXMmRcOI1qeVq0j D10Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tSu1txevdRDvf+sjHpSwkWYMoyBAXs2clWWE081Dl98=; b=wb/YoZnxnvrBPu7EFmYfFpGGzxAe2SIfowX1ktIcjiPQN+jw+MmVnXYGnoBodVioQG zFkA5Qq5pwvh7RmTxiGxRsoYL9+39FxBxDeUpIka8pSkVYZv1VASeLIKUHlvJ0e6obuo w+3qgovJykWnUY4tPoQ+P4NIHFlsJIVBubFvMAz/3IzGbmDMvu/ErgbCRHGrTZJes3x4 IJi3A1aLhWdywtQsn54mP4/5mi+qZfAsOFPiDxsKMlf67cbYGlFyS/nRm6Nlr8o7Ag4R mviqG0Mb6NVCNgJ6qAeyVeASJbc1QvYD36fHb3uF50u0BLRKqbhpG1qZuwb4igXCeP5V Pieg== X-Gm-Message-State: ANoB5plL/UyYoN/9IlVVdkoZZjE5DpXu5kRv5Xt8MlnEEZI5PqWpKE+l ckw3+8MfI33PiIhv1JKMeG/03kEIPLA= X-Received: by 2002:a2e:8619:0:b0:279:88ce:468f with SMTP id a25-20020a2e8619000000b0027988ce468fmr9177924lji.312.1669754818712; Tue, 29 Nov 2022 12:46:58 -0800 (PST) Received: from localhost.localdomain (ccy110.neoplus.adsl.tpnet.pl. [83.30.148.110]) by smtp.gmail.com with ESMTPSA id o11-20020ac24e8b000000b004ae24368195sm2325620lfr.233.2022.11.29.12.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 12:46:58 -0800 (PST) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Loic Poulain , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 03/12] arm64: dts: qcom: sm6115: Add cpufreq-hw support Date: Tue, 29 Nov 2022 21:46:07 +0100 Message-Id: <20221129204616.47006-4-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221129204616.47006-1-a39.skl@gmail.com> References: <20221129204616.47006-1-a39.skl@gmail.com> 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add cpufreq-hw node and assign qcom,freq-domain properties to CPUs to enable CPU clock scaling. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 0340ed21be05..2003a2519a54 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -842,6 +842,17 @@ intc: interrupt-controller@f200000 { redistributor-stride = <0x0 0x20000>; interrupts = ; }; + + cpufreq_hw: cpufreq@f521000 { + compatible = "qcom,cpufreq-hw"; + reg = <0x0f521000 0x1000>, <0x0f523000 0x1000>; + + reg-names = "freq-domain0", "freq-domain1"; + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GPLL0>; + clock-names = "xo", "alternate"; + + #freq-domain-cells = <1>; + }; }; timer { -- 2.25.1