Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2275657rwd; Fri, 19 May 2023 03:35:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iex8e8YTv9HNExA+W4ucA/E6HIcWpP7X8NwKF+T3vYUiTSj6biM2fMkDhNCH0phs3VDV0 X-Received: by 2002:a05:6a21:3a44:b0:103:fcd7:544d with SMTP id zu4-20020a056a213a4400b00103fcd7544dmr1464785pzb.47.1684492539577; Fri, 19 May 2023 03:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684492539; cv=none; d=google.com; s=arc-20160816; b=bOP7TM2mLuGwDe/uho5zxteGNQCSyzLHIkxMA/QqioLWxl6n/PUA7/EnmOOkI2BJZO PAso1t5z/+8d8bZq7ZCM61u8docDXKqSV9bkzeil1j9UVtkUWbqj3Y1KAxr5LEL/7koq /5R+Hwv028/qg1yVMq+ZqYiMvOEitN9Kx+CkI/8r+ncCZnhEprlF/xpG/w8t36oT2cSl jPoxgGXQOvP2Eke8oKjVTsJaz5/rvwQeFQT9urFRQ0a2mD2qz081wR6ZnXVbrKCwdTa6 2S0h/+SaCtIyojaF/5oC+qpCDqGMz8BL4hE3GfaMd+SMlGAixqzLlflYg3wAqmhJTr9m 3NMQ== 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=sbPqLa45I3ZxZtAMxOJzpoQYgLrmAG8839OsopoEIl8=; b=JPFeDxzgZupki/Jyz6KyT9uwF3eu3LWUSka/OyY34LCF3VNcIPOFRH36WTGpn+MrMO biNzvsvKC/+bIDKTz7pILCZGt4hW5ut0aOYfRPd1eLYvikUvgq0VuspixgVY6lR8+t0b mMpvSwXB3Oq2+OJSHAR+FjHtbfRpFhg4qLiNsD68i+GGl4xKIioTV6te9lqW3rn6c2ta V6iDEVOK023FIsj1vFRQqIgRbAe6gf2JvuOKTUEvDa5gX7nECu8ImKcTE3NuQD3g5+6o 1lXuG4A3f81d16oiC/ovjWGvf/hk7gpHa3mRwAFp8Eo9VREDxyDhwv2DCgy8fpMDLq37 sMqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=g0JCe5fm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a17090a8c0300b0025289bc1cc3si1517482pjo.66.2023.05.19.03.35.26; Fri, 19 May 2023 03:35:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=g0JCe5fm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231907AbjESKcL (ORCPT + 99 others); Fri, 19 May 2023 06:32:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231912AbjESKcE (ORCPT ); Fri, 19 May 2023 06:32:04 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4552110DC; Fri, 19 May 2023 03:32:03 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34J3VMDe016895; Fri, 19 May 2023 10:31:59 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=sbPqLa45I3ZxZtAMxOJzpoQYgLrmAG8839OsopoEIl8=; b=g0JCe5fmqUAyxohmPHkV5bOgTYhPBs8+6GM262tLT3DmvTcKfn4gNegYPgNDZr8nSbiU 1URklR/k8v+heMD7IwgZN3cZTLr+XLD73Pc/VzYkuZfpSN0n3gvf0k7OB9SXo1CGsWeb 6HO6V6sAyK0ObfdoUI59zE0PaOXjEh/mau60asq9+O1dNPUVOOJlKopQxLYj8QzfDz8S t1LazEFrxKZPil2KVxcAL7B0PQYuCI+stIOIXHir+TISF96NpZvis9HbA5PVfeYDBuUO vHkIMN5hBE77cXOITeREbhLmCFJQ5kRIozkINDxJA0e74+usMmBFOhJf47gwpHJfmf2Q Ng== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qp0keru4a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 10:31:59 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34JAVvP3014651 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 10:31:58 GMT Received: from poovendh-linux.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.986.42; Fri, 19 May 2023 03:31:52 -0700 From: Poovendhan Selvaraj To: , , , , , , , , CC: , , , , , , Subject: [PATCH 2/2] arm64: dts: qcom: ipq9574: add support for RDP454 variant Date: Fri, 19 May 2023 16:01:28 +0530 Message-ID: <20230519103128.30783-3-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230519103128.30783-1-quic_poovendh@quicinc.com> References: <20230519103128.30783-1-quic_poovendh@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: LCHDdO8iiVM1Ca9Y9uisHTOL11xvWuOd X-Proofpoint-ORIG-GUID: LCHDdO8iiVM1Ca9Y9uisHTOL11xvWuOd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-19_06,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 impostorscore=0 phishscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305190089 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: POOVENDHAN SELVARAJ Add the initial device tree support for the Reference Design Platform (RDP) 454 based on IPQ9574 family of SoCs. This patch adds support for Console UART, SPI NOR and SMPA1 regulator node. Signed-off-by: Poovendhan Selvaraj --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts | 92 +++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 7b5466395f46..834e790bec90 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -12,6 +12,7 @@ dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk10-c2.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp418.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp433.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp449.dtb +dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp454.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-acer-a1-724.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-alcatel-idol347.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-asus-z00l.dtb diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts b/arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts new file mode 100644 index 000000000000..b3e853a9cc94 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts @@ -0,0 +1,92 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * IPQ9574 RDP454 board device tree source + * + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; + +#include "ipq9574.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C9"; + compatible = "qcom,ipq9574-ap-al02-c9", "qcom,ipq9574"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +/* In AL02-C9, the max supported CPU Freq is 1.5 GHz. Disabling frequencies beyond 1.5GHz*/ +&cpu_opp_table { + opp-1800000000 { + opp-supported-hw = <0>; + }; + + opp-2208000000 { + opp-supported-hw = <0>; + }; +}; + +/* Disable IPQ9574 integrated radio's reserved memory */ +&blsp1_spi0 { + pinctrl-0 = <&spi_0_pins>; + pinctrl-names = "default"; + status = "okay"; + + flash@0 { + compatible = "micron,n25q128a11", "jedec,spi-nor"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + }; +}; + +&blsp1_uart2 { + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&rpm_requests { + regulators { + compatible = "qcom,rpm-mp5496-regulators"; + + ipq9574_s1: s1 { + /* + * During kernel bootup, the SoC runs at 800MHz with 875mV set by the bootloaders. + * During regulator registration, kernel not knowing the initial voltage, + * considers it as zero and brings up the regulators with minimum supported voltage. + * Update the regulator-min-microvolt with SVS voltage of 725mV so that + * the regulators are brought up with 725mV which is sufficient for all the + * corner parts to operate at 800MHz + */ + regulator-min-microvolt = <725000>; + regulator-max-microvolt = <1075000>; + }; + }; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + spi_0_pins: spi-0-state { + pins = "gpio11", "gpio12", "gpio13", "gpio14"; + function = "blsp0_spi"; + drive-strength = <8>; + bias-disable; + }; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +}; -- 2.17.1