From patchwork Sat Mar 9 15:53:32 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: 13587712 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 814EE3FE1 for ; Sat, 9 Mar 2024 15:55:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709999703; cv=none; b=jN3U1AFQFElr3BpE148W/uLK40Y+YKfA51SY0z55KWOnX4yAiyQKbmwMnRyklsVBPNJLzmCf7eEFRuzmWd43dsofk7E5fqb1/NQLiyzofg2vTDgM47OGRD7KXiIcAI2fQ3bjvZsS1mGTsFH7BSyHcSNWbXqTAIfo69v7RKl7oPM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709999703; c=relaxed/simple; bh=okntOCxHdXfDiSNGp5Q/yJnmIT//bZkGzzyQ8XGTaX4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HIp3Elh45cSXf2H8hsOkEcgTENN+NuCTmze1skhQOIOhgYXFz1HheCWMotiv14RxKfuaAHBKazZulQ/0W/+sqTF50TJt3NnNHnB8J8dKlpFUErUMCKKOjhAe3RsIFkAwl2b8EtRNdUTmiurePFP8vUS5AgOTZLdo2jLOeVMTScU= 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=qgDt62PG; arc=none smtp.client-ip=209.85.218.47 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="qgDt62PG" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a44f2d894b7so401189066b.1 for ; Sat, 09 Mar 2024 07:55:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech.se; s=google; t=1709999699; x=1710604499; 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=TuPstnhPbF0+SqOFtEx4l3f770SiiyBvVtP9fLpE7xM=; b=qgDt62PG92EcX5ByZgywORYj/mtAYFh42in+kzB+UY53NXrfMZzqdB+SM2gTlL1wZT Fw7InVEatjH8sEXicUb6byNZ3f0q4emoQllkRkHiPjeojA7j3VLMFcdBysrCBeFuppqA BA3irOkQL7OvDy/w/NAVCGBy2Oy1xwgk8JsTudKkGdGKNZTfH1ttw+bUkqMk9rbqxTXb GIccof5v2g1afIvEJgR0MJg3VDZH9D+UNYBHQGEMMQocDVMChjfKExjdNAL01wGso+7V LbYqa6hv/Tp4eHSKlbeYyu1vyqYMQcBJlOJpJQuJOkNqaXj+j2AgBE9bxKC0zQSrtuH4 gTtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709999699; x=1710604499; 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=TuPstnhPbF0+SqOFtEx4l3f770SiiyBvVtP9fLpE7xM=; b=vZ+sxWHUM4h459oQyip5+MPaFVI84L6R87iBt9doFYLALiWvsPCRhv0lj2Ki6/eceE 0n5JiDoY+AkfjwU+aHzgGSVaVuCvgex57Kc6Et/9mCY/s5FuJ+Ce4t/vXsMqoMlKIqBx xyj6m3eZktd3/Z/F4D8LCpvaEdZVlXnu23U6hObkCXxhxZ0QEbTJAFXKmicc5NDaYr2J bRNLJnO3qSo8pXXgKWA2BPlyEpzUIOSO8ZyzsYm24afUwFFUamHMqYyy8JbzL52SUXx4 sZOD1d5xoUrPw8klD+UMJ460u38VT3cBmOnh0nBjXanr7IMnOUH6994QuxDw/2hXp9WL CjkQ== X-Forwarded-Encrypted: i=1; AJvYcCU7Zl0HU8elgWFyssH7yHGaIMibxtqYDTI1aQwZkII5hk805DV9HVE9Keqe4F6rzZ1agoS4bpNQjRkcc+iwGxsIxYgZ6lq5 X-Gm-Message-State: AOJu0Yzw7Y9qtrPOL8CSHHyjUZCJDXHOrsAaZ3nreHslBURbgAn7cnd2 uEyGdzGwlJK1tqUa/a1F3WVQw7DEHRxO0ygFADcjCgiMAvEZwIdzqiunYC/YA/o= X-Google-Smtp-Source: AGHT+IGbh6WubsmxB+EyIWgSpXzWgufzyOMSGt456adwbXwfz1//V8NkFP/YttWdi1xXc6jyRIfsHA== X-Received: by 2002:a17:906:1d50:b0:a45:f94d:db4b with SMTP id o16-20020a1709061d5000b00a45f94ddb4bmr1215620ejh.35.1709999698940; Sat, 09 Mar 2024 07:54:58 -0800 (PST) Received: from sleipner.berto.se (p4fcc8c6a.dip0.t-ipconnect.de. [79.204.140.106]) by smtp.googlemail.com with ESMTPSA id kq17-20020a170906abd100b00a40f7ed6cb9sm1005216ejb.4.2024.03.09.07.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 07:54:58 -0800 (PST) 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 0/2] ravb: Support describing the MDIO bus Date: Sat, 9 Mar 2024 16:53:32 +0100 Message-ID: <20240309155334.1310262-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org 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. Niklas Söderlunn (2): dt-bindings: net: renesas,etheravb: Add optional MDIO bus node ravb: Add support for an optional MDIO mode .../bindings/net/renesas,etheravb.yaml | 4 ++++ drivers/net/ethernet/renesas/ravb_main.c | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-)