Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1520323lqz; Mon, 1 Apr 2024 08:39:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnINM9xZOG5wh1DK8MK0Ups/zgQnfU4igRP3vwZawabO/4HJTpgA4vhvqz+T27qiXoWouqsuTV9UYVTV7jiiYWJGkzD60Pba5Ang8XjQ== X-Google-Smtp-Source: AGHT+IEh5nnwChe/T01tTDS8FIRS5M+v0d2VO5O1mJVlkAPY6SxqOhxQbv9nosHZDf9H83FP38j/ X-Received: by 2002:a67:fad4:0:b0:478:2d1d:f39 with SMTP id g20-20020a67fad4000000b004782d1d0f39mr6647294vsq.13.1711985989801; Mon, 01 Apr 2024 08:39:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711985989; cv=pass; d=google.com; s=arc-20160816; b=n4QvXM7dWsm08TkDFrYX3Er+RmUaF3eOMnZHB59r1/Q1bAppTpl6dNheqN/fzQ3EvX 1llcO63u7M9Mr++992gUpVtMJJnkle/WjD7vBKsc/KdehnO9Y6Ripz07Giil9RZ0ipq4 4jr8Vb8Z2tRbcWhXXXqyoa6pf5NY5bk6uhy4QdD8K5N+VhrtBkGMTa5PAuZ4V6zwdIT+ KO+ZlDLRkrcB0ryQox5UfvJ8LG2aE8dpMolFSF1cFbfO8CQLVntb+9QmC55g30PVkEtv rBLnsLQ8/43XtTlBwXXYqIfxQldoWeY7JUT5fcBTH8oyjif6PN+oMK2ZpK5bo7v5z63G 7pgg== 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=IJCsqArQ3YGdCuCDuTH+/jxUleXNfjHN49mfTD+G/zY=; fh=oihKA6xMYaGdlEFUTcBttL4K8C0u1dUyRon93tG6mI0=; b=kqS7dn4sYvd4RfGxE+Ii37oTtec4Vu8FtDP9grZfm2dxAr7Lz7u+nIHw9PVijXMkRM ImC4g/doTwj8aepkJzXaadYB3MFIsnEtN6hOOvAbMSpqg/6Z6Jp8GEAOcW4dTaEKWRKj LX5XZJhJy2GWnHjjR1BCgoOwsCZfcGq+c9yHBXj7a4xLidxIyqtwOyWvD+dhfLh42l05 H9DltzkYig+XyY7L+RBcW2o/QosClnyYSHdDkswbN/6oRYqYEm89NIKVfDdlzRFVAMT4 L/OveEFajz0mbX33pf+oSbXq5KG3bax4XFnb7hBVREBp3d+ZSW/wKHACPeWBkSDTr42C qNFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nvCtQKXE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s4-20020a0cf784000000b006990b6d036asi1889337qvn.348.2024.04.01.08.39.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 08:39:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nvCtQKXE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126814-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 83C061C219F9 for ; Mon, 1 Apr 2024 15:39:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 441D04F20C; Mon, 1 Apr 2024 15:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nvCtQKXE" 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 682FA4F897; Mon, 1 Apr 2024 15:38:30 +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=1711985910; cv=none; b=Q5FGoeCppYwItcXYnnkHeADl9Ot7wRg+6souu4bUDrCkPQlJOSsBY2F+jx/WR0k4wB9qEMzE8ov9ICxOFnLWfI4J9LvXg5RBiqNJoPdHUaf6PAEIzZ18KlOISfeLqsL8aFaCjMyBRIUxW/blkT2I/eCNdqxuZlWzEUUXbFeek8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711985910; c=relaxed/simple; bh=aCit6vORDAYB870bYOiXT5ndGlqhSP/fqB0fbs8e4P8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=T4SDv0PxR2XwTjQgMM3RGUXoFEZPzpkxzElXW5mLngmC5rdfTXwevqT3EsaKgzsL+IBopa1hVFpZ7Zd07Oey4bxWRIyIhu70SdsbAKUiXzzawoE97Etu7oaGs141enyizs5T0GYkr764j6VMh3tfMxSHMta9xNdjDoGlnrUayXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nvCtQKXE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 733B5C433A6; Mon, 1 Apr 2024 15:38:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711985910; bh=aCit6vORDAYB870bYOiXT5ndGlqhSP/fqB0fbs8e4P8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nvCtQKXE8ZHNsVUuGOJRaM7sOvx5VVg+yyHmMZ9kkhIWh1IWHq5UKrBdigG6sks2X WLH60WjmwVHrb3BUQnmySGAHzuDBNG6Pl9bIFZDmc5H2D4XBenV68YNIk2y32z2lZQ DhI2or0xTlJXdD73Uv4/Rs4LlwzCz0dd/xjH185pmsBk90Zaw/+Eo7MYoDYmTUt4vY BI4gobZV/Jvhei8xhYYoAqK3AD/+JIL065ZlkUqaE6ohq+CLA3PGa8hDxjd83PJ/Pm N+rEAUUlPQS6ObspFYY6K5ztxZnAGboevD75NJQj/hlMTSjw/jWlTAW2mwzfvL0wC2 4jccThBFhXA1A== From: Krzysztof Kozlowski To: Conor Dooley , Nicolas Ferre , Claudiu Beznea , Rob Herring , Krzysztof Kozlowski , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, "David S. Miller" , Bjarni Jonasson , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH RFT 09/10] arm64: dts: microchip: sparx5_pcb134: drop duplicated NOR flash Date: Mon, 1 Apr 2024 17:37:39 +0200 Message-Id: <20240401153740.123978-9-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240401153740.123978-1-krzk@kernel.org> References: <20240401153740.123978-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. Without checking in datasheet, assume device has only one SPI NOR flash, so code was duplicated. Fixes dtc W=1 warnings: sparx5_pcb134_board.dtsi:277.10-281.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) Signed-off-by: Krzysztof Kozlowski --- Not tested on hardware --- .../boot/dts/microchip/sparx5_pcb134_board.dtsi | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/arch/arm64/boot/dts/microchip/sparx5_pcb134_board.dtsi b/arch/arm64/boot/dts/microchip/sparx5_pcb134_board.dtsi index f165a409bc1d..dc7b59dfcb40 100644 --- a/arch/arm64/boot/dts/microchip/sparx5_pcb134_board.dtsi +++ b/arch/arm64/boot/dts/microchip/sparx5_pcb134_board.dtsi @@ -281,22 +281,6 @@ flash@0 { }; }; -&spi0 { - status = "okay"; - spi@0 { - compatible = "spi-mux"; - mux-controls = <&mux>; - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; /* CS0 */ - flash@9 { - compatible = "jedec,spi-nor"; - spi-max-frequency = <8000000>; - reg = <0x9>; /* SPI */ - }; - }; -}; - &sgpio0 { status = "okay"; microchip,sgpio-port-ranges = <8 15>; -- 2.34.1