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: 716973 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 DB80AEE49B9 for ; Fri, 25 Aug 2023 21:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbjHYVqW (ORCPT ); Fri, 25 Aug 2023 17:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231607AbjHYVqK (ORCPT ); Fri, 25 Aug 2023 17:46:10 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7384D271D for ; Fri, 25 Aug 2023 14:45:53 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b9c907bc68so20858871fa.2 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=dEYQ+FwhwusBKRZy4MwHqfqpwXx4ik1xlEkoGz8fzQQESeroUUt6abfFIfC+kIcCQx CRROf7i+yqSgqZxBcFQ/HG3GrJUAjWvtrZz10mRH7JLRbEcVIzjRmISULSqyv7/aPdNK 3Qkdins/xEVUTKncbTnvZvH4xUqfdx1liLVGppqmaJGUOnHp0LuB89NKSgCX0+Gzpgck TgqjBv9yanx0N2iY90kMLxlUahZtf4bggflvVHKLat2n0T2t3ysb0CNIPILJYkdu6ndn y1nZ0WI9CRGrMpuU6pK1omc24EOaIQWDzaO1w6N/0j/Ex6+y33alMVTTWLmy+qMNDX4D pfxA== X-Gm-Message-State: AOJu0YxUrW/+gmanm4EHBB+a4JtdsIGnGWT4G/KezaoXGXVz/GdMiBDe fJ+5pylTz+9AQ59EjJKeor0YBA== 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: devicetree@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 Reviewed-by: Konrad Dybcio --- 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: 717261 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 593E3EE49AB for ; Fri, 25 Aug 2023 21:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229768AbjHYVqV (ORCPT ); Fri, 25 Aug 2023 17:46:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231609AbjHYVqK (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 5A46B2711 for ; Fri, 25 Aug 2023 14:45:54 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b962c226ceso20420971fa.3 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=cItI5TacKzvKqrOEMlwbPqD0XxBb//mezekcIoq0GdWyVPEMhrzNe2PTTCgwMZpfsz 0dZbtqqJlNgDwQIPdNJFcx0yHQ2V8oSU9R8KOnWn3wc1eVC97t4aERBhJMQghxyYt/Az z+6JV3LaP01depFagE38jC46oWztcOVES63pic6Dz41Q0RwfBLLxGfiLSupCWqKE6jVJ qD6KwsF7VnfGWIbcb1H+hAi0Xfsc4oTK9xsSrP6UBCsrk5y/FvIZERSH+Q2Y4hrUZ3KL ikNx96sVJoxpN4+cvfpADDiJAut2utI9bwDoczu7x24AYs1oOGkm1Ex9BhswCnwk0zxc 9YAw== X-Gm-Message-State: AOJu0Yz31EMng2indVkUBI/iOFfX9ty4/w1H2RkqWafBkCI56dykWXex hY2kqI6qjrmsVjNBk2f8xC5UZg== 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: devicetree@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: 717260 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 F0952EE49BA for ; Fri, 25 Aug 2023 21:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231545AbjHYVqW (ORCPT ); Fri, 25 Aug 2023 17:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbjHYVqL (ORCPT ); Fri, 25 Aug 2023 17:46:11 -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 188E9271F for ; Fri, 25 Aug 2023 14:45:55 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2bb8a12e819so20931521fa.1 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=Dgif5Yv4ri6bQBUJKkBW/pPpGBy9AK3oSQ2k+JfUV4tg0+MhfCPm6JXfDA+QilUhZ1 giajW5UoZnh3ZrT4DuaCHrNoFVewgNkfO1rEyu5Pr/4zpnYGtZNXUH/DSHnX2AF0nsUp jCmDNSgxyFQcRgun5yGeJIGmrWJeT5ZS9FzjA5qTzIb6WhLYGhB09gIAFheGJBvf8f2S G2nMaGjYi6w59pA1JXg+2FBWMIbXjUa8ashKoKAQt0WZOQjmV3y0HuWlrV8RfXilf03B pMTVLrgbXZDyh46Af7GzjtsPZ6WnCjSw4LpCOJBgtKMaCYf7pUScb/4C894z27sP6XJN tr0w== X-Gm-Message-State: AOJu0YzrbKdwCtm2y47w0lqApmF5rLRo1XmcybS+1hhs6TUrnVrT+szY MT5Wrq01txDzKcVZ4t0mszQZ/w== 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: devicetree@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 {