Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1520838lqz; Mon, 1 Apr 2024 08:40:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7aJzuYKvEdlxNBW0lBrO/hgFfr9AvOM/67Wiz9U7b/36vNDNbUtKLUY/B2gX/usKPgbIBWgjU75H01KiNzZvnn4zLya9J48L4FgD+OQ== X-Google-Smtp-Source: AGHT+IErL0+rYbp8Jm+jN+uYNO/JcuyYEd1EjGO8VcFKwMICQpxVCnRQ3YLWMZ+d8h0XT6KM9znp X-Received: by 2002:a05:6a00:4604:b0:6eb:3c77:3723 with SMTP id ko4-20020a056a00460400b006eb3c773723mr4652441pfb.4.1711986043039; Mon, 01 Apr 2024 08:40:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711986043; cv=pass; d=google.com; s=arc-20160816; b=x9CFPIoFU86qwZH6Ydr1VNKhIGBkagb1ZqvDJzJH/WTWKWEnmlJygkIez1qJtnlYCJ fCIN+dGdgEqD8H1+pmnRcDL+JpNpMVX5FyyRXVf06Fb/zYZQLE+Lhs+CsI0ajZXtnh0b c7i1XZV8J5Oo+jjwzDyxGyrQ57yCbg7I6nW0yThtk/BrF3BCobftRk0zIWrHsUKpnFnm cgIPuglQxSIYJXe1hMMM4BBC0MmOpkv1Fi5HHOjg7WziTdyEGPnqDs9cr5jySsw+QXk2 r3gyLIACQjIqrM+sV5LnmEzd03UIBKeJqYm60l5e2kI3kssSXXvWSHYq8nZ1H1MSeHQF OYXQ== 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=fekNaw0/GfD9YDW6VgALPE3K3MbXVoPwPu4vkRy4NqE=; fh=oihKA6xMYaGdlEFUTcBttL4K8C0u1dUyRon93tG6mI0=; b=NjbYZIsAsEn5X6YQ+fQ6Q4jFeEloI5FQfdRXgN0XGKdeW3DtsjSvRBokI9Ln+IA8C4 ju9qBaZ8H0cuElZ+N0ws6UPkm2UPSxuALpv6tdsr6SzQmMm2lfbWbQloQZFcWee4z0Hy YyHsnnCxU82SS7/fGt8E6iAXpI7WzOyJyXklirrVSF2GPWNPLqvIQOF9LqQTA7QLLNOI iET72P3Glf1MCuQDC3gNDl+A3amVuyBKaWELwR4orQYBhzu4fRIcbwkZyaee0h9kVF7V LKTJIFQ/ys4kVrQMIOPP65Ve66H1w9drEe1Y+F3S42jfInKUVE01WPmvCgUItcGJDg0f L4TA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CjVuAT65; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fa11-20020a056a002d0b00b006eabaf68ae3si10056703pfb.170.2024.04.01.08.40.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 08:40:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CjVuAT65; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126815-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7F05EB22478 for ; Mon, 1 Apr 2024 15:40:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4359C50A9D; Mon, 1 Apr 2024 15:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CjVuAT65" 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 500C451021; Mon, 1 Apr 2024 15:38:34 +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=1711985915; cv=none; b=bvZncEItJZyYuEmtJdYBUzj0gqk/bKoPphWv81aQZ+pFlKi5Ev+TRzPQzp34I4boaKL+InY55y0nAp4K4TyiKA8EBPP3lkKvdLiVqvOQaC6S7UmSJZC577nRNkHa8lX+3W6wxacFblDx675hU4+BN0C/9GAAReTCFerB6tj51ls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711985915; c=relaxed/simple; bh=JgLPnjcMi+cgOhiaoTMdhKoBzbHBbs/okfQQvGNTcdo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MsAYIPjqvZ82ZBM1znHdvmXUukw7kyyb3jsOCzS9y3LZdoT3Xz2rnfHpDz7NkdJm1J1lI6HKcyjfxhEKb51k+8mqLUJsff3GVQt7kT86UctDZ9Y8yspUFh3DrLGUjBqnEpVbtQRqzGTcHLn2N+PUAVuSpPl9x5WNuMxa1IW/OZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CjVuAT65; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81A64C433F1; Mon, 1 Apr 2024 15:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711985914; bh=JgLPnjcMi+cgOhiaoTMdhKoBzbHBbs/okfQQvGNTcdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CjVuAT65buqs99kvAaD4vV94P1Z5W+QmUpw+nssp3dWlIHCTFraFjdqPWWxVQRGw3 m3lUXSpzMVIk6ozny/7UwF2viG+zgGQtd+fGPLA4vaqg1C+8iVV+7wt5MofHNXZwW4 CoL6sFuScW9fV+I+45WhBZ/yg3rRAjXCHJvyajrbeOtHlmFwdouhYy1fqGwDq8iTsW 7WBET5EkFWOoZujUtfi0s4NpRcp5vk93+WdHm443aqw0rK7OU1bS8fbman6M4eOc36 pp7Dp6yOI1+ieVWPUXOj4hAvphsLiK/zsHx34SDS2WWQNAE0WWu6EJk+ynNlsteIH1 jX7CX5Zq5WG6g== 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 10/10] arm64: dts: microchip: sparx5_pcb135: drop duplicated NOR flash Date: Mon, 1 Apr 2024 17:37:40 +0200 Message-Id: <20240401153740.123978-10-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_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) Signed-off-by: Krzysztof Kozlowski --- Not tested on hardware --- .../boot/dts/microchip/sparx5_pcb135_board.dtsi | 16 ---------------- 1 file changed, 16 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..d64e642e3873 100644 --- a/arch/arm64/boot/dts/microchip/sparx5_pcb135_board.dtsi +++ b/arch/arm64/boot/dts/microchip/sparx5_pcb135_board.dtsi @@ -96,22 +96,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 */ - }; - }; -}; - &sgpio1 { status = "okay"; microchip,sgpio-port-ranges = <24 31>; -- 2.34.1