Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5190220rwl; Tue, 11 Apr 2023 01:33:56 -0700 (PDT) X-Google-Smtp-Source: AKy350aJwBNPvxZJ3lra8rf9UstzuA1+iD3RvlKElmRs9FWqgz8KtDqN/ExxHmmFadknvh3n994v X-Received: by 2002:a17:90b:4a01:b0:23d:4e0e:cf34 with SMTP id kk1-20020a17090b4a0100b0023d4e0ecf34mr16103426pjb.34.1681202035973; Tue, 11 Apr 2023 01:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681202035; cv=none; d=google.com; s=arc-20160816; b=EWVsN3pMF8k8J1jDj+9S/8ssLREeIF2cz4v5DjOVbuaUDcqjAxJsARljCzaio7blHl Al+JizwLKDIWiRhtVqPDdocwumbh5QTngCmdNtrcq27vgQZIW5/j8rk+tueGUVrmXTpb +jCndCZ/VbG1y91g4AZbU0sWQNOLeCM2L6BvnT+QesxDHrkPxcIgoihEdYAOlHJ+Z8Za XR2sQZoFqX78qiEU0d+sDSIJ4eFeUC/k3bmwdu09A2/Y63hPeRvYqke6Uy+OngvLyP50 mIOthLp5KqrZF+6XwCUMyFn6XwnpGxS3gNL9//imAJlg4YZBYDiAPKwLepPPConc3EL9 iHCA== 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=UvN8N0RoX/7PYH25hzbEGPT32jS/90D/lQ9Ie29dI30=; b=1E912r2NDYZKpSjOCjQttktDE7OZC8cv+RKs4VTlYuJqsUbHT7DmEf5Fek0RYz2gBW MKuJS8sI53/8kW5PX/gJHzEB5N0owGzG8Y3ojBEIN5m6g+4ql2M6lwdrnDVNuCOp/sSd G6PNMPuhpmpuPrOyyHHQb6Kz1OPFWnYJuPIXvPypC45izM/ZwRD+eKAuMJcXnHnyiMzB Cs5wXAGHt9mFuf9diDKrANMfeUvSJ7QdVt4xTuCbz40/kf4vbxv7i35Bt2PTKhbJlNHd pWirwNX+wcM+vu2aLwA6mcV0l3KLl9zAHiL5ZmwUUOogcJzOnJkQB2qgygl+aXdNSPXa VTvQ== 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 s7-20020a17090a440700b0023d1e397832si8990020pjg.160.2023.04.11.01.33.43; Tue, 11 Apr 2023 01:33:55 -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 S230470AbjDKIdE convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 Apr 2023 04:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbjDKIdD (ORCPT ); Tue, 11 Apr 2023 04:33:03 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EB5E19F; Tue, 11 Apr 2023 01:33:01 -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 ex01.ufhost.com (Postfix) with ESMTP id 8BDD424E211; Tue, 11 Apr 2023 16:32:59 +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; Tue, 11 Apr 2023 16:32:59 +0800 Received: from localhost.localdomain (113.72.145.176) by EXMBX067.cuchost.com (172.16.6.67) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 11 Apr 2023 16:32:58 +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 v1 1/3] riscv: dts: starfive: Enable axp15060 pmic for cpufreq Date: Tue, 11 Apr 2023 16:32:55 +0800 Message-ID: <20230411083257.16155-2-mason.huo@starfivetech.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230411083257.16155-1-mason.huo@starfivetech.com> References: <20230411083257.16155-1-mason.huo@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.145.176] 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=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS 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 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 --- .../starfive/jh7110-starfive-visionfive-2.dtsi | 15 +++++++++++++++ 1 file changed, 15 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..df582bddae4b 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,21 @@ &i2c5 { pinctrl-names = "default"; pinctrl-0 = <&i2c5_pins>; status = "okay"; + + pmic: axp15060_reg@36 { + compatible = "x-powers,axp15060"; + reg = <0x36>; + + regulators { + reg_dcdc2: dcdc2 { + regulator-boot-on; + regulator-always-on; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1540000>; + regulator-name = "vdd-cpu"; + }; + }; + }; }; &i2c6 { -- 2.39.2