Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp16399rdb; Mon, 22 Jan 2024 10:23:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFibwelLYOHRL1wQh76D28CnVgsYMhCbZiKnqVpPapOj0hKqepa++SThENJg6AIizzlLJRV X-Received: by 2002:a17:902:f685:b0:1d7:2ede:ce79 with SMTP id l5-20020a170902f68500b001d72edece79mr5191273plg.61.1705947817969; Mon, 22 Jan 2024 10:23:37 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1705947817; cv=pass; d=google.com; s=arc-20160816; b=eOa8g7wrK7psZh+cqNq/myBb5XY/tmYQmcpfj/9G0UI3Kyg0NVgXvmneUTacDaMN3s KoGzaU+3GGqh487E0nU19CG88klVe1SQTyLQZuc1HP0XDA+ed5F8jle5NJKMQ816ohoZ +BWxQ7UuzP8hvPWn08UZUf1NtThgI03/OFLSEL4zz+vZ3NErJoWuUPlFZ94n0TvYG0ef 0p3qwvFx9w2ox+pizXL1pqu9pg1lLO1eHfyRTwfR4KOibGolbJch4i0BMGWsVau4E+CH /p9y0VQ66pM1yZE4zSva/FSTw/5y0Yn6gwSvijf0DYGOCbYCqy+3o0JxU0cG5/DdtiSf 13xA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature :delivered-to; bh=EeIzTxqVAm5xGJwXvmtUxCe9G4u7J32wQZzbvkU2/WE=; fh=YDzt/lOEMGSRq3i6S/fEpuWBKsymwUppci4E4P0D0yE=; b=YxpiihPe8oDUumRH0HUZbydxx9rIUOZK3qIKaLKqcyY1tWpBWHYx4ZLMDUpTVCvq/H DJX+adNz9JIYJ2XX4XJCtzCJfMiYoahlaPX8G81MRT6dUyLY8GuTL4rLz/up/tE+7Ezs wrQOXFs0dbG7MWhV+H2jbUoY7Z6iTw0A2oSRpyXTkNZv8IPzy71+jdfIQa94rhQUw5i7 8TinRqx67EJoWnjxN4UGCz1Bq5fpp0NBs4slCQVXL0uejUTaknfN5/brtSg+sP90VwWd 877kY77XS7ldd2Gn6ocdwWQrrHgXcHcX82v7XGUdLLcyLfWIIJcIvtpBo+GpY2J7FI4S Yd5w== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@rong.moe header.s=zmail header.b=mWNYWuTO; arc=pass (i=2 spf=pass spfdomain=rong.moe dkim=pass dkdomain=rong.moe); spf=pass (google.com: domain of linux-kernel+bounces-33839-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33839-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cd23-20020a056a02079700b005cf7b6d2dcdsi8437987pgb.241.2024.01.22.10.23.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:23:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33839-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=@rong.moe header.s=zmail header.b=mWNYWuTO; arc=pass (i=2 spf=pass spfdomain=rong.moe dkim=pass dkdomain=rong.moe); spf=pass (google.com: domain of linux-kernel+bounces-33839-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33839-linux.lists.archive=gmail.com@vger.kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B36F290643 for ; Mon, 22 Jan 2024 18:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6A1F5A117; Mon, 22 Jan 2024 17:38:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rong.moe header.i=i@rong.moe header.b="mWNYWuTO" Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (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 4965559B7B; Mon, 22 Jan 2024 17:38:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705945087; cv=pass; b=QDpS/yksmb0OhucI6OmoK6AbFWFj6tpeDMMG5onZ/mmg3kxKkh0+g5TnHw/dR5zri7yc281RG5BwT1eHgdn0PfLT8Jj3eyofHsvY4J6Y9oUBAVP8hk+LOgH1QnoqfvLvjI9MCUe0mrcxNm+x1GuWkUIpgeQnrRVphfXbUaDlDAo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705945087; c=relaxed/simple; bh=TP1/GIhm0AolInvICof2QAYpqp3X+269kiaQUPdI4pI=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=qpF92GxyNxCrWiyLUXrNomVBG4Ik00E7PAs2ZrK67pBgycc+UdvflqykYj682mJwGdPe7QSixcpUyfH2ROqybT9hO9R58GkKGNcXz2QUCDgTyzC3KSnmEAZjXRyNxqMhUwlUnooFwZaKZH5pT4W+HH10PW7DY7wQuBuYZQNJWJk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rong.moe; spf=pass smtp.mailfrom=rong.moe; dkim=pass (1024-bit key) header.d=rong.moe header.i=i@rong.moe header.b=mWNYWuTO; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rong.moe Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rong.moe Delivered-To: uwu@icenowy.me ARC-Seal: i=1; a=rsa-sha256; t=1705945080; cv=none; d=zohomail.com; s=zohoarc; b=TG1rVNTJ/gBR42F8jp7dBf6vVAf3/rMkUMKbWHAvg44spJCHvcHLlTJ7J/Hd8rVfWZ1HX8YIys/lKqSVwFzmwy+/hjtoVSd+6BsT4BJh2EZTDqahx5WjEPOYgkTLsRWu0LX5Z4EtCh6+3gemO10klOLeJmBU79uE9OumEy03a0A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705945080; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=EeIzTxqVAm5xGJwXvmtUxCe9G4u7J32wQZzbvkU2/WE=; b=FwTA/fdZNuZL1QTtL99wyFUUYxeKDMpvu4XUf+2BwcVAuAzLT4aKDgPtZQUUaNgeBp/Hr1g3zFhyBC7r/gwTWnyOsH0UxkwFSlfn8Z5JRU+J2SkZyKBw0oTzax3ygjSN+73AaGzvgTwjhZ+cfbF2bFaIG+nES7lRmjFQkFNCSYI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=rong.moe; spf=pass smtp.mailfrom=i@rong.moe; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1705945080; s=zmail; d=rong.moe; i=i@rong.moe; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=EeIzTxqVAm5xGJwXvmtUxCe9G4u7J32wQZzbvkU2/WE=; b=mWNYWuTOtFCRT8Xp3nmgI0bPCEwa25RLgPgc21JMTuCrKm5F9/9Xek+Ya/tKNXia NL+4ZCII0QK1oC+4dpv6JBSCz6m8smo25yQI2ebvnI48its5LQTpSOBt4DQ/J7ZmEZ0 nTPizE2XXNjzztDFsOqzuoDD1DsiVjZrgJXZ9WPo= Received: from tb.lan (182.118.238.16 [182.118.238.16]) by mx.zohomail.com with SMTPS id 17059450788345.314839394946716; Mon, 22 Jan 2024 09:37:58 -0800 (PST) Message-ID: <9882dfb98a2c49d655775f17cf6c89f1a9181d69.camel@rong.moe> Subject: Re: [PATCH 4/4] ARM: dts: qcom: msm8974: Add device tree for Samsung Galaxy S5 China From: Rong Zhang To: Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng Date: Tue, 23 Jan 2024 01:37:50 +0800 In-Reply-To: <1635b0e5-df47-4918-be83-edc27c59d8cf@linaro.org> References: <20240121154010.168440-1-i@rong.moe> <20240121154010.168440-5-i@rong.moe> <1635b0e5-df47-4918-be83-edc27c59d8cf@linaro.org> Autocrypt: addr=i@rong.moe; prefer-encrypt=mutual; keydata=mQINBGJgfuUBEADGrjSzgmDA9yZLu8BGeymoKkv1kMswy2/+WIGCq9YzimJXRiPNA9YbOIARsiMV+W3XRFjhebpUZM/dUZBUe8o8kQFtqynNNpJeiyfshybOFXOEaLoVk/QJ2PkY6XdnHNpiMic0k51EFozB877LqRMn+l0DRGJWhQM+VcXf7boXvJO5gmM879FKsV+3dMzoUlggbggZH0r7WUNFOJ3+ycRiY+H9vRRtYvYGIzULcF7l+0hm0yT0r5Gfrv0crTow0UlpWwvYl3f7mGuD70QRclKhP8sVbHcbUjUM81a4xZnMqNnVDcoNxO10FF4wI9pFGNK8lzLAoyIDEeioR4mLkH9R40rOFCAVsFNVm8fGTKm/FuqeopzOWCY68oz1lLV5oTXysBcTUAiNl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ixHjlkDzTIaEoRdrnz6YAG9HYDuYg+Q/sW1QJTABpznCB5xFuH6swu95HtrIPvMMq8alVhOdIksZOmdMAYV3l6hZ5WZylgEJ+jAbpzT1d6p5oypKeEGDUPw1E5OJexbKUdQ01cS0lOUybbnvThxDigUUFXqCR2M6O4QBhh8jTw/T/sA/TM4oE1eJhJEgxsxFt6PZbUUAvQjYf+v4t4BxYMRM6qMpROkokWpq705I8pDFiUBIstjySDtvpviFD5Ae47atIndjsFk9+iupfpJzzm6FaDyZl2oT4gZQGYas90oN/fzflE18OPug5QmhzuzHQlyItu0AGrywit1HT2vTJsJONMfv/14JSO5loSjEo4F5fQNzjM2m3BErKPqe8N6fUFHqTipXtWuweCPg7CEp1cumgK cMTsfqztU+orM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3-1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ZohoMailClient: External On Mon, 2024-01-22 at 11:50 +0100, Konrad Dybcio wrote: > Looks like you didn't change the brcm,board-type though? In "[PATCH 2/4] ARM: dts: qcom: msm8974-samsung-klte: Pin brcm,board- type in wifi": /* * This aims to allow other klte* variants to load the same firmware, * as klte variants have little differences in the wifi part. */ So it is intentional, in order to let them share the same FW, in particular, the NVRAM file. Without [PATCH 2/4] and with this [PATCH 4/4]: - klte DT probes "brcmfmac*.samsung,klte.txt" - kltechn DT probes "brcmfmac*.samsung,kltechn.txt", but never probes "brcmfmac*.samsung,klte.txt" With both [PATCH 2/4] and this [PATCH 4/4]: - klte DT probes "brcmfmac*.samsung,klte.txt" - kltechn DT probes "brcmfmac*.samsung,klte.txt" I pinned "brcm,board-type" in the klte DT instead of the kltechn one because other klte* variants are known to have little difference in the WiFi part. By pinning it in the klte DT, future ports could be easier. If you'd prefer not doing this, I am OK to drop [PATCH 2/4] in the v2 patchset. FYI: LineageOS considers all klte variants use "common" WiFi FW: https://github.com/search?q=3Drepo%3ALineageOS%2Fandroid_kernel_samsung_klt= e+CONFIG_BCMDHD_NVRAM_PATH&type=3Dcode https://github.com/LineageOS/android_device_samsung_klte-common/blob/8f71a6= 3415397def5ba886f4030b0d91e2253262/common-proprietary-files.txt#L251 I've tested the klte port of PostmarketOS (with klte FW and this patchset) on kltechn, and it worked fine. For the FW used by PostmarketOS, see also: https://gitlab.com/postmarketOS/pmaports/-/blob/439227770ffcd32eb7e26436598= c804dc35637ad/device/testing/firmware-samsung-klte/APKBUILD#L17 > > +++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-samsung-kltechn.dts > > @@ -0,0 +1,16 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +#include "qcom-msm8974pro-samsung-klte.dts" >=20 > It's customary not to include .dts files, instead split the common parts > into e.g. qcom-msm8974pro-samsung-klte-common.dtsi and include this in > both the existing and the new one. At the very beginning, I thought including .dts could make the patchset tiny (considering that the difference among klte* is also tiny). I agree that splitting the common parts into a .dtsi will make things more elegant and make klte* DTs consistent with the style of qcom DTs. Will do in v2. Thanks for your advice. Thanks, Rong