From patchwork Mon Mar 11 14:11:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 13588794 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCCEE3FE44 for ; Mon, 11 Mar 2024 14:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710166353; cv=none; b=TJgtGS1PJ8PfcHnObOW7tMid7S7BzpwL2neM3DEYjT9dkLSTM+yJtFBXnckiVYJOJw5OCx+4tK10Zlk2CW0DEubpded9l8oEwauM0pcaDbPahOzLABYSWnoK0LU18iK7lqI+c49KFPMnOM18RglJkI5ow2EGi+Hk2LlG3H/DqXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710166353; c=relaxed/simple; bh=VBIdS/UlQSzStdPHLVSkmkdiD3oLzRYhAHd84C/7QNo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CKxEcm2ynznlFvyEnFxndO6lVilU9bo6lnvG1OGARRlG4DpxYcBOCboK85sy2vDRvm2zMw7oCZaCVRUljCi20DBFwVb84vmWiwTaVENyOUPXXrL4YVKAxF7IUnM5A2D2+XkMlMNKEY1sk8qlEsds364l3nRulPodfDRMoh+Pm1I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se; spf=pass smtp.mailfrom=ragnatech.se; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b=NlZYhheI; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b="NlZYhheI" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5649c25369aso4108191a12.2 for ; Mon, 11 Mar 2024 07:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech.se; s=google; t=1710166349; x=1710771149; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ps8i6xtkxMp0Zvly/37wcJc+RtBvwNAObQIyBi27L+U=; b=NlZYhheIcItqCE5HdjVhxv7b2o/oSIpG0btc6yzkfIQjyPabpBFP52x9l6EslbMqh6 YtXrxnVBOO14Re9MFjOMc04b9+N50R8WPO8HOWM8UICfShN0y/eKIDohJWw8xnA7tk27 LGiilzMVphENAhZLAyCC0MKg6IrDDLswDDpdvWZ9xxIIqw4IXffSMj8kZD+T6O88qdAi ytly3Xiy8+B73n9WRBojMBD7+yplubm6xgENxm7ubBt6+e4EgQSqxhOuioXQxSz88+wy FnVK5nuDBfI9E+7cjzFtPFFCp7D3U8j3Xvg5ewtOeQuIu/COQn3wKQwxA+rwfnGRcIph PFsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710166349; x=1710771149; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ps8i6xtkxMp0Zvly/37wcJc+RtBvwNAObQIyBi27L+U=; b=hd5Haft6/Lwl8czjxJ+2ceYLQ2KkouedC3Gb1kz9t09VsJFPtYJFuIUh5p3M9pXXNC SIExpjPRwG/6pbxhZmtbjkidkGTaAK/NlgWwMbLGVn9V8mITNMwZH64WWKrnTlyZrGPC OxbyYhoFGgprnYFnDR45f0fJimRLiTs2rtm9YfY/dDfkuBlrJ+aVFueah3eOPvqeQ6PP ZYWlnx2rzkTFqknH0tPYvL5Z3+CkHVnrME5p1wQDZaY1tR72jw69VeLXFZJ7M6ht+hDA 5ISCDVSzmgQrwC/FT/RVitkC87uguBginAMS/LL3b92NhCdysq5nkl0o6Uf1iuQzk0KZ 5I9A== X-Gm-Message-State: AOJu0Yx+Q8ZoS7285tPvz/3aslpM5ophTfoUHyIk53UWH/y+2IyYzRMz w0ERi89VuNCY6E9ZQrJkzOITgMHu8X0FTsLqfB2IHdhoPYeAJB8Zxj4Pkss3qeo= X-Google-Smtp-Source: AGHT+IFqioQX9gpTIxeYolk9thiVfgab//cOM4gCkN1/ka/pcpcihbNEdsPgh/+kEYespOs7HBdoqA== X-Received: by 2002:a17:907:c28c:b0:a45:373:cff with SMTP id tk12-20020a170907c28c00b00a4503730cffmr4257652ejc.68.1710166349036; Mon, 11 Mar 2024 07:12:29 -0700 (PDT) Received: from sleipner.berto.se (p4fcc8c6a.dip0.t-ipconnect.de. [79.204.140.106]) by smtp.googlemail.com with ESMTPSA id kn11-20020a170906aa4b00b00a45efdfdd1esm2863154ejb.40.2024.03.11.07.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 07:12:28 -0700 (PDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Sergey Shtylyov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Claudiu Beznea , Yoshihiro Shimoda , Biju Das , netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [net-next,v3 0/2] ravb: Support describing the MDIO bus Date: Mon, 11 Mar 2024 15:11:04 +0100 Message-ID: <20240311141106.3200743-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hello, This series adds support to the binding and driver of the Renesas Ethernet AVB to described the MDIO bus. Currently the driver uses the OF node of the device itself when registering the MDIO bus. This forces any MDIO bus properties the MDIO core should react on to be set on the device OF node. This is confusing and non of the MDIO bus properties are described in the Ethernet AVB bindings. Patch 1/2 extends the bindings with an optional mdio child-node to the device that can be used to contain the MDIO bus settings. While patch 2/2 changes the driver to use this node (if present) when registering the MDIO bus. If the new optional mdio child-node is not present the driver fallback to the old behavior and uses the device OF node like before. This change is fully backward compatible with existing usage of the bindings. For changelog see individual patches. Niklas Söderlund (2): dt-bindings: net: renesas,etheravb: Add optional MDIO bus node ravb: Add support for an optional MDIO mode .../devicetree/bindings/net/renesas,etheravb.yaml | 8 ++++++++ drivers/net/ethernet/renesas/ravb_main.c | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-)