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: 1910483 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ragnatech.se header.i=@ragnatech.se header.a=rsa-sha256 header.s=google header.b=NlZYhheI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=devicetree+bounces-49855-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TtdzJ0GKcz1yWy for ; Tue, 12 Mar 2024 01:13:16 +1100 (AEDT) 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 C3DE6B2331F for ; Mon, 11 Mar 2024 14:13:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D5A33FE48; Mon, 11 Mar 2024 14:12:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b="NlZYhheI" X-Original-To: devicetree@vger.kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 C172D3FE46 for ; Mon, 11 Mar 2024 14:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710166352; cv=none; b=kned9TDBQIL0mGzarkLQOAax/C2eppFtUJRLzi1aIfpa331lSGfARH8oHqQzqMq6Fre1FP19xXllXkAU518CRcUYEuyOkSM1e7HJWtMl9EU7YigJqNdZEzcHdquui71zChGcnfE0CdtzTSeQU/boH+J5Taa+67lvUrUPjCAheVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710166352; c=relaxed/simple; bh=VBIdS/UlQSzStdPHLVSkmkdiD3oLzRYhAHd84C/7QNo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=OzIVwD/1vhAfbDgHNp8a468226pBLatEVjENMiE0XFaDH8vAlNgy4xFW7XjigooiFrke7zhajBGpneiQFZG/o/3L3O0+XYMcR0TO4GG365xtiGufNKm6nLUPR6nnew666B6yWfPhyPj2OUZ3SMZffQk859S0w+4kJsCkWtgFNYE= 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.218.49 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 Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a44d084bfe1so371418066b.1 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=p3caSpx7/Afjs2rC+wmS2S7BsUTqHng/wLWAr3OEsN4KV4ZfHanGq+TaAkzgDV7qJY RgaK1DDIsZvmrdCY8wRYyC16kXR4sX6ovcGcpIegsG+TWIGUsukjNcEZaqpTiJg+jPbo sU5fT5XaVknLHW/dLBR8+KvO+tMlJYGJON9/DzMFo/bdpbtgiUewMHL0oR1Dib68bRC2 El1U4TdHiaCSaLndGFh7mftP2tCnaa4UHiCS0vTjAE4B1Cc7Ec8egz4lc4uCLedTK7/F p2eINAeW7KRAkRO+6uc+FLzMhFAZT+Atw+1kTyxsFIDlpkRKvNyK/5a8W4wpdPi6Y0gt UcKQ== X-Forwarded-Encrypted: i=1; AJvYcCV8/HNJh8HMrbzsuJk2DNTYp9hj65N4S3Iu3zjrg7vpJUKcXpZqRpR3aWG7PxkXNWI3mpGEXOih/bICddIdkrTKCDhX77dAmpp3RQ== X-Gm-Message-State: AOJu0YxgZ+xByf6qqfJyVc14crSYnmHuhtrEs76UJMOybpBahlULKoH5 B4cn8FhecrNbSE/sqZo6D8iqDOvSZ6B7poZ6OBCdNRCqHIfcilc5dF4OApbeNIk= 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: devicetree@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(-) Reviewed-by: Andrew Lunn