From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EA27C606C7 for ; Mon, 8 Jul 2019 19:25:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 490BF2086D for ; Mon, 8 Jul 2019 19:25:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="hMTkzh7N" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391672AbfGHTZN (ORCPT ); Mon, 8 Jul 2019 15:25:13 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42748 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388726AbfGHTZL (ORCPT ); Mon, 8 Jul 2019 15:25:11 -0400 Received: by mail-pf1-f195.google.com with SMTP id q10so8061301pff.9 for ; Mon, 08 Jul 2019 12:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0/u92z35Ke4CKIbgzmi0ZCVrrTWSoncNGXWMgkU4HjU=; b=hMTkzh7N34WJMex7DCQgYtT6uMIctbygBh0hRb7bTeVZciQKdfi/QkiLFqBL9FtSDP zj6WdZXfF3AQzeV7Wl5G6g1e+Qh08ZlUEVvu9Wug4rlbb4CFks9pS2S2RlujC/kPbauV 6u8MODyvje12OGh9ko7dkGQqnM6WLvJOAdI3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0/u92z35Ke4CKIbgzmi0ZCVrrTWSoncNGXWMgkU4HjU=; b=GDFHQ+BQfdKzFfXHSs/BFb+3z618ewOBY3XNdujHB9kXSaqLiBrzmeEcqyIEfRkVy3 s/5ay67AjJuiCVAtJz8er7kNcUMkdMulK9eNsJFpQQqW4lNdaEczAlKyh1KPE0xUmARS zTi7ZCmjfPOYhS93DQ7EplUnhiqBYSPnEDUIRfRbhQ3SHOtQYmCo67rPi/1qHecdZksa ftv3HxlRHEkutk70STfbI3t8Mw0AftVRRC1AdK3TahlltXKLu8XSrZQOaNL1In1Yjhex XvmB/C4zikCyiYZFBdFqkICCwOqNc8+i6Dio/PG4j2HuNS4f6eCKHPuF3SkgjbxdVMhO g6mA== X-Gm-Message-State: APjAAAUwyyM8sLGqCgJAHqZh/CBpKoyvunfpPP5keQmQgFPxtnWG7ewg wJYxlOwle2CdQ71rH/XS5PrsbQ== X-Google-Smtp-Source: APXvYqxOSQwQ7NAwnECL2t+8NgMoEu6WfclD8cbGn9DmiABWUbcM+f3VfzhREsWQjcfcoaNhKkccsQ== X-Received: by 2002:a63:a1a:: with SMTP id 26mr25517384pgk.265.1562613910217; Mon, 08 Jul 2019 12:25:10 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id u23sm20751520pfn.140.2019.07.08.12.25.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 12:25:09 -0700 (PDT) From: Matthias Kaehlcke To: "David S . Miller" , Rob Herring , Mark Rutland , Andrew Lunn , Florian Fainelli , Heiner Kallweit Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson , Matthias Kaehlcke Subject: [PATCH v3 0/7] net: phy: realtek: Enable configuration of RTL8211E LEDs and SSC Date: Mon, 8 Jul 2019 12:24:52 -0700 Message-Id: <20190708192459.187984-1-mka@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Realtek RTL8211E allows customization of the PHY LED behavior, like which LEDs are on for certain link speeds and which LEDs blink when there is traffic. By default EEE LED mode is enabled, in which a blinking LED is on for 400ms and off for 2s. This series adds support for configuring the LED behavior through device tree properties. The RTL8211E supports Spread Spectrum Clocking (SSC), which reduces clock noise that may affect other board functions. By default SSC is disabled, this series adds support for enabling it through a device tree property. Certain registers on the RTL8211E can only be accessed through a vendor specific extended page mechanism. Extended pages need to be accessed for the LED configuration and enabling SSC. This series adds helpers to facilitate accessing extended pages. Matthias Kaehlcke (7): dt-bindings: net: Add bindings for Realtek PHYs net: phy: realtek: Allow disabling RTL8211E EEE LED mode dt-bindings: net: realtek: Add property to enable SSC net: phy: realtek: Add helpers for accessing RTL8211E extension pages net: phy: realtek: Support SSC for the RTL8211E dt-bindings: net: realtek: Add property to configure LED mode net: phy: realtek: configure RTL8211E LEDs .../devicetree/bindings/net/realtek.txt | 47 +++++ drivers/net/phy/realtek.c | 171 ++++++++++++++++-- include/dt-bindings/net/realtek.h | 18 ++ 3 files changed, 221 insertions(+), 15 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/realtek.txt create mode 100644 include/dt-bindings/net/realtek.h -- 2.22.0.410.gd8fdbe21b5-goog