Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp807131lqj; Mon, 3 Jun 2024 00:55:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmoMPnUD3s/TgBqm7hbd0FUTvUy872wSi47Fyr58JopsALRsfFUmfdbObkLlbO3yerw+f5dl/UTeS1morp2mGMU+vikOaCQGe/J/mGQg== X-Google-Smtp-Source: AGHT+IGdmuQlTKh5ITFKQ26Ifd9hE3jWjtCatnfDA3ivE0Ejznj1Y0xg39eDuf+3dk5ttKewmlZt X-Received: by 2002:a17:902:bb87:b0:1f6:3429:69d7 with SMTP id d9443c01a7336-1f63709e4ffmr76398005ad.52.1717401304624; Mon, 03 Jun 2024 00:55:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717401304; cv=pass; d=google.com; s=arc-20160816; b=cWRpSzbw6FoXm30IhTcIJx/10ej/Qf4SxbiKgaHV7fEUORVgbbwV5Ow6Mz4AainH92 g4v0qfE+3U/kJEvAMYjrUzWyvqh3DOmp2qPQadtFuiL09/x/J9B1tCh/dBxrX8GxmGiu CjN+yv6c7BJJ5onibMWQbOVM3o3k5tAiCRvz9W2O+N84koXerSPdUVWZMLLDXcG4xbVA Io9nlOQNNx5b80wsvjvZ1Qp1mNFhdckRpRm6XKSTyWerbG1vvtp9LMTEmJOM77LnSv1p Ou9IqBbxVOOianbCWpmXklmn1hseJ/fLJoErRUMhAdI9fkwFKHaPj9Dg/6rpRhHbb2wg 7vAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=RMbAbJUJRVwX4BQuP5CnsSXY8BFtWrQGAFlKLZmvST0=; fh=i2JzZt2fAPzbSy8sr/yFLGm8vybvVQ/9HhBafVZNgi8=; b=JotGsq7TvPaJRKYfW0CcafEbOmR0rNv+DhT3WIhzNARGjHi+FI/O3wqDXzhtA1ovPe KCGmjesCBtmbBxiG1rKoCyDlnZ4VSuB6LcdnwrOAoCma2SWaN4yiVj8POQUyQ7cjGHkv aB5odDynWhNNFTxNnEYr4wQT8p/8ht6psHv/hsWuXUc2Sn4W5B3r9Bp9RfD5Ksy4el9h L8G5Pn+otB6AjsD+Yluj+OdcQ9mD208ZwP0VNdWtbmF1YK/0X2UOFAWHnY2KxCzPhs70 G5Ul0Ll55TLudu1A+XDULQkbQsOnL2TUY+FIEG7iWmU+nYo8cozDD/ds/Ho+ptCIu1+4 0RhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jqJ2WTOn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-198742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f65fceacf3si29297665ad.506.2024.06.03.00.55.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 00:55:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jqJ2WTOn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-198742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BCDC7B21FB8 for ; Mon, 3 Jun 2024 07:52:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C91F54BE7; Mon, 3 Jun 2024 07:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jqJ2WTOn" Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19EC44DA06 for ; Mon, 3 Jun 2024 07:52:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717401150; cv=none; b=jgA1XG8NPe8N6ePL3QwuFqk2IfcV6u+r1THws7MgYKV6CUyxdUfcdJ+RZ9YvCIRql+5DLEHZvRGqWFr+Wb5V8C0XpFN1Njctwx+28b9tVLSpg/0mTmx3ro2kH+hqfKwzPtAWwH9tCntJJpxlpGg1+k/jtBwSc0DaXEhzhHf8dyI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717401150; c=relaxed/simple; bh=EasYFqeOqEz2XMj0eBIehUFvDd/gDZ6qmd6Ory/qY48=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=cHKxBFgRwFDiMlDTas3cxYdBJSY8m9YX/XNWPp5u/mzDqkI7AAoSXDQtcB2s5FXSXnEz2RrMHqe70AXpk8Zy1pYrdlcL7PmGYFbspVN8sfnlfj1dJFzGk2EolEDq/Bwzj6mwD8Auu/h4qjb7DRXQjN2tDH0Jgl6EIlOUeVxk4qw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jqJ2WTOn; arc=none smtp.client-ip=209.85.128.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-627ea4e0becso38553827b3.0 for ; Mon, 03 Jun 2024 00:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717401147; x=1718005947; 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=RMbAbJUJRVwX4BQuP5CnsSXY8BFtWrQGAFlKLZmvST0=; b=jqJ2WTOnVPYt9eQfUDTzq6Z12zflO5w+Ke56VBU8uviSWmrZx7h/xwqEbiTCQ05rqG A62tQI+2p3eFDgXpJ4yBcG9cW8DkY/6el28zCkZuyaBNfiKpYNQ3jJC6J5ISag0ivNes 9g94Z1cskILe6THjxKvlX6ZXQgRfgNSe13IeO2/5pPNYnMi+LmNqtyiIsyjV3TJrMZs/ XHEJcMChm6aWy/CEpHXlK2q3aQ+bHYZ5XgqQOMsRfXIoC498yVeszSre8La96zMqiE2d FxMBBHW18JWQX1en+FdLlkxRRUopfK+5HpHpFWuw+RMOaIsjro0Nc9WxAgXi0/3fysft qFVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717401147; x=1718005947; 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=RMbAbJUJRVwX4BQuP5CnsSXY8BFtWrQGAFlKLZmvST0=; b=QcVy0l6WA9ycLcQ8/YbQRGL1M5d/5yogcN4C5ubeAkWg9X5NDp1nBmNADUcarQGAqd xcdelc9EtIfCo3846I8UqSZn7SkRRPxocDjDb/Yh150JvDvZts6H1Y7sC5T4S77P/fKp QX1+wsV2PTZMH4RNSWux6yibgNPDWe6a1ffnlG9/7HNGQNCWFAee8TgKwSZ3GTF1CQ1U KPzLvE3OoC7z09gWrcx/bu7YiW7wsY6hS2z8ACPtnqS5sPW99ycbBv6/z+znD1Xx2+Vp yVSi5ADLusm6cAE4SxechmxT4QPHFaTXZ3gLPMKRf1zxWKa3UE/WH6Ek4LmsdaA7Asyx eacA== X-Forwarded-Encrypted: i=1; AJvYcCUs/AadTv7ntKzsQWoph7Eb18crP/+bRcvjJj/e6LFyr+WIch3t1GMU22q2tKmpubg/3+T6rLdCx/7QKFusDeqegra1XObreO3oeGcY X-Gm-Message-State: AOJu0YwUrJCJ0hKVlJ2U0CCckxlkHwTilm450KeqRb4LamSs/dzOvgDB jpruoe8lMlpwpwe6WO9dbWLK86X4K8C0xDKg8u8PIoTtNjM0lRKMC9iTm3lweH6zCav2s6ianrT p3nX+CFu1VJVyp8TBj7LEM6cDAKyH1yukqFYJkQ== X-Received: by 2002:a25:d3d3:0:b0:dcd:19ba:10df with SMTP id 3f1490d57ef6-dfa73dbc904mr7760984276.56.1717401146985; Mon, 03 Jun 2024 00:52:26 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240529100926.3166325-1-quic_tengfan@quicinc.com> <20240529100926.3166325-5-quic_tengfan@quicinc.com> <205de8b7-507f-45c9-83ce-6eceb1466cb2@quicinc.com> <89c5c663-df8a-43d4-91b3-0a84b0c9a324@quicinc.com> In-Reply-To: <89c5c663-df8a-43d4-91b3-0a84b0c9a324@quicinc.com> From: Dmitry Baryshkov Date: Mon, 3 Jun 2024 10:52:13 +0300 Message-ID: Subject: Re: [PATCH v9 4/4] arm64: dts: qcom: aim300: add AIM300 AIoT To: Tengfei Fan Cc: andersson@kernel.org, konrad.dybcio@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, Qiang Yu , Ziyue Zhang , quic_chenlei@quicinc.com Content-Type: text/plain; charset="UTF-8" On Mon, 3 Jun 2024 at 10:38, Tengfei Fan wrote: > > > > On 5/31/2024 4:38 PM, Dmitry Baryshkov wrote: > > On Fri, 31 May 2024 at 11:35, Tengfei Fan wrote: > >> > >> > >> > >> On 5/29/2024 11:18 PM, Dmitry Baryshkov wrote: > >>> On Wed, May 29, 2024 at 06:09:26PM +0800, Tengfei Fan wrote: > >>>> Add AIM300 AIoT Carrier board DTS support, including usb, UART, PCIe, > >>>> I2C functions support. > >>>> Here is a diagram of AIM300 AIoT Carrie Board and SoM > >>>> +--------------------------------------------------+ > >>>> | AIM300 AIOT Carrier Board | > >>>> | | > >>>> | +-----------------+ | > >>>> |power----->| Fixed regulator |---------+ | > >>>> | +-----------------+ | | > >>>> | | | > >>>> | v VPH_PWR | > >>>> | +----------------------------------------------+ | > >>>> | | AIM300 SOM | | | > >>>> | | |VPH_PWR | | > >>>> | | v | | > >>>> | | +-------+ +--------+ +------+ | | > >>>> | | | UFS | | QCS8550| |PMIC | | | > >>>> | | +-------+ +--------+ +------+ | | > >>>> | | | | > >>>> | +----------------------------------------------+ | > >>>> | | > >>>> | +----+ +------+ | > >>>> | |USB | | UART | | > >>>> | +----+ +------+ | > >>>> +--------------------------------------------------+ > >>>> > >>>> Co-developed-by: Qiang Yu > >>>> Signed-off-by: Qiang Yu > >>>> Co-developed-by: Ziyue Zhang > >>>> Signed-off-by: Ziyue Zhang > >>>> Signed-off-by: Tengfei Fan > >>>> --- > >>>> arch/arm64/boot/dts/qcom/Makefile | 1 + > >>>> .../boot/dts/qcom/qcs8550-aim300-aiot.dts | 322 ++++++++++++++++++ > >>>> 2 files changed, 323 insertions(+) > >>>> create mode 100644 arch/arm64/boot/dts/qcom/qcs8550-aim300-aiot.dts > >>> > >>> [trimmed] > >>> > >>>> +&remoteproc_adsp { > >>>> + firmware-name = "qcom/qcs8550/adsp.mbn", > >>>> + "qcom/qcs8550/adsp_dtbs.elf"; > >>> > >>> Please excuse me, I think I missed those on the previous run. > >>> > >>> adsp_dtb.mbn > >> > >> Currently, waht we have released is adsp_dtbs.elf. If we modify it to > >> adsp_dtb.mbn, it may cause the ADSP functionality can not boot normally. > > > > Released where? linux-firmware doesn't have such a file. And the modem > > partition most likely has a different path for it anyway. > > Firmware releases can be obtained from > https://qpm-git.qualcomm.com/home2/git/qualcomm/qualcomm-linux-spf-1-0_test_device_public.git > after users sign up for free accounts on both > https://qpm-git.qualcomm.com and https://chipmaster2.qti.qualcomm.com. I'm getting 403 when accessing qpm-git (both with my Linaro credentials and with gmail ones). If I try to git-clone the URL you've provided, I'm getting "Not found" when using a gmail account and CURL error when using Linaro createntials. error: RPC failed; HTTP 302 curl 22 The requested URL returned error: 302 Not to mention that the URL wasn't mentioned anywhere beforehand. So I can hardly call that 'released' > > > > >> > >>> > >>>> + status = "okay"; > >>>> +}; > >>>> + > >>>> +&remoteproc_cdsp { > >>>> + firmware-name = "qcom/qcs8550/cdsp.mbn", > >>>> + "qcom/qcs8550/cdsp_dtbs.elf"; > >>> > >>> cdsp_dtb.mbn > >> > >> CDSP also as above ADSP. > >> > >>> > > > >>>> + > >>>> + te_active: te-active-state { > >>>> + pins = "gpio86"; > >>>> + function = "mdp_vsync"; > >>>> + drive-strength = <2>; > >>>> + bias-pull-down; > >>>> + }; > >>>> + > >>>> + te_suspend: te-suspend-state { > >>>> + pins = "gpio86" > >>>> + function = "mdp_vsync"; > >>>> + drive-strength = <2>; > >>>> + bias-pull-down; > >>>> + }; > >>> > >>> What is the difference between these two? > >> > >> TE pin needs to be pulled down for both active and suspend states. There > >> is no difference. > > > > So why do you need two different states for it? > > Dividing into two different states can provide a clearer expression of > whether the corresponging functionality is avtive or suspend. How? > > We can also find similar settings in the other SM8550 and SM8650 > platform dts files, such as sm8550-qrd.dts and sm8650-qrd.dts. Which means more items to cleanup. See the discussion starting from https://lore.kernel.org/linux-arm-msm/36f22383-79a3-427e-bf17-35ce2e1dd620@linaro.org/ > > [1] sm8550-qrd.dts: > https://elixir.bootlin.com/linux/v6.9.3/source/arch/arm64/boot/dts/qcom/sm8550-qrd.dts#L1052 > > [2] sm8650-qrd.dts: > https://elixir.bootlin.com/linux/v6.9.3/source/arch/arm64/boot/dts/qcom/sm8650-qrd.dts#L1098 > > > > > > > > > > > > > -- > Thx and BRs, > Tengfei Fan -- With best wishes Dmitry