Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp844042qtx; Mon, 31 Oct 2022 15:33:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6PiroJcgBLWFle3acY/ygIRjICJxb9Ub97gjdr/PEL2Nl9FUElFRqIw9ibd9eqAAzvmDUB X-Received: by 2002:a17:907:7606:b0:7ac:a344:ebea with SMTP id jx6-20020a170907760600b007aca344ebeamr15566891ejc.580.1667255590102; Mon, 31 Oct 2022 15:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667255590; cv=none; d=google.com; s=arc-20160816; b=Zpjrb078B7nA99q9JijVo/sVU98UfD64Qfz/rLEKz/k4Lzaw4pd0vZ/TMqBkn+0ECl LOoT/OAoraDqDcbAaQfj/INgAUfKPEHylL2lIICYzLPAerhWunZAYo8WV9ka+gdsNo1X zMQpKAH2I/T1mwlTcps753pEBzIZBEv+P98vGcHLBLEU6R4r9CgCQilURns/Gd4KY1iw GyFgLUYBMMOHhPC7YeRM35+P60JZ8FRfb88AopQwHEgDgCpHwx8D8hdx6ZPSRqDqTUGW kYcsRNvytWNAJ/0+Jw6QHuLSf3PCBB9Piyh2b8yLBmp5VdeJNZnkO7sw/Uf3XpavCz5a 8hmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CkhE949TVC0iDdW3/Q+OOK85Q2bDYQ+v7ZIaOAkG96Y=; b=Ukg6oKIsbZyB1cHa1mKPhaTGrbFvGZX8fF0piQciDOxYCKpldF89l+eJR4lQswlqZy +Y6J3ku6b6sSbUhSKelTW3DeW5oKEAjR6XtcxssFhBrAS/Aw3CmGZIuEcPw1GuxgoNnQ IA9QjpAiS1lClcSqR81o+T8TB6iClR8YKopgCCRhu7DsY6TMr/GMDbSJQKPGO55B4itP b18aa0lVBa9rzpxGi2RusVYZJqqthcH0PGoeaReZiFVh76VDBJAyXp8qrihEtenXJFDj IytDswpcgRpsBlwd7dbe3zg8vJYM4zvIkU05Jd7y3jcIUI9zSPtIyX3Evl1orbnA2/b6 HwDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HzBf6v2w; 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 r9-20020a1709063d6900b0078198611a45si7329667ejf.980.2022.10.31.15.32.45; Mon, 31 Oct 2022 15:33: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=HzBf6v2w; 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 S229597AbiJaVtw (ORCPT + 98 others); Mon, 31 Oct 2022 17:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiJaVtv (ORCPT ); Mon, 31 Oct 2022 17:49:51 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26FC510FD3; Mon, 31 Oct 2022 14:49:50 -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 29VL55OU016793; Mon, 31 Oct 2022 21:49:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=CkhE949TVC0iDdW3/Q+OOK85Q2bDYQ+v7ZIaOAkG96Y=; b=HzBf6v2wnUQn/sQsewcAtn3m7cFCzflv+Im7OG4Qq4Ni/skhs46KIimLv/2Ygea5+Teu 15ADI2W6xKWFiO8WZj4EWeAkOHBctY0fZIAhlGCCwWToONnLp2xXeicKluWK3skWC/8g KM7nzqfWfqGtnofVgSzSKZQdGhL5SX7pcKVKzoACCr5Rp89xmQgs2EHRpu7zoWDOVNEQ 1zmdo8ezAfcZF3TomQElBBVX5oyP2gZ0IivmP6Kth+D24SdPUQ9eWrmVwvQkS3ZxnFZd X0oo+OxOiC3bQp4isCXkASmLapv2eu1EHD85MmVQT+LsGmoaf8YqxersoZeeTZv9RjNw jA== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kjj148vpt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 Oct 2022 21:49:46 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29VLnkvN003739 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 Oct 2022 21:49:46 GMT Received: from [10.110.115.41] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Mon, 31 Oct 2022 14:49:45 -0700 Message-ID: Date: Mon, 31 Oct 2022 14:49:45 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v3 3/4] arm64: dts: qcom: Add base QDU1000/QRU1000 DTSIs Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski CC: , , References: <20221026200429.162212-1-quic_molvera@quicinc.com> <20221026200429.162212-4-quic_molvera@quicinc.com> From: Melody Olvera In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 1q56z4J4NQ0pGJ5Bvl_v_sObOSMBFZd6 X-Proofpoint-GUID: 1q56z4J4NQ0pGJ5Bvl_v_sObOSMBFZd6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-31_21,2022-10-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 impostorscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2210310135 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 10/27/2022 8:21 AM, Krzysztof Kozlowski wrote: > On 26/10/2022 16:04, Melody Olvera wrote: >> Add the base DTSI files for QDU1000 and QRU1000 SoCs, including base >> descriptions of CPUs, GCC, RPMHCC, QUP, TLMM, and interrupt-controller >> to boot to shell with console on these SoCs. >> >> Signed-off-by: Melody Olvera >> --- >> arch/arm64/boot/dts/qcom/qdu1000.dtsi | 1406 +++++++++++++++++++++++++ > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC. It might happen, that command when run on an older > kernel, gives you outdated entries. Therefore please be sure you base > your patches on recent Linux kernel. Sure thing; we talked about this on a different patch. > >> arch/arm64/boot/dts/qcom/qru1000.dtsi | 27 + >> 2 files changed, 1433 insertions(+) >> create mode 100644 arch/arm64/boot/dts/qcom/qdu1000.dtsi >> create mode 100644 arch/arm64/boot/dts/qcom/qru1000.dtsi >> >> diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> new file mode 100644 >> index 000000000000..76474106e931 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> @@ -0,0 +1,1406 @@ >> +// SPDX-License-Identifier: BSD-3-Clause >> +/* >> + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. >> + */ > (...) > >> + >> + soc: soc@0 { >> + #address-cells = <2>; >> + #size-cells = <2>; >> + ranges = <0 0 0 0 0x10 0>; >> + dma-ranges = <0 0 0 0 0x10 0>; >> + compatible = "simple-bus"; >> + >> + gcc: clock-controller@80000 { >> + compatible = "qcom,gcc-qdu1000", "syscon"; >> + reg = <0x0 0x80000 0x0 0x1f4200>; >> + #clock-cells = <1>; >> + #reset-cells = <1>; >> + #power-domain-cells = <1>; >> + clocks = <&rpmhcc RPMH_CXO_CLK>, <&sleep_clk>; >> + clock-names = "bi_tcxo", "sleep_clk"; >> + }; >> + >> + gpi_dma0: dma-controller@900000 { >> + compatible = "qcom,sm6350-gpi-dma"; > You should add here a specific compatible as well. Same in other places. > All places. I had impression we talked about this few times, so I don't > know what is missing on your side. > > This must be: > "qcom,qdu1000-gpi-dma", "qcom,sm6350-gpi-dma" Got it. I talked to Stephan and he said either your suggestion or just using preexisting compatibles would be ok. I thought it might be cleaner to not have the qdu compats, but I'm fine either way. > >> + #dma-cells = <3>; >> + reg = <0x0 0x900000 0x0 0x60000>; >> + interrupts = , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + ; >> + dma-channels = <12>; >> + dma-channel-mask = <0x3f>; >> + iommus = <&apps_smmu 0xf6 0x0>; >> + }; >> + > (...) > > >> + >> + tlmm: pinctrl@f000000 { >> + compatible = "qcom,qdu1000-tlmm"; >> + reg = <0x0 0xf000000 0x0 0x1000000>; >> + interrupts = ; >> + gpio-controller; >> + #gpio-cells = <2>; >> + interrupt-controller; >> + #interrupt-cells = <2>; >> + gpio-ranges = <&tlmm 0 0 151>; >> + wakeup-parent = <&pdc>; >> + >> + qup_uart0_default: qup-uart0-default-state { >> + pins = "gpio6", "gpio7", "gpio8", "gpio9"; >> + function = "qup00"; >> + }; >> + >> + qup_i2c1_data_clk: qup-i2c1-data-clk-state { >> + pins = "gpio10", "gpio11"; >> + function = "qup01"; >> + drive-strength = <2>; > Can we have some generic agreement where to put drive-strengths and bias? > > See also: > https://lore.kernel.org/linux-devicetree/20221026200357.391635-2-krzysztof.kozlowski@linaro.org/ > > https://lore.kernel.org/lkml/CAD=FV=VUL4GmjaibAMhKNdpEso_Hg_R=XeMaqah1LSj_9-Ce4Q@mail.gmail.com/ Not sure how much two-sense I have for the conversation at large, but generally I agree with Doug's point in the first paragraph. Pulls for this soc are consistent across boards so I don't think it makes sense to move them to the board files here. I vote that these stay here. > >> + bias-pull-up; >> + }; > (...) > >> + }; >> + >> + cpufreq_hw: cpufreq@17d90000 { >> + compatible = "qcom,sm8250-cpufreq-epss", "qcom,cpufreq-epss"; > This is not sm8250... Ack. > >> + reg = <0x0 0x17d90000 0x0 0x1000>, <0x0 0x17d91000 0x0 0x1000>; >> + reg-names = "freq-domain0", "freq-domain1"; >> + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_GPLL0>; >> + clock-names = "xo", "alternate"; >> + #freq-domain-cells = <1>; >> + }; >> + >> + gem_noc: interconnect@19100000 { >> + reg = <0x0 0x19100000 0x0 0xB8080>; >> + compatible = "qcom,qdu1000-gem-noc"; >> + #interconnect-cells = <1>; >> + qcom,bcm-voters = <&apps_bcm_voter>; >> + }; >> + }; Thanks, Melody