Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp78885rdb; Tue, 31 Oct 2023 00:51:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3ZiJTBO+Ae2G0+MctzNpjYkpzRxXEA4yPti2i4DaiPaJSeGcBy9Sp4ZBS9wfqjsCSEZTV X-Received: by 2002:a17:902:d490:b0:1cc:5920:1d1c with SMTP id c16-20020a170902d49000b001cc59201d1cmr3748567plg.48.1698738698150; Tue, 31 Oct 2023 00:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698738698; cv=none; d=google.com; s=arc-20160816; b=p76g9R5sk/REEeY+dbLlP0P0Adwp0biWUkX2WZKCKKJ+4Dt2MlizeFn2adiJorYSJN H7ZZ7VAbmIPqC5IfVoSkZ9FyblqvUVGUNfDHATTw8h5D6A7BSDnqwN4qjU8xtgHCXTsc 3yZ6meQx/RbDf0+hV5vABww7rSLiIz32YBrZgi1OVvNEtm4UgwtU7LtZxfqazLTuklLB xvFeA9ZEKmmzkQ/PiamF0uHGwSrlOqGJmlwD54+VtWOOGXb8LGNw+LXtUSN33w90VrtM gUNzv9tuMfaphewA64fAaAn4w2duGar6nUUkcVxJKMbEabZgfkm733IcywfGbWWe4VwX t7Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PWOq3jmRIiq+uiTPsHXaiaeOPpH/u4Efbtd5jc4OIgE=; fh=LGBSYRr5zGr2s9Ae2HCSr5KkOSRBkWdeT/mROVGyKJo=; b=0lPSSuPhZYnSYv5pn9I7l+Y+VP6umcRIuaBm9V8kafxc3joANPrOShZcFjo3CfAU+3 MFG8jxPf5dYItWYzWnsJ1Qxyy1ogWgIw/Zz/ZZdSUFT0Wb71ub755+WYvHl/8xGV/IeT YtHr3DR+OvP2or99zPrx43VXspS+W+2ziEOnnrZ2ydr0qIULs1qud0q93YnhhhL/m/eD Zm4VRrtJhSGLo65mghWxAG9SobStT0Cw5kH6Jn0uptkphjGxdj3y1Jz/pxqP/nm8HA/j M9AzbaMSw8gw7AmOqPcOBtP0+PHps4nVab6lWlbRNVF9tqzx/U3/u1bJ5TIRG9++WTp9 XPXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OpYbCHmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f12-20020a170903104c00b001c9af06686dsi648076plc.166.2023.10.31.00.51.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 00:51:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OpYbCHmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B086180BB1D1; Tue, 31 Oct 2023 00:51:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343745AbjJaHv0 (ORCPT + 99 others); Tue, 31 Oct 2023 03:51:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343792AbjJaHvT (ORCPT ); Tue, 31 Oct 2023 03:51:19 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C90EDF; Tue, 31 Oct 2023 00:51:17 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39V6FWZC028188; Tue, 31 Oct 2023 07:50:55 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-type; s=qcppdkim1; bh=PWOq3jmRIiq+uiTPsHXaiaeOPpH/u4Efbtd5jc4OIgE=; b=OpYbCHmrGD7NiSux9yQWo5PL5BRx42jURdMxyEWZAMgc1G0Q8CCmhY609co9ve5VvyiP abTouCKiAFSQJ5LXzw+pOS1VV0ZZr9NSafK+2y+XY4KEuUcvRJs/Ft2SHvJkKCNcH0s8 HVAeGudqPVCSYi5ypkzR/ctuN4hN+9Qg5HuKAcwU9C7WKtJ6hWmTk6bFOCGCRPtjUUvF KF6L+nEbN3y9fFWuImA2Ed90gWD6S973fvrQfA3iaSW/ftbbK1HviS0GqY+RLZJek7jc i6wdkC0/i0iLyOBWAol1enkzj5c7BhoLM7UJlTEbQUgWs2ecmS+pHNCFMUqw2zkHOalf 1w== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u280jtv7c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 07:50:55 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39V7osPf027837 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 07:50:54 GMT Received: from tengfan2-gv.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Tue, 31 Oct 2023 00:50:45 -0700 From: Tengfei Fan To: , , , , , , , CC: , , , , , , , , , , , , , , , , , , Tengfei Fan Subject: [PATCH v6 3/6] arm64: dts: qcom: add uart console support for SM4450 Date: Tue, 31 Oct 2023 15:50:01 +0800 Message-ID: <20231031075004.3850-4-quic_tengfan@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231031075004.3850-1-quic_tengfan@quicinc.com> References: <20231031075004.3850-1-quic_tengfan@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 8nEUtl3pE51MxYiZz141Us5PlcEMq-X1 X-Proofpoint-ORIG-GUID: 8nEUtl3pE51MxYiZz141Us5PlcEMq-X1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_13,2023-10-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 mlxlogscore=863 adultscore=0 spamscore=0 bulkscore=0 impostorscore=0 clxscore=1015 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310310060 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 31 Oct 2023 00:51:35 -0700 (PDT) Add base description of UART and TLMM nodes which helps SM4450 boot to shell with console on boards with this SoC. Signed-off-by: Tengfei Fan --- arch/arm64/boot/dts/qcom/sm4450.dtsi | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm4450.dtsi b/arch/arm64/boot/dts/qcom/sm4450.dtsi index 5a8a54b0f6c1..3e7ae3bebbe0 100644 --- a/arch/arm64/boot/dts/qcom/sm4450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm4450.dtsi @@ -364,6 +364,29 @@ <0>; }; + qupv3_id_0: geniqup@ac0000 { + compatible = "qcom,geni-se-qup"; + reg = <0x0 0x00ac0000 0x0 0x2000>; + ranges; + clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + clock-names = "m-ahb", "s-ahb"; + #address-cells = <2>; + #size-cells = <2>; + status = "disabled"; + + uart7: serial@a88000 { + compatible = "qcom,geni-debug-uart"; + reg = <0x0 0x00a88000 0x0 0x4000>; + clocks = <&gcc GCC_QUPV3_WRAP1_S2_CLK>; + clock-names = "se"; + interrupts = ; + pinctrl-0 = <&qup_uart7_tx>, <&qup_uart7_rx>; + pinctrl-names = "default"; + status = "disabled"; + }; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>; @@ -380,6 +403,32 @@ interrupt-controller; }; + tlmm: pinctrl@f100000 { + compatible = "qcom,sm4450-tlmm"; + reg = <0x0 0x0f100000 0x0 0x300000>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&tlmm 0 0 137>; + wakeup-parent = <&pdc>; + + qup_uart7_rx: qup-uart7-rx-state { + pins = "gpio23"; + function = "qup1_se2_l2"; + drive-strength = <2>; + bias-disable; + }; + + qup_uart7_tx: qup-uart7-tx-state { + pins = "gpio22"; + function = "qup1_se2_l2"; + drive-strength = <2>; + bias-disable; + }; + }; + intc: interrupt-controller@17200000 { compatible = "arm,gic-v3"; reg = <0x0 0x17200000 0x0 0x10000>, /* GICD */ -- 2.17.1