From patchwork Fri Jul 8 09:07:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 71659 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp342660qgy; Fri, 8 Jul 2016 02:07:46 -0700 (PDT) X-Received: by 10.98.14.140 with SMTP id 12mr8190069pfo.68.1467968866175; Fri, 08 Jul 2016 02:07:46 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x186si2820215pfx.201.2016.07.08.02.07.46; Fri, 08 Jul 2016 02:07:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754196AbcGHJHo (ORCPT + 4 others); Fri, 8 Jul 2016 05:07:44 -0400 Received: from mail-lf0-f45.google.com ([209.85.215.45]:32996 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751815AbcGHJHl (ORCPT ); Fri, 8 Jul 2016 05:07:41 -0400 Received: by mail-lf0-f45.google.com with SMTP id f6so26063779lfg.0 for ; Fri, 08 Jul 2016 02:07: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=KFHHRQ28scds0vm/3mlmaVPYzH4bC5TtmWud/BaVvIQ=; b=WkW5siyC6g3B9gBr3N2/sPs+WIbpMTRE+KqRIsJcY06AvBYdyRDg1g38YY1Szh/zNC N7K3P/vsx5rKSpUtw7BHxbRxdYbKuUzyu3J2EQrjRhSSz/isEXFKM84+q0fmZjP734ud IhaARYa/wBdyBRzU/t/iTRniffpBXzbeRTf68= 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=KFHHRQ28scds0vm/3mlmaVPYzH4bC5TtmWud/BaVvIQ=; b=FJh7c//EwqLgWZB9IkenUG+r4B7KPy7FgC0abaAFRZEghOGhlENerYfPJyzH3EtG2c rrTnPQvbSkcQAuxRfeoCHKJyJonHW+g9fBfteZRluffop2FCufb3Pk+lp7VWjQS3JUWj tVxdbK21VlJcNfaUzusjHfrophQcGD2JNf6+Mgm9Kg08iBx9hI7hIvKcmxI1KbQFKKbe L5YSrq7+19JZWQrVYT7vkO9DRJRHZ3LblGGoMsNm8B+szWWvs9m9m7J77x12xNivjrrq OKbO0ZsxYCvtWrk0j64ImG3wd5ppcEvgewI+m/BCkoIfSMV/mM9YllPjTNMmEJWqVbHd lwPQ== X-Gm-Message-State: ALyK8tJBX1IqN9n+kk7ebajqtpZ+3g5cPJq02ZG4Maj2h8cNzuc9TNk6aTHB2o+but1C6/Px X-Received: by 10.46.9.65 with SMTP id 62mr1244494ljj.6.1467968859755; Fri, 08 Jul 2016 02:07:39 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-cc7c71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.124.204]) by smtp.gmail.com with ESMTPSA id 16sm6666907lja.31.2016.07.08.02.07.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jul 2016 02:07: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/3] net: smsc911x: augment device tree bindings Date: Fri, 8 Jul 2016 11:07:30 +0200 Message-Id: <1467968852-6175-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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 Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/net/smsc911x.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/net/smsc911x.txt b/Documentation/devicetree/bindings/net/smsc911x.txt index 3fed3c124411..7b01c37272c1 100644 --- a/Documentation/devicetree/bindings/net/smsc911x.txt +++ b/Documentation/devicetree/bindings/net/smsc911x.txt @@ -3,9 +3,12 @@ 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/extended-interrupts : Should contain the SMSC LAN + interrupt line as cell 0, cell 1 is an OPTIONAL PME (power + management event) interrupt that is able to wake up the host + system with a 50ms pulse on network activity + For generic bindings for interrupt controller parents, refer to + interrupt-controller/interrupts.txt - phy-mode : See ethernet.txt file in the same directory Optional properties: @@ -21,6 +24,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 +36,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; };