Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1384030lqj; Mon, 3 Jun 2024 22:35:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSQAtcD5HuG13xrNnGS9V/u47EQYWFaTGPAy68YkoOCfj3bOAJusfE0kFW0iUKonqIr4JALo/AaqhzijB/nvxoS5dLERhALfzHGr2oeg== X-Google-Smtp-Source: AGHT+IEE2mADDP4ZU3KhthK3mpmzJSEoibeGjW+AAqjZY//qpOTJ49BK+gntdLyWSAFjcBua8R4S X-Received: by 2002:a05:6870:32d4:b0:24f:e598:b9bc with SMTP id 586e51a60fabf-2508b9b857amr11624600fac.18.1717479330891; Mon, 03 Jun 2024 22:35:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717479330; cv=pass; d=google.com; s=arc-20160816; b=0ySWFnJhEyBq5z4dm+vzvsy+d+kKT5HQ0BLkFZxMvo0kO8kaUNv9m9xdi9DGNoD0pA K0cbrj7K4EfKUtHOCl1clhu52MxvHirMg73ZmIGTdLB8hr2zUqRA4BhLaGVWI8PVrdbj PWG8Z4vOFYe6M4w/bK6HEaXK0UGnZgd3o/m5W1wOOe8Lvdk78bVe/hllhdoSatk5LFrk ke5U9Mj/bETX2hTP3RKnGkNeiABoO09VocLlg+kJfJeMw5TCBgjQlqkBiQrKepqBKtGl NQG0Qy1gLOX/QRrwsLEVAXqkpPfVkvCIMAv16emA9+2FXQjM7mS1wC3nppuEvSdREOjC VsXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=jdbbjeQG8RYzi3g6LQb9S6L57zTUKn8HTInOgAFXRZM=; fh=Qm9txIq8otAhWYO13qixTQljdWw19X1zXvJXNs8SkTg=; b=reNDyyFGCKtNJ086HB0ELX+YiKSieP6zc0BU0CTwIxYlvYuTqyyA/9cSrNoFKe1pCe 8rqRqRNgtJxwZUkzC/g6powwshGiYVIbekm2F/LL8U+9dLl8P2DxqY3LYU7XHFjz1XYN naWsXRgPM3rXklW+0P5MQKRd8PrGyIjfd61SL6f5ofHcQIsvs9X8JPzPJ4czEz+UlvnS BuSKeAJJCCduFT593IcFRNhYiLFNucpODxun4B/PquSQbEiWuYUJ8IYPdUYhZKsuJpIc EfXWyGNiqk/pvTYE8mul19L3r0VuUmwe+SBiirQKhOMu1u169Elpf2n753G8YrU7Zq13 +yOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WZAMx6ad; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-200063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-7024936c4bdsi779160b3a.130.2024.06.03.22.35.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 22:35:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WZAMx6ad; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-200063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A795F28A4E6 for ; Tue, 4 Jun 2024 05:35:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 557E413DDD1; Tue, 4 Jun 2024 05:35:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="WZAMx6ad" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6ECC13D601; Tue, 4 Jun 2024 05:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717479321; cv=none; b=TKrXxKfySWqxyAPYjE7b3dbHKz3ZWZk7hhQgNxJY9ogshCS+YuND7kjeQl8T3ZrBK8uk20bDxjiTY1tuWCEMtmT77EU6kiljfMqTPM2qyoI/NsTTwqx8LDHhEmXeivSdyWHwaow/hE+9T5lQMk4LBb74hwPs3NPrNGYTQqR72Xs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717479321; c=relaxed/simple; bh=Rz0cteULpne0ZQB9dwKZjpz0pPmlG/HOPIykIoYlxwg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=dxjGe4NkX0aliahdrUQtinb+IwKhDBe4iWpDvVLlWPZxA7JHrp2NTiwFSgdIKtnK/aBDkBpfJZWJoDE7kYqen9+55sTYBeSS0xRF5asRdXWvtRvVAlBwR3dg1GaI1230lH9v/f+4/nO+zmOqDV/1OKsxie7HsTC/sEZjDHk7IoU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=WZAMx6ad; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4544iqpt000456; Tue, 4 Jun 2024 05:35:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jdbbjeQG8RYzi3g6LQb9S6L57zTUKn8HTInOgAFXRZM=; b=WZAMx6adVTPKJkBM jGBK9ifGMbohAW1bkRClLR/X3FYdy/Hww+lYO635U4L8IYPn0UbQqlNmpQQaVjuF TxdcsYXbzg5MjO6i4vG6RWP5FljgU5dWYwuE+wBSTAaY/R+SpklkSFuuZVbQmSVM hLMPGcjMs1brvfumTpB5l8Dtktwhtjm0kOzx1Z8g5ASdX1LYZV6VLjOWjpt4JOHI nCU5QdAWRpPjGhQ95LKQMQQKbvETGf+38wCxOpdfKQMhWWLtDNwOGaS7oL5nLW+M VGRfG9/ogtXHfmi8jcFmKHypUzdTRXDp0pRC7+Z3+xVhvtwFG46n6NJ/IYt6v8Ob mFwuoQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yfw59nkts-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 05:35:15 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4545ZEkN022283 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Jun 2024 05:35:14 GMT Received: from [10.239.132.204] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 3 Jun 2024 22:35:08 -0700 Message-ID: Date: Tue, 4 Jun 2024 13:35:06 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 4/4] arm64: dts: qcom: aim300: add AIM300 AIoT To: Dmitry Baryshkov CC: , , , , , , , , , Qiang Yu , Ziyue Zhang , 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> From: Tengfei Fan In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: NHwupYUFVY4Bxic7KNEyLClJPHvF9onj X-Proofpoint-ORIG-GUID: NHwupYUFVY4Bxic7KNEyLClJPHvF9onj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-04_02,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 adultscore=0 clxscore=1015 mlxlogscore=999 bulkscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406040043 On 6/3/2024 3:52 PM, Dmitry Baryshkov wrote: > 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? I understand your consideration from the upstream patch link which you shared. Insteading of maintaining two separate state nodes, I will update a default state node in the next patch series. > >> >> 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 > > > -- Thx and BRs, Tengfei Fan