Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3583187rwe; Sun, 16 Apr 2023 23:43:37 -0700 (PDT) X-Google-Smtp-Source: AKy350YENNTSrCihx1n1eC+wff8UQ/x11kIxPkTEuEj18B1FjhpdKHOgBjTJ5KoPLhyKNEMTO/FL X-Received: by 2002:a17:903:454:b0:1a0:50bd:31c0 with SMTP id iw20-20020a170903045400b001a050bd31c0mr10024909plb.24.1681713817134; Sun, 16 Apr 2023 23:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681713817; cv=none; d=google.com; s=arc-20160816; b=tIT2wk9tqmhZl7UHJ/00fknQZRRJMc2w2HXSGz8CpfMqHFUy2JUIaHq7Uu17jbtfrV jrk2wkUgJSZwxxsVv1+UkdlHjprPCFvvm/IUwbfCq1xrOCIKUK+HOIwhOMjT/MMr/9h7 4PADfZvCQ9r/Zt934Q+QpOvRniYYA7kjZiR7tSh+ga+1rKKZgRVSt+nJsBH9ToF6Y6YM FnTtQbcqns3pXXM96b7wr3gf10e62nFX6Qhy4G6PbmBLIJMsALbH4Tn03GYjRw829CZY RL2nLD3U133UBKHCkfaeb5lVDiV4U/QstS+Nl66Hoth2xH2Z6RzShUXF4IDPWoyLl5u3 2Q0A== 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=tH2fInFg6vOICbx7GwDfpJ99/oBz04xj76Ma/CGIsSA=; b=RY3JxEEb0tQX2Ftinm0qYdHQ/z5Mn/i57FuF4DEYBfIClmtnzJjQlY+Bcb2FTg7I2t SkmqOiKf/lcJ0/8OUVlWhir/KSdfQGDnBniaOyVdViYYo/j/8ZFgB1w0tcePp80DmLAO MaUjEM5ue45r14f0WtluQAf101EZFG4zalGehlcUyByXNYWHB92bGw7QkGDui371CrnM cVWnx40rUkv/ohYRAoWZ0mt1qY7iv1fHTpRkII/FlJX7eK9v3VUqzDuyhNcJIS6KGZQu 6L6tIw5zs6QXjMwaidahXWHrgigcJMRZVxCZMs8Q3ARf7eN2Jjs0HKobLESOoZaXyIcd AIhQ== 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 bo19-20020a17090b091300b00247126a9fbbsi11382185pjb.151.2023.04.16.23.43.24; Sun, 16 Apr 2023 23:43:37 -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 S230249AbjDQGkH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Apr 2023 02:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbjDQGkC (ORCPT ); Mon, 17 Apr 2023 02:40:02 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACC6C139; Sun, 16 Apr 2023 23:39:59 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 7344280D3; Mon, 17 Apr 2023 14:39:44 +0800 (CST) Received: from EXMBX067.cuchost.com (172.16.6.67) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 17 Apr 2023 14:39:44 +0800 Received: from localhost.localdomain (183.27.97.249) by EXMBX067.cuchost.com (172.16.6.67) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 17 Apr 2023 14:39:43 +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 v2 0/3] Add JH7110 cpufreq support Date: Mon, 17 Apr 2023 14:39:39 +0800 Message-ID: <20230417063942.3141-1-mason.huo@starfivetech.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.97.249] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) 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,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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 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/ 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 | 31 +++++++++++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 33 +++++++++++++++++++ drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 3 files changed, 66 insertions(+) base-commit: 197b6b60ae7bc51dd0814953c562833143b292aa prerequisite-patch-id: 388b8adbb0fe2daf4d07a21eafd4f1bd50ce2403 prerequisite-patch-id: 1117ecaa40a353c667b71802ab34ecf9568d8bb2 prerequisite-patch-id: b00c6b21fbd0353d88b7c9b09093ba30b765f45b prerequisite-patch-id: 08ec9027e8a5c6fdf201726833168c7464a9b94d prerequisite-patch-id: fb5120248e48fe1faf053ae0b490c92507ec2b44 prerequisite-patch-id: 4b93d8d590b0a2abe7b4be5287232c494c35be4a prerequisite-patch-id: 89f049f951e5acf75aab92541992f816fd0acc0d prerequisite-patch-id: c09c4c68af017b8e5c97b515cb50b70c18a2e705 prerequisite-patch-id: 0df8ccb0e848c2df4c2da95026494bebecede92d prerequisite-patch-id: 315303931e4b6499de7127a88113763f86e97e16 prerequisite-patch-id: 40cb8212ddb024c20593f73d8b87d9894877e172 prerequisite-patch-id: a1673a9e9f19d6fab5a51abb721e54e36636f067 prerequisite-patch-id: d57cc467fb036241b9276320ff076c4a30d376d6 prerequisite-patch-id: 6e563d68bc5dbf951d4ced17897f9cc4d56169fe prerequisite-patch-id: 61ec2caa21fd0fc60e57977f7d16d3f72b135745 prerequisite-patch-id: 1387a7e87b446329dfc21f3e575ceae7ebcf954c prerequisite-patch-id: 258ea5f9b8bf41b6981345dcc81795f25865d38f prerequisite-patch-id: 8b6f2c9660c0ac0ee4e73e4c21aca8e6b75e81b9 prerequisite-patch-id: dbb0c0151b8bdf093e6ce79fd2fe3f60791a6e0b prerequisite-patch-id: 9007c8610fdcd387592475949864edde874c20a2 prerequisite-patch-id: d57e95d31686772abc4c4d5aa1cadc344dc293cd prerequisite-patch-id: 0a0ac5a8a90655b415f6b62e324f3db083cdaaee prerequisite-patch-id: 4c285d814aa74358a697714eac4415f0bb32bdb3 prerequisite-patch-id: 62735ba4fc7ec7c4435b1b6c1e69abb2345cb0e8 prerequisite-patch-id: 7f653d6f4aebf56544aca906c2719f9d80cb1bb3 prerequisite-patch-id: 1936b8e48a4cb9b0fa4440f7ad25bf267beeeebf prerequisite-patch-id: 5b39a469bff8f11ed582118ca4c456ba8ebcdcd9 -- 2.39.2