From patchwork Thu Feb 23 15:36:53 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: 656094 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48097C61DA4 for ; Thu, 23 Feb 2023 15:37:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234964AbjBWPhQ (ORCPT ); Thu, 23 Feb 2023 10:37:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234409AbjBWPhH (ORCPT ); Thu, 23 Feb 2023 10:37:07 -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 54FC8580CD for ; Thu, 23 Feb 2023 07:37:03 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so1085324wmb.5 for ; Thu, 23 Feb 2023 07:37:03 -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=9vM1VbzTrcJFX2kv+QNORedSDbeBiRIY8moeW3HsVyE=; b=VFh3qIZStHfobxfjGkjeGzZeOlKCm7e1dBqQAKLLL7YaoMnNESuT0A04sPZNPOIo9p tkAQvAFSlssK8fiX4LWeqwSx8+ewcpvRlZFx4zWsrLZ61lD/UBxJtrsTRvFpPa8L9gpr MEKUM8DRBAqUc5dFsFQuQxz8c1g/vBbjRY3w8nvpQ7VVdoM4M5hQoHYR7YvZuEwSQ6Lk JXXafsa/6xYgqt94/3EXUcuo7NGWXamS0teFCE6BXpKiXJ0o379d74hcg12QZTvYWzR4 AxUEDJNkfGoeBIbdwvJ3iCFSnIlAYOw/SWAOxrwQwk6TlrBsTu0IPsuGCcEBOn11kkcG ubJw== 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=9vM1VbzTrcJFX2kv+QNORedSDbeBiRIY8moeW3HsVyE=; b=8J/GzSIg3i7+zlCP3IJizySdWx2862GmTBt7e/W7tu8V0rVw9VgeZimzzpzpkblB/Z aqt1AmuRH6fMGhV0kWTdShipbxyX8EjwLc+xuPjkItgVXNFnsF6bSCv1523hqJCwNV5U o17RYH/XeMBaz55hsUkHmIwo7q3Mo24AW2qEcLoB0TbeFUsjSocea1VJebgW8mlIakof GZiNfUi+/DcMU8nZkpfUlYiYCO96rQo0+AX4KYM7FBLZ+0BLNSc9cH7tbL705Xc2Bnxq vbRzXZkS2X1bs+WqpAYMUpjX8PPpb3xIFtAnVfO40chWkca0iqgYOgS/3XMae3rz2FK7 ucOg== X-Gm-Message-State: AO0yUKUYbqzBLeUcwcobbHLy7CyTGBp8IxnsWpWK/A2C7RYC0wDVyq6S A51zMBqw4XcHsnU9B/n2U9jEZw== X-Google-Smtp-Source: AK7set/FrTr77uOkLhOM1AU6VZ37Q+dZn6O3+u7S8c27BjgX8hPCEIHajXXCB8XisL54/QB5n3bgZw== X-Received: by 2002:a05:600c:1614:b0:3e2:662:ade6 with SMTP id m20-20020a05600c161400b003e20662ade6mr4049170wmn.26.1677166621865; Thu, 23 Feb 2023 07:37:01 -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 c18-20020a05600c0a5200b003e733a973d2sm11076978wmq.39.2023.02.23.07.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 07:37:01 -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 v7 3/5] arm64: dts: qcom: Add msm8939-pm8916.dtsi include Date: Thu, 23 Feb 2023 15:36:53 +0000 Message-Id: <20230223153655.262783-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230223153655.262783-1-bryan.odonoghue@linaro.org> References: <20230223153655.262783-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 Reviewed-by: Konrad Dybcio Signed-off-by: Bryan O'Donoghue --- 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 {}; + }; +};