From patchwork Fri Nov 24 13:57:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 747301 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="E2g+876a" Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD551739; Fri, 24 Nov 2023 05:57:26 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1cfae5ca719so877735ad.0; Fri, 24 Nov 2023 05:57:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700834246; x=1701439046; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lZfKd9ld8EcpTSh9IkKiwQ19+m7m8h2U5B+9O8cLUt0=; b=E2g+876az5WH8ZNeF2Yj4OEj3RjbFNbWCppFCUNmzgsyQyLKo1j7x0RE+xErl2vvgp 9dF0tqP7SmaQg10mTwzbXDIBm9aSqYizG5CrFMXKvn78G3g+qpo3mpoaD2v/qXnoRO8F HmzMlKWJQjnlC+6P9mzQ5jlGTSrPOpmKltj8DXarFxqwT2T6WGQtbVVtzk8UXzcKNXCn RkPQHKJsprtesqfArKB3R/dJUTc0nCwKkvwfpazkybwVpDzTT2eZnB8e4qafjezC49W1 myLh2Zs6dmIXSGI76mLDKEk9xXhoRkFCEvh4P7dOQpBTuOMy+cfw/SvCGii0hOK9k9gB rPwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700834246; x=1701439046; 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=lZfKd9ld8EcpTSh9IkKiwQ19+m7m8h2U5B+9O8cLUt0=; b=A60WE5lkkK849PoQD0Hn3Hh16foFGZK13gm8YQIlzS6HJf+ubXxYBphQ5Annbilu3j LO8rXIHlp89ufCN2D2JA1aVJnc/4HEyqMDRBmh88u9Nz02kwfbM/LTU/XzprW0NoywuK qoivEs4t9MNKBs1CsXB8IBMLYfCtTVVfaG+qSvcX13ALLypoI2CNStoz8c+mO4xMiXun zKi3BQLVzvci46udMuQtm0jTYygEsg9kY5Z5h87jPO+wegWq7PK6dRnb0DXVY3rUEcjA +LOytGoMwVSoMnc6Cv38bJbwr0gfecWTyJgzN0YX/Cw5DaKahmbWTaRHi+6eSC/mv2WP PiHQ== X-Gm-Message-State: AOJu0YxSlTl43W+xqc5ZS4HOm7RZ8IPGips3ZXMhQohtf3DyA8kSJFWk p7KWB3HEpxhkfvjjNfO7FzgjWfM55yU= X-Google-Smtp-Source: AGHT+IHfZuSyuZePFumVf9GySSD7n+qcNQXMUctv4gMfBPItfnYRDBsORnIEhA/mbCC0XzaUz63wEQ== X-Received: by 2002:a17:902:c713:b0:1cf:677b:6c2b with SMTP id p19-20020a170902c71300b001cf677b6c2bmr2419200plp.29.1700834246261; Fri, 24 Nov 2023 05:57:26 -0800 (PST) Received: from localhost.localdomain ([192.166.114.90]) by smtp.gmail.com with ESMTPSA id o9-20020a170902d4c900b001c3be750900sm3179417plg.163.2023.11.24.05.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 05:57:25 -0800 (PST) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH 1/3] arm64: dts: qcom: sm8250-xiaomi-elish: Fix typos Date: Fri, 24 Nov 2023 21:57:11 +0800 Message-ID: <20231124135713.5610-1-lujianhua000@gmail.com> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 There are two typos in this dtsi, so fix it. classis -> chassis. 80700000 -> 80600000 Signed-off-by: Jianhua Lu --- arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index 85e5cf3dc91e..3d4ea428e4cb 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -23,7 +23,7 @@ /delete-node/ &xbl_aop_mem; / { - classis-type = "tablet"; + chassis-type = "tablet"; /* required for bootloader to select correct board */ qcom,msm-id = ; /* SM8250 v2.1 */ @@ -114,7 +114,7 @@ vreg_s6c_0p88: smpc6-regulator { }; reserved-memory { - xbl_aop_mem: xbl-aop@80700000 { + xbl_aop_mem: xbl-aop@80600000 { reg = <0x0 0x80600000 0x0 0x260000>; no-map; }; From patchwork Fri Nov 24 13:57:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 746883 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GcNs11VY" Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53BCA198D; Fri, 24 Nov 2023 05:57:36 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-28041176e77so1512762a91.0; Fri, 24 Nov 2023 05:57:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700834256; x=1701439056; darn=vger.kernel.org; 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=XPgQmqgsB4VA8sM0/4BuwIbl5ukliYjBNcn9c+Qv2X8=; b=GcNs11VY79q4TQfVfLRmqplDvJ1U38amZVVE2b+ByC5xrbROg51pu9BL8dHIk9xLFp qFhqjzNQE7x63SefJUUJMVjNurm5wW1P6WfakFKx5OO3dv7DQP+WCW2SYEJ6fyTWx1g4 xgYGdPvZgr1xwNn8cB73PGej0irwFZ8EP05MZnZKK0tVqbKTREL7lNoPGH0BOP+3CoyZ oRQvc/0eRs09LNkFCYngl6seXf0VirVQwVWvrwJ6Pl9tEv//yq7IyHMhHmJ+5b0mF85F kL2iyBgr0PcY7QI8wCWkXiCbmAc59dBd4AMcAFO+LKFOrrIc9HZGf8Dcl6HYweB0J/yV dMug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700834256; x=1701439056; 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=XPgQmqgsB4VA8sM0/4BuwIbl5ukliYjBNcn9c+Qv2X8=; b=GA+vjy4np3vaqPwzpOLfrOC3kR/k0jQSO37SqIgSSaDCSxTSNtB46UKPSWO4LDTblV ctx+5FVB8Tdz/54AuiM5l2+cACWIBdU28iQTSi+BRK7J/ehKRCWgMzFqB8Hk7JyO36sV 7Y4o97cFgJy8gR2i+qdozVwfAhxzDAAyJsC8kfUWzmM6gSHLIuMp269bM9UMdCRBYFTo I0OMZUAlC/quimkHe3+uwFe8IRKZA1EpSwpMWhCyQYQKWfNgtLb55BPVBFBpTrIEoXtN zGpQpbYaAkACflA4CvHd5NtbaaNsRC9nLC306BqFYAOT5QZMNFMZDs+irkFP2Ff2/76i yJaA== X-Gm-Message-State: AOJu0Yz3VwPlRAgwTJdG9EaFQ7/gaUqhpMtaOSPQMC8fhpda+FNQCDBU iAYVbhaFqbtjxV4v1BKS7GMyukyR+so= X-Google-Smtp-Source: AGHT+IF1DR1aKTqIPsiab5wZPOO/ew65cdKB63CfMrIFsv8jDzM6kWwmqNq//44UE044H+FOQKy/Eg== X-Received: by 2002:a17:90b:3005:b0:27d:3be:8e13 with SMTP id hg5-20020a17090b300500b0027d03be8e13mr2684534pjb.12.1700834255812; Fri, 24 Nov 2023 05:57:35 -0800 (PST) Received: from localhost.localdomain ([192.166.114.90]) by smtp.gmail.com with ESMTPSA id o9-20020a170902d4c900b001c3be750900sm3179417plg.163.2023.11.24.05.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 05:57:35 -0800 (PST) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Sort ufs node Date: Fri, 24 Nov 2023 21:57:12 +0800 Message-ID: <20231124135713.5610-2-lujianhua000@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231124135713.5610-1-lujianhua000@gmail.com> References: <20231124135713.5610-1-lujianhua000@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 ufs node isn't in a right place, 'f' is front of 's', so move it to above usb node. Signed-off-by: Jianhua Lu --- .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index 3d4ea428e4cb..3de7cb918448 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -657,6 +657,22 @@ &tlmm { gpio-reserved-ranges = <40 4>; }; +&ufs_mem_hc { + vcc-supply = <&vreg_l17a_3p0>; + vcc-max-microamp = <800000>; + vccq-supply = <&vreg_l6a_1p2>; + vccq-max-microamp = <800000>; + vccq2-supply = <&vreg_s4a_1p8>; + vccq2-max-microamp = <800000>; + status = "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply = <&vreg_l5a_0p88>; + vdda-pll-supply = <&vreg_l9a_1p2>; + status = "okay"; +}; + &usb_1 { /* USB 2.0 only */ qcom,select-utmi-as-pipe-clk; @@ -678,22 +694,6 @@ &usb_1_hsphy { status = "okay"; }; -&ufs_mem_hc { - vcc-supply = <&vreg_l17a_3p0>; - vcc-max-microamp = <800000>; - vccq-supply = <&vreg_l6a_1p2>; - vccq-max-microamp = <800000>; - vccq2-supply = <&vreg_s4a_1p8>; - vccq2-max-microamp = <800000>; - status = "okay"; -}; - -&ufs_mem_phy { - vdda-phy-supply = <&vreg_l5a_0p88>; - vdda-pll-supply = <&vreg_l9a_1p2>; - status = "okay"; -}; - &venus { firmware-name = "qcom/sm8250/xiaomi/elish/venus.mbn"; status = "okay"; From patchwork Fri Nov 24 13:57:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 747300 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Q5NOJ1+u" Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FE4219AB; Fri, 24 Nov 2023 05:57:44 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-280260db156so1676095a91.2; Fri, 24 Nov 2023 05:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700834263; x=1701439063; darn=vger.kernel.org; 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=DUeSG7wZTdMWBGsjzlL/mhPzqBMmCc2NH8X/pbQTvJA=; b=Q5NOJ1+uc/K7/7oa47Cis/DXC5k77D2UoDkhHuYGr7W5+4v8xce5h63wMetoO0UfZm 6l8QMpkGADpxa665MaC2xMSSplQnfv5yckU/F8XoqyCKYoXD7iUXampfNyYcW43l5VH+ M898OTtQns7E1k5yV7MZGZHD4QHEOszJaGFmWWMu2U8sL+Q+G6PNzbanLcx2DmWIMaer iYIyNXZrVCM23NU4N1lZCvoRJhf7k0HQZUufBFiTFmrkp1ol6TgmYcl5uLqtVfX/o/s4 2YQgi/91iau8PZ2mwIJmzOZGxnBN74bUek586gMasHcxOaL5NJq1Avz2qyPaKLbSWMKc 7SgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700834263; x=1701439063; 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=DUeSG7wZTdMWBGsjzlL/mhPzqBMmCc2NH8X/pbQTvJA=; b=VTLBLd0Unj+pku9wlB4zEbBRfRDFJgahXQvJGtpM7NyQy07PXkMNv7zi63aTyokAkG 6Lkb1pZrt7VCx5i8GyosOtZKGrQ8031Vp8LyHseiMBteDAPfafIO6O6WpoftvHyprDgM P3/VpQ8pu2CPDIHvq6f50i14XoWa+o4jiLZLdt34gY6Uabj58dt2etuNV2qxe1R7BbV9 vY5EBIdJ49eLqboHSFhXxlD8+lnGDDh0bZzpizOIIf1ZpRdwAaatHTOZqpN7qvkKDrf1 bQM50jb3mGTFQy1rmKBuU4cjX8QOOHMjNRzEBJGUmMeysvPQiusfjsb8ltbXYvhvjvsX 71LA== X-Gm-Message-State: AOJu0Yy3BNucNuV3rhmxaU4Ds92xYT7XRtz5tulECbF2QYY4iGgW4iWp wAaCyCwbtoBQM9tVs7tRt1k= X-Google-Smtp-Source: AGHT+IE3bUQFnOWAuTGSJ5asZpBxriG6uYX3nVHdFLajI8PX0Xjl0kt1amqmEaxoAgAL37+FSgUUaQ== X-Received: by 2002:a17:90b:3e86:b0:285:93f0:b2a4 with SMTP id rj6-20020a17090b3e8600b0028593f0b2a4mr1371480pjb.7.1700834263539; Fri, 24 Nov 2023 05:57:43 -0800 (PST) Received: from localhost.localdomain ([192.166.114.90]) by smtp.gmail.com with ESMTPSA id o9-20020a170902d4c900b001c3be750900sm3179417plg.163.2023.11.24.05.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 05:57:43 -0800 (PST) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH 3/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add pm8150b type-c node Date: Fri, 24 Nov 2023 21:57:13 +0800 Message-ID: <20231124135713.5610-3-lujianhua000@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231124135713.5610-1-lujianhua000@gmail.com> References: <20231124135713.5610-1-lujianhua000@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add type-c node to feature otg function. Signed-off-by: Jianhua Lu --- .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index 3de7cb918448..87a83f9bdea5 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -6,6 +6,7 @@ #include #include #include +#include #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -627,6 +628,37 @@ vol_up_n: vol-up-n-state { }; }; +&pm8150b_typec { + vdd-pdphy-supply = <&vreg_l2a_3p1>; + status = "okay"; + + connector { + compatible = "usb-c-connector"; + + power-role = "source"; + data-role = "dual"; + self-powered; + + source-pdos = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pm8150b_role_switch_in: endpoint { + remote-endpoint = <&usb_1_role_switch_out>; + }; + }; + }; + }; +}; + &pon_pwrkey { status = "okay"; }; @@ -694,6 +726,10 @@ &usb_1_hsphy { status = "okay"; }; +&usb_1_role_switch_out { + remote-endpoint = <&pm8150b_role_switch_in>; +}; + &venus { firmware-name = "qcom/sm8250/xiaomi/elish/venus.mbn"; status = "okay";