From patchwork Wed Sep 7 13:53:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 75665 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp337425qgf; Wed, 7 Sep 2016 06:53:43 -0700 (PDT) X-Received: by 10.66.16.97 with SMTP id f1mr82124763pad.39.1473256423559; Wed, 07 Sep 2016 06:53:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si19849587pay.275.2016.09.07.06.53.43; Wed, 07 Sep 2016 06:53:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752767AbcIGNxl (ORCPT + 7 others); Wed, 7 Sep 2016 09:53:41 -0400 Received: from mail-lf0-f51.google.com ([209.85.215.51]:33294 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752282AbcIGNxk (ORCPT ); Wed, 7 Sep 2016 09:53:40 -0400 Received: by mail-lf0-f51.google.com with SMTP id h127so11478084lfh.0 for ; Wed, 07 Sep 2016 06:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=664dGKXosithetfhvvOlBBq3ZD3BFRdod5QVI/1cu9o=; b=IRzPb1k2P/hlmtlRahKHjl8GnEC6+uM6sl2kQXpzItLSeYCWdMkPeMdQuW/UbH8KB/ 5yjxXC8Vl2Zc6gkFyE3MTPaXD3wupEmuCKow3dwJAmMEdfLiPJZu6ZbOoHcuXPJjBFyZ 0nsZC2jyqIIpAUKwyCPhw6g2NF+kPezOCEWwE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=664dGKXosithetfhvvOlBBq3ZD3BFRdod5QVI/1cu9o=; b=kuOMG5q0TIWJbL7bHjNzInKONcYWss67p07/xOmPCqmN86T66qJSimRZbjpqpLl7uv 2gWkyiMmZlwhXuJJbPpkGQ0FE0/jrSYd7hfZPbtMsaEn7l0Sj2aVzDH7fjQ81BrXvtxq eRajuyryMFlI8oCKfqfhzZ6YLyHAASetWw5q1Y52qOWzzXRK4keDO0e9tGrTXaJPGCt1 FK2xowp4WRdnHypZ4NgnWmLa28AxeHQe1Oc7CUza96IbdWEZ3lcblZLBpE6nikzJAoV2 TMlJsw95XL3jbytPpss/0zj318gFfF5k1Sb6YqoBlgTb2Bf6RCe28Mzs0rWriFZjyLXp 7c3A== X-Gm-Message-State: AE9vXwM0mRGQVl9xsl//NB2hW6KcZIKEqi8XsIdT/SwHCwFWNS/rNyVmSk+0s37/zMDGL3Lr X-Received: by 10.25.212.206 with SMTP id l197mr59032lfg.69.1473256419027; Wed, 07 Sep 2016 06:53:39 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id s2sm6527036lja.35.2016.09.07.06.53.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Sep 2016 06:53:38 -0700 (PDT) From: Linus Walleij To: netdev@vger.kernel.org, "David S . Miller" , Steve Glendinning Cc: Guenter Roeck , Jeremy Linton , Kamlakant Patel , Pavel Fedin , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/2 v3] net: smsc911x: augment device tree bindings Date: Wed, 7 Sep 2016 15:53:31 +0200 Message-Id: <1473256411-13965-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for: - An optional GPIO line for releasing the RESET signal to the SMSC911x devices - An optional PME (power management event) interrupt line that can be utilized to wake up the system on network activity. This signal exist on all the SMSC911x devices, it is just not very often routed. Both these lines are routed to the SoC on the Qualcomm APQ8060 Dragonboard and thus needs to be bound in the device tree. Cc: devicetree@vger.kernel.org Cc: Jeremy Linton Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Augment interrupt specificiers to be more to the point and less technical as suggested by Arnd. ChangeLog v1->v2: - Document for "interrupts", skip mentioning "interrupts-extended" as both are always supported. --- Documentation/devicetree/bindings/net/smsc911x.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Arnd Bergmann diff --git a/Documentation/devicetree/bindings/net/smsc911x.txt b/Documentation/devicetree/bindings/net/smsc911x.txt index 3fed3c124411..16c3a9501f5d 100644 --- a/Documentation/devicetree/bindings/net/smsc911x.txt +++ b/Documentation/devicetree/bindings/net/smsc911x.txt @@ -3,9 +3,11 @@ Required properties: - compatible : Should be "smsc,lan", "smsc,lan9115" - reg : Address and length of the io space for SMSC LAN -- interrupts : Should contain SMSC LAN interrupt line -- interrupt-parent : Should be the phandle for the interrupt controller - that services interrupts for this device +- interrupts : one or two interrupt specifiers + - The first interrupt is the SMSC LAN interrupt line + - The second interrupt (if present) is the PME (power + management event) interrupt that is able to wake up the host + system with a 50ms pulse on network activity - phy-mode : See ethernet.txt file in the same directory Optional properties: @@ -21,6 +23,10 @@ Optional properties: external PHY - smsc,save-mac-address : Indicates that mac address needs to be saved before resetting the controller +- reset-gpios : a GPIO line connected to the RESET (active low) signal + of the device. On many systems this is wired high so the device goes + out of reset at power-on, but if it is under program control, this + optional GPIO can wake up in response to it. Examples: @@ -29,7 +35,8 @@ lan9220@f4000000 { reg = <0xf4000000 0x2000000>; phy-mode = "mii"; interrupt-parent = <&gpio1>; - interrupts = <31>; + interrupts = <31>, <32>; + reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>; reg-io-width = <4>; smsc,irq-push-pull; };