From patchwork Sun Apr 19 03:08:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1272777 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=GzcEwPJB; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 494ZYC1PB8z9sSY for ; Sun, 19 Apr 2020 13:09:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726049AbgDSDIx (ORCPT ); Sat, 18 Apr 2020 23:08:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbgDSDIx (ORCPT ); Sat, 18 Apr 2020 23:08:53 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03F21C061A0C; Sat, 18 Apr 2020 20:08:53 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id a7so2703786pju.2; Sat, 18 Apr 2020 20:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i2+QdpxFKrFwhKW0bmHBS7uRMRc4g6WYQHclqiw5AqA=; b=GzcEwPJBkKZcqtxkJTDMKKv70MwpnUMzt+2mb0QmcR+xkk2csEdoIUiHSDvlRUcHFW 7BaqOKq5QFwt0r09rM+92ry6CrPSNHDV2LCCcIaDkXNljgCjBNx5ph3c+mixEM6gLuQC ey/iAssKHR18kgSVTHN5pcRJhl6BLrml+A+tjSsopAsYcNGuhZ8d3qHgRdUpgKviTfkk 6YZ8mWRnpcym4NaUWWfwS6Fg+ZFuvziCD/LEVamouioGHrrfDWC0gyN4V718jgNAKT22 Kkf+LIRehaV2H+7VMJNjdrA4hQwlom14zjPsO+sIqplNsKxXEadK7DRx+gZxFnLFfHlP U/Mw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=i2+QdpxFKrFwhKW0bmHBS7uRMRc4g6WYQHclqiw5AqA=; b=K/kthXEaWhB87v9O0JgSEXZLehMVs7bTKWru0/TZi9OPFKy+YCdcvS3NtGpgfbTCjR 4BtADSU1zITZELorEKSKL6MCG3sRsbr89FAb4GGUB8BJej71ZpURsAk1iI91ikv7L6FS CJyQU1LS/WUdWmteh5+O89f0MTOODPCXvANrBQyyHgthx/0sdy+mq37FTiMdTRRgbiyy BJB5SznoEzoACSgEYc5FSkZGvxyzxXBlr3x09vd8OjLTZAQOb/+PVIfXlkd0Rl2pPrqq oBfQiVovZzzoEpQ3CsalSftkgfPmm97g46zvZoMwJMtiNaapHYrGS85fZ+qhZpr96mPu f0bg== X-Gm-Message-State: AGi0PubMfvr25RCwj9Azkv6ybMeRUIhSQZ4QLVE9r88wPIUUWyAGXp/m TFcX8uFjxR1QS9SzcHxC5A5gWcdm X-Google-Smtp-Source: APiQypJ/bG/EOTTtpkHSEVlZRrr8R83BFGL30hXaHT7YwQyLuRQsHsaZv1Oyt2iIdWwUzzYLNMZjOg== X-Received: by 2002:a17:902:8f87:: with SMTP id z7mr9682562plo.342.1587265732102; Sat, 18 Apr 2020 20:08:52 -0700 (PDT) Received: from localhost.localdomain (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id g12sm8686146pfm.129.2020.04.18.20.08.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2020 20:08:51 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Rob Herring , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next v2 1/2] dt-bindings: net: mdio: Document common properties Date: Sat, 18 Apr 2020 20:08:42 -0700 Message-Id: <20200419030843.18870-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20200419030843.18870-1-f.fainelli@gmail.com> References: <20200419030843.18870-1-f.fainelli@gmail.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Some of the properties pertaining to the broken turn around or resets were only documented in ethernet-phy.yaml while they are applicable across all MDIO devices and not Ethernet PHYs specifically which are a superset. Signed-off-by: Florian Fainelli --- .../devicetree/bindings/net/mdio.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/net/mdio.yaml b/Documentation/devicetree/bindings/net/mdio.yaml index 50c3397a82bc..d268ed80bb77 100644 --- a/Documentation/devicetree/bindings/net/mdio.yaml +++ b/Documentation/devicetree/bindings/net/mdio.yaml @@ -50,6 +50,33 @@ patternProperties: description: The ID number for the PHY. + broken-turn-around: + $ref: /schemas/types.yaml#definitions/flag + description: + If set, indicates the MDIO device does not correctly release + the turn around line low at the end of a MDIO transaction. + + resets: + maxItems: 1 + + reset-names: + const: phy + + reset-gpios: + maxItems: 1 + description: + The GPIO phandle and specifier for the MDIO reset signal. + + reset-assert-us: + description: + Delay after the reset was asserted in microseconds. If this + property is missing the delay will be skipped. + + reset-deassert-us: + description: + Delay after the reset was deasserted in microseconds. If + this property is missing the delay will be skipped. + required: - reg From patchwork Sun Apr 19 03:08:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1272778 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=JPZM61HU; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 494ZYC483Wz9sSb for ; Sun, 19 Apr 2020 13:09:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726105AbgDSDIz (ORCPT ); Sat, 18 Apr 2020 23:08:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbgDSDIz (ORCPT ); Sat, 18 Apr 2020 23:08:55 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21D16C061A0C; Sat, 18 Apr 2020 20:08:55 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id 2so3279167pgp.11; Sat, 18 Apr 2020 20:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fimWZgjU4nYcjINsJ9VPZKF4HX+n2Gcou0MLoHNd/vU=; b=JPZM61HUVUAXFJ508lbinQCLJXorqvSUIIW0BANuJHwfcw0zd3wSBZ0gZ8pvggTzRW sjcKteQtUL9vc4zVZw8Wi4q6TimRx/aNDuvVymXpdTjPhNimRS1qHJ2+BGrr92Iqm8/t GHZhWSUT6ueZG7XDWofyQ/OdS4OknI7ZNUu0/aOthc7w1HvbMaYTszttb/upd6AXcAX3 lA18oIqbHYWQGYlfW2l4vbSSkYM+uVctFgdfDUA4KKuegy34/YvZCeCq6QFnON69758d R4g7G8eK1ya8xyunoNyvhK1+bVcqZXJJOB1W5WOsfKA61Zq3N+v5EQymx6y5CMi0xP59 Yjcw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=fimWZgjU4nYcjINsJ9VPZKF4HX+n2Gcou0MLoHNd/vU=; b=hZfOQLz42EqtE6DOwLyD6aqO7VoZmPmQKGkQaP0UR/9WtpNN3AZDq0+4zr9ujVBUiV Khj/gryBfQ4pxprhE2GIZpKNV16Qkh2OnmIGdWrUgbJIWbTFOlxaUqO/7a0GPH6NF4iE F6L/ugTS8fKlzbl/QmZt6Xl/QU7OtPgGTVaxVdWaqKfdH/Fxkl6d2aubxnM4EbYmDKrk AUXV71BWeVTUvPcohTfDJJnQub2EDpUvkd8qVSi1UTeqeWXSrITLARgsoV9aX6Qo2DVJ lZp6VRlHfVKpNyp8C2AP7KeEwOHHAwojSgYOHcuX38QmKV4+FgXRkHcp6dvkA3DMplb8 N8UA== X-Gm-Message-State: AGi0PuZdn6kEDE5sDRLFt9i3BcJiX1e3EJ+yIBR/SpNdztZj3c4JmJjK JuIJZmyd0LBS96VwhQVjUoQT78eZ X-Google-Smtp-Source: APiQypKpmvWN0SnL72c9Fu1U7jCrf8EKGtjFMFZpaFLAjA3mVyhqgxGLTujxOEMfbWcdKeFEl2pMUg== X-Received: by 2002:a62:1950:: with SMTP id 77mr10512221pfz.326.1587265733896; Sat, 18 Apr 2020 20:08:53 -0700 (PDT) Received: from localhost.localdomain (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id g12sm8686146pfm.129.2020.04.18.20.08.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2020 20:08:53 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Rob Herring , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next v2 2/2] dt-bindings: net: mdio: Make descriptions more general Date: Sat, 18 Apr 2020 20:08:43 -0700 Message-Id: <20200419030843.18870-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20200419030843.18870-1-f.fainelli@gmail.com> References: <20200419030843.18870-1-f.fainelli@gmail.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org A number of descriptions assume a PHY device, but since this binding describes a MDIO bus which can have different kinds of MDIO devices attached to it, rephrase some descriptions to be more general in that regard. Signed-off-by: Florian Fainelli Reviewed-by: Andrew Lunn --- Documentation/devicetree/bindings/net/mdio.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mdio.yaml b/Documentation/devicetree/bindings/net/mdio.yaml index d268ed80bb77..7ea0b5510bc3 100644 --- a/Documentation/devicetree/bindings/net/mdio.yaml +++ b/Documentation/devicetree/bindings/net/mdio.yaml @@ -31,13 +31,13 @@ properties: maxItems: 1 description: The phandle and specifier for the GPIO that controls the RESET - lines of all PHYs on that MDIO bus. + lines of all devices on that MDIO bus. reset-delay-us: description: - RESET pulse width in microseconds. It applies to all PHY devices - and must therefore be appropriately determined based on all PHY - requirements (maximum value of all per-PHY RESET pulse widths). + RESET pulse width in microseconds. It applies to all MDIO devices + and must therefore be appropriately determined based on all devices + requirements (maximum value of all per-device RESET pulse widths). patternProperties: "^ethernet-phy@[0-9a-f]+$": @@ -48,7 +48,7 @@ patternProperties: minimum: 0 maximum: 31 description: - The ID number for the PHY. + The ID number for the device. broken-turn-around: $ref: /schemas/types.yaml#definitions/flag