From patchwork Wed Feb 22 12:04:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 60494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp539129wrd; Wed, 22 Feb 2023 04:11:30 -0800 (PST) X-Google-Smtp-Source: AK7set9QGJaQSmGiy5YelwVVfrv87uOXXDSnSlwTsoczU0is622EsLLUVeemv2xyEnyVmDZbQMDj X-Received: by 2002:a05:6402:48e:b0:4af:5aa1:6646 with SMTP id k14-20020a056402048e00b004af5aa16646mr2734677edv.14.1677067890189; Wed, 22 Feb 2023 04:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677067890; cv=none; d=google.com; s=arc-20160816; b=Jjz+K1dIDl8RdPpwKTbrUnoVFuehR8eUSyi1c22manuhzogix0KPfhxS2R9bj5I198 TrE3MrhE14Moae7eQJh3lYucytVScLw/i4nvWPO5e/iESEFOSYJhWS7aqve0xnrQlsya 9O0WzPMpOp4X43fTl2B7hwOBcYVTTfOYDg0h8NLS6PYX7GtbVxzkIKFsr3BknAtt1vn/ RDLn3Uc19n9uffM0DENCfhw9ndD4/j0NF/b/bOCtiTJcdtoAJfg7lfANv6Ev9WJ9CRf5 eIz8UamdbyxZXwFqMFeI5rQJchdNAOYFFY55whvCy3jVfJFZbvynYN0BHSe56upPJ74x JCMw== 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=HjzGmXwVljBe8mZ+uk4FOoHWI0FZH42+qdZTdioa4oM=; b=R1Jy+FJAkF8NgbnrW7Ia43RfBaINmNlZQunnNc71Ho1qcqTJxjmtnTUg240jz5Hc+G uKs1b78P2MInBwxAQP4K2a8vh0IBscICIbPSN50XerM/Q8i2CqZSmvTLqz+M1uZJqRep ZMTmqprgZntAszBqV5U66xzNBpet0BuEEr179571uSw7Nw87dFqg9V3a1c2sUtaLv8g1 UDodBfS03Ro6DORXgrveR2Ld+LI8oeOM8l433mMKAqvI06Zsgnf0ddfYvGvl14DZkisF 1DOm153vc3UHAHjbikzWFwSFQxVZvKrQxg8idVOFOU79+Itg5zX+wEgLx313jxoayByb hZCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dg0cLvwn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 12-20020a170906028c00b008d4ddc88221si11723938ejf.510.2023.02.22.04.11.06; Wed, 22 Feb 2023 04:11:30 -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=pass header.i=@linaro.org header.s=google header.b=dg0cLvwn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231263AbjBVMFn (ORCPT + 99 others); Wed, 22 Feb 2023 07:05:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231536AbjBVME6 (ORCPT ); Wed, 22 Feb 2023 07:04:58 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BAC93A09B for ; Wed, 22 Feb 2023 04:04:21 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id o4-20020a05600c4fc400b003e1f5f2a29cso6109293wmq.4 for ; Wed, 22 Feb 2023 04:04:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HjzGmXwVljBe8mZ+uk4FOoHWI0FZH42+qdZTdioa4oM=; b=dg0cLvwnI81FQydXJAP1QT6Igrm2ZMqoIHowk2yLzTLcgO5loHyKU3WOiyleoq1wnj UbcIGK41SzGzycBpVL0vn9HLWw3D+6aIjVuWZZ/05O+ovBQavFA8z6zbReitGQD960J/ Qo6/36RY+T5dplCao7mW1yYFL0T3HFZTIykc/4dHRcBTRS/h4zgYWk+iS0v0jPW1R21p JCTQoh7tqGqtPqA+xRubyXzjXpvypnheL9DHDihXDc5IKNLa5sT+tPlGP/NFm3WGz7jG quYLCaIle02Ks4GhrPU/EUCbLHxdgLYpYIexAGPqiqSWV3QDsmLB1vtf9bgsdMAiBRlt D4rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HjzGmXwVljBe8mZ+uk4FOoHWI0FZH42+qdZTdioa4oM=; b=3HNtBot6WHrgvmz64l69Cqw0MDzuUUPHaOx6xBqj4BMWnOswziI2qtq5NP9Zq09vm4 qi+u315uyrVo652E82DXiEsq/SKOBJwcxKKfNaq4FeIpIBxmpvML3uXOCHXbwYGtCPV0 XdaZialiWGJbgdj5RGp40Tx1d6Sx4fRAsTrJ2TqammiJe3X+ue3yhJ2h31iDGzfqfQvX 6IEne1mSmRAyrpQhJBcwA5bx04863YhxqI4hhLiaByormY0JuSB/hRXaJw51oLhuLqUa CN0H7Mz6EGA/VpXbOQDUenAcVEqLluwI3q/ARQwnbCuuH40eyTET7OleZy+Xh0pYGqmC RDLQ== X-Gm-Message-State: AO0yUKVMFfdhCqLRGzhXgBVVVDP/RX8ag5xYJ/54vXozrE0hUA+7LEz+ VJVHo1+8twIV290o0qu7SDbsSA== X-Received: by 2002:a05:600c:1656:b0:3dc:46f6:e607 with SMTP id o22-20020a05600c165600b003dc46f6e607mr5330283wmn.3.1677067459274; Wed, 22 Feb 2023 04:04:19 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id o27-20020a05600c511b00b003e21dcccf9fsm8447722wms.16.2023.02.22.04.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 04:04:19 -0800 (PST) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, benl@squareup.com, shawn.guo@linaro.org, fabien.parent@linaro.org, leo.yan@linaro.org, dmitry.baryshkov@linaro.org, stephan@gerhold.net Subject: [PATCH v6 3/5] arm64: dts: qcom: Add msm8939-pm8916.dtsi include Date: Wed, 22 Feb 2023 12:04:09 +0000 Message-Id: <20230222120411.55197-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230222120411.55197-1-bryan.odonoghue@linaro.org> References: <20230222120411.55197-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758533140043925768?= X-GMAIL-MSGID: =?utf-8?q?1758533140043925768?= From: Stephan Gerhold The msm8939-pm8916.dtsi include configures the regulator supplies of MSM8939 used together with PM8916, as recommended by Qualcomm. In rare cases where boards deviate from the recommended design they can just avoid using this include. Signed-off-by: Stephan Gerhold Signed-off-by: Bryan O'Donoghue Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 82 ++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi diff --git a/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi new file mode 100644 index 0000000000000..18a1b3cca01d6 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi @@ -0,0 +1,82 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include "msm8939.dtsi" +#include "pm8916.dtsi" + +&dsi0 { + vdda-supply = <&pm8916_l2>; + vddio-supply = <&pm8916_l6>; +}; + +&dsi1 { + vdda-supply = <&pm8916_l2>; + vddio-supply = <&pm8916_l6>; +}; + +&dsi_phy0 { + vddio-supply = <&pm8916_l6>; +}; + +&dsi_phy1 { + vddio-supply = <&pm8916_l6>; +}; + +&mpss { + pll-supply = <&pm8916_l7>; +}; + +&pronto { + vddpx-supply = <&pm8916_l7>; + + iris { + vddxo-supply = <&pm8916_l7>; + vddrfa-supply = <&pm8916_s3>; + vddpa-supply = <&pm8916_l9>; + vdddig-supply = <&pm8916_l5>; + }; +}; + +&sdhc_1 { + vmmc-supply = <&pm8916_l8>; + vqmmc-supply = <&pm8916_l5>; +}; + +&sdhc_2 { + vmmc-supply = <&pm8916_l11>; + vqmmc-supply = <&pm8916_l12>; +}; + +&usb_hs_phy { + v1p8-supply = <&pm8916_l7>; + v3p3-supply = <&pm8916_l13>; +}; + +&rpm_requests { + smd_rpm_regulators: regulators { + compatible = "qcom,rpm-pm8916-regulators"; + + /* pm8916_s1 is managed by rpmpd (MSM8939_VDDMDCX) */ + /* pm8916_s2 is managed by rpmpd (MSM8939_VDDCX) */ + pm8916_s3: s3 {}; + pm8916_s4: s4 {}; + + pm8916_l1: l1 {}; + pm8916_l2: l2 {}; + /* pm8916_l3 is managed by rpmpd (MSM8939_VDDMX) */ + pm8916_l4: l4 {}; + pm8916_l5: l5 {}; + pm8916_l6: l6 {}; + pm8916_l7: l7 {}; + pm8916_l8: l8 {}; + pm8916_l9: l9 {}; + pm8916_l10: l10 {}; + pm8916_l11: l11 {}; + pm8916_l12: l12 {}; + pm8916_l13: l13 {}; + pm8916_l14: l14 {}; + pm8916_l15: l15 {}; + pm8916_l16: l16 {}; + pm8916_l17: l17 {}; + pm8916_l18: l18 {}; + }; +};