From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 978112236E1; Thu, 9 Jan 2025 16:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736439391; cv=none; b=N9z/hpDat5/4TbuRJWzlsR+eSyGuHzdSNOAsoYhFajFg/Mw5kDYwhI4kVzFYi4egwqaWa9BmPN9H0K2dO1JOvXtY+YWCzJgAEjXuAd220MjDckn9F8VX1QnoOjuzChKWDO3REJQIg1IC5LPDm8VOOiBo7mAgt9HEN2N2uoZjrQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736439391; c=relaxed/simple; bh=dmugKz6UqQLm0LNA7ecQvZplD/E0eQecRw2MWQ++hEo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gxcBc+TyYlAbt/Q6UMOPPm7NOIqo1zNfsNQyK639TZpdgj/xWCeqmEqZb50Tb9EQ9L60SR4ehwzn4D4SnogtuZ0sbVKun/68zTRKtVRAtp1KwzvN/CGOWHDObO8wm2VP3y5QqjbBNl+ULzDFKEnFp0CYYJUxhlpzzAwdQO4dKFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BtDLKi0f; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BtDLKi0f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82BA6C4CEE2; Thu, 9 Jan 2025 16:16:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736439391; bh=dmugKz6UqQLm0LNA7ecQvZplD/E0eQecRw2MWQ++hEo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BtDLKi0ftj6lqFAsfu5H2z3PcUBST+glT6ksm23CaeXMJArq2TB9kxvSq6NR3tfo5 M3ROwXH7Jc8JlPziPC6evba/Ntn9fk+CKeYnmKMmw30Ohc+aeFj28OWDKYDgOBDR5x ejPu30gY4akdzqYbU+CTADOZ1u5vjTVSqX6D9qLQsssVmIySucxX1ZbXRQKTcUKXV5 zXfBIm0ssoIXk8auV7aMm7usM1rdYWS6IcPpuGF1tHUaKwftHDc8yj3uEojU51k2eC f8TmqutUURmw1mE44cDc42wXJudGCch7B6gt/hV2qNi7cARJ8RoXgIpwLX4M1bfSbU /RgtuQFVD6HbA== Message-ID: Date: Thu, 9 Jan 2025 17:16:25 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 5/6] arm64: dts: qcom: Add support for QCS9075 Ride & Ride-r3 To: Wasim Nazir Cc: Dmitry Baryshkov , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com References: <20241229152332.3068172-1-quic_wasimn@quicinc.com> <20241229152332.3068172-6-quic_wasimn@quicinc.com> <4wmxjxcvt7un7wk5v43q3jpxqjs2jbc626mgah2fxbfuouu4q6@ptzibxe2apmx> <37isla6xfjeofsmfvb6ertnqe6ufyu3wh3duqsyp765ivdueex@nlzqyqgnocib> <67b888fb-2207-4da5-b52e-ce84a53ae1f9@kernel.org> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvF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rTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/01/2025 15:47, Wasim Nazir wrote: > On Wed, Jan 08, 2025 at 03:09:09PM +0100, Krzysztof Kozlowski wrote: >> On 03/01/2025 20:58, Dmitry Baryshkov wrote: >>>>>>>> Initially, we included the DTS [1] file to avoid duplication. However, >>>>>>>> based on Krzysztof's previous suggestion [2], we change to this format. >>>>>>>> >>>>>>>> Please let us know how to proceed further on this. >>>>>>> >>>>>>> Krzysztof asked you to include DTSI files instead of including DTS >>>>>>> files. Hope this helps. >>>>>> >>>>>> Are you suggesting that we should also modify the 9100-ride files to >>>>>> include DTSI instead of DTS for consistency between QCS9100 and QCS9075? >>>>>> However, this would result in the duplication of Ethernet nodes in all >>>>>> the ride board files. Would that be acceptable? >>>>> >>>>> git mv foo.dts foo.dtsi >>>>> echo '#include "foo.dtsi"' > foo.dts >>>>> git add foo.dts >>>>> git commit >>>>> >>>> >>>> We cannot convert sa8775p-ride-r3.dts and sa8775p-ride.dts to .dtsi as >>>> they represent different platforms. In patch [1], we included these DTS >>>> files to reuse the common hardware nodes. >>>> >>>> Could you please advise on how we should proceed with the following >>>> approaches? >>>> >>>> a) Previous approach [1]: >>>> Include sa8775p-ride-r3.dts and sa8775p-ride.dts in the qcs9075-ride >>>> platform DTS, similar to the qcs9100-ride platform DTS. This approach >>>> avoids duplicating Ethernet nodes and maintains uniformity. However, it >>>> involves including the DTS file directly. >>>> >>>> b) Current suggestion: >>>> Include sa8775p-ride.dtsi in the qcs9075-ride platform DTS and also >>>> modify the qcs9100-ride platform DTS files to maintain uniformity. This >>>> approach results in duplicating Ethernet nodes. >>>> >>>> Please let us know your recommendation to finalize the DT structure. >>> >>> sa8775p.dtsi >>> `__sa8775p-ride.dtsi >>> `__sa8775p-ride-r2.dtsi >>> `__sa8775p-ride.dts >>> `__qcs9100-ride.dts >>> `__qcs9075-ride.dts >>> `__sa8775p-ride-r3.dtsi >>> `__sa8775p-ride-r3.dts >>> `__qcs9100-ride-r3.dts >>> `__qcs9075-ride-r3.dts >>> >> Wasim and all other copy-pasters of sa8775p-ride, >> >> Just to recap, qcs9100 contributions started this terrible pattern of >> board including a board. Unfortunately qcs9100 was merged, so that ship >> has sailed. >> >> This patchset was going the same way, because poor choices like to keep >> spreading, but at one of previous versions I noticed it and objected. >> >> This v5 however solves above problem by duplicating the nodes. >> >> Apparently all these designs - sa8755p, qcs9100 and qcs9075 - use the >> same board, but none of this was communicated. I checked all the commit >> msgs in this patchset and nothing explained about it. What annoys me is >> that you do not communicate your design forcing us to accept poor DTS or >> forcing us to guess and make poor judgments. >> >> Come with proper hardware description and split out shared parts, like >> motherboard. Look how other vendors are doing it, e.g. NXP or Renesas. >> But assuming there are shared parts because I am pretty sure you will >> pick my comments when it suits you without actually following them fully >> and without understanding and explaining to us your own hardware. >> > > Hi Krzysztof, > > Here is the pictorial flow showing how SoCs are derived and what all boards > are supported. > > +---------------------------------------------------------------------+ > | | > | sa8775p | > | | | > | +-----------------------+-----------------------+ | > | | | | | > | v | v | > | qcs9100 | qcs9075 | > | | | | | > | v v v | > | (IOT) (AUTO) (IOT) | > | qcs9100-ride.dts sa8775p-ride.dts qcs9075-ride.dts | > | qcs9100-ride-r3.dts sa8775p-ride-r3.dts qcs9075-ride-r3.dts | > | qcs9075-rb8.dts | > | | > +---------------------------------------------------------------------+ The the SoC, I am asking about the board. Why each of them is for example r3? So this is not sufficient explanation, nothing about the board, and again just look Renesas and NXP. Best regards, Krzysztof