Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2740265rdb; Fri, 22 Sep 2023 07:15:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHC4AjtZM94EdTIUD71lI6XhIo8io2/wwDpaAcCOUttYYaoNECK/5INeL/lzLTU1AH2g+DD X-Received: by 2002:a05:6808:140d:b0:3ab:8956:ad95 with SMTP id w13-20020a056808140d00b003ab8956ad95mr9887187oiv.9.1695392108223; Fri, 22 Sep 2023 07:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695392108; cv=none; d=google.com; s=arc-20160816; b=N2oguZBz5mY8jJix3vCrzgCsf5YexEkwiTW644naeMPccoVG/qKxbXsJoKjiS94TE6 XdaiwYxv5XSbZWlEmw5zgXsBMk2vY8DacAix1TmzUeBnTGdNr3dAYtrCumvZc5bs/DhU 12EpKqdmkCX/VOXLl5f6uFOOX0Dtwsd/VKz/PY72FJK/N9ASq6d5VxrMX93V/6kD8Wzr ur5+hETlMQpFNKGcqpTdX9aRsC3N4mHzE6UR5p26Ts2OTuT+/6HOk5Q5/OEQefCFs5/h wTK4S4DRViwEF0i7aXL7dwJuFn2yosA8gtptn3OcNAJi9mKiWwoFWhBubwjCh5X9GWx5 IO5g== 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=hAWP5LIbadCkqZ0jXipa3E6Pop3OzCWb75j4aJU5UyE=; b=kOkjnt90waaTE7Df1j5zKHjhVTfs+deT7AKiGPAW/bI1sU9tcxn+mkLg1p62oxlIvO gZRxF/jruSczvYxcXFMzMgIgsHg8Zh79HM7q06y4Fjo7Tew54ihtr7gtUwUiPqi/E3Tc 8ZxAZ2n/PG1bSCuffFSnedaBmhq8fOOxkgAp7FI2c6kpFdl7hhQ1OvqqXHOyb1rvYyw1 nIEUfsDkuYay1HOSTQHIY5uBMqFgBskDW1jGYrpFYfnyuai3nnEB9vfRQL/9VXHg1o/U gGQDy9PRBRfrIBqo+RMn/FpZPvBNiaIxAViB0qnyJOitZAc8Sn9NV5sRUAr3pKLh+LXA 9mKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QXqajviw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id by7-20020a056a02058700b00573fa4cfe4asi4386696pgb.39.2023.09.22.07.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 07:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QXqajviw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 8093B8093D5E; Fri, 22 Sep 2023 01:13:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232633AbjIVINB (ORCPT + 99 others); Fri, 22 Sep 2023 04:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232203AbjIVIMT (ORCPT ); Fri, 22 Sep 2023 04:12:19 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDA57172E; Fri, 22 Sep 2023 01:12:07 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38M4pKNW021949; Fri, 22 Sep 2023 08:11:38 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=QXqajviwa1nrZjnYT+1qI3zPINtiRQpGXOz0TaMWzPW7/vwk39u6D7QqzBIW0I8S6QlZ 79e5GAp2XVK/SMiL5r9I8Na74f7UPnmc94SXslvOCtLAhrp/gLUOtGB7Mn4mpZ25aW11 nWQ8DP6kTQ+wB9fqb0MbtIk86G1w48k6Ur+aBokZjBltYEOGSGCioBphmVp/IHtB6Aq3 uN8xQrtlNNdtTxzB9Kagszw7i5wqpcwETb63zi+fKZbSiwLbkvdgomHZ/6mE01OAXVDu 4XR4TcmtM2HvdR/RNIctvoUJTL4QAwjzJkEjA7fZPKXXsXnWyvSZ/X44NS50z0eVDJjp og== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t8u5n1c8m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 08:11:38 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38M8BbNY001175 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 08:11:37 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.36; Fri, 22 Sep 2023 01:11:21 -0700 From: Tengfei Fan To: , , , , , , , , , CC: , , , , , , , , , , , , , , , , , Tengfei Fan Subject: [PATCH v4 4/6] arm64: dts: qcom: add uart console support for SM4450 Date: Fri, 22 Sep 2023 16:10:24 +0800 Message-ID: <20230922081026.2799-5-quic_tengfan@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230922081026.2799-1-quic_tengfan@quicinc.com> References: <20230922081026.2799-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-ORIG-GUID: C3ajLOvBnjWxxThhHBaxjHRfL5JcAyl6 X-Proofpoint-GUID: C3ajLOvBnjWxxThhHBaxjHRfL5JcAyl6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-22_06,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=918 priorityscore=1501 malwarescore=0 spamscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 clxscore=1015 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309220067 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 22 Sep 2023 01:13:00 -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