From patchwork Fri Aug 25 21:45:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 717871 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 9A7DDEE49B5 for ; Fri, 25 Aug 2023 21:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbjHYVqW (ORCPT ); Fri, 25 Aug 2023 17:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231608AbjHYVqK (ORCPT ); Fri, 25 Aug 2023 17:46:10 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70A6726A3 for ; Fri, 25 Aug 2023 14:45:53 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b703a0453fso20807321fa.3 for ; Fri, 25 Aug 2023 14:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692999952; x=1693604752; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ISNqJDGLSCJlW3CvfYC1U8fWuYLy9UHAHAFwI7qS5r8=; b=gxyJ5kM7H4i64fz1grTG4wS+BdqJFwfNU78iJaJbvWtmiEmNoAMFZYsZId940aqRdD RFR/+QRkjxnCrMLi4NC8GSMhPEI3Ze+hNgoj2dtQynGQbX2nYWxfCjaLGXCdXBdtHj// WEonuoP5X/pBRfK4UG8bfElPV0AYW7FdX/OZj9c/uhFQ49gQNcelQ7oei8TyPQzRoYhT o7QRZZtYuLOHYXU3b2m5qsOwSUuG+YXw7FRA4ks0yVZmdWxugafnwpsTKH9X+UxJ4NJc AaI5EGGI8nVOXQgUTe8vpPnPUOhQJ7lB8el+O+jzCzW9slVOs1rCVxTM9G8H7t/8edHf LcZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692999952; x=1693604752; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ISNqJDGLSCJlW3CvfYC1U8fWuYLy9UHAHAFwI7qS5r8=; b=cdsCQ38hVj+QW5/JYd6wffdsjHdRvefNMQsw3+C4D2qwK6o8uwhQAfmk+A9fY+hn2L QcYu6beHDK9VIznxK9w6pHKWDLcZWjZM9o2ePljsWOHEdLmmn9FkLT7fNNpNgY+MMmdn NyY3KHmfThwBv2qC8pBUmzio+4cSvbrAWK6kH2JIP/wfjdsJksFAWzPM4qteCixCcsp9 KsupTvrGNQPF44Kkh176hQM44fJFFS3GK6YXYINO90zKDkve/N9b4/QTj/WFatHec+ST uBrW06L8vpK8su/SQkPAWbuMkc6RlZmm6fFZk0Pfy67HfqJOGpszamjxRtaxQrit9BiX cI4A== X-Gm-Message-State: AOJu0Yx8RlGpxaQLmr6xEylSMkhZa3YraJ0v5ysenSKJstDjaI8UiYdc BhLiA54LxCO+y19dVG0x1rz0mg== X-Google-Smtp-Source: AGHT+IG9lc51mLgs9isFdU+rkgz812psxz8AeW0t4TCmAUUOuHfac0OSFPhdif+TgxdZ3p7vFivBDQ== X-Received: by 2002:a2e:9b97:0:b0:2bc:b815:d64d with SMTP id z23-20020a2e9b97000000b002bcb815d64dmr14090470lji.30.1692999951679; Fri, 25 Aug 2023 14:45:51 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f26-20020a2e6a1a000000b002b94327308asm486819ljc.133.2023.08.25.14.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 14:45:51 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: qcom: sm8350: fix pinctrl for UART18 Date: Sat, 26 Aug 2023 00:45:48 +0300 Message-Id: <20230825214550.1650938-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On sm8350 QUP18 uses GPIO 68/69, not 58/59. Fix correponding UART18 pinconf configuraion. Fixes: 98374e6925b8 ("arm64: dts: qcom: sm8350: Set up WRAP2 QUPs") Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index b9469d488b26..0fb4e5a66420 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2949,7 +2949,7 @@ qup_uart6_default: qup-uart6-default-state { }; qup_uart18_default: qup-uart18-default-state { - pins = "gpio58", "gpio59"; + pins = "gpio68", "gpio69"; function = "qup18"; drive-strength = <2>; bias-disable; From patchwork Fri Aug 25 21:45:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 716915 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 DFB1AC7EE2C for ; Fri, 25 Aug 2023 21:46:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbjHYVqV (ORCPT ); Fri, 25 Aug 2023 17:46:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231610AbjHYVqK (ORCPT ); Fri, 25 Aug 2023 17:46:10 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 642A22717 for ; Fri, 25 Aug 2023 14:45:54 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2bb97f2c99cso20811651fa.0 for ; Fri, 25 Aug 2023 14:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692999952; x=1693604752; 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=4vR3cjzQ8ByhFco4eG/mKt+/fazlqqnpMcoSIOT4xtU=; b=Ictmjhc+O49lUBawOVRI5Rf5DTbMnYX4qjXicRzvNDloXHxJsmCNie0ZEn4OPc2P6R oQAK8hJigon26UBFp4KDo5i5O3mbxuLuRn/rgL1Mnd2BMJKELREL/jz5P+XvcnrAdR/k N1bBtGrYNb8hQBy2LzkRHefCJK9dfXecYsfQYg3x0tSNFD7QbAqEFwLJWJqsquWRS19L irl0IQiw7nXXK5IuPwvSLlHZE25oss3r1gfU2exv4o+LKdEQUpQNQ6TidZdhmGyGCY0Z WbO3j3+5WFZgRBHiHmaaRKJPNfcvU2Bz8evqcf8axrZ0iGx39rCADVTAy55SNd95zpXj evmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692999952; x=1693604752; 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=4vR3cjzQ8ByhFco4eG/mKt+/fazlqqnpMcoSIOT4xtU=; b=ZJSFzhAUfvI2mXfPVGr+WAIGNoEF2qZOgH/+k7aJ0/rjufh0PX0FHx6/ju1GMKV4RJ xiKgylrVUEVzp2OkS7I+Rm557iCkHUrLTYonjuSz+61CdAXkaQCb66ONtA/uAM5upoIv 4+jfd+DgA51zUJDWibr8ySY/055XpBtOt+jSQTsx7fpkAMFo6bjFn1/YUTNSrfo3aI7M EVy2yAl4C9BaawuVj8H2/3SWiNA3rcAaL7jm33yiQF8UvePRLIT9TnOQi3AxbVaWAxY/ 5vqhhuSaRTXRxpHCLfR7A4VwS76nk6imhS1Lz7m2FRLn9wCajux1E1AjPAeQJ515FmQ/ PKSQ== X-Gm-Message-State: AOJu0YxW6myr1GHgG8sZC7DHIPCQXjdFvDa0mvav0DSTW2KYo0k9wABZ +m3CR+WZRLc3lqZvcdHDNGTU6g== X-Google-Smtp-Source: AGHT+IHxr5c5JAfN4JjMFLgXR1DQY/dXoyfx4qXXlsbAA1xMUUA7yA6UyEWqAH49cDQQt9f9XShQDA== X-Received: by 2002:a2e:97cd:0:b0:2b6:ccd6:3ec2 with SMTP id m13-20020a2e97cd000000b002b6ccd63ec2mr14330442ljj.36.1692999952585; Fri, 25 Aug 2023 14:45:52 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f26-20020a2e6a1a000000b002b94327308asm486819ljc.133.2023.08.25.14.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 14:45:51 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: qcom: sm8350-hdk: add missing PMICs Date: Sat, 26 Aug 2023 00:45:49 +0300 Message-Id: <20230825214550.1650938-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230825214550.1650938-1-dmitry.baryshkov@linaro.org> References: <20230825214550.1650938-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Include configuration for several PMICs presend on the board. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts index f7b80b7009c1..69870f69fe4f 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts @@ -7,7 +7,12 @@ #include #include "sm8350.dtsi" +#include "pm8350.dtsi" +#include "pm8350b.dtsi" +#include "pm8350c.dtsi" #include "pmk8350.dtsi" +#include "pmr735a.dtsi" +#include "pmr735b.dtsi" / { model = "Qualcomm Technologies, Inc. SM8350 HDK"; From patchwork Fri Aug 25 21:45:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 716914 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 8B354EE49B3 for ; Fri, 25 Aug 2023 21:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231543AbjHYVqW (ORCPT ); Fri, 25 Aug 2023 17:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbjHYVqM (ORCPT ); Fri, 25 Aug 2023 17:46:12 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B41E2720 for ; Fri, 25 Aug 2023 14:45:55 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bccda76fb1so20648551fa.2 for ; Fri, 25 Aug 2023 14:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692999953; x=1693604753; 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=pHKlZ8/4vaMktrF5hqTmRR8yv61d2HdxgXhZLjedCzc=; b=sjKPXzlfM2nvbwNPq0Bv5uXVuMAUSG11WG1WylCgUXINWrQmznp7Eq5PP1Zd3cg56b 4eUmsCeZiO29oxXPzXT3WB6kg8lR1M5FqgArLvhGbmjun1oqk4F1EO43N/xODw7xtP6Z arZVw8Muj7GPiYbJGEfb8SSFWiL1euTchQZJTLdfHlqTo7BpZllhb3QBjHNsJaid7X7/ /45S84JnFBSyS/9R1TU0Jss7jL+UXTLCssRJaXRswrFzNqqPXpuUj6VD0S2edYeQESSy 9kHOiu9rqLQJhh4F15bHkfQIiDA2GK1nQ6i9LC3bFqXZvU3vUk69PTV/kXObIk+nqB1x +cMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692999953; x=1693604753; 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=pHKlZ8/4vaMktrF5hqTmRR8yv61d2HdxgXhZLjedCzc=; b=WCaUUNGei4eJsiNYjwVs3+3eRlDftYRbQtDpGAjdq04BQyA24J/VreX3Jzm40nJy0C XQIcWU4zVFlmUcgoRggSfHzPRW+h/DlRS9/P8qkYYoz1PWAYBCRr+tBfOHnwOKl/WfBr 2AtpMUWiTUwja51anDXU7qNr3n6bakuBh5PxcdcxA6U2Q+9EsHWeac4wkI8gmHELdX3C UmhfYMCwF7bJICf1qtCDVv1DSeT2f3sXzv42SJXMjIeLzsOD3ffLPj7humvmKsVuGBGV zRiMPkX8okZJ6pffPyOkylx1Fye8LdXOuANXW9zEB+jNbu03HcsBcO7VxONjN7LyVo8N PEsQ== X-Gm-Message-State: AOJu0Yw586Onz1k3QawVZL5nurELkudGW7OdGFcgDgeS5exJ1Jvnd0eh fQcJCjqjSBDhzAZ/7LuuaExb0+HrTAkTKl/qDPI= X-Google-Smtp-Source: AGHT+IFGP147b15BsApx3z8nN+KUd5VqFrpAFFx+WqmwseVKgBMozVfi+jQFD+0P/EaZWolV35vS+g== X-Received: by 2002:a05:651c:cf:b0:2bc:bdbd:1542 with SMTP id 15-20020a05651c00cf00b002bcbdbd1542mr12191190ljr.11.1692999953418; Fri, 25 Aug 2023 14:45:53 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f26-20020a2e6a1a000000b002b94327308asm486819ljc.133.2023.08.25.14.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 14:45:52 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: qcom: sm8350-hdk: add pmr735a regulators Date: Sat, 26 Aug 2023 00:45:50 +0300 Message-Id: <20230825214550.1650938-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230825214550.1650938-1-dmitry.baryshkov@linaro.org> References: <20230825214550.1650938-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The SM8350 HDK uses pmr735a to supply some of the voltages (e.g. to WiFi/BT chip). Declare corresponding regulators together with voltage boundaries. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 75 +++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts index 69870f69fe4f..30ff85250505 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts @@ -321,6 +321,81 @@ vreg_l10c_1p2: ldo10 { regulator-initial-mode = ; }; }; + + regulators-2 { + compatible = "qcom,pmr735a-rpmh-regulators"; + qcom,pmic-id = "e"; + + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + + vdd-l1-l2-supply = <&vreg_s2e_0p85>; + vdd-l3-supply = <&vreg_s1e_1p25>; + vdd-l4-supply = <&vreg_s1c_1p86>; + vdd-l5-l6-supply = <&vreg_s1c_1p86>; + vdd-l7-bob-supply = <&vreg_bob>; + + vreg_s1e_1p25: smps1 { + regulator-name = "vreg_s1e_1p25"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1280000>; + }; + + vreg_s2e_0p85: smps2 { + regulator-name = "vreg_s2e_0p85"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <976000>; + }; + + vreg_s3e_2p20: smps3 { + regulator-name = "vreg_s3e_2p20"; + regulator-min-microvolt = <2200000>; + regulator-max-microvolt = <2352000>; + }; + + vreg_l1e_0p9: ldo1 { + regulator-name = "vreg_l1e_0p9"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <912000>; + }; + + vreg_l2e_1p2: ldo2 { + regulator-name = "vreg_l2e_0p8"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + vreg_l3e_1p2: ldo3 { + regulator-name = "vreg_l3e_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + vreg_l4e_1p7: ldo4 { + regulator-name = "vreg_l4e_1p7"; + regulator-min-microvolt = <1776000>; + regulator-max-microvolt = <1872000>; + }; + + vreg_l5e_0p8: ldo5 { + regulator-name = "vreg_l5e_0p8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + }; + + vreg_l6e_0p8: ldo6 { + regulator-name = "vreg_l6e_0p8"; + regulator-min-microvolt = <480000>; + regulator-max-microvolt = <904000>; + }; + + vreg_l7e_2p8: ldo7 { + regulator-name = "vreg_l7e_2p8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + }; + }; }; &cdsp {