Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3976256pxf; Tue, 6 Apr 2021 05:13:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3rv0qUApYYIWJzjL0RWgAaS/Yaf0kfilgGrQshLieIRFNq4cpLc0UdR12ChXXHBEkw1f1 X-Received: by 2002:a17:907:e87:: with SMTP id ho7mr33189616ejc.2.1617711200048; Tue, 06 Apr 2021 05:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617711200; cv=none; d=google.com; s=arc-20160816; b=vLCr9maHrnlOtSqeOn1uoJpIXBDbiyNtCckiamSMcNJmONfsTYkPM6h/OmATNSyplF DW0UXv3fVOZsLjtEIEC4V0wasySDWWW/cXLHeJRp/RGMG6afS7MbNlqwj5J7NB1ZdhY3 OGYG8y9y99wNIAueXBrANlu7YFJKYupmos3TUWxpJfMqWozmOzJappRoiP8BGlr4Ewrr LkOXnkR/ffRQOZbP4ntuQkNM3IuFCm5Hq8KyxeAkj5KMWDCLtRPDUtdLxbshtXjWtB0B Fogv/u2toc/ianRtXODOhAA34nsRvXJ3W8UREkOqO2n1e7jP19J2RB4Zf7N5uMSg3OJU x1wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PCkx1Hy5ZNunfJ03zaMyAAsCJ1wPoE7EfbDV0oUNaa8=; b=MltXkmdX3NKwFHhzny9IY4AN7R78AIW5XQxymwI63uCzZdJovVPzuqZnpWUFGE1wQD GJlaqA63XdWoePQtPuRhFWkrBUZIn5buf5fYBaQZEYbcNQkVkI30tBZb3CtGStsqqAvl lOVG2suOABstQKXEM3XfoMhVClT8UT8hwDVDPL7z3rzKsZNvaQCli4fIGN2PVU2gS9LE ySpB53/zh9+XIAQ+PVmJ4Q5u/iU5w/7vyQImx6SPMSqkjWaTsJofN5gi6FCAQem+NKk3 vzgOvXp72DRKUlyZMObHr4Upn9+JsjkJVK2DkfFFKmrf3MnFyFSKIHkS4dGGNIoOIbz9 OAag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c8Wza6l9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si16789944eds.345.2021.04.06.05.12.55; Tue, 06 Apr 2021 05:13:20 -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=@gmail.com header.s=20161025 header.b=c8Wza6l9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243128AbhDFBeM (ORCPT + 99 others); Mon, 5 Apr 2021 21:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242044AbhDFBeG (ORCPT ); Mon, 5 Apr 2021 21:34:06 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DD3BC06174A; Mon, 5 Apr 2021 18:33:58 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id r193so10914764ior.9; Mon, 05 Apr 2021 18:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PCkx1Hy5ZNunfJ03zaMyAAsCJ1wPoE7EfbDV0oUNaa8=; b=c8Wza6l9543trVN8mpcKblGAxlLHLxdABy5DN63shJgi3XfBFtLGYuOQmO5wp2Qm1k GBtIR9ZUy6nImKTgbOCOvNhoBaNUzqwbEVFpUhIaeLoqAOF4f4g23V2cKyDQ89WRVxYh NU576n0HMTAs0uRtAkn2BFIdyJ0cn4wAAsa+pAbTvgcMnQ1REdST6dWp0II75qQI7Juf UMPkWyWsiRqtj1cv/g+2FRyzS7P1VjTPh/VzmBXkk4rcQS+NPJO7zJyReWFuiTxaTev0 P8gcXbAyY+PpEQ6/zefd0lAHVxaSpw6IhtPF+ODDeo+cu5w08x4mtcJCo9oAbfUOI6Q/ zJbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PCkx1Hy5ZNunfJ03zaMyAAsCJ1wPoE7EfbDV0oUNaa8=; b=Fh9io87D6qMqUsZQjDuIiVY6MZRo+2tQI9HJ/3sGwa/mUvao7oH+YN7eJM1zUorVmV 9XuRw6uFzc5mlUQ0owEuQ9a3m1cNrvKnzFyaHNf6QLNya9r6Cp5gcR0UKesTN3qCxNQK htMlBpDnWFWw8vTV4sXb0PXGhLnu03A493MLEcJz6tCXqb1c2V7tdJetkHnjkziH7nVR C8vYbSW5n11OKaBVh8sm6tgWl6TR7eEu0GZHyipiCHdLLfNzywmFmFSHg2nGoOmdsXvw VxuJNgeNsfUM9mCNStHFnDLvf7Vj1LJ7t8hFTC75gHdkWZEQ60hAVTxhBvrXJ2hGTDFG 10dQ== X-Gm-Message-State: AOAM530bT8UM3FtDwFZGaHVBnjbn70LR5GRJdZAAYQJePKr7VhlyROg+ bfNdwhhJCUiG61Z7ldNzZBs= X-Received: by 2002:a6b:b447:: with SMTP id d68mr21325741iof.87.1617672837766; Mon, 05 Apr 2021 18:33:57 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:987f:5ec9:b10c:df19]) by smtp.gmail.com with ESMTPSA id s16sm11821167ilq.87.2021.04.05.18.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 18:33:56 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: imx8mn: Add spba1 bus Date: Mon, 5 Apr 2021 20:33:42 -0500 Message-Id: <20210406013344.124255-1-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"; #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