Received: by 2002:a05:7208:31d3:b0:81:e143:7c29 with SMTP id v19csp434600rbd; Fri, 5 Apr 2024 08:45:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGuXGrjkkOEatAUky2d1FhI8PjXuvfDCdzW0OP6dIaGNawC7/TCcNEM/NHl4KxYWVn3jAhgiiAo+/Vdkheeaiw7dnUI3uUORy2kFtB9Q== X-Google-Smtp-Source: AGHT+IFM8yONL06u5mmoCKnmbp++g8xy9UndS1eMOyjR3PAdtP0n8aZm2DAhED3/S+NRHwSnZvY7 X-Received: by 2002:ac8:7f48:0:b0:432:b57c:98c8 with SMTP id g8-20020ac87f48000000b00432b57c98c8mr4372872qtk.20.1712331956831; Fri, 05 Apr 2024 08:45:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712331956; cv=pass; d=google.com; s=arc-20160816; b=YVbjDADV6Dee3r8qiPtIY7ISd9VEQMQ1cpIJ99qLkF6m8GoejoWkZ3rlyZz5L8ryha uk2cwNzLH6SO4biWVnHqH3wIqgLV8vF+hSbkJBJa3tKAhLqJ0232w2TbWCHiqHmr7faK xERH2r4ikhNKrxjLFHFlGMOuw5hzJZgShCIOAPgPgOZ0yV6+Xc2eZOog/U5anUOnVTcq WjNohYA1/wqH0tkS9C7ey9tiOg/pSaz+GYGDblVCYq/ivZmyhRPEPUm8MBic8lZUMDiF t8ruL2rIIzmT5KcoFRByKBwzR0t5Sbd1cI4JGVP6+l443Wu/FK9vzR4vL3/3NLBSdw9H QJzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=CO8r2YdRMih5SI63TB6clib+WttSrC3lJKqG+diDAh0=; fh=VklFVLHrKySKPkGtSDWdj4LRn42tLfEjUFXJzLXFudU=; b=DHolHNzFxiBvgLzEFvDAOQDlNGwcRgspwyXLcKxZo2GqOFkneIUjxV4VxiCDI3ksvh 1g76sUvNDexdlz5A1ua3qtw6/x4UsMDjz8nfyJCSeuDWeQIj6GErdVkwzJewc6v8QSIs 31Y6Uu0L9onizR4ltePwXVk1s8NvNUwuM9brImpeAIUtrag7Y/scsuoD1F66jjAO/eVj N6PWIL4zYC7PNdDDBng+I0mZcLfrD+p+LUUXFv6nqXFmPZBxguNJ0818S9pTNwlyo6qj cJOJ+WMSf96MTXDpwNtq81stavsYUe/hWDMSt/X/pg4t0KIL3PcXcj8iRjV3nOZ7UEun tQpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZiX5QSqJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133281-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g4-20020ac87f44000000b004313b62765fsi1950393qtk.117.2024.04.05.08.45.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:45:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZiX5QSqJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133281-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 8153E1C219A9 for ; Fri, 5 Apr 2024 15:45:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7DE816FF45; Fri, 5 Apr 2024 15:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZiX5QSqJ" 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 CCD7017BA0; Fri, 5 Apr 2024 15:45:46 +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=1712331946; cv=none; b=ksO/9g6TWZ0qNaeXsg3YaMhtaq0N6P5thaxsmdKaClW0tZedVwATgJ4QZaGamLzOeqk8DzaRsR5xw/zrlGIW3wj3qUuuek67ba7uCHZlPFB/kQKo3blxi6IUpkRqbbOhFI3jXC2chIn3zmom4Z7T85CitBAk/FGyqpFnwZjSnJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712331946; c=relaxed/simple; bh=qBnmNSTIQGGq5p7KWZLcDobYUZB2qgjqJ13DpGAaklE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=b6WCxMfmeOrmXGzA1fLO4TblgWnP79PqVZvp24sCOZxZqzPZay7NLmhPSVvjJNbWN8CggHAmVcRX58z+m0nyyYzKrAveI/PNlmrwuqV8KpIBaGst7BbPaQtHORFrXjMG7FC244OEaMODTGWsQYIL/CDTb2FMIIt8GKIJS0rwAP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZiX5QSqJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A44DC433C7; Fri, 5 Apr 2024 15:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712331946; bh=qBnmNSTIQGGq5p7KWZLcDobYUZB2qgjqJ13DpGAaklE=; h=Date:Subject:To:References:From:In-Reply-To:From; b=ZiX5QSqJd6Aqfzn9U3U3ZsRiUZqWpR2NlaW4g5wb+O79AjLkO0oe29EHplaeibh5H +CjvvaKxlGC+i70BJYr6Wryn+VIKcnTNdOTkGteqokfR1OV3unC65E4MMELUw/wt5p snEB1pe/DlMM2n/qD9fHJRo/ixWa1FYFUBlOt76PlGKoGW6oxr0IMakWA/h2volPd4 42tMyjCB0Qjh2+nWH+DzPtjYKWgXzkQfOhdloXM7AdT6QiVBD+2k2dUK+oVuniMpY7 Lx9ZVGeL89nppNQfX3JOteRrEZ/qC3bw1Q9SS3i1jF1g4PwrGafZ+jW3wnOV6GoPvN LRkUyHvwa28HQ== Message-ID: Date: Fri, 5 Apr 2024 17:45:41 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFT 09/10] arm64: dts: microchip: sparx5_pcb134: drop duplicated NOR flash To: Steen Hegelund , Conor Dooley , Nicolas Ferre , Claudiu Beznea , Rob Herring , Krzysztof Kozlowski , Lars Povlsen , 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 References: <20240401153740.123978-1-krzk@kernel.org> <20240401153740.123978-9-krzk@kernel.org> <67f29fa86207a68b148b826b71b1349d3552453d.camel@microchip.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl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EuNSr+CLMdnRBY fv0= In-Reply-To: <67f29fa86207a68b148b826b71b1349d3552453d.camel@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 05/04/2024 14:10, Steen Hegelund wrote: > Hi Krzysztof, > > On Mon, 2024-04-01 at 17:37 +0200, Krzysztof Kozlowski wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >> >> 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 */ >> -               }; >> -       }; >> -}; >> - > > When testing this on actual HW the SPI NOR is no longer accessible. > The reason is that it sits behind a SPI-MUX and that needs to be present in the Device Tree. > > So if you do the "reverse" clean-up it works fine: Remove the simple spi0 node and keep the one that > has the spi-mux reference. Aaaa, so we need to do it that way. Thanks for testing! I'll send v2. Best regards, Krzysztof