Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp47497lqe; Fri, 5 Apr 2024 12:07:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXd6XjUui6Bfo9f4rrLGZPEx0B8Z5+xDUrIN0QmjOKe5TeZQcYinzZnwU4hgoXrpDo6tkLwro344H1JQ0XPB9NmXmy73RV3zQx+CFgThA== X-Google-Smtp-Source: AGHT+IHpc2kYW84KYx3jsjiFHW0mxJBpDuyGFpXJqOk6d5viKzFSfiHVN6f9/Za1d5eZ7JtpR0ln X-Received: by 2002:a50:f615:0:b0:56e:2f2c:e249 with SMTP id c21-20020a50f615000000b0056e2f2ce249mr1775789edn.7.1712344032508; Fri, 05 Apr 2024 12:07:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712344032; cv=pass; d=google.com; s=arc-20160816; b=XPHftRda6VdrwYyO/1fdnILtT48WmRlxcRAq44tsYJzSudHU4zNxbPeRHHvwIxyUu8 GA6E8HL11DpTVJm3Rn+MSrMkyiGHqpatDg0dEH79WqxvqIPojXkDVLrgNYjN6h44ZusN GCBAmK75vL2YV2F2xReQlCL2sQa7wwduKpOJu1JobxJVnx1Sf0b3WoiTu7HyVSVFSC4W akABaJj/LTTjKanjCnBchmP7IO0eJHkL+2ACNtBa50TBBmHUvoeEQXC47j3E06YuUR8R RmwUq1Q4e455t8MlojZQ5nvP37Fso+mSzrXGrtowQZTcHNYTWfvsC7WnuxBCbPlWP8cF F3QQ== 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:message-id :date:subject:cc:to:from:dkim-signature; bh=dyfJRA6IwMt71JxprJa6vs8xxYfyNAYYrDNV4QFcf60=; fh=uU/PpbjAz1lA+Zbmj8tOHcD5XfXnmtKly4A6s5pircw=; b=X16UELBd7Tyciem5FZuTKCcr9mkXTMMjI6YOO7cEcP2FZ6qr0b5YcOUfR9taLur+tK IZkBFUnI9oEYH7c+Ku7XdFSStVclgmSxaSboj1H1RJgW741s4eWQGU7tM/na/0X34XXw MADu7yteKIcaWzkCRgfkNldi97QCf/smP3qLI9QEWcb59ZwYuF41rK58tkArudYYsSF5 TupuOyfCEDhnFhKp1mS7TKzdFm/KAC/yj9hQz7TPWBs0bttzjukWE73rqA8MVV1MHU/g rMBf/cPHx1H2GY0rvmzjte0D/OmoYbMYwV8KG9yJ5JxrBS6x8R9r+SLSw/ligcX4QGgO aG4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KFpJZj0c; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c102-20020a509fef000000b0056e3df67505si216104edf.507.2024.04.05.12.07.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 12:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KFpJZj0c; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 3CDF61F21FC6 for ; Fri, 5 Apr 2024 19:07:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CC7217556C; Fri, 5 Apr 2024 19:05:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KFpJZj0c" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7E484172BDC; Fri, 5 Apr 2024 19:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712343923; cv=none; b=MrSsqyqC1aJekQS/jgz9S2dh81477zhnlyV183iMoPx83BsWFwNg7rEWPM6/O9VXsSW+BDqrOra15HUw0FTtNhug2nDrebgYrsNrydRBMb5sU7+LAKBQK2Gnfhyrl1yvbdCLXYB0Oqun8RabKaNUFMwTXgS1V5ouo0cdHba0KK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712343923; c=relaxed/simple; bh=jwxmmxNHFZOm86tID6RkRH1tX1Y9t5Sx2emFDKwZGDg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OwFMf8PqQdI37dEpg8ndIQibXzYWCBNgJMVIC5M8NLTIP5k+8YDx3Tiy5D8uudsnKBIa+OlM1jovbZjP2ujwBckVPBa+/HIOnzCV9Obc5Exb6xjmFBER67x04Bt9LBLh+K37TJYAu4RQbsiFYqc7lRXQd/m15x7r0ZkB1tuZTgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KFpJZj0c; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F730C43390; Fri, 5 Apr 2024 19:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712343923; bh=jwxmmxNHFZOm86tID6RkRH1tX1Y9t5Sx2emFDKwZGDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KFpJZj0cFqnA3xtAdQ5A3IihPPozY7ZroM/W+XV7jJOOCFEDG/3vWw8UNyZHXhX9N AsuHMXy/Zp4BLim8k3H/8MNbCKSK9mMAokGnccHV0+9xlYcWx3nV59tRyDzj9RaZ// 7oTk8Dtg1XHW/Jh56MofSkq4xoaoWlUaNmNT2DRaJV2+KlAG3LeKTnOSIvVFRhwgMo obYRr5RWf57V6hvY1AoTHGxl214PUGbGDxdeX+JPNpHq5Opl0fHrXrmgiULQrEFu+n tBO/dQh9+MSTXUrORv2BMN//cK5iRra/Imne44nTbz8u3g/sJVOlxKMbULQGQ4gSMX DWhk58TqTdVSA== From: Krzysztof Kozlowski To: Conor Dooley , Nicolas Ferre , Claudiu Beznea , Rob Herring , Krzysztof Kozlowski , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Bjarni Jonasson , "David S. Miller" , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: horatiu.vultur@microchip.com, steen.hegelund@microchip.com, Krzysztof Kozlowski Subject: [RFT PATCH v2 10/10] arm64: dts: microchip: sparx5_pcb135: drop duplicated NOR flash Date: Fri, 5 Apr 2024 21:04:19 +0200 Message-Id: <20240405190419.74162-10-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240405190419.74162-1-krzk@kernel.org> References: <20240405190419.74162-1-krzk@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Since beginning the DTS extended the SPI0 in two places adding two SPI muxes, each with same SPI NOR flash. Both used exactly the same chip-selects, so this was clearly buggy code. Then in commit d0f482bb06f9 ("arm64: dts: sparx5: Add the Sparx5 switch node") one SPI mux was removed, while keeping the SPI NOR flash node. This still leaves duplicated SPI nodes under same chip select 0, reported by dtc W=1 warnings: sparx5_pcb135_board.dtsi:92.10-96.4: Warning (unique_unit_address_if_enabled): /axi@600000000/spi@600104000/flash@0: duplicate unit-address (also used in node /axi@600000000/spi@600104000/spi@0) Steen Hegelund confirmed that in fact there is a SPI mux, thus remove the duplicated node without the mux. Signed-off-by: Krzysztof Kozlowski --- Not tested on hardware Changes in v2: 1. Remove SPI node without mux. --- arch/arm64/boot/dts/microchip/sparx5_pcb135_board.dtsi | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/arm64/boot/dts/microchip/sparx5_pcb135_board.dtsi b/arch/arm64/boot/dts/microchip/sparx5_pcb135_board.dtsi index 20016efb3656..af2f1831f07f 100644 --- a/arch/arm64/boot/dts/microchip/sparx5_pcb135_board.dtsi +++ b/arch/arm64/boot/dts/microchip/sparx5_pcb135_board.dtsi @@ -87,15 +87,6 @@ i2cmux_s32: i2cmux-3-pins { }; }; -&spi0 { - status = "okay"; - flash@0 { - compatible = "jedec,spi-nor"; - spi-max-frequency = <8000000>; - reg = <0>; - }; -}; - &spi0 { status = "okay"; spi@0 { -- 2.34.1