Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1677541rwr; Thu, 20 Apr 2023 20:15:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIwtICvHwy5FqYKXWZ30Y3qI9owO6qxpOwGkX6M7waYVsOMnQS3qV9NvAYpyrcLz3GBbXr X-Received: by 2002:a05:6a20:914b:b0:ef:890c:3005 with SMTP id x11-20020a056a20914b00b000ef890c3005mr5009433pzc.17.1682046928893; Thu, 20 Apr 2023 20:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682046928; cv=none; d=google.com; s=arc-20160816; b=nAM4x4/6BzJBSq8pqXdNUT/sT6JFQNY5n+UDDwwJZpUCgz2ZRJPebHH/fCDOfdGFkl y3tLuoBnEJBzNI67A4i1iVx9VmDYA8MVGR/fY6Ppcm/FEqhMC1rrRYcs1MfSq3SexCab lXfdRlQEWXZAwSBuyHxsF4PvY45nmSlDx2cYY4YHo8PId4y0yOGtMCgBHb2Epvzr5ep3 GqmumNbnIrzU6x27fOjjo615ygrLQYaMe8r/n+xzPrkp7u+SiTCcvko+pmidbwFcDApC mEGjzlQNXd3xGEJBXN3ZsTmHAhwwBPSPiSX/xBY+SONrWPzTSR2FhZa4p2j1lZ9W8oce fDwQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JuXqFX39koDxb6m/H+kYDeEIGBCqQ4x74VwHgysg3Ts=; b=YYReyEzrBcmTGYyNuS3o9iBKyE3vwXMGC/2mH70kJznTcmsxYmF6fvaLzCYcD3ZzFB 7Zpp5k1UriSElz/tUlTlMq+kjHRE3eaygfX8D2vQvET5rVW80rPMq5a1z2zQ7KsFoExp cgitbFrHnqzPIKMriRnyiM7EBawjGob5lHq9DWf4yva5eQ4YeqKPwHDcPFuzRdlb1k43 lZiZ71Ghs8URYXTtCqAifHWOrq91y+hAtYDrF1UwphyvOLKeTqUzMKAXA0r2uSXwUI5i QGoFQTT+EWm23F6U5u/isWSFy718Lm5AdViipevwYr1VW0aYB3AUWe/VENEJPL56fJaU 81dQ== 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 a7-20020a624d07000000b00627e8781dbfsi3191479pfb.266.2023.04.20.20.15.17; Thu, 20 Apr 2023 20:15:28 -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 S234043AbjDUDPA convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 Apr 2023 23:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233678AbjDUDOw (ORCPT ); Thu, 20 Apr 2023 23:14:52 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92771198D; Thu, 20 Apr 2023 20:14:36 -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 07F0224E00A; Fri, 21 Apr 2023 11:14:34 +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; 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:33 +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 1/3] riscv: dts: starfive: Enable axp15060 pmic for cpufreq Date: Fri, 21 Apr 2023 11:14:29 +0800 Message-ID: <20230421031431.23010-2-mason.huo@starfivetech.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230421031431.23010-1-mason.huo@starfivetech.com> References: <20230421031431.23010-1-mason.huo@starfivetech.com> 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,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 VisionFive 2 board has an embedded pmic axp15060, which supports the cpu DVFS through the dcdc2 regulator. This patch enables axp15060 pmic and configs the dcdc2. Signed-off-by: Mason Huo --- .../dts/starfive/jh7110-starfive-visionfive-2.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index 2a6d81609284..cca1c8040801 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -114,6 +114,20 @@ &i2c5 { pinctrl-names = "default"; pinctrl-0 = <&i2c5_pins>; status = "okay"; + + axp15060: pmic@36 { + compatible = "x-powers,axp15060"; + reg = <0x36>; + + regulators { + vdd_cpu: dcdc2 { + regulator-always-on; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1540000>; + regulator-name = "vdd-cpu"; + }; + }; + }; }; &i2c6 { -- 2.39.2