Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2064355rdf; Mon, 6 Nov 2023 03:56:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkFoHARTuy7jQKZRhiz74p8CfcVkZyubWbpHSbzIU9H9ywy3vt/rBNQq5wHiSvT8HG7Obb X-Received: by 2002:a05:6830:3152:b0:6d3:282b:deee with SMTP id c18-20020a056830315200b006d3282bdeeemr14779985ots.12.1699271770544; Mon, 06 Nov 2023 03:56:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699271770; cv=none; d=google.com; s=arc-20160816; b=XaKQSi89lALfo9tFwmURu/8+YJx1vzx5GBusVfvPBbNsrTytcEhR3gEKmGi4WzR3wf YU9AnPuRANm0Su9RHFhiWlaE3nTulCJ2Xoe1IiDVPb0psPIdQpVnAbPZQ8rQrOGl0RlA B9N1CEtb0jv6WRtQnfq8EG3nZhCVxAfvGqsPaZHh63gF0NxBl1jXDfA4KwxMAyoyTHtN A04RkB/vCcpwSDdWFivOzA3DLQefpsiOTc+yUPTUUgixjzTNkICnW+/z1aC59GwB91ko Hy/eFgdKtyXvWeEamgLaONBHFfUjnDCmxckJrjP5zgt34tejUroS05SpP2bQXBmf2oyr g+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0lvjeJMZ5Z3vzScyAhd0JNzf6RjNdiewooYz+s8E+Mo=; fh=2946ZUg7pwkMsY1s7MevMy/8SClLSARTyiYc3NK8TaE=; b=MWXv0yNTVa/R+272rSAUR/fehCFbKVE3cJS5wXDTJrWxVx2Yl1vOs/ITe1GT1dVWyF F5PJCNrue9u5N8lL5Bdv+V+jHB4cfPm3OFa66ewJ6FJj4Bcl4lZqBP+WsRjiHcdgS9eE pYoE74l/dxudz05IHh1mcT8MczrF47p4AEQIQQMwg+5ecSUMUcO8Nxijpwfqw1yx2RfQ QapWXpoqSFuMC9ywNJBj9wLHv1CrQDNeMxOLl3QdgyfiPvXEac5Ci6hrsKOCrYXFhnfr F0/454JXPrL3XzALnMZy8t7BbjCsFkjxrSKnZD00Q/QifVHd9yCwB1Yas1/TfkMhfo5W H9bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IxG8Zu4w; 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=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id g7-20020a636b07000000b005bd32d9cb8csi7118733pgc.675.2023.11.06.03.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 03:56:10 -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=@linaro.org header.s=google header.b=IxG8Zu4w; 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=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 53703805ADED; Mon, 6 Nov 2023 03:55:26 -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 S229583AbjKFLzK (ORCPT + 99 others); Mon, 6 Nov 2023 06:55:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231458AbjKFLzI (ORCPT ); Mon, 6 Nov 2023 06:55:08 -0500 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B89EDB for ; Mon, 6 Nov 2023 03:55:05 -0800 (PST) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5b499b18b28so52411717b3.0 for ; Mon, 06 Nov 2023 03:55:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699271704; x=1699876504; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0lvjeJMZ5Z3vzScyAhd0JNzf6RjNdiewooYz+s8E+Mo=; b=IxG8Zu4w5kG0OGqDQcEdggmwT4vP6Cm5BoFips/TLwicbfYV3tWCOK5ccoZH15ZhnQ DsMvXsU+Y6NWDb6jGcpFErkL5pXsIjWokJwDnaLU/89DMLLOV2CrzubYkOOxnxwuJ5ug mIg+qEzkAALxcwP97iWQNGQSVMoJx/0tWFT3q4WkqSIUCC6u/BT3uGUb0ElgO+sD6DJR q/acNhBPsVa6zFcJ5+hCpacjI2ZU6kxXt3O1f4Iich3F2daFP5H4grYNl6GQJd7l6Ojj kBJk05Le8TRpKUH020PT0oCcfK4UeAQeXKBTLVHO4e/GhOBi47tHNvwURXjonQkjdpil CvZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699271704; x=1699876504; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0lvjeJMZ5Z3vzScyAhd0JNzf6RjNdiewooYz+s8E+Mo=; b=jdCVG1WHbNDQcI9jUxNnusG67pS99HtzISu1s0rKoYdwvVTjYwuZ3nXZGBsO57Ir8G PtFcXyqoHt5doJX487T3KNNPWr1XqJIQ0Er+RiazgClftg25+Nc/9mt/i4IlY+huF/8l p+xKzJNyULtn5kqsw64/AhRKPuYLrnmRSvasqlGneScqs9fQ2PKFkacBc/HFhCt4enM9 6UB9WCfeodYRsANuqIe3xemz9GLjb/fKJFGai0L1ksqdRCW1wuG0+z/jq+YommGKf91q OA9dRVDM0UyvRtguGD4ZxOGlzISvCknc/KJt+mJiA3iGufRoEnWuFx6Vh4KYpd6S7xsc N8jw== X-Gm-Message-State: AOJu0YwWioC1CZU0HJQDrC63Xgt2wVv1a2UZKZaDrxhxLMuwt0m0sb1F Mm1VBkWibMs4TB2x40Bt6rlynS2ZXOq9EeWSNO1xFQ== X-Received: by 2002:a0d:ebc5:0:b0:5a7:aa54:42b1 with SMTP id u188-20020a0debc5000000b005a7aa5442b1mr10277254ywe.28.1699271704503; Mon, 06 Nov 2023 03:55:04 -0800 (PST) MIME-Version: 1.0 References: <20231103184655.23555-1-quic_kbajaj@quicinc.com> <20231103184655.23555-3-quic_kbajaj@quicinc.com> <1830fc44-7bac-4db5-af59-112410d73a64@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 6 Nov 2023 13:54:52 +0200 Message-ID: Subject: Re: [RFC PATCH 2/2] arm64: dts: qcom: qcm6490: Add qcm6490 idp and rb3 board To: Mukesh Ojha Cc: Krzysztof Kozlowski , Komal Bajaj , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_nainmeht@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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]); Mon, 06 Nov 2023 03:55:26 -0800 (PST) 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? Are ADSP and CDSP physically present on sc7280? 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. 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 > > -- With best wishes Dmitry