Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3470725rdh; Thu, 28 Sep 2023 12:37:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFyVSTH+o/DyTmYitUPqNO9kbl1U80YCpHxIr5Sx+eXfv5hCFmtvvcEHlvzfspDKfCoIGnB X-Received: by 2002:a05:6a21:3e07:b0:15f:16f5:8595 with SMTP id bk7-20020a056a213e0700b0015f16f58595mr1882951pzc.52.1695929868853; Thu, 28 Sep 2023 12:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695929868; cv=none; d=google.com; s=arc-20160816; b=YaAP+Y3TlfRswQcz2AjqsDNhEb27uMPM5HPFkFimokofOltYT2xBIoP8IvC8kz5sE1 48Zp41sHOYbCrOEyEa1Wo2BhjbMFBtmXZChrCLERmIsZ49fusW1OWG8jC1+XfPGEdnYE 910ydCljDae8kiQJV0n62+Mon8Me9R105NNfiEEBpCqgpwoFondmrISLg1wXN9cStAG7 edjuD6N7GHaSyiLDlLcWqCjY1q+9jq+GGtN+h+LHVhaP9UDBfK7zdnckx7/WNu9Nciu6 VZbbhUP4o8C/TIXpEC5usOioLnTF/9g+g7QP9EjzqJapZvlgfwEqTL/dcQEQcYb45fsx OsOQ== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=5prnC0xekZLUIdAIGR+O/njuKh1qKyD4Z08lsS5xD/Y=; fh=jzR/2ZX2YCbXzX9W/CibWt4zY1cyMQAkIqCAHWT39cg=; b=FsHH0sH6W0sWNMYpLsJUhfzjlJjKW2ONWVh0eS0NJ71IFmf9lHBA7XkWKbzzDtxvAg dKUghR9xe0PBm3Cz7B2DSOCSKyzZ3+3GeJyaY+XWzqmSEe+XsyIQMnKlus8ZyIW46DlR Z3Iz5NvWhjRaMyW+nrdri92LejBq6MbJdAJMdG6Vk8kNOLhIy7iTHKX55+3UsjBDmBPA 8q3nyIzM9/wJZ6Ucg5aaPOhLVhcGVnVm44MgsqFOtU779ji1ZRX3bOtdQKiIg/vRV3uw LUcEaoNaSmdvQHIat/7pNtpESo8uh3pHaguxxNM/jQVProND/47elRmkfxhuj9r/xoK2 dBqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZiiaPkqr; 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 f9-20020a170902684900b001b9d335180dsi18111504pln.618.2023.09.28.12.37.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 12:37:48 -0700 (PDT) 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=ZiiaPkqr; 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 78C6A806AFDC; Thu, 28 Sep 2023 06:46:57 -0700 (PDT) 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 S232290AbjI1Nqr (ORCPT + 99 others); Thu, 28 Sep 2023 09:46:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231871AbjI1Nqp (ORCPT ); Thu, 28 Sep 2023 09:46:45 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27E8B136 for ; Thu, 28 Sep 2023 06:46:43 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9a9d82d73f9so1629711666b.3 for ; Thu, 28 Sep 2023 06:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695908801; x=1696513601; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5prnC0xekZLUIdAIGR+O/njuKh1qKyD4Z08lsS5xD/Y=; b=ZiiaPkqrSuQEPPb2oZi9wOyqROug+N0NhukGAtovEMokxztICxbkV6YrQE0F58UrhQ fD5+bGSVwrE1AW9YCgUf7/yJ0MzZXtNeafsX79xtn7xbrOQxrD39q4edaLuwrMzxtyl1 X7/z9v1iDDeVKNfGbYWlIa46912P5k+EHZjhEQFCWpL3JZCmHMP8EV1/TOO5SxIri3wP 3eHfFwsXqUbvZ12SNWYkLFq0w8bt9T328wZ/Al+AXdnytJRM8LPvs9O2H8AnS1Y4NMgV XznRor0bvkNqQMwfqmXtugfOAn7rVJUpFI7Em5SwOqlruPDaZAjXAfeJL/S0UreXPyi8 4f7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695908801; x=1696513601; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5prnC0xekZLUIdAIGR+O/njuKh1qKyD4Z08lsS5xD/Y=; b=r+f9XXqWCe1vm5ChmeaOyrglMW+LcOGekW57LmHBX165/THRXVY4x8vJkxW8ar/Hff niZwEV6pyQEaTp0wQsFMoq1+XlCjJSLwIb/CPXHesa5ijs7jpt8gTYqhkiHBEgbkV6D9 3+KeoA0k8O6hFkdGtsVjpyH5wTzkLPpgegbti/oRfsGvrPWfmdvd8YyfZSUrBjLHCAl2 D4edzDWuO/Tpxxj+GsqtB10LWHMSM7iwh8CDTHWnq4JEw+IDbu3TkpNyFLO5fFrrC9sT 1gf8P5i1Vl46aiQJ/jts+A66X2a/RgToliVz+mnPjCktrxyeZaHdXsI4lW5m1DpU/8/J J1hw== X-Gm-Message-State: AOJu0YyVbeLpYbVuPNRw08aVlgLoZifzOZkNhuydgHms7cwt+KX3v+3r SBw1dBqkAG9+toYyJP1wt7Ei9w== X-Received: by 2002:a17:906:2249:b0:9a3:faf:7aaa with SMTP id 9-20020a170906224900b009a30faf7aaamr1208832ejr.15.1695908801547; Thu, 28 Sep 2023 06:46:41 -0700 (PDT) Received: from [192.168.33.189] (178235177217.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.217]) by smtp.gmail.com with ESMTPSA id j19-20020a170906051300b009937e7c4e54sm10959533eja.39.2023.09.28.06.46.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Sep 2023 06:46:41 -0700 (PDT) Message-ID: <661bd908-a056-4d46-97a3-d3b12b14c050@linaro.org> Date: Thu, 28 Sep 2023 15:46:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] arm64: dts: qcom: qcm6490: Add qcm6490 dts file Content-Language: en-US To: Komal Bajaj , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss References: <20230928133312.11371-1-quic_kbajaj@quicinc.com> <20230928133312.11371-3-quic_kbajaj@quicinc.com> From: Konrad Dybcio Autocryp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XmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20230928133312.11371-3-quic_kbajaj@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 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]); Thu, 28 Sep 2023 06:46:57 -0700 (PDT) On 28.09.2023 15:33, Komal Bajaj wrote: > Add qcm6490 devicetree file for QCM6490 SoC and QCM6490 IDP > platform. QCM6490 is derived from SC7280 meant for various > form factor including IoT. > > Supported features are, as of now: > * Debug UART > * eMMC > * USB > > Signed-off-by: Komal Bajaj > --- [...] > +/ { > + model = "Qualcomm Technologies, Inc. QCM6490 IDP platform"; Isomething Development Platform platform? > + compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; > + > + aliases { > + serial0 = &uart5; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > +}; Stray newline above > + > +&apps_rsc { > + regulators-0 { > + compatible = "qcom,pm7325-rpmh-regulators"; > + qcom,pmic-id = "b"; > + > + vreg_s1b_1p8: smps1 { > + regulator-min-microvolt = <1856000>; > + regulator-max-microvolt = <2040000>; Hm, you didn't specify regulator-initial-mode on any vregs [...] > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/qcm6490.dtsi > @@ -0,0 +1,137 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +#include "sc7280.dtsi" > + > +/* > + * Delete sc7280 lpass related nodes as qcm6490 intends to move away from > + * bypass configuration > + */ > +/delete-node/ &lpass_ag_noc; > +/delete-node/ &lpass_aon; > +/delete-node/ &lpass_audiocc; > +/delete-node/ &lpass_core; > +/delete-node/ &lpass_cpu; > +/delete-node/ &lpass_hm; > +/delete-node/ &lpass_rx_macro; > +/delete-node/ &lpass_tx_macro; > +/delete-node/ &lpass_va_macro; > +/delete-node/ &lpass_tlmm; > +/delete-node/ &lpasscc; > +/delete-node/ &swr0; > +/delete-node/ &swr1; That's very unnecessary, most of these nodes are in use even when routing audio through ADSP. Ones that are not, are set to status = "reserved" and some will need more work to function based on the configuration. There was once a series from somebody at qc to introduce ADSP audio on 7280, but it was full of hacks and NAKed > + > +/* > + * Delete unused sc7280 memory nodes and define the memory regions > + * required by qcm6490 > + */ That's specific to your board. > +/delete-node/ &rmtfs_mem; > +/delete-node/ &wlan_ce_mem; > + > +/{ > + reserved-memory { > + secdata_apss_mem: secdata-apss@808ff000 { > + reg = <0x0 0x808ff000 0x0 0x1000>; > + no-map; > + }; This is identical to the entry in sc7280.dtsi. > + > + cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { > + reg = <0x0 0x81800000 0x0 0x1e00000>; > + no-map; > + }; > + > + camera_mem: camera@84300000 { > + reg = <0x0 0x84300000 0x0 0x500000>; > + no-map; > + }; > + > + adsp_mem: adsp@86100000 { > + reg = <0x0 0x86100000 0x0 0x2800000>; > + no-map; > + }; > + > + cdsp_mem: cdsp@88900000 { > + reg = <0x0 0x88900000 0x0 0x1e00000>; > + no-map; > + }; > + > + cvp_mem: cvp@8ac00000 { > + reg = <0x0 0x8ac00000 0x0 0x500000>; > + no-map; > + }; > + > + ipa_gsi_mem: ipa-gsi@8b110000 { > + reg = <0x0 0x8b110000 0x0 0xa000>; > + no-map; > + }; > + > + gpu_microcode_mem: gpu-microcode@8b11a000 { > + reg = <0x0 0x8b11a000 0x0 0x2000>; > + no-map; > + }; > + > + mpss_mem: mpss@8b800000 { > + reg = <0x0 0x8b800000 0x0 0xf600000>; > + no-map; > + }; > + > + wpss_mem: wpss@9ae00000 { > + reg = <0x0 0x9ae00000 0x0 0x1900000>; > + no-map; > + }; This entry is in both chrome-common and fairphone (meaning all boards use it), perhaps this one could be moved to 7280.dtsi > + > + tz_stat_mem: tz-stat@c0000000 { > + reg = <0x0 0xc0000000 0x0 0x100000>; > + no-map; > + }; > + > + tags_mem: tags@c0100000 { > + reg = <0x0 0xc0100000 0x0 0x1200000>; > + no-map; > + }; > + > + qtee_mem: qtee@c1300000 { > + reg = <0x0 0xc1300000 0x0 0x500000>; > + no-map; > + }; > + > + trusted_apps_mem: trusted_apps@c1800000 { > + reg = <0x0 0xc1800000 0x0 0x3900000>; > + no-map; > + }; > + }; > +}; > + > +&hyp_mem { > + reg = <0x0 0x80000000 0x0 0x600000>; This is identical to the entry in sc7280.dtsi. > +}; > + > +&mpss_mem { > + reg = <0x0 0x8b800000 0x0 0xf600000>; You're defining it here and overwriting it with an identical value. Looks like CrOS folks don't boot up the modem on non-LTE SKUs. Weird. Normally it would host some more software.. > +}; > + > +&remoteproc_mpss { > + memory-region = <&mpss_mem>; This is identical to the entry in sc7280.dtsi. > +}; > + > +&video_mem { > + reg = <0x0 0x8a700000 0x0 0x500000>; > +}; > + > +&wifi { > + memory-region = <&wlan_fw_mem>; No CE region? > +}; > + > +&wlan_fw_mem { > + reg = <0x0 0x80c00000 0x0 0xc00000>; This is identical to the entry in sc7280.dtsi. The memory map generally looks quite different to both chrome and fairphone.. are you sure it's all correct? Konrad