Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp450752ybh; Wed, 11 Mar 2020 04:23:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtwXJ6yVlV+8CQdHqd71MfcAv91b5QJTUTfMQQAihMO2MP0HwXOaoeinP16Qieb+39EMpTJ X-Received: by 2002:aca:b1d5:: with SMTP id a204mr1540262oif.82.1583925802775; Wed, 11 Mar 2020 04:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583925802; cv=none; d=google.com; s=arc-20160816; b=e6goxNSw2BtiEQWWIOhYxPbLIWYA6ad7D9tx4AcXHbfh9ZuWUxO6YQPm9M+IzVlZXi pfFVtxuCOnY8XbCwDxlYDFW9bZg32yNGhb3F5S8PCTq/lab2HwVUzX8SmCkVBgcRqGKB XaEA/hFd1BUAwVQWWpG2Uj3tUZ8jwuM7AKhDIhXGFmXqy/Pltd3MCYCNky9Vswq4W1vA xy08srFPDv/lMGzJk9hKiI23gJKQlJPQbEz17O9WAZr7/aIr13vU5CrFVkFm0tmo0Rxy zyFg1qtyoq5rBrVpdRwrSZb9J8eGLF0ZmdzeDUhlp9w5HTnMYfnsCd2PchS/7A/CpPAe +Ang== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=kfq9Yn593vY73lf7kotn1Wgl0vW6XV5gSLlcGjdwfno=; b=E/RO5ZGvyJHmZaU1Bcw+7P3vbET45W8XJcJ4G6STVzTfbN06nUNWt4EX0ytjNwWcVY kHzdAsrFXxeiJN2vjkek7RwAp3wG112ku3N8yuiqFq29zS0RkwRwzGI5CSLt3sMy+C27 gGEFwr/nHKiff300uXqYmB/na+jIekUvAa7x4oJ9hEFn+Y8tLV7JKbfNGnhJ+G6zQz3e EyYXnxKgoeO12xJ3rY9YhKrGl7cYt9Ch5Px9hMnfNCAKuihd7YTKfEXF/j2Fle12rAhy JT2VELMM/Szh4l87+qjxVAWrwnkgqM5OT6qQ3o62ipegmGaBkU1w+MZq4x8lYfd+n/ix 3cOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si923428oie.187.2020.03.11.04.23.11; Wed, 11 Mar 2020 04:23:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729146AbgCKLWj (ORCPT + 99 others); Wed, 11 Mar 2020 07:22:39 -0400 Received: from foss.arm.com ([217.140.110.172]:48308 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbgCKLWj (ORCPT ); Wed, 11 Mar 2020 07:22:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5F5BC1FB; Wed, 11 Mar 2020 04:22:38 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A60F3F6CF; Wed, 11 Mar 2020 04:22:37 -0700 (PDT) Date: Wed, 11 Mar 2020 11:22:35 +0000 From: Andre Przywara To: Chen-Yu Tsai Cc: Maxime Ripard , devicetree@vger.kernel.org, Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/3] ARM: dts: sun8i: r40: Move SPI device nodes based on address order Message-ID: <20200311112235.62d89683@donnerap.cambridge.arm.com> In-Reply-To: <20200310174709.24174-4-wens@kernel.org> References: <20200310174709.24174-1-wens@kernel.org> <20200310174709.24174-4-wens@kernel.org> Organization: ARM X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Mar 2020 01:47:09 +0800 Chen-Yu Tsai wrote: > From: Chen-Yu Tsai > > When the SPI device nodes were added, they were added in the wrong > location in the device tree file. The device nodes should be sorted > by register address. > > Move the devices node to their correct positions within the file. Diffed the minus and plus lines, it's indeed a pure move: Reviewed-by: Andre Przywara Cheers, Andre > > Fixes: 554581b79139 ("ARM: dts: sun8i: R40: Add SPI controllers nodes and pinmuxes") > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/boot/dts/sun8i-r40.dtsi | 104 +++++++++++++++---------------- > 1 file changed, 52 insertions(+), 52 deletions(-) > > diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi > index 81cc92ddc78b..f0ede4f52aa3 100644 > --- a/arch/arm/boot/dts/sun8i-r40.dtsi > +++ b/arch/arm/boot/dts/sun8i-r40.dtsi > @@ -198,6 +198,32 @@ nmi_intc: interrupt-controller@1c00030 { > interrupts = ; > }; > > + spi0: spi@1c05000 { > + compatible = "allwinner,sun8i-r40-spi", > + "allwinner,sun8i-h3-spi"; > + reg = <0x01c05000 0x1000>; > + interrupts = ; > + clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; > + clock-names = "ahb", "mod"; > + resets = <&ccu RST_BUS_SPI0>; > + status = "disabled"; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + > + spi1: spi@1c06000 { > + compatible = "allwinner,sun8i-r40-spi", > + "allwinner,sun8i-h3-spi"; > + reg = <0x01c06000 0x1000>; > + interrupts = ; > + clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; > + clock-names = "ahb", "mod"; > + resets = <&ccu RST_BUS_SPI1>; > + status = "disabled"; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + > csi0: csi@1c09000 { > compatible = "allwinner,sun8i-r40-csi0", > "allwinner,sun7i-a20-csi0"; > @@ -307,6 +333,19 @@ crypto: crypto@1c15000 { > resets = <&ccu RST_BUS_CE>; > }; > > + spi2: spi@1c17000 { > + compatible = "allwinner,sun8i-r40-spi", > + "allwinner,sun8i-h3-spi"; > + reg = <0x01c17000 0x1000>; > + interrupts = ; > + clocks = <&ccu CLK_BUS_SPI2>, <&ccu CLK_SPI2>; > + clock-names = "ahb", "mod"; > + resets = <&ccu RST_BUS_SPI2>; > + status = "disabled"; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + > ahci: sata@1c18000 { > compatible = "allwinner,sun8i-r40-ahci"; > reg = <0x01c18000 0x1000>; > @@ -364,6 +403,19 @@ ohci2: usb@1c1c400 { > status = "disabled"; > }; > > + spi3: spi@1c1f000 { > + compatible = "allwinner,sun8i-r40-spi", > + "allwinner,sun8i-h3-spi"; > + reg = <0x01c1f000 0x1000>; > + interrupts = ; > + clocks = <&ccu CLK_BUS_SPI3>, <&ccu CLK_SPI3>; > + clock-names = "ahb", "mod"; > + resets = <&ccu RST_BUS_SPI3>; > + status = "disabled"; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + > ccu: clock@1c20000 { > compatible = "allwinner,sun8i-r40-ccu"; > reg = <0x01c20000 0x400>; > @@ -692,58 +744,6 @@ i2c4: i2c@1c2c000 { > #size-cells = <0>; > }; > > - spi0: spi@1c05000 { > - compatible = "allwinner,sun8i-r40-spi", > - "allwinner,sun8i-h3-spi"; > - reg = <0x01c05000 0x1000>; > - interrupts = ; > - clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; > - clock-names = "ahb", "mod"; > - resets = <&ccu RST_BUS_SPI0>; > - status = "disabled"; > - #address-cells = <1>; > - #size-cells = <0>; > - }; > - > - spi1: spi@1c06000 { > - compatible = "allwinner,sun8i-r40-spi", > - "allwinner,sun8i-h3-spi"; > - reg = <0x01c06000 0x1000>; > - interrupts = ; > - clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; > - clock-names = "ahb", "mod"; > - resets = <&ccu RST_BUS_SPI1>; > - status = "disabled"; > - #address-cells = <1>; > - #size-cells = <0>; > - }; > - > - spi2: spi@1c17000 { > - compatible = "allwinner,sun8i-r40-spi", > - "allwinner,sun8i-h3-spi"; > - reg = <0x01c17000 0x1000>; > - interrupts = ; > - clocks = <&ccu CLK_BUS_SPI2>, <&ccu CLK_SPI2>; > - clock-names = "ahb", "mod"; > - resets = <&ccu RST_BUS_SPI2>; > - status = "disabled"; > - #address-cells = <1>; > - #size-cells = <0>; > - }; > - > - spi3: spi@1c1f000 { > - compatible = "allwinner,sun8i-r40-spi", > - "allwinner,sun8i-h3-spi"; > - reg = <0x01c1f000 0x1000>; > - interrupts = ; > - clocks = <&ccu CLK_BUS_SPI3>, <&ccu CLK_SPI3>; > - clock-names = "ahb", "mod"; > - resets = <&ccu RST_BUS_SPI3>; > - status = "disabled"; > - #address-cells = <1>; > - #size-cells = <0>; > - }; > - > gmac: ethernet@1c50000 { > compatible = "allwinner,sun8i-r40-gmac"; > syscon = <&ccu>;