Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp293165rwd; Tue, 30 May 2023 20:49:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DdKDyALNQYfoaj62fWKSWyIFuL2+ZjTz1tKFKph88BVmdRuSRpFpQOJQDFEglC3O7NhyW X-Received: by 2002:a05:6358:591a:b0:123:39c6:3168 with SMTP id g26-20020a056358591a00b0012339c63168mr979780rwf.24.1685504950613; Tue, 30 May 2023 20:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685504950; cv=none; d=google.com; s=arc-20160816; b=Of6rswstZhitjMtSxdStb2wIR5pmSuWyne6vYirhHyIlAyyYgbK7cSD3T10qPlytIF +3WmZKOsBllHhKMNOgx5OOOryQ2VxMyvp/ZvXmd2ivQUPFsMJ/DYcdyyrUW98s9tm3Rg kYVLpMLnBA2PQp0VPoZRHRVna9w9o2E0cUXctJx/cJqERLQ9IgnYdgahJMmMisWm4F1R 7m0grJMNYeMnCAoniikHM4F7tJghfeLzASYZNxY4BRSjwzDxbRVIxQpLk+gLaSi6rJf+ eGmkArRSxM2EzejGgi3unaePnJZIWCpdzQfz3FSwDjOk+uRP/s0tAGUPxbwdoSAHOJy5 HA5A== 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=O3ctDflpSPIC8N6jI5GfrkOmYcRmrm2B9iu/d4Ql0uc=; b=AmjxyRwIt9eNjEzSMrbgr3XBdWSd1dGxEPthvWdtvZkK2YAykj366NYLU0LH6RWvg8 LwxYLhdBoR2vWyS2dJh5ar+7RVJX0Tk+sMJ8x05S7aqBjQEdZWvmlnfiiBIcMry3I8Ov 3+hEB7xO7aZpWZuw+iKkx4rNoBQ6AbR21f6Kodpu41AmEI42VoErNOondIabODiQS6NF ZdIIQsPK63lPvlKA3Pxh5tkQPD47RobHoYtbGGNYMM+tDbA8RyU64AmxqPyDTZBgY42p Q10japWIiHFsiVe4VAiXq9gtvVZ59Ln3LGqUxo+VFloTzRVCyO4mbPXlS9crLNxHm3oa 9vww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YT1oyxFk; 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 y27-20020aa78f3b000000b0064ca7ac8938si2824738pfr.166.2023.05.30.20.48.58; Tue, 30 May 2023 20:49:10 -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=YT1oyxFk; 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 S234134AbjEaD1j (ORCPT + 99 others); Tue, 30 May 2023 23:27:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234063AbjEaD1f (ORCPT ); Tue, 30 May 2023 23:27:35 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41B5A107; Tue, 30 May 2023 20:27:34 -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 34V2ejIU003784; Wed, 31 May 2023 03:27:31 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=O3ctDflpSPIC8N6jI5GfrkOmYcRmrm2B9iu/d4Ql0uc=; b=YT1oyxFkXca1uYMG6a6fCgg5+T1+ytfAGUy5P7xyxSN0xuyj3s308vdGeLFpHTWfA43m Tthde9vPFTr1gvA9DgSJs0IVIE+cFegawxZUcOQ6dSL5UONbw4m8p8KjYsVSb/i7hS6v bNaT7InOhg0Ys1EdHqH9ZTPUZgN8SKUFERL4C/60Fah6+zYrURFhbZErleYGUnnTY2UW kbAmHJqNpKS7+JpehoMvT9pfyQogQQnPyy5zlbhUJgBkd1dphU5usd71KeUKco2Sb1vO 0dh34Ty1swGuiJJItLu96Hu1YELoK5Rexi7HJ9alamZ/LOSqLYhGLdYtSaJbzdYtWI3K lA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qwryerh8b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 03:27:31 +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 34V3RUGU007358 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 03:27:30 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; Tue, 30 May 2023 20:27:25 -0700 From: Poovendhan Selvaraj To: , , , , , , , , CC: , , , , , , Subject: [PATCH V2 2/2] arm64: dts: qcom: ipq9574: add support for RDP454 variant Date: Wed, 31 May 2023 08:56:48 +0530 Message-ID: <20230531032648.23816-3-quic_poovendh@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230531032648.23816-1-quic_poovendh@quicinc.com> References: <20230531032648.23816-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: Ht-t8KceOv1xG4tYpf7hmL9B-EVOMK6z X-Proofpoint-ORIG-GUID: Ht-t8KceOv1xG4tYpf7hmL9B-EVOMK6z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_18,2023-05-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 bulkscore=0 mlxscore=0 impostorscore=0 priorityscore=1501 phishscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305310027 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 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 --- Changes in V2: - Dropped cpu_opp_table entries as it will be handled based on fuse values in a seperate series. arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts | 80 +++++++++++++++++++++ 2 files changed, 81 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 1ad68b728f50..d5c93d7f900e 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -15,6 +15,7 @@ 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-rdp453.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..6efae3426cb8 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp454.dts @@ -0,0 +1,80 @@ +// 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"; + }; +}; + +&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