Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3128084pxj; Mon, 10 May 2021 19:47:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOZwzl4n48+PiA/XecqJQmWIy8Sghp5d2WKSs2CHWY8+p/PekS2zU49uI0vL1u3GkgvPq3 X-Received: by 2002:a05:6402:5158:: with SMTP id n24mr32923396edd.74.1620701243500; Mon, 10 May 2021 19:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620701243; cv=none; d=google.com; s=arc-20160816; b=MR80kVtErBW8xTcD5EV4aZqrrPoijgVnTGx33aLGpAutc1pIbDQXmIwWmnxgCVXFHL q0wvF9hiRSLIunCzgWXIatagc9uuFZsidDKqENWQfwDvdY5WfQ6JNeY7GEQzCBjwqf0F +/Zd1mn8cfUsvLjGUyFnwhfBOt0EaoVtuy4Ss2i9jSd/pNBFZrQvr+/KHyNlCf2QNXZO iKFasmEThO0OuiVjoZnbU5V/Y7SdHsuV38lk+X78DacFiwOBHS1MHfkAl+ISq930L6TI dawgag0gyhnQWRpywJFTjOYs5ztXrOu2hYAC23xUlN2ATZepEuQFR1Fz1EIGyr0qVdD8 N2IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=88cbGds0xI7pUTkn54wV62kkPGZnDtjyQeKdgghZYmA=; b=zhgrVqFLp3rPT/wjJVBYWHa7bdXoHSpj16LB2kfN97Y5z1Tic2Ketxy8jIQuI0CHfg bGBqNQLmWt1n9tuD2OHFIFJJYqkJ+QDPA4lKCN9fHp3ajkZUBW5mGfClAjLdGGcwOLVf 7tId+2lbekQhvj3mBlLU/i57NL+2Ln89Qlrb10wvcCFsYjpsvag+U3vSkjrk322KWALV P79cYYewVz9cMdy+Efod2fF6ZJRgy5elmzTrLqt1n2uIv7dl4Psg7u7jFrPPwGndpsdf tt2G+h+0iJzKL84xA8WbbpILDGCT6uZp3vIet1sjV/Tae7M2v5xu89QMUjgllJvCe/N4 PI8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=csDUpbIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si14566195ejj.292.2021.05.10.19.47.00; Mon, 10 May 2021 19:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=csDUpbIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbhEKCrS (ORCPT + 99 others); Mon, 10 May 2021 22:47:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:44014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbhEKCrQ (ORCPT ); Mon, 10 May 2021 22:47:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5E89A6157F; Tue, 11 May 2021 02:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620701170; bh=bacp6zQsCI5jt/Rek+mjl2af4biDb3FKuxJ5Ls8K6Uo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=csDUpbIoiXOE2t9V7lDqWw6oWfTx/+R5GWApUq5l+hnd2tDkQnoffKcJxOdSGtLz7 yt/+OvBgdLmRsrYsSJ3YfUZyrKJN3vnOAn3CXSM2c/XrHbB+BTvFXhNyYv1ftQ35Cx encBPWZAMTC+awPSrhtpUCh5Xzgj6NMDQWdbNWJLeyMAFJ54+37o9hrM5HmEueslQ4 3fWVDAbLkXjAJ/rAQ/YayXKUST87gldmTKimBas1nlXX1tYMkaZiX8yQQxnirLc9G+ 9AbHvcLyyaO09D9MzMdaRUrv1yD8/CcSoOeRU2RK/GkXeLoXmFug/mXeH/bAsVxItQ JEAq3gzCEwASA== Date: Tue, 11 May 2021 10:46:04 +0800 From: Shawn Guo To: Adam Ford Cc: linux-arm-kernel@lists.infradead.org, Rob Herring , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] arm64: dts: imx8mn: Add spba1 bus Message-ID: <20210511024604.GE3425@dragon> References: <20210406013344.124255-1-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406013344.124255-1-aford173@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 05, 2021 at 08:33:42PM -0500, Adam Ford wrote: > The i.MX8MN has an SPBA bus which covers much of the audio, but > there is a second SPBA bus which covers many of the serial interfaces > like SPI and UARTs currently missing from the device tree. The reference > manual calls the bus handling the audio peripherals SPBA2, and the bus > handling the serial peripherals is called SPBA1. > > Rename the existing spba bus to spba2 and add spba1. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi > index 4dac4da38f4c..e961acd237a8 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi > @@ -255,7 +255,7 @@ aips1: bus@30000000 { > #size-cells = <1>; > ranges; > > - spba: spba-bus@30000000 { > + spba2: spba-bus@30000000 { > compatible = "fsl,spba-bus", "simple-bus"; Just noticed that "fsl,spba-bus" is undocumented, no? Also may I ask if you have a real use case for this bus node? Shawn > #address-cells = <1>; > #size-cells = <1>; > @@ -681,80 +681,88 @@ aips3: bus@30800000 { > #size-cells = <1>; > ranges; > > - ecspi1: spi@30820000 { > - compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi"; > + spba1: spba-bus@30800000 { > + compatible = "fsl,spba-bus", "simple-bus"; > #address-cells = <1>; > - #size-cells = <0>; > - reg = <0x30820000 0x10000>; > - interrupts = ; > - clocks = <&clk IMX8MN_CLK_ECSPI1_ROOT>, > - <&clk IMX8MN_CLK_ECSPI1_ROOT>; > - clock-names = "ipg", "per"; > - dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>; > - dma-names = "rx", "tx"; > - status = "disabled"; > - }; > + #size-cells = <1>; > + reg = <0x30800000 0x100000>; > + ranges; > > - ecspi2: spi@30830000 { > - compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi"; > - #address-cells = <1>; > - #size-cells = <0>; > - reg = <0x30830000 0x10000>; > - interrupts = ; > - clocks = <&clk IMX8MN_CLK_ECSPI2_ROOT>, > - <&clk IMX8MN_CLK_ECSPI2_ROOT>; > - clock-names = "ipg", "per"; > - dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>; > - dma-names = "rx", "tx"; > - status = "disabled"; > - }; > + ecspi1: spi@30820000 { > + compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x30820000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MN_CLK_ECSPI1_ROOT>, > + <&clk IMX8MN_CLK_ECSPI1_ROOT>; > + clock-names = "ipg", "per"; > + dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>; > + dma-names = "rx", "tx"; > + status = "disabled"; > + }; > > - ecspi3: spi@30840000 { > - compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi"; > - #address-cells = <1>; > - #size-cells = <0>; > - reg = <0x30840000 0x10000>; > - interrupts = ; > - clocks = <&clk IMX8MN_CLK_ECSPI3_ROOT>, > - <&clk IMX8MN_CLK_ECSPI3_ROOT>; > - clock-names = "ipg", "per"; > - dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>; > - dma-names = "rx", "tx"; > - status = "disabled"; > - }; > + ecspi2: spi@30830000 { > + compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x30830000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MN_CLK_ECSPI2_ROOT>, > + <&clk IMX8MN_CLK_ECSPI2_ROOT>; > + clock-names = "ipg", "per"; > + dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>; > + dma-names = "rx", "tx"; > + status = "disabled"; > + }; > > - uart1: serial@30860000 { > - compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart"; > - reg = <0x30860000 0x10000>; > - interrupts = ; > - clocks = <&clk IMX8MN_CLK_UART1_ROOT>, > - <&clk IMX8MN_CLK_UART1_ROOT>; > - clock-names = "ipg", "per"; > - dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>; > - dma-names = "rx", "tx"; > - status = "disabled"; > - }; > + ecspi3: spi@30840000 { > + compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x30840000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MN_CLK_ECSPI3_ROOT>, > + <&clk IMX8MN_CLK_ECSPI3_ROOT>; > + clock-names = "ipg", "per"; > + dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>; > + dma-names = "rx", "tx"; > + status = "disabled"; > + }; > > - uart3: serial@30880000 { > - compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart"; > - reg = <0x30880000 0x10000>; > - interrupts = ; > - clocks = <&clk IMX8MN_CLK_UART3_ROOT>, > - <&clk IMX8MN_CLK_UART3_ROOT>; > - clock-names = "ipg", "per"; > - dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>; > - dma-names = "rx", "tx"; > - status = "disabled"; > - }; > + uart1: serial@30860000 { > + compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart"; > + reg = <0x30860000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MN_CLK_UART1_ROOT>, > + <&clk IMX8MN_CLK_UART1_ROOT>; > + clock-names = "ipg", "per"; > + dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>; > + dma-names = "rx", "tx"; > + status = "disabled"; > + }; > > - uart2: serial@30890000 { > - compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart"; > - reg = <0x30890000 0x10000>; > - interrupts = ; > - clocks = <&clk IMX8MN_CLK_UART2_ROOT>, > - <&clk IMX8MN_CLK_UART2_ROOT>; > - clock-names = "ipg", "per"; > - status = "disabled"; > + uart3: serial@30880000 { > + compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart"; > + reg = <0x30880000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MN_CLK_UART3_ROOT>, > + <&clk IMX8MN_CLK_UART3_ROOT>; > + clock-names = "ipg", "per"; > + dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>; > + dma-names = "rx", "tx"; > + status = "disabled"; > + }; > + > + uart2: serial@30890000 { > + compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart"; > + reg = <0x30890000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MN_CLK_UART2_ROOT>, > + <&clk IMX8MN_CLK_UART2_ROOT>; > + clock-names = "ipg", "per"; > + status = "disabled"; > + }; > }; > > crypto: crypto@30900000 { > -- > 2.25.1 >