Received: by 2002:a05:7412:4e10:b0:e2:908c:2ebd with SMTP id gb16csp62095rdb; Tue, 7 Nov 2023 00:11:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpRw5yXKDbh4EJdBroC3ibqS9hCmTNgBEBeHREGHr08b0NpngUiF02MlIPLlS5FtX/rUqc X-Received: by 2002:a05:6e02:216a:b0:359:30b1:4265 with SMTP id s10-20020a056e02216a00b0035930b14265mr2579231ilv.4.1699344693147; Tue, 07 Nov 2023 00:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699344693; cv=none; d=google.com; s=arc-20160816; b=Y4pTbcaYwZFZp7JHjEOK/ssrRjUfj+J8Q4iWLFxmSYTXpeXEUoozSWirdPjzN3YoZj oRji3JodG2jX+PpVF0lzpUqUKiGYw6qgq21jqcRhNJRN5+rOHMcHmPpqVzrNjvn2SFk/ WgLujhnOOrAGY1Gm6znWB+BdaSCe1WNnIK2HCjzkLbR8f32kc0y3Co79embrSrdWzvya zrJy0EDW8dv92yJhlp1vH4bKXXVmMBz6V22//TV8uK+CeXAXnk6vIkUPxZhuhdCNE3hW RPURBMSi6dxToDvwwtZ0qXj8QJbT3wrMUDDZsQq9LlOTuIrE+n7IObBj5zUy+yGjELZb NaKg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iAYtNOkAIRo3sKTrbX74WDoDS58vLaORXWI/W6hBHwg=; fh=183zKT+IEpO0noDSKhKIEjPm4nODEx4itsQY9qzh18g=; b=PMi5BI4IoIh1OB41YYpeLkd3HTk3EMVlV7Nya/HJPIgOuFWCpU+GojBW/HCta7NMu/ bm039/MJbiX2mHj6PJjDnrmmhHXLJ84XcUySH2CrjRKept9lGxNtqCJtoS1+px6nfnht NmZum0bBOSBwk/kMDLXSodO5lEUy2KtcLeVVoesh6zKto1KXTmox13peTKi1Mn/H3MuZ ymEpNYJiOTLWIfo9OvAsU8pD/RIP2B8+aH0QbDPg2Tn8I8Z1qW51Q6yMFDwBk8a03m87 jqiViIlmTpc2HpTpLMEnyDBMDXEO4RcjO3XQIhcKwLrjJxYzD/FtR1rvhwPoGrwhQGfo nGEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nNW3A0i7; 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 d11-20020a056a00244b00b006b3b20ef167si10264634pfj.172.2023.11.07.00.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 00:11:33 -0800 (PST) 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=nNW3A0i7; 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 D6BA980BD51F; Tue, 7 Nov 2023 00:11:29 -0800 (PST) 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 S233657AbjKGILT (ORCPT + 99 others); Tue, 7 Nov 2023 03:11:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233590AbjKGILS (ORCPT ); Tue, 7 Nov 2023 03:11:18 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2BA5E8; Tue, 7 Nov 2023 00:11:14 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A77FM6P021374; Tue, 7 Nov 2023 08:11:10 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=iAYtNOkAIRo3sKTrbX74WDoDS58vLaORXWI/W6hBHwg=; b=nNW3A0i7ynLeTgm8OBRbZluYDDVmPc5pREEG1gQJVTirCiKULiwijJ34z1yv5lWuCEUg 1B11OM0hLUyfgdEc2Um9LHn8YMdS8j6tbEvXqamk/toswKyN4wOwQON28FVhfggS/JWQ p5GBy8FqxZ9iufUPqkzQi1QDjqEGWfI/zxhGNr1++jAWWCbEYAHuPbZTnpgtrzf3g7Y4 K0qNVRVSx5CbJ4jWRoMV16NQaTk71tzob8Cfqzbpb+ZAFJl39JParl5dEL0/arEHahKX OulMAktK3hmKr6eOqCkJRjSuniWd0lWtAUiXoneVe2TD/HQfM9WgWUrhVUmbeEeoVPib 6g== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u71bra65q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Nov 2023 08:11:09 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A78B81G016652 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 7 Nov 2023 08:11:08 GMT Received: from [10.214.66.81] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Tue, 7 Nov 2023 00:11:03 -0800 Message-ID: <62650f39-9703-fdc5-c72a-801b8e9f6470@quicinc.com> Date: Tue, 7 Nov 2023 13:40:46 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH 2/2] arm64: dts: qcom: qcm6490: Add qcm6490 idp and rb3 board To: Dmitry Baryshkov , Luca Weiss CC: Krzysztof Kozlowski , Komal Bajaj , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , References: <20231103184655.23555-1-quic_kbajaj@quicinc.com> <20231103184655.23555-3-quic_kbajaj@quicinc.com> <1830fc44-7bac-4db5-af59-112410d73a64@linaro.org> Content-Language: en-US From: Mukesh Ojha In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: v74MEUtBvkeSxktRPiAdjAhVAfaFNBqt X-Proofpoint-GUID: v74MEUtBvkeSxktRPiAdjAhVAfaFNBqt 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-11-06_15,2023-11-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 malwarescore=0 spamscore=0 adultscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 phishscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311070067 X-Spam-Status: No, score=-3.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 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]); Tue, 07 Nov 2023 00:11:30 -0800 (PST) On 11/7/2023 4:02 AM, Dmitry Baryshkov wrote: > On Mon, 6 Nov 2023 at 16:46, Mukesh Ojha wrote: >> >> >> >> On 11/6/2023 5:24 PM, Dmitry Baryshkov wrote: >>> On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha wrote: >>>> >>>> >>>> On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: >>>>> On 03/11/2023 23:22, Dmitry Baryshkov wrote: >>>>>> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj wrote: >>>>>>> >>>>>>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 >>>>>>> platform. QCM6490 is derived from SC7280 meant for various >>>>>>> form factor including IoT. >>>>>>> >>>>>>> Supported features are, as of now: >>>>>>> * Debug UART >>>>>>> * eMMC (only in IDP) >>>>>>> * USB >>>>>>> >>>>> >>>>> ... >>>>> >>>>>>> + >>>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>>>>>> new file mode 100644 >>>>>>> index 000000000000..01adc97789d0 >>>>>>> --- /dev/null >>>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>>>>> >>>>>> I have mixed feelings towards this file. Usually we add such 'common' >>>>>> files only for the phone platforms where most of the devices are >>>>>> common. >>>>>> Do you expect that IDP and RB3 will have a lot of common code other >>>>>> than these regulator settings? >>>>> >>>>> I agree here. What exactly is common in the real hardware between IDP >>>>> and RB3? Commit msg does not explain it, so I do not see enough >>>>> justification for common file. Just because some DTS looks similar for >>>>> different hardware does not mean you should creat common file. >>>> >>>> @Dmitry/@Krzysztof, >>>> >>>> Thank you for reviewing the RFC, we wanted to continue the >>>> suggestion/discussion given on [1] , where we discussed that this >>>> qcm6490 is going to be targeted for IOT segment and will have different >>>> memory map and it is going to use some of co-processors like adsp/cdsp >>>> which chrome does not use. >>>> >>>> So to your question what is common between RB3 and IDP, mostly they will >>>> share common memory map(similar to [2]) and regulator settings and both >>>> will use adsp/cdsp etc., we will be posting the memory map changes as >>>> well in coming weeks once this RFC is acked. >>> >>> Is the memory map going to be the same as the one used on Fairphone5? >> >> No, Fairphone5 looks to be using chrome memory map and i suggested >> here to move them into sc7280.dtsi >> >> https://lore.kernel.org/lkml/d5d53346-ca3b-986a-e104-d87c37115b62@quicinc.com/ >> >>> >>> Are ADSP and CDSP physically present on sc7280? >> >> Yes, they are present but not used. > > So ADSP and CDSP should go into sc7280.dtsi. They will anyway have > status = "disabled"; > >> >>> >>> I think that your goal should be to: >>> - populate missing device in sc7280.dtsi >>> - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map) >>> - push the rest to board files. >> >> Agree to all of the point. >> We started with the same thought at[3] but it got lost in discussion >> due to its differentiation with mobile counter part(fairphone) which >> follow chrome memory map and hence we came up with qcm6490-iot-common. >> Do you think, qcm6490-iot.dtsi should be good ? > > No. DT describes hardware, and -iot is not a hardware abstraction / unification. > If you consider your memory map to be generic for the qcm6490 (and FP5 > being the only exception), add it to the qcm6490.dtsi (and let FP5 > override it, like some of the phones do). If it can not be considered > generic for the SoC, then you have no other choice than to replicate > it to all board files. Thanks for the suggestion. Let me add @Luca here for information, if he want to share anything about qcm6490 fp5 memory map. -Mukesh > >> >> [3] >> https://lore.kernel.org/linux-arm-msm/20231003175456.14774-3-quic_kbajaj@quicinc.com/ >> >> -Mukesh >>> >>> I don't think that putting regulators to the common file is a good >>> idea. Platforms will further change and limit voltage limits and >>> modes, so they usually go to the board file. >>> >>>> >>>> >>>> Thanks, >>>> Mukesh >>>> >>>> [1] >>>> https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ >>>> >>>> [2] >>>> commit 90c856602e0346ce9ff234062e86a198d71fa723 >>>> Author: Douglas Anderson >>>> Date: Tue Jan 25 14:44:20 2022 -0800 >>>> >>>> arm64: dts: qcom: sc7280: Factor out Chrome common fragment >>>> >>>> This factors out a device tree fragment from some sc7280 device >>>> trees. It represents the device tree bits that should be included for >>>> "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot >>>> + Depthcharge) configures things slightly different than the >>>> bootloader that Qualcomm provides. The modem firmware on these boards >>>> also works differently than on other Qulacomm products and thus the >>>> reserved memory map needs to be adjusted. >>>> >>>> NOTES: >>>> - This is _not_ quite a no-op change. The "herobrine" and "idp" >>>> fragments here were different and it looks like someone simply >>>> forgot to update the herobrine version. This updates a few numbers >>>> to match IDP. This will also cause the `pmk8350_pon` to be disabled >>>> on idp/crd, which I belive is a correct change. >>>> - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs >>>> will work (how much of the memory map they can reclaim) we may add >>>> an extra fragment that will rejigger one way or the other. >>>> >>>> Signed-off-by: Douglas Anderson >>>> Reviewed-by: Stephen Boyd >>>> Reviewed-by: Matthias Kaehlcke >>>> Signed-off-by: Bjorn Andersson >>>> Link: >>>> https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid >>>> >>>> >>>>> >>>>> Best regards, >>>>> Krzysztof >>>>> >>> >>> >>> > > >