From patchwork Tue Oct 1 08:29:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 1169781 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aosc.io Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46jCR72kMgz9sP7 for ; Tue, 1 Oct 2019 18:41:07 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728688AbfJAIlG (ORCPT ); Tue, 1 Oct 2019 04:41:06 -0400 Received: from hermes.aosc.io ([199.195.250.187]:52090 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbfJAIlG (ORCPT ); Tue, 1 Oct 2019 04:41:06 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id C4D1A82B04; Tue, 1 Oct 2019 08:30:57 +0000 (UTC) From: Icenowy Zheng To: "David S . Miller" , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Andrew Lunn , Florian Fainelli , Heiner Kallweit Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH 1/3] dt-bindings: add binding for RTL8211E Ethernet PHY Date: Tue, 1 Oct 2019 16:29:10 +0800 Message-Id: <20191001082912.12905-2-icenowy@aosc.io> In-Reply-To: <20191001082912.12905-1-icenowy@aosc.io> References: <20191001082912.12905-1-icenowy@aosc.io> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Icenowy Zheng Some RTL8211E Ethernet PHY have an issue that needs a workaround, and a way to indicate the need of the workaround should be added. Add the binding for a DT property that indicates this workaround. Signed-off-by: Icenowy Zheng --- .../bindings/net/realtek,rtl8211e.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/realtek,rtl8211e.yaml diff --git a/Documentation/devicetree/bindings/net/realtek,rtl8211e.yaml b/Documentation/devicetree/bindings/net/realtek,rtl8211e.yaml new file mode 100644 index 000000000000..264e93cafbec --- /dev/null +++ b/Documentation/devicetree/bindings/net/realtek,rtl8211e.yaml @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/realtek,rtl8211e.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RTL8211E Ethernet PHY + +properties: + realtek,config-magic-for-pine64: + description: + Enabling specific hacks for some broken RTL8211E chips known to be + used by Pine64+ boards. + +examples: + - | + &mdio { + ext_phy: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + realtek,config-magic-for-pine64; + }; + };