From patchwork Wed Aug 24 12:59:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 662269 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sK6pk1G0rz9sXx for ; Wed, 24 Aug 2016 22:59:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=AcE66I95; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755175AbcHXM74 (ORCPT ); Wed, 24 Aug 2016 08:59:56 -0400 Received: from mail-lf0-f41.google.com ([209.85.215.41]:35993 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755153AbcHXM7z (ORCPT ); Wed, 24 Aug 2016 08:59:55 -0400 Received: by mail-lf0-f41.google.com with SMTP id g62so11268954lfe.3 for ; Wed, 24 Aug 2016 05:59:54 -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=dfEG14SCauCF5N6vePfRl8cxyWFv7dfYgRGn/r1vSmM=; b=AcE66I95RCbafb8O4eFUpoKAM+rj98+KmfpojRK9nv8AQTmyzGkmpflJnrHqh0e2nt EqGGFGN5Ff1ZcNYyQ0Tdc2zO7uYS7KG9PwmEXGhPAp9ikz78e9tWy/9vhyCzVIY4j+yT lcOU8xPRQM56KC64PHM2wO0jo+jn6YjLlxuNg= 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=dfEG14SCauCF5N6vePfRl8cxyWFv7dfYgRGn/r1vSmM=; b=b67tOrlYGNyzic9Hn+P5tXOsWp6wAlufad3aCpY+Bxxy9/E+oT0UMv9mtnFXsJeZ10 W9pLyz87t4eHqz5Its1E8l1q98JN75ykdYSq2zSM90iMfV2JyYSl2t2bwKyhxjo4C4TW jtZjFs0fHFDx3D0GY+TAdZzttmcvsac7lzDUmqY7jX7ZdSkOcQWG2mwFjOGzxzIRrvI3 viMBu3nsv1TRyHv4rdyQXsSE83iALaCH1hlGjxBR2/tXsSCD8PRGk9KmPaUJOdMrQrP1 PYfXmEJa8NNQCQV2jUHgePlbTJvDpnVQSj8ujTdoerw48b2lmo1O4F6Li4UlpMfkjftB i8VQ== X-Gm-Message-State: AEkoouu/yorvbj9PNjP2/cVxNTxsceef2+fpi2pNh8zKRcYP06NkSzkGiaPMhokp1Ctqo3Lu X-Received: by 10.46.33.84 with SMTP id h81mr767334ljh.47.1472043593431; Wed, 24 Aug 2016 05:59:53 -0700 (PDT) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 184sm1882012lfz.22.2016.08.24.05.59.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Aug 2016 05:59:51 -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 v2] net: smsc911x: augment device tree bindings Date: Wed, 24 Aug 2016 14:59:40 +0200 Message-Id: <1472043582-7653-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 Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Document for "interrupts", skip mentioning "interrupts-extended" as both are always supported. --- Documentation/devicetree/bindings/net/smsc911x.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/smsc911x.txt b/Documentation/devicetree/bindings/net/smsc911x.txt index 3fed3c124411..11c4a46ba682 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 : 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; };