Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1539202lql; Wed, 13 Mar 2024 00:13:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCHHscJmSDL35qSRHW0pC9XYx4ewqghJZLXzlk6W0BjElM9zWwoX0G0hOyTOAprAJZqG26N3otGAD79Xz9iNu9OOloFF1z+Wgz8hU/Kw== X-Google-Smtp-Source: AGHT+IE82dE7wPtvonOxjPR4o9rYXln76J0YTClpahwBHl0ECLMxkbKUqaGCGJmigjjB/4AJqT7/ X-Received: by 2002:a17:902:e5c1:b0:1dc:a397:f7a5 with SMTP id u1-20020a170902e5c100b001dca397f7a5mr4769433plf.52.1710314004677; Wed, 13 Mar 2024 00:13:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710314004; cv=pass; d=google.com; s=arc-20160816; b=AqcbEAgZe53gZRftOclUJParjeqKgyFm/EY52Ty6nJcAfyPrCTHVMTRWxtuYM2O19e MD25JPJrIdcH3mVpcLNTjiL1si1QXLnH7aCUlddTkE6GJUWQoV3Gwe6a4M4fog60YaZ0 KxAgqTMIpUBfGsW8NqEy7RPTWhvYjj1oXXhpTOdkop+OyBCiqpCjwQpF0Ys3ioK6T05U AlWKMjbapfYbYndLE2aMAYknZ/IkqLppKDSEWeRDgNSF1p6BfX6pn4/1bz6XaBsbsiCA 0aoiDQ+NzJbAjrRlfX3s+X4xHUkJNNF/pzzM50KEPzsE9bPWou+nD53ogD8uRnv6eHpz Zn7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=6rDCeTTETG1od6jjW0uQ/pSuXaAVw8UI/PnLswPNZME=; fh=ywU1Qcoc1pVbi32RzVoS7C2i2ELKbJYyGjvxdEMY5wQ=; b=TsVDqcmKQES3ajpvifh1Ms/SavxaRsYZae4XYxfWVQDIwF+YZvIXG+BFQIxeegExf4 mEjwRdKPROGEkixRASjnoINQpLEccm7qVbJBS/8ADEVLwk6OQP2xHg4YZLwIie6aMkQw u2ntpO886o6ezJ+XF4hR19udCjRvUX42fsbvWXGyQfgUoyWvbghBTcC5DQv5dAEBLEE3 OG4umbHbEldUBgir6ptK0BWCtciyrSSSKdxP2BXtIhTX68cTkqGHe+AJPtSBUNTr0OYj Vhf19LnL7Kc3BP19ZgSP4JMIUam1rv8Qd8z+g9Gpm5SydOC090P4kV4hFqXWfU1BtfJG DBiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MRm0aGKP; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-101160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q3-20020a170902eb8300b001dc30f26867si8513327plg.27.2024.03.13.00.13.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 00:13:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MRm0aGKP; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-101160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 03703282F39 for ; Wed, 13 Mar 2024 07:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80E0E17575; Wed, 13 Mar 2024 07:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="MRm0aGKP" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06328DDD1; Wed, 13 Mar 2024 07:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710313979; cv=none; b=tHRZr+B7emPKVTynoxsQK6phykJyzguaPBAUvaXD/35lL1BQARwyRFCbx63kMVZqdUCGN5/ddqmgjOJfqvHQX7Yw2SXcRr5mVaxJ+40ZuKEWMEdzNzM9HrFw9dCjAz//z9VntGUog5wqef50WiQSN5KSYOsym9FPRY4k0/yZMQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710313979; c=relaxed/simple; bh=mq7TXZio7/RiS+CzlqRoYNx2kIW5aRL1dfqJKXxlyhc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EK9k09g799H+Ct5xnmYarclvAxEbSOabF8s1jqe/Jz2s+muAwm80RphfF2KLKOS/QVe2tqZReKky7fehvDCgjfbsl3468DJKyi/wm97EvZTPCAWDdXHFT2gl3jCTIbYUJkE6shtq7e9Gft1tIwnlEBpbMkv/VetYTeQt2oIv6XY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=MRm0aGKP; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42D68b0I025538; Wed, 13 Mar 2024 07:12:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=qcppdkim1; bh=6rDCeTT ETG1od6jjW0uQ/pSuXaAVw8UI/PnLswPNZME=; b=MRm0aGKPDkl9sA+JZfplk7j +nzGxYYYVkVhJyiBjXKY2QiUnD8xS/bjKCWJPEhO5d/jwD5SQISdrM+B4V1/Szon xUDvMrYZlPcovHWgvu6VOZgnbPAa9yGO91vLMSro4JSkDst844c1JUyN+Vv9fnFr K3Aqek7uWOvjfzJv2p2sq39qwcnKf0H8CfserS4ZGeUZcS5zx6t+rjMyjYc7zAYF x4r3ac6udZkBuVvzkqy1YeQprIESgpdVBIVlvhTlsqzRqq6lgjs6IviQoQ7JqPuK WPEyRTlDrj36ys79W1xkCRXGMBB5X/VBoQ5blQV59JJ2x3U+eJ4z2SMNSgAPVhQ= = Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wu62w85fd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Mar 2024 07:12:53 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 42D7CoxW021191; Wed, 13 Mar 2024 07:12:50 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3wrgum5nrv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 13 Mar 2024 07:12:50 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 42D7CoxH021172; Wed, 13 Mar 2024 07:12:50 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-wasimn-hyd.qualcomm.com [10.147.242.220]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 42D7Cn75021168; Wed, 13 Mar 2024 07:12:50 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 3944840) id BD2EC500976; Wed, 13 Mar 2024 12:42:48 +0530 (+0530) From: Wasim Nazir To: 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, kernel@quicinc.com, Wasim Nazir Subject: [PATCH v3 3/3] arm64: dts: qcom: Add initial support for rb5gen2 board Date: Wed, 13 Mar 2024 12:42:38 +0530 Message-ID: <20240313071238.3290-4-quic_wasimn@quicinc.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240313071238.3290-1-quic_wasimn@quicinc.com> References: <20240313071238.3290-1-quic_wasimn@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: pqVGYvCSonVKBeczI2xOiaz4N6wa3vTW X-Proofpoint-ORIG-GUID: pqVGYvCSonVKBeczI2xOiaz4N6wa3vTW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-13_06,2024-03-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 impostorscore=0 priorityscore=1501 mlxscore=0 spamscore=0 phishscore=0 clxscore=1015 adultscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403130053 RB5gen2 is based on QCS8550-Rb5gen2 SOM for IOT solutions. This initial version describes VPH_PWR, UART & USB3.1(HS). On-board PMICs: - PMR735D - PM8010 Signed-off-by: Wasim Nazir diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 02d9bc3bfce7..75f4fb5cc0a9 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -97,6 +97,7 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs8550-aim300-aiot.dtb +dtb-$(CONFIG_ARCH_QCOM) += qcs8550-rb5gen2.dtb dtb-$(CONFIG_ARCH_QCOM) += qdu1000-idp.dtb dtb-$(CONFIG_ARCH_QCOM) += qrb2210-rb1.dtb dtb-$(CONFIG_ARCH_QCOM) += qrb4210-rb2.dtb diff --git a/arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts b/arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts new file mode 100644 index 000000000000..2affe188bd23 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts @@ -0,0 +1,136 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; + +#include "qcs8550-rb5gen2-som.dtsi" +#include "pm8010.dtsi" +#include "pmr735d_a.dtsi" +#include "pmr735d_b.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. QCS8550 RB5Gen2"; + compatible = "qcom,qcs8550-rb5gen2", "qcom,qcs8550-rb5gen2-som", + "qcom,qcs8550", "qcom,sm8550"; + + aliases { + serial0 = &uart7; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + pmic-glink { + compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink"; + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_hs_in: endpoint { + remote-endpoint = <&usb_1_dwc3_hs>; + }; + }; + }; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-min-microvolt = <3700000>; + regulator-max-microvolt = <3700000>; + + regulator-always-on; + regulator-boot-on; + }; +}; + +&apps_rsc { + regulators-0 { + vdd-bob1-supply = <&vph_pwr>; + vdd-bob2-supply = <&vph_pwr>; + }; + + regulators-2 { + vdd-s4-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + }; + + regulators-3 { + vdd-s1-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + vdd-s4-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + vdd-s6-supply = <&vph_pwr>; + }; + + regulators-4 { + vdd-s1-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + vdd-s4-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + vdd-s7-supply = <&vph_pwr>; + }; + + regulators-5 { + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + vdd-s4-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + vdd-s6-supply = <&vph_pwr>; + }; +}; + +&pm8550b_eusb2_repeater { + vdd18-supply = <&vreg_l15b_1p8>; + vdd3-supply = <&vreg_l5b_3p1>; +}; + +&uart7 { + status = "okay"; +}; + +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "otg"; + usb-role-switch; +}; + +&usb_1_dwc3_hs { + remote-endpoint = <&pmic_glink_hs_in>; +}; + +&usb_1_hsphy { + vdd-supply = <&vreg_l1e_0p88>; + vdda12-supply = <&vreg_l3e_1p2>; + + phys = <&pm8550b_eusb2_repeater>; + + status = "okay"; +}; + +&usb_dp_qmpphy { + vdda-phy-supply = <&vreg_l3e_1p2>; + vdda-pll-supply = <&vreg_l3f_0p88>; + + status = "okay"; +}; -- 2.43.2