public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: Manorit Chawdhry <m-chawdhry@ti.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>,
	Tero Kristo <kristo@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Udit Kumar <u-kumar1@ti.com>,
	Neha Malcom Francis <n-francis@ti.com>,
	Aniket Limaye <a-limaye@ti.com>
Subject: Re: [PATCH v3 6/9] arm64: dts: ti: Split k3-j784s4-j742s2-evm-common.dtsi
Date: Wed, 7 Aug 2024 08:06:48 -0500	[thread overview]
Message-ID: <20240807130648.elyf66euunm6iowy@illusion> (raw)
In-Reply-To: <20240731-b4-upstream-j742s2-v3-6-da7fe3aa9e90@ti.com>

On 22:40-20240731, Manorit Chawdhry wrote:
> k3-j784s4-j742s2-evm-common.dtsi will be included in k3-j742s2-evm.dts
> at a later point so move j784s4 related stuff to k3-j784s4-evm.dts

How about this:

Refactor J784s2-evm to a common file which uses the
superset device to allow reuse in j742s2-evm which uses the subset part.

Use a similar style commit message in other refactoring patches as well.

> 
> Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
> ---
>  arch/arm64/boot/dts/ti/k3-j784s4-evm.dts           | 49 ++++++++++++++++++++++
>  .../boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi   | 42 -------------------
>  2 files changed, 49 insertions(+), 42 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
> index e3730b2bca92..2543983b7fe7 100644
> --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
> @@ -5,4 +5,53 @@
>   * EVM Board Schematics: https://www.ti.com/lit/zip/sprr458
>   */
>  
> +/dts-v1/;
> +
> +#include <dt-bindings/net/ti-dp83867.h>
> +#include <dt-bindings/gpio/gpio.h>
> +#include "k3-j784s4.dtsi"
>  #include "k3-j784s4-j742s2-evm-common.dtsi"
> +
> +/ {
> +	compatible = "ti,j784s4-evm", "ti,j784s4";
> +	model = "Texas Instruments J784S4 EVM";
> +
> +	memory@80000000 {
> +		device_type = "memory";
> +		bootph-all;
> +		/* 32G RAM */
> +		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
> +		      <0x00000008 0x80000000 0x00000007 0x80000000>;
I understand you are moving the nodes in and it is just copy paste, but
we have an opportunity to clean the nodes up a bit here.

Same as https://lore.kernel.org/all/20240807120629.3bo2cu3wlpkixwrp@flattered/

> +	};
> +
> +	reserved_memory: reserved-memory {
> +		#address-cells = <2>;
> +		#size-cells = <2>;
> +
> +		c71_3_dma_memory_region: c71-dma-memory@ab000000 {
> +			compatible = "shared-dma-pool";
> +			reg = <0x00 0xab000000 0x00 0x100000>;
> +			no-map;
> +		};
> +
> +		c71_3_memory_region: c71-memory@ab100000 {
> +			compatible = "shared-dma-pool";
> +			reg = <0x00 0xab100000 0x00 0xf00000>;
> +			no-map;
> +		};
> +	};
> +};
> +
> +&mailbox0_cluster5 {
> +	mbox_c71_3: mbox-c71-3 {
> +		ti,mbox-rx = <2 0 0>;
> +		ti,mbox-tx = <3 0 0>;
> +	};
> +};
> +
> +&c71_3 {
> +	status = "okay";

Status comes last. I know that these coding standards are new, and it
takes a little getting used to and one wishes there was a linting tool
of some sort to make this easier.. but for now, eyes are the only way
out :(.


> +	mboxes = <&mailbox0_cluster5 &mbox_c71_3>;
> +	memory-region = <&c71_3_dma_memory_region>,
> +			<&c71_3_memory_region>;
> +};

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


  reply	other threads:[~2024-08-07 13:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-31 17:10 [PATCH v3 0/9] Introduce J742S2 SoC and EVM Manorit Chawdhry
2024-07-31 17:10 ` [PATCH v3 1/9] arm64: dts: ti: Move j784s4-{} include files to j784s4-j742s2-{}-common.dtsi Manorit Chawdhry
2024-07-31 17:10 ` [PATCH v3 2/9] arm64: dts: ti: Move k3-j784s4.dtsi to k3-j784s4-j742s2-common.dtsi Manorit Chawdhry
2024-07-31 17:10 ` [PATCH v3 3/9] arm64: dts: ti: Split k3-j784s4-j742s2-common.dtsi Manorit Chawdhry
2024-07-31 17:10 ` [PATCH v3 4/9] arm64: dts: ti: Split k3-j784s4-j742s2-main-common.dtsi Manorit Chawdhry
2024-08-07 13:09   ` Nishanth Menon
2024-08-07 13:20   ` Nishanth Menon
2024-08-08  4:52     ` Manorit Chawdhry
2024-08-08  5:28       ` Siddharth Vadapalli
2024-08-08 10:54         ` Nishanth Menon
2024-08-08  4:56     ` Manorit Chawdhry
2024-08-08 10:48       ` Nishanth Menon
2024-07-31 17:10 ` [PATCH v3 5/9] arm64: dts: ti: Move k3-j784s4-evm.dts to k3-j784s4-j742s2-evm-common.dtsi Manorit Chawdhry
2024-07-31 17:10 ` [PATCH v3 6/9] arm64: dts: ti: Split k3-j784s4-j742s2-evm-common.dtsi Manorit Chawdhry
2024-08-07 13:06   ` Nishanth Menon [this message]
2024-07-31 17:10 ` [PATCH v3 7/9] dt-bindings: arm: ti: Add bindings for J742S2 SoCs and Boards Manorit Chawdhry
2024-07-31 17:10 ` [PATCH v3 8/9] arm64: dts: ti: Introduce J742S2 SoC family Manorit Chawdhry
2024-07-31 17:10 ` [PATCH v3 9/9] arm64: dts: ti: Add support for J742S2 EVM board Manorit Chawdhry
2024-08-07  9:41   ` Beleswar Prasad Padhi
2024-08-07 11:51     ` Nishanth Menon
2024-08-07 12:06     ` Nishanth Menon
2024-08-07 13:25 ` [PATCH v3 0/9] Introduce J742S2 SoC and EVM Nishanth Menon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240807130648.elyf66euunm6iowy@illusion \
    --to=nm@ti.com \
    --cc=a-limaye@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kristo@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m-chawdhry@ti.com \
    --cc=n-francis@ti.com \
    --cc=robh@kernel.org \
    --cc=u-kumar1@ti.com \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox