From patchwork Mon Nov 21 21:22:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 24017 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1843737wrr; Mon, 21 Nov 2022 13:29:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lft8Gbt+JW4+rahpzTjNJkdISq+/bCji0GDJW2TtyfAI3GpRv+XSgSx38kiUDSfL4i5+V X-Received: by 2002:a17:906:7e51:b0:78d:4fcb:1303 with SMTP id z17-20020a1709067e5100b0078d4fcb1303mr17685454ejr.182.1669066151275; Mon, 21 Nov 2022 13:29:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669066151; cv=none; d=google.com; s=arc-20160816; b=gZQmL8C5kdl2mA3ie9T9601BquI4zG1cxMof2nJqSVXGseECx3Lhg1B1ZDz2u3lm2n gUv9HzAe2JRKXK1LVv98W0ltqmgZr3ZY9sBk3G7bwEo1FZ2ixN4zh0SKziKcwQkXl9Yz QnkeWJSt5yuwGZHzVxdxLZ/XmoRrHpl0BBWA4nSlMUBlbs/3zFPCCPW4++5L2t+zbW5X 7p0RZWjTB89NIeDxyRZSnVto8F/UuL7CxwW1Ug4/24fnxO86PzTIfLF2jF50aQSPOtpR A4aQX5felSwsiZTwRgmn5CZeTx4PFg4pRe6hIJ4fsyc31oNqGXWXWY716qwpd8AR59k4 j24w== 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:dkim-signature; bh=ARuF3sjrqahN2woij3To0ZoklAQfRI7K7Tsk2E81D+Y=; b=DeU2vk/CjQ2zoRGNWW8DUOMv4MXKBAcyC/pmchR/npNU/Cy9FJriM/mBqGNrPdLs+3 lCe5+2fQafffYj4J15Kw9JH0chjkCLFsQlyVo0otibG3TWPGSdaTi0i+NFxWRlths3SB Nz2AHI0EUrfW/VHp3AJovk7g5fszYW/niAkjxLdX32paNFYq6errSQoOV9zUyiqM0YBv KleVT7BB4XAImw0gz47j3AqQIPpylX5Pe+LY0Z8MESWso3BF92dhjky0jwn8ndPhc2ty 03ON4ui/9fn4fyhKdnMZ4mgD4jV9Cmk8cfdgmtHH1Pp/l7togDbIRPlGM6DvTmzaXYE1 QHeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=whpoVQvD; 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=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a056402524a00b004634dd8b6edsi11528555edd.296.2022.11.21.13.28.46; Mon, 21 Nov 2022 13:29:11 -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=@z3ntu.xyz header.s=z3ntu header.b=whpoVQvD; 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=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbiKUVWn (ORCPT + 99 others); Mon, 21 Nov 2022 16:22:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiKUVWl (ORCPT ); Mon, 21 Nov 2022 16:22:41 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CDCEDF53; Mon, 21 Nov 2022 13:22:38 -0800 (PST) Received: from g550jk.arnhem.chello.nl (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 2227ECABCB; Mon, 21 Nov 2022 21:22:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1669065756; bh=icGbgsxy1HEPQOcedMSGJbJlERu4+bC9CJp6D7yq+dM=; h=From:To:Cc:Subject:Date; b=whpoVQvD0ToIFInww8OxeGCeBHay+QtHzZAV8iFIoH1y345uUQClZlQ50NDOp1Jvx wpIMUG87QkwFplSDVe6XbVmodEksvT/rx1n7l9DDSC+NHOQMYZT1lQ7UeVfobNUsO+ Z65OM9TjzLGl00Ik+x3rs6h0vALJvVq2HB8MJtk4= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] ARM: dts: msm8974: castor: Define pm8841 regulators Date: Mon, 21 Nov 2022 22:22:25 +0100 Message-Id: <20221121212226.321514-1-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750142708628845002?= X-GMAIL-MSGID: =?utf-8?q?1750142708628845002?= From: Bjorn Andersson Define the pm8841 regulators under SMD/RPM, to allow the modem remoteproc to set the voltage during boot of the remote processor. Entries are just copied from the Honami dts. Signed-off-by: Bjorn Andersson Signed-off-by: Luca Weiss --- Changes in v2: * new patch in this series ...-msm8974pro-sony-xperia-shinano-castor.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts index 3f45f5c5d37b..2c33f84a6e4e 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts @@ -319,6 +319,30 @@ led@7 { }; &rpm_requests { + pm8841-regulators { + compatible = "qcom,rpm-pm8841-regulators"; + + pm8841_s1: s1 { + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <1050000>; + }; + + pm8841_s2: s2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1050000>; + }; + + pm8841_s3: s3 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1050000>; + }; + + pm8841_s4: s4 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1050000>; + }; + }; + pm8941-regulators { compatible = "qcom,rpm-pm8941-regulators"; From patchwork Mon Nov 21 21:22:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 24013 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1843035wrr; Mon, 21 Nov 2022 13:27:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wW8E16UTz6Fj1Pv9OmUuKuxayvFt1JUIfb566JLHHz+Lb0ofUEGhsgaoZLT9GBXzn8tr6 X-Received: by 2002:a05:6402:4011:b0:461:96ba:b9c with SMTP id d17-20020a056402401100b0046196ba0b9cmr18401594eda.353.1669066047984; Mon, 21 Nov 2022 13:27:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669066047; cv=none; d=google.com; s=arc-20160816; b=Jey/DbOJbEh7UBJqaTecNoEE83/0rfxXG2Wx6YcmUtYB0OjKESlpT+AGjcG/rn8+/P 9cKq4f0dEr+5P/c84/6949970l9ea8/fq9SPXHQPQNoPthxn1aXwa8A1D0jU81zz3kz6 8aRGB/tfwm50rLC5SD11VtgBZUc9Vb/zYMHUTYuD1nzHdK1JGDF2U6+Uqz4znL8gK2OE n27ypqwkggwDtsUNA63ME6FaTicuFMS9tRV9RzXCx87BUO+lpqEIl1EopSeTEoYtD5mq sD7YkMoAu2H263zwqZTqFXGCVULIZZKMkWgBP75lS8Hm3oCmx0mjZCs9mNz4K80MbHCc 6SiA== 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 :dkim-signature; bh=KsRXabsSPByH4/oIashXdPExQH771AbrVh8ZqmI9JBE=; b=DbSW+WHDA5WfTBUrWTuBBPOgb5SHIt+XaSF22x5fJ8RkGQC4T+2B66Ea9/IZsVpyvs LDirdD0TWu/6AoOU05i2P0xPzyYpEdT277F6J8VdaChb3QvA2J9KVc19MR0ikbYjPBcM eo6ZDRwGS0AmHaM7HtvzlL2GKV+RuIOmDkEHziFAKH0kE+3Zv9X1xPw2pG11fPfPTvQi 3u1gBs6VOMWTepFliXCigiqtZsRrcs6C+ZdzjCyZDuTJr3dsGlAENcMtNgvW5PSNKu66 oT0HnWncVnwmk5Ij42WGc5Ym0/hYBCIv0nH4vNJPTCWSxFHQG0vvrfq5oPU+9MMyp4Yt iO7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=aQpgYgCX; 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=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h30-20020a0564020e9e00b0046993a5bf13si3244215eda.554.2022.11.21.13.27.03; Mon, 21 Nov 2022 13:27:27 -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=@z3ntu.xyz header.s=z3ntu header.b=aQpgYgCX; 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=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231463AbiKUVXL (ORCPT + 99 others); Mon, 21 Nov 2022 16:23:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiKUVXJ (ORCPT ); Mon, 21 Nov 2022 16:23:09 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68D2C627C8; Mon, 21 Nov 2022 13:23:08 -0800 (PST) Received: from g550jk.arnhem.chello.nl (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id C3425D04E7; Mon, 21 Nov 2022 21:22:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1669065757; bh=SjJ1/BOuKvdYofR75HAG8ro+NKLiwQoEBC7P8NdaGYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=aQpgYgCXhJjOYFv6GnDNMz1w1sAEfxK00aTRkN50Kw/CZD8uaqpeb/mA4yxgtKd5S k//djHs6BE3PdqQ3xA/1WveGxYXs8IC2XoZiU3C1hbj5ZZPDFnJgyhfAlKjxbD3nzC Hgrv2Klhq3SbApgOrYmq5Na1mhxE77VT0jc2EW08= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] ARM: dts: qcom: msm8974-*: re-add remoteproc supplies Date: Mon, 21 Nov 2022 22:22:26 +0100 Message-Id: <20221121212226.321514-2-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221121212226.321514-1-luca@z3ntu.xyz> References: <20221121212226.321514-1-luca@z3ntu.xyz> MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750142599924605467?= X-GMAIL-MSGID: =?utf-8?q?1750142599924605467?= As part of a recent cleanup commit, the remoteproc supplies for adsp and modem were removed from msm8974.dtsi and now need to be set in the device dts. Do so. Fixes: f300826d27be ("ARM: dts: qcom-msm8974: Sort and clean up nodes") Signed-off-by: Luca Weiss --- Changes in v2: * rebase, should compile now due to added previous patch .../boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts | 11 +++++++++++ arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi | 11 +++++++++++ .../qcom-msm8974pro-sony-xperia-shinano-castor.dts | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts index 6daceaa87802..c8e91985fbec 100644 --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts @@ -343,6 +343,17 @@ led@5 { }; }; +&remoteproc_adsp { + cx-supply = <&pm8841_s2>; +}; + +&remoteproc_mss { + cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; +}; + &rpm_requests { pm8841-regulators { compatible = "qcom,rpm-pm8841-regulators"; diff --git a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi index 5a70683d9103..d4a1708117a1 100644 --- a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi @@ -213,6 +213,17 @@ &pm8941_wled { qcom,num-strings = <2>; }; +&remoteproc_adsp { + cx-supply = <&pm8841_s2>; +}; + +&remoteproc_mss { + cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; +}; + &rpm_requests { pm8841-regulators { compatible = "qcom,rpm-pm8841-regulators"; diff --git a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts index 2c33f84a6e4e..36044130a739 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts @@ -318,6 +318,17 @@ led@7 { }; }; +&remoteproc_adsp { + cx-supply = <&pm8841_s2>; +}; + +&remoteproc_mss { + cx-supply = <&pm8841_s2>; + mss-supply = <&pm8841_s3>; + mx-supply = <&pm8841_s1>; + pll-supply = <&pm8941_l12>; +}; + &rpm_requests { pm8841-regulators { compatible = "qcom,rpm-pm8841-regulators";