Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1495199imm; Mon, 3 Sep 2018 01:51:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZDG+KyHU41ijfWOarC6efvh8JeEw9nd8mxKKlBoY8bjv+wKTuefcROPo9WUg7AMNYpM0JP X-Received: by 2002:a17:902:2804:: with SMTP id e4-v6mr27176708plb.327.1535964665851; Mon, 03 Sep 2018 01:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535964665; cv=none; d=google.com; s=arc-20160816; b=aRS0RbQAsVek+156/rdMpybVZFXhK6sLfJh7LKR6hQdp5tUULeb+lFITvC77zWaL9d SHAdeICH55grO6D0JRcuybidIfUr1AuyJObgx40QShsaVLR4RUutcQ2XETtrC03tIhMY TdHDNDKtP63ltPhcktpH7fC5GNseLMAYIf2IOUuYpaCk8/It99+/irNZrZYut5bjsujW ERtblS4KHU86uP+CVaJ77CRBO8tphKGMg8TKyiCVjriW1yr6CyF+8pC/CCJM6Y6ZheEj nOaO0sD7QasQqm3P2krH1ZEHzyYRe7hKuhXJeic0EHwo4jHjdVQqtfLHYfzP5ydKyj17 EXQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=5YCrzi90Ed/MKtvwg6Ym8sZCLAfthgZ8YpDdJjD8Ek8=; b=aqM7ynqJfjACZ7wJvgWjpwJ21fy9s1VxL1ZdAEvG1P1xuZOpjmk8+X735ROWPBWuOB vu2FNwWox7jXd0LQBQ5aKChr7QckqEV5IcOkJLP88FDeExp8v4jd4Abex+eoGdFld3eo hwooxore/rodztGp3JWMVV504rmIaJQillhpDytZJ82L3ixDL3Hh+ovYxhY+/tE8b6Mq Pe/RvjlpF35hK6TekMd9vuyi6Cy38kIJqPFidJ8hAmlueQEX1mZocFlMkpGEpdPp0O7Z k8sKsWM/lDGpC9fPR6PZwsXaGZzt6fJK32LLJsXUzQuv/cKtrClLUI2pTy22MTUm2S4s G25Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20-v6si15999104ply.139.2018.09.03.01.50.51; Mon, 03 Sep 2018 01:51:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727474AbeICNIs (ORCPT + 99 others); Mon, 3 Sep 2018 09:08:48 -0400 Received: from mail.bootlin.com ([62.4.15.54]:53367 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727413AbeICNIk (ORCPT ); Mon, 3 Sep 2018 09:08:40 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 462CF20DEA; Mon, 3 Sep 2018 10:49:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (AAubervilliers-681-1-92-107.w90-88.abo.wanadoo.fr [90.88.33.107]) by mail.bootlin.com (Postfix) with ESMTPSA id 5B8E122A3D; Mon, 3 Sep 2018 10:49:12 +0200 (CEST) From: Quentin Schulz To: davem@davemloft.net, robh+dt@kernel.org, mark.rutland@arm.com, andrew@lunn.ch, f.fainelli@gmail.com Cc: allan.nielsen@microchip.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Quentin Schulz Subject: [PATCH net-next v2 7/7] dt-bindings: net: phy: mscc: vsc8531: factorize vsc8531,led-N-mode Date: Mon, 3 Sep 2018 10:48:53 +0200 Message-Id: <20180903084853.18092-7-quentin.schulz@bootlin.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180903084853.18092-1-quentin.schulz@bootlin.com> References: <20180903084853.18092-1-quentin.schulz@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VSC8584 supports 4 LEDs while VSC8531 only supports 2. Let's factorize the documentation for LED mode properties and give the 4 default values (the first two being shared between VSC8531 and VSC8584). Reviewed-by: Rob Herring Signed-off-by: Quentin Schulz --- .../devicetree/bindings/net/mscc-phy-vsc8531.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt b/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt index 664d9d0543fc..5ff37c68c941 100644 --- a/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt +++ b/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt @@ -22,14 +22,16 @@ Optional properties: 'vddmac'. Default value is 0%. Ref: Table:1 - Edge rate change (below). -- vsc8531,led-0-mode : LED mode. Specify how the LED[0] should behave. - Allowed values are define in +- vsc8531,led-[N]-mode : LED mode. Specify how the LED[N] should behave. + N depends on the number of LEDs supported by a + PHY. + Allowed values are defined in "include/dt-bindings/net/mscc-phy-vsc8531.h". - Default value is VSC8531_LINK_1000_ACTIVITY (1). -- vsc8531,led-1-mode : LED mode. Specify how the LED[1] should behave. - Allowed values are define in - "include/dt-bindings/net/mscc-phy-vsc8531.h". - Default value is VSC8531_LINK_100_ACTIVITY (2). + Default values are VSC8531_LINK_1000_ACTIVITY (1), + VSC8531_LINK_100_ACTIVITY (2), + VSC8531_LINK_ACTIVITY (0) and + VSC8531_DUPLEX_COLLISION (8). + Table: 1 - Edge rate change ----------------------------------------------------------------| -- 2.17.1