From patchwork Tue Oct 1 08:29:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 1169778 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 46jCKL4dLCz9s4Y for ; Tue, 1 Oct 2019 18:36:06 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732818AbfJAIgG (ORCPT ); Tue, 1 Oct 2019 04:36:06 -0400 Received: from hermes.aosc.io ([199.195.250.187]:51942 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbfJAIgG (ORCPT ); Tue, 1 Oct 2019 04:36:06 -0400 X-Greylist: delayed 345 seconds by postgrey-1.27 at vger.kernel.org; Tue, 01 Oct 2019 04:36:05 EDT Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id F21C082889; Tue, 1 Oct 2019 08:30:15 +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 0/3] Pine64+ specific hacks for RTL8211E Ethernet PHY Date: Tue, 1 Oct 2019 16:29:09 +0800 Message-Id: <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 There're some Pine64+ boards known to have broken RTL8211E chips, and a hack is given by Pine64+, which is said to be from Realtek. This patchset adds the hack. The hack is taken from U-Boot, and it contains magic numbers without any document. Icenowy Zheng (3): dt-bindings: add binding for RTL8211E Ethernet PHY net: phy: realtek: add config hack for broken RTL8211E on Pine64+ boards arm64: allwinner: a64: dts: apply hack for RTL8211E on Pine64+ .../bindings/net/realtek,rtl8211e.yaml | 23 +++++++++++++++++++ .../dts/allwinner/sun50i-a64-pine64-plus.dts | 1 + drivers/net/phy/realtek.c | 14 +++++++++++ 3 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/realtek,rtl8211e.yaml