Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8644196rwb; Tue, 13 Dec 2022 08:44:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf77d4BXKq3zC6K7/PwgEiL0Ux8/EdCuyz0nhY/N9UhGeoXExbaxOC5CHXkuu/6rEhshztR3 X-Received: by 2002:a17:90a:7347:b0:213:b6c8:2295 with SMTP id j7-20020a17090a734700b00213b6c82295mr20831251pjs.22.1670949851762; Tue, 13 Dec 2022 08:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670949851; cv=none; d=google.com; s=arc-20160816; b=GnDYW7srVEB41wvvFROzSIk+W1jD7/WCumGmefFi6Vjzl9OaPi1xGcVWnC7nfwKgKL MEOYZXydKrpwW5lKlwhtWYw+gCm2h2cwvFp75jtUGCawV6NihOg1EzRP/yNwVdIaEOlz f3FKsSZrw4Q3hOpvUuyDBDNn8d5Hj2GY0W4YXiroEO035kHunsFydQXv4X/J810jcyAt JkyIdbUY1yEhzskuBx8z0TZNpEgaXd8wHujU/hjTqaevNGQTsG6d9cP6c9/IoVOumLma MVMmB3+I8mPbx1u0I/dHPwXJuCmkRkTCFsAKQv3D5d04SWZCffbSR+Y5OYyQU5KLl5kV 1JMg== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wGJ3CEtJtvXFXae/J2RNfkJ+bswNovTVS8idRBKkdW8=; b=XABgA+DSuAMvPDPqGxDE/xrzX36unFf9Fgf4RVO00CVU6Xs/NDalX2c/uEvvb1UTm8 gTKR5xr6bpSwi8DlRiEuZSwjYqVfkuBvavNvqDmdlXvUqvyyfMyx9ujECVZRD9ANWVWF UqBCT32LpHtZFQz8zfErhv2D+deKTBqSScfofaUJrDeiULZdSJLXWy/L0pMOwImjnlI2 B2QMqwodfTpanKYrQmU1vIsVbco71QD1OcccXukGVJBSEekcmCsJu9EtkTWP60c/4JnH nRjivevQEq1c8qTyVaaS9INgiz3Rl+QD3LXimqeO4DPtGmo4mX2REbuauIr5phH0fmGy lJeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RbbX3JZ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nn10-20020a17090b38ca00b00213b6c822acsi13510938pjb.167.2022.12.13.08.44.02; Tue, 13 Dec 2022 08:44:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RbbX3JZ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236194AbiLMPe4 (ORCPT + 72 others); Tue, 13 Dec 2022 10:34:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235621AbiLMPey (ORCPT ); Tue, 13 Dec 2022 10:34:54 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5592F227; Tue, 13 Dec 2022 07:34:53 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BDEoAJh005962; Tue, 13 Dec 2022 15:34:47 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=wGJ3CEtJtvXFXae/J2RNfkJ+bswNovTVS8idRBKkdW8=; b=RbbX3JZ1aease55X0NYy79Jqv3zc304DWYMHhd6kxbS7CqwJkcL4yt6nZ8Nb5bK4fdyT 3lg4IvFF/dFwGMLKS7sWkBB41atHdZj6zWwXaZtHrZTr5f14uZ/JUlOhENaD4uRR2NVd aHX1pbgjyuIqDLP35bCM9nfHQk+vu11XgyHRmvOyALOY9yLPL7xb0JpW1hZI2BIkm8hI rCzLFZRjCEi5sTZt1XqvaQtIkHP8WLL/+/Al9A3TL/6YRYgNDlb7lG3V3QKaTylBfdzJ HNVrkiXVr/k7GsIBiDuTG4k+ZJgspNpV3CS/vF+UZ7C67D1HsXvngrNBqNeK/tfX7Z6v SQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mek41hk0s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 15:34:47 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2BDFYkll023895 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 15:34:46 GMT Received: from [10.216.48.1] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 13 Dec 2022 07:34:43 -0800 Message-ID: <03252ccd-e200-a112-b4dd-ba9fbf25c480@quicinc.com> Date: Tue, 13 Dec 2022 21:04:39 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH 1/4] arm64: dts: qcom: sc8280xp: rename i2c5 to i2c21 Content-Language: en-US To: Johan Hovold , Brian Masney CC: , , , , , , , , , References: <20221212182314.1902632-1-bmasney@redhat.com> <20221212182314.1902632-2-bmasney@redhat.com> From: Shazad Hussain 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: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Yo0ar-THZeTtr_97XMXdQ8MPOIykRdJa X-Proofpoint-ORIG-GUID: Yo0ar-THZeTtr_97XMXdQ8MPOIykRdJa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-13_03,2022-12-13_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=797 suspectscore=0 adultscore=0 impostorscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212130137 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/13/2022 8:58 PM, Johan Hovold wrote: > On Tue, Dec 13, 2022 at 10:12:57AM -0500, Brian Masney wrote: >> On Tue, Dec 13, 2022 at 03:54:05PM +0100, Johan Hovold wrote: >>> Note that the node is labelled qup2_i2c5 and not qup_i2c5. >>> >>> That is, the QUP nodes are labelled using two indices, and specifically >>> >>> qup2_i2c5 >>> >>> would be another name for >>> >>> qup_i2c21 >>> >>> if we'd been using such a flat naming scheme (there are 8 engines per >>> QUP). >>> >>> So there's nothing wrong with how these nodes are currently named, but >>> mixing the two scheme as you are suggesting would not be correct. >> >> Hi Johan, >> >> What would I use for the name in the aliases section? Right now I have: >> >> aliases { >> i2c18 = &qup2_i2c18; >> } >> >> So qup2_i2c18 becomes qup2_i2c2. Would I use the flat naming scheme for >> the alias like so? >> >> aliases { >> i2c18 = &qup2_i2c2; >> } > > Or perhaps the i2c controllers should use a zero-based index instead of > being named after the serial engines (e.g. as we do for the console > uart). > > How are they named in the schematics? > We should use from 0 to N. Shazad > Johan