Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1677926rwr; Thu, 20 Apr 2023 20:15:54 -0700 (PDT) X-Google-Smtp-Source: AKy350ZxBBx7O3+IQQw4fCgsLPHR+aDn6i+kadVtBWFEkZcu5dpaLBAx9idWJ/O3VsKI/vWZDo7/ X-Received: by 2002:a17:902:e742:b0:1a1:a727:a802 with SMTP id p2-20020a170902e74200b001a1a727a802mr9668491plf.19.1682046954486; Thu, 20 Apr 2023 20:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682046954; cv=none; d=google.com; s=arc-20160816; b=fjAyYIYklH8aD0FpnmRYwgq0xp1R28DPPbfSsNZgaBhMQ4FgX3WKIghV9+gH/mWcaZ E3sccLe9w/5+/ga6WxsNxneiUT0Oqrsvdie7Rf8QS5ttEQd3irD9i+jUEvmX5xkBU14G YV7UWjcXc5bo/55yZaRztLkqSKwRjfLabpYdVf4dN0TuQAKMvla31DkXmGEy7MYgFIMl RGQFEtTtMYa2eo1KU3ZulvvRzQ8t51dYhhlBvBgytuj0HsOzvakFW6DebVGpnBn7Ul7/ VUPwQpCWhRhOvHwOvmWjFdAKAcrdXEsxllyFvP32OFz/I6YnJdYpgUEsMdFfsj0LUMoN ckjQ== 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; bh=0sM1K3+VDcQaAvI2+uJ7vqkWBY5fXcjeidEitXFcSYA=; b=cK8Jfqg2gyLpr2NMJFZwJYWgcYQgi2kP0/XVQBv3/tfiKI5sw8OOGi6It07IHmRtwP ty3G3NgXprdw/t6hBg3lOm8ic+zBLG9W+tKNqvOPlR268jMlrmhU0XBNfDD/Su74aDZ6 exlWpfOgm+vNzykGtohuFTI/AWl7oFGUiwkD2g2Rs28ETXRDNYIeoY5sHSj0/xabZsi2 bxm/cKcM5omBQl4fL3Ml3RBoS17IYDesmTzNj+STsv93E9JHb8X0s1JhwOPmLyJkHoD3 9h3rbXE2vkQYeW3IJa0f/Bq8PmTaORBVmJp2KFZSYi7nsSryEj+Mplyga0mKwtOabgoW E9/w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ng7-20020a17090b1a8700b0023f5452b573si6564292pjb.141.2023.04.20.20.15.41; Thu, 20 Apr 2023 20:15:54 -0700 (PDT) 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; 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 S234081AbjDUDPL convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 Apr 2023 23:15:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233513AbjDUDOr (ORCPT ); Thu, 20 Apr 2023 23:14:47 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41CB0E53; Thu, 20 Apr 2023 20:14:35 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 4D38824E1B7; Fri, 21 Apr 2023 11:14:33 +0800 (CST) Received: from EXMBX067.cuchost.com (172.16.6.67) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 21 Apr 2023 11:14:33 +0800 Received: from localhost.localdomain (113.72.144.253) by EXMBX067.cuchost.com (172.16.6.67) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 21 Apr 2023 11:14:32 +0800 From: Mason Huo To: "Rafael J. Wysocki" , Viresh Kumar , Emil Renner Berthing , "Rob Herring" , Krzysztof Kozlowski , Conor Dooley , "Paul Walmsley" , Palmer Dabbelt , Albert Ou CC: Shengyu Qu , , , , , Mason Huo Subject: [PATCH v3 0/3] Add JH7110 cpufreq support Date: Fri, 21 Apr 2023 11:14:28 +0800 Message-ID: <20230421031431.23010-1-mason.huo@starfivetech.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.144.253] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX067.cuchost.com (172.16.6.67) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The StarFive JH7110 SoC has four RISC-V cores, and it supports up to 4 cpu frequency loads. This patchset adds the compatible strings into the allowlist for supporting the generic cpufreq driver on JH7110 SoC. Also, it enables the axp15060 pmic for the cpu power source. The series has been tested on the VisionFive 2 boards which are equipped with JH7110 SoC and axp15060 pmic. This patchset is based on v6.3-rc4 with these patches applied: [1] ("Basic clock, reset & device tree support for StarFive JH7110 RISC-V SoC") https://lore.kernel.org/all/20230401111934.130844-1-hal.feng@starfivetech.com/ [2] ("Add X-Powers AXP15060 PMIC support") https://lore.kernel.org/all/TY3P286MB2611A814E580C96DC6F187B798969@TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM/ Changes since v2: - Fix the new blank line at EOF issue in dtsi. Changes since v1: - Fix dts node naming issues. - Move clock properties of cpu node from .dtsi to .dtsi. - Follow the alphabetical order to place the cpufreq dt allowlist. --- v1: https://lore.kernel.org/all/20230411083257.16155-1-mason.huo@starfivetech.com/ v2: https://lore.kernel.org/lkml/20230417063942.3141-1-mason.huo@starfivetech.com/ Mason Huo (3): riscv: dts: starfive: Enable axp15060 pmic for cpufreq cpufreq: dt-platdev: Add JH7110 SOC to the allowlist riscv: dts: starfive: Add cpu scaling for JH7110 SoC .../jh7110-starfive-visionfive-2.dtsi | 30 +++++++++++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 33 +++++++++++++++++++ drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 3 files changed, 65 insertions(+) base-commit: 197b6b60ae7bc51dd0814953c562833143b292aa -- 2.39.2