Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1716186lqg; Mon, 4 Mar 2024 01:12:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVuuAVDRaG8lwrBVoPqljXibfz74vRCJwU2AsNdPxzj0fRq8xodRRcczw3CUEKZGHlP2V5KMsJE3Q0O0y47TuO+geVrSGRC2ne//FAOZw== X-Google-Smtp-Source: AGHT+IHODHzXWNuDlAr0GSUx1F3F9h7Qe0HNU4rhvKlBQucQYEjfKQl8B06KzZjed5kHfDE0oA/r X-Received: by 2002:a17:906:3c4c:b0:a44:2636:2c68 with SMTP id i12-20020a1709063c4c00b00a4426362c68mr4822542ejg.13.1709543538791; Mon, 04 Mar 2024 01:12:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709543538; cv=pass; d=google.com; s=arc-20160816; b=1C3JNXthAef5fUePSs3emIswqtHhcovfswwfjpp6qrctXWn0HjmNmSe6lXLr6C8pZv TeeITanxB/NKhrS68pEwAST7RqZiM827HMFtK+9roIVjQdFfHRt2u5+YL0VAhHTW5sis sgiNPb3Tyf/fFEfcn4WhwpGa3Xrgd5M3M0M2aIK3ioAVb5PjaoCa+J8Y+LBAFPHcd+aW 8f/El8DIap2/YbGmjg6eimAc04ZA8R095V4ao62ZCtoDNBEHuRWsNKU6dUVxy9EfPRt3 CTmVEZLKZTl1fwsE4RWBNDzikntZoJzz9jhPBJayNZe5cGiUhnMDloZZfQBgcQGm2qaI O5jg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to :organization:message-id:date:subject:cc:to:from:dkim-signature; bh=nbX+hWAcORuUJGtFt2cByM1P4IXCj3Ob/hyO09aRE3k=; fh=bBdPUCtLrqZFn+cfNbJ5C3B0s72sbcqbAihdCDtGZl8=; b=KwwtKsgQmutyUIfLFvW24EDqCXAO6li2M9tveujVAx3qDhke+OgIsvclPFh3+Pjy+4 dfREqetUWIPquyyXHwmH6xT2/TYUF5MepGFg3MjPP+EU4ud/f6AurT0LJXn/LJGlriih SBwwPLKw9MRQgBhQkJt2or62NBSlBDY+zMzpUC9ApZKgCyfwgyX0AULDnVL02NqWZ5YX OkBgiWWApTfc2Rhb2yFi1g/UAXKRYqP1tW+z4VR1Yd+iVa2b+6f8/tln6vG4c3+OldVz UQio4ybjTnFviIN1zsTmYv42jklC3BkJ76BYNWYoWKBqJmnAvA8ixyJYLC65fOGkmxlY Hj7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=ZtaNkAYo; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-90279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qw30-20020a1709066a1e00b00a4409c3eaa4si3704876ejc.810.2024.03.04.01.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:12:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=ZtaNkAYo; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-90279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5FC821F20845 for ; Mon, 4 Mar 2024 09:12:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CE871B976; Mon, 4 Mar 2024 09:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="ZtaNkAYo" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (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 57AC31B7E8; Mon, 4 Mar 2024 09:12:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709543528; cv=none; b=s1SCJWP9+Hd5Abrq7y7wahz+xKpQwTi8WbSmMu6DbiqDmEptRgapeHqDUHu8wji7py0XlWHIhfOdvTfoRMlJFwrc3Q+HerVqNYKNQmKP+8JuibrNrUR4eU7LHOv3W8vN1WNGP9n6jpcQ3PVHn4WQDV8d/luPZbhJ+OvtDI1Y314= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709543528; c=relaxed/simple; bh=fC8sKkBs7GE4sHdOuIW0zqhWGl2e7aLtrNEvA/GFT88=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DQh3nm0qcnle0v+h3FlfZfrTB72eBsHby9Y2FgJ6u/cJfpo7wOj4i3PqfqvuHVjPkPYFXqGTVTgmuVWWelvnfFYJQet0j2djaO8hjnpvOdMHL0ZuUxgE4kK+WYaXO1823y7stsvgPvX1ao9YHOfe0hq3lX3PYrDKjDxZhysMd8U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=ZtaNkAYo; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1709543525; x=1741079525; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nbX+hWAcORuUJGtFt2cByM1P4IXCj3Ob/hyO09aRE3k=; b=ZtaNkAYo/Fj6+BnffXAeVTgkpOoCWpKnovaYzq104KHpjHr4A+sNHZIR yEYLs/QoNyCOnE9/L+drGILrEBqdBHHjQB4iqC/bWLOmiJ3DAIa2E++Xe 5e6ZRE6TAKMfHEHW2ErJNSwaJWmHH+Fs+EK/mmq9t5XFVxtxZLYH+Cn66 NStWlfI9jpB8j8XoxmoTF+XB2iIk4BIXDjvV6StzU1mPkmLmMzRADz67O TtLsEbBDpcnr6alN8f2R+6iw5JMEYY8PtkAInA3GE4RpehXL/RzIe/o9F sHleNyg0j2VbY1Eg29iFwmEZu6QrZYk1VBnKfc9pDzVC0Y+j+DfkQ9xzu Q==; X-IronPort-AV: E=Sophos;i="6.06,203,1705359600"; d="scan'208";a="35711019" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 04 Mar 2024 10:11: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 68946280071; Mon, 4 Mar 2024 10:11:56 +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, Frank Li Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dong Aisheng , Frank Li Subject: Re: [PATCH v2 1/4] arm64: dts: imx8: add cm40 subsystem dtsi Date: Mon, 04 Mar 2024 10:11:57 +0100 Message-ID: <5761273.DvuYhMxLoT@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20240302-m4_lpuart-v2-1-89a5952043b6@nxp.com> References: <20240302-m4_lpuart-v2-0-89a5952043b6@nxp.com> <20240302-m4_lpuart-v2-1-89a5952043b6@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Hi Frank, thanks for the update. Am Samstag, 2. M=E4rz 2024, 17:27:44 CET schrieb Frank Li: > From: Dong Aisheng >=20 > Add cm40 subsystem dtsi. >=20 > 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(+) >=20 > 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..68043ab74e765 > --- /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_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_subsys: bus@34000000 { > + compatible =3D "simple-bus"; > + interrupt-parent =3D <&cm40_intmux>; I would have put that below ranges, but it might be just personal preferenc= e. > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges =3D <0x34000000 0x0 0x34000000 0x4000000>; > + > + cm40_i2c: i2c@37230000 { > + compatible =3D "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; > + reg =3D <0x37230000 0x1000>; > + interrupts =3D <9 IRQ_TYPE_LEVEL_HIGH>; > + 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_intmux: intmux@37400000 { > + compatible =3D "fsl,imx-intmux"; > + reg =3D <0x37400000 0x1000>; > + interrupts =3D , > + , > + , > + , > + , > + , > + , > + ; > + interrupt-controller; > + interrupt-parent =3D <&gic>; Please put this above interrupt property, you are mixing interrupt properties of the device itself with interrupt-controller properties. With these things addressed: Reviewed-by: Alexander Stein > + #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"; > + }; > + > + cm40_i2c_lpcg: clock-controller@37630000 { > + 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>; > + }; > +}; > 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 @@ > =20 > #include > #include > +#include > #include > #include > #include > @@ -231,6 +232,7 @@ xtal24m: clock-xtal24m { > }; > =20 > /* 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..0313f295de2e9 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > @@ -317,6 +317,7 @@ map0 { > /* sorted in register address */ > #include "imx8-ss-img.dtsi" > #include "imx8-ss-vpu.dtsi" > + #include "imx8-ss-cm40.dtsi" > #include "imx8-ss-gpu0.dtsi" > #include "imx8-ss-adma.dtsi" > #include "imx8-ss-conn.dtsi" >=20 >=20 =2D-=20 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/