From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9DADBC54E41 for ; Thu, 29 Feb 2024 10:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KlSSwDSZL5/rBeqGIxnwdWNFfAn9LD0D7+1X+Aa6zDQ=; b=BlZXAG/EuVWIh0 CE/V/p4cDQ7TZy3UMdV2QTZQTQgyUFcuWIoemZXhQZ6Dh08YRUoYqeodGGXFpQQktsqG8ps3jm4CP DR2Lz9LsyD5i3N1Ov9kaI3v09WvxivTHEGFt3W5uW+bhrPyZ/4lksYlbUv+PucLSpstWpLj/aDQ+9 3M7wIiLOqhfLR+YZKoEDkTXmmMpgBL8c6i1THDdhhPgIwYYmDvNqmZ8Th2LKNyzMkhRS9R4MuHBRi GvTpjp4l4neqAteIZTfQw5CgiS5x23ZqVgSm8fM4bTe1JykzYlSxCyAuuzE5WcOTNayykLHPTSkXH iNzKRBSWsXziQXXOp55w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfdLc-0000000D4nF-15VR; Thu, 29 Feb 2024 10:09:04 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfdLZ-0000000D4mG-08Cx for linux-arm-kernel@lists.infradead.org; Thu, 29 Feb 2024 10:09:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1709201341; x=1740737341; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mXMDKKpauy1Jui0sKkU8gCrmH7275RH1plO5L2PIEX0=; b=DT4NptgeSpOGI2Z14XpnWrwg16JAtAqiBztsQNgOOpPMnTYKgRZJvJPR ot4UqcvYvi8rcGOHapxo7rNe8BiDCbN6wMj7Ms56LyUU0CjT8P0J3oJHm CTYpRDs35xEmfL47lYcVgXNqBzPRb+0luttyXN/gTwxZ2xnjhgZMYu0Ro ISf/nbpsXg8wdrdZdKVEdLNCRVywLEosy9mqR5lLO3dRQ0YDgr4C1wVNS Q4bD2VE6MwvNQL3h6WMUSBZNX03AVEnFUhn/97C2ddR3QBFHthOE5rMJ8 nQ3QZN/RYvpAZFj19VuDspWiN/xdBtqGZlM8pTOS05VGtaec9sTPRjZr9 g==; X-IronPort-AV: E=Sophos;i="6.06,194,1705359600"; d="scan'208";a="35660989" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 29 Feb 2024 11:08:56 +0100 Received: from steina-w.localnet (steina-w.tq-net.de [10.123.53.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id C6BDA280071; Thu, 29 Feb 2024 11:08:55 +0100 (CET) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li , Dong Aisheng , Frank Li Subject: Re: [PATCH 1/4] arm64: dts: imx8: add cm40 subsystem dtsi Date: Thu, 29 Feb 2024 11:08:55 +0100 Message-ID: <8387443.NyiUUSuA9g@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20240228-m4_lpuart-v1-1-9e6947be15e7@nxp.com> References: <20240228-m4_lpuart-v1-0-9e6947be15e7@nxp.com> <20240228-m4_lpuart-v1-1-9e6947be15e7@nxp.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240229_020901_470810_7379F663 X-CRM114-Status: GOOD ( 18.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Frank, thanks for the patch. Am Mittwoch, 28. Februar 2024, 20:54:57 CET schrieb Frank Li: > From: Dong Aisheng > = > Add cm40 subsystem dtsi. > = > Signed-off-by: Dong Aisheng > Signed-off-by: Frank Li > --- > arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi | 67 +++++++++++++++++++= ++++++ > arch/arm64/boot/dts/freescale/imx8dxl.dtsi | 2 + > arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 1 + > 3 files changed, 70 insertions(+) > = > diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi b/arch/arm64= /boot/dts/freescale/imx8-ss-cm40.dtsi > new file mode 100644 > index 0000000000000..b1d626862ddf8 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi > @@ -0,0 +1,67 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Copyright 2019 NXP > + * Dong Aisheng > + */ > + > +#include > + > +cm40_subsys: bus@34000000 { > + compatible =3D "simple-bus"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges =3D <0x34000000 0x0 0x34000000 0x4000000>; You should set interrupt-parent =3D <&cm40_intmux> here already. So you can skip it for all subsequent nodes, but the cm40_intmux itself. > + > + cm40_ipg_clk: clock-cm40-ipg { > + compatible =3D "fixed-clock"; > + #clock-cells =3D <0>; > + clock-frequency =3D <132000000>; > + clock-output-names =3D "cm40_ipg_clk"; > + }; > + > + cm40_i2c: i2c@37230000 { > + compatible =3D "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; > + reg =3D <0x37230000 0x1000>; > + interrupts =3D <9 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-parent =3D <&cm40_intmux>; I personally prefer the parent to be stated first. > + clocks =3D <&cm40_i2c_lpcg 0>, > + <&cm40_i2c_lpcg 1>; > + clock-names =3D "per", "ipg"; > + assigned-clocks =3D <&clk IMX_SC_R_M4_0_I2C IMX_SC_PM_CLK_PER>; > + assigned-clock-rates =3D <24000000>; > + power-domains =3D <&pd IMX_SC_R_M4_0_I2C>; > + status =3D "disabled"; > + }; > + > + cm40_i2c_lpcg: clock-controller@37630000 { Please sort the nodes by bus address. > + compatible =3D "fsl,imx8qxp-lpcg"; > + reg =3D <0x37630000 0x1000>; > + #clock-cells =3D <1>; > + clocks =3D <&clk IMX_SC_R_M4_0_I2C IMX_SC_PM_CLK_PER>, > + <&cm40_ipg_clk>; > + clock-indices =3D , ; > + clock-output-names =3D "cm40_lpcg_i2c_clk", > + "cm40_lpcg_i2c_ipg_clk"; > + power-domains =3D <&pd IMX_SC_R_M4_0_I2C>; > + }; > + > + cm40_intmux: intmux@37400000 { > + compatible =3D "fsl,imx-intmux"; > + reg =3D <0x37400000 0x1000>; > + interrupts =3D , > + , > + , > + , > + , > + , > + , > + ; > + interrupt-controller; > + interrupt-parent =3D <&gic>; > + #interrupt-cells =3D <2>; > + clocks =3D <&cm40_ipg_clk>; > + clock-names =3D "ipg"; > + power-domains =3D <&pd IMX_SC_R_M4_0_INTMUX>; > + status =3D "disabled"; > + }; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8dxl.dtsi b/arch/arm64/boot= /dts/freescale/imx8dxl.dtsi > index a0674c5c55766..9d49c75a26222 100644 > --- a/arch/arm64/boot/dts/freescale/imx8dxl.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8dxl.dtsi > @@ -5,6 +5,7 @@ > = > #include > #include > +#include > #include > #include > #include > @@ -231,6 +232,7 @@ xtal24m: clock-xtal24m { > }; > = > /* sorted in register address */ > + #include "imx8-ss-cm40.dtsi" > #include "imx8-ss-adma.dtsi" > #include "imx8-ss-conn.dtsi" > #include "imx8-ss-ddr.dtsi" > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot= /dts/freescale/imx8qxp.dtsi > index 10e16d84c0c3b..c49fb1282ae65 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > @@ -316,6 +316,7 @@ map0 { > = > /* sorted in register address */ > #include "imx8-ss-img.dtsi" > + #include "imx8-ss-cm40.dtsi" cm40 subsystem is bus@34000000, so IMHO it should go below vpu subsystem, which is vpu@2c000000. Best regards, Alexander > #include "imx8-ss-vpu.dtsi" > #include "imx8-ss-gpu0.dtsi" > #include "imx8-ss-adma.dtsi" > = > = -- = TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel