Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2305292lqz; Tue, 2 Apr 2024 13:11:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsVvBaDaUC4gJtj6GIWZrP3Au6HJykKEBEPna6VtvqihoV6E4TT5RC0c8/LSXcwfqDtBZdxIWqWlGr12LWdMoer15hu1HW6q/pnBPjAg== X-Google-Smtp-Source: AGHT+IE6PvHgpDgM/g87RfDUqRlo7EKC3D0+J+Zfqha/wPmHvWNHFQUr9QAgGtqX0RRWmXsrMuV1 X-Received: by 2002:a17:902:b906:b0:1e0:b62c:3ae2 with SMTP id bf6-20020a170902b90600b001e0b62c3ae2mr10558442plb.10.1712088690909; Tue, 02 Apr 2024 13:11:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712088690; cv=pass; d=google.com; s=arc-20160816; b=STRouGTuhdFg90RDJZyX4lcpVr6/fb/E6TkDy0kakPKjiiFpXW2GOWQ7xxmHA2oxDM aG8s5HUlLq7JJzBmVHmvt8AqxIPrMhDCA8PZcXugLUFmiwghD5kVdFMGzU5mNA473/m4 bmDSOv4SJ5UqqfCGbKR84BJGa92SWXGhdr93Ozp2W2f8M1s54d0GTG+Paurh0ddjT9X7 hBo/Xem+1e4/EBqSn5ZFqrn2cvMkqaNtTZ9eloKbTsZD8+jS8ko+YBPKwNWca7mPHNkl xk59w5M4NnEy51/8CfZiW92e2m2MKLBCfdBgaxERonCRlzWgLnBMHqZtjSG7rrC2i5bu pjCg== 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:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=beL12k8pPlbMo6CqSTuJP6v53KzxLONyUMIWm0/cZL0=; fh=qkAPDCnvKis65NqzVM/u3jEBSFqI3mb0RsZL+9xWfkc=; b=Rlrmp8aBbvTQBO4CT8S5WDRxwszs+UaV7lGh5F6IIN3IC5jPeCdvNJh8kaL3X/M5F7 +QFwW88v0rUtwyhTgSVLB6hqndh0STjlqe4/XGLpfKqqZXUtggFBMji9U2vf/bGXUbdW rnd3ocy59emQb4rLvoGsVxfTg4+vlUAJrwnDYTyyqZWovG1A44Ll4/0UptOx51GC0n7q 3Y38pfO4FlMsNR3Y+ZVQKvOTwBy2pJMhWkxO6yfIPdTXy7Zle7yT8NllhqGKkNcYzQ9s G7deDoDYV12vJqD6VjuHDJ4C8doqGIV44NRrlBbhPpdIen8x6ZzOqtyfEViB57NdptcQ DPMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D0vS3/Ru"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128642-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f6-20020a170902ce8600b001e01f24fcb1si12329080plg.173.2024.04.02.13.11.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 13:11:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128642-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D0vS3/Ru"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128642-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128642-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9461928356B for ; Tue, 2 Apr 2024 20:11:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D971815D5A5; Tue, 2 Apr 2024 20:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D0vS3/Ru" 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 F168615B966; Tue, 2 Apr 2024 20:11:21 +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=1712088682; cv=none; b=f8pdPMD3cIZ7dvmtu4/+IQZiuxnScBCHGJN7C5WJHLrcwum8OQn6m91ML7UODpYSACPz5D8KUiD08qmqRb+0v/OgR0ROX8JIFht/8OXbA3DeMeItYEacl7zvYISrduWQMvimicPlJJGDC8j0RV0DEHIt11K7N2xrLgJyrhx8HHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712088682; c=relaxed/simple; bh=zxNCx17BqeF9qcFFHp8+bLqpFl9eofYxMcbGKji7VJU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cAQPw5VkEp0AS3JSyq+tiLHTf8XWcttvE0Mup1sU5CxF27ZZkE1ial/y79amBO6wQp8xZn8YvKiJTXZCuf9cYMsQsLqtfEfXUevnCr5yWFLA9BQ/vxI4vgSSqU/ZClpF5RMqPl/qUoAHl0R62BbXS/+quIw9gPFgEh/LK/2MxPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D0vS3/Ru; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 885E0C433F1; Tue, 2 Apr 2024 20:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712088681; bh=zxNCx17BqeF9qcFFHp8+bLqpFl9eofYxMcbGKji7VJU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=D0vS3/Ru84xc6lUbn0Vg0xr8g0+ChD416TYBLzx5T6IDuQkSe9CEL1iwaax2/zQ4z ivyxGmxAhnVTO6BYYoioLjhulu6DtB0w6CEIs92PMNrRgOKWpeqzfxdHnLOpVD6yqx aTs7wrHhK9MmKtrUpuQ/N8cmYFOi4e8s6lPMMTONMhRgpvT3mdTtbZIo3jVDsCffco XMCeScMMWSVl5r+lCI35ThbnEqWdJW1l5WaCLVbp+vE66/OiEp/4/fmTest/BtFYxV 4FvUWKpX6Gs353HfPtaMBVC/ZtVkzv0RfD9aUqtbgyzQICGaAsB3Ufg/sbL6gZW2oV U8a28SW5yBbfw== Message-ID: Date: Tue, 2 Apr 2024 22:11:16 +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 3/3] arm64: dts: marvell: espressobin-ultra: fix Ethernet Switch unit address To: Andrew Lunn Cc: Robert Marko , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240402183240.49193-1-krzk@kernel.org> <20240402183240.49193-3-krzk@kernel.org> <09201a97-7e7b-4d72-8ada-f58f85887349@lunn.ch> 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+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TYeTVXGSyDsuZjHvj+FRP+ gZaEIYSw2Yf0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; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02/04/2024 21:27, Andrew Lunn wrote: > On Tue, Apr 02, 2024 at 08:32:40PM +0200, Krzysztof Kozlowski wrote: >> The Espressobin Ultra DTS includes Espressobin DTSI which defines >> ethernet-switch@1 node. The Ultra DTS overrides "reg" to 3, but that >> leaves still old unit address which conflicts with the new phy@1 node >> (W=1 dtc warning): >> >> armada-3720-espressobin.dtsi:148.29-203.4: Warning (unique_unit_address_if_enabled): /soc/internal-regs@d0000000/mdio@32004/ethernet-switch@1: duplicate unit-address (also used in node /soc/internal-regs@d0000000/mdio@32004/ethernet-phy@1) >> >> Fix this by deleting ethernet-switch@1 node and merging original node >> with code from Ultra DTS into new ethernet-switch@3. > > That is a bit ugly, having the exact same code twice. > > Could the bulk of the switch node be put into a .dtsi file, and then > included as needed There are several overrides/new nodes in espresso ultra, so this is not the same code. > > &mdio { > switch0: ethernet-switch@1 { > reg = <1>; > include "armada-3720-espressobin-switch.dtsi" And this DTSI would be with what? No device node? That's not readable. > > } > } Best regards, Krzysztof