From patchwork Mon Jun 16 04:51:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varka Bhadram X-Patchwork-Id: 359925 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 795311400D6 for ; Mon, 16 Jun 2014 14:53:40 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753403AbaFPExY (ORCPT ); Mon, 16 Jun 2014 00:53:24 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:40011 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180AbaFPExJ (ORCPT ); Mon, 16 Jun 2014 00:53:09 -0400 Received: by mail-pd0-f172.google.com with SMTP id w10so1386836pde.3 for ; Sun, 15 Jun 2014 21:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=isjXzZnWAsorRDIpwBuVR0675SWQ49cIPAPLxa9XzGk=; b=QS5Ms2lhG1ufDO2AN3O5ZX2r1JENl8VnZCtN6fL3G6wAljM22Qbk7GJiyCMg+m2Bg1 XfIwe3h7wndiipvy6hwtdLUh4p1HxJGZ2E0B/WlpBGL9QGqRFAagBAvw9NsmjXS+0QEB U5i5isDYjUAgEMTwNcY0rNs1JbspsTkH8VMrJmY9ZEz5Z3cBNjeuzP+6ngbLqDpJe48c goF/Q7YQ43XzrlEg3uKAZkE1qdzOYVAJzVHgaXq+kJ1iASb1XRqDg96hMHp+2uCYeRDi GQuy3w5137eyIm4mccNEfVn7CdAdkbO/VI42XbsfRo+VKdW/H5dL0K0ijYERU8HRBR9s fzhQ== X-Received: by 10.66.142.199 with SMTP id ry7mr21407863pab.10.1402894388781; Sun, 15 Jun 2014 21:53:08 -0700 (PDT) Received: from cdac.hyderabad.cdac.in ([196.12.45.164]) by mx.google.com with ESMTPSA id tu3sm62600337pab.1.2014.06.15.21.53.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Jun 2014 21:53:08 -0700 (PDT) From: Varka Bhadram X-Google-Original-From: Varka Bhadram To: netdev@vger.kernel.org Cc: alex.bluesman.smirnov@gmail.com, dbaryshkov@gmail.com, linux-zigbee-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, davem@davemloft.net, Varka Bhadram Subject: [PATCH net-next 3/3] devicetree: add devicetree bindings for cc2520 driver Date: Mon, 16 Jun 2014 10:21:58 +0530 Message-Id: <1402894318-30349-4-git-send-email-varkab@cdac.in> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402894318-30349-1-git-send-email-varkab@cdac.in> References: <1402894318-30349-1-git-send-email-varkab@cdac.in> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Varka Bhadram --- .../devicetree/bindings/net/ieee802154/cc2520.txt | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/ieee802154/cc2520.txt diff --git a/Documentation/devicetree/bindings/net/ieee802154/cc2520.txt b/Documentation/devicetree/bindings/net/ieee802154/cc2520.txt new file mode 100644 index 0000000..f0a749d --- /dev/null +++ b/Documentation/devicetree/bindings/net/ieee802154/cc2520.txt @@ -0,0 +1,26 @@ +CC2520 IEEE 802.15.4 Compatible Radio + +Required properties: + - compatible: should be "ti,cc2520" + - spi-max-frequency: maximal bus speed (8000000), should be set to 4000000 depends + sync or async operation mode + - reg: the chipselect index + - mode: SPI mode +Example: + + cc2520@0 { + compatible = "ti,cc2520"; + reg = <0>; + spi-max-frequency = <4000000>; + mode = <1>; + + pinctrl-names = "default"; + pinctrl-0 = <&cc2520_cape_pins>; /*GPIO pin muxing details*/ + + fifo-gpio = <&gpio1 18 0>; + fifop-gpio = <&gpio1 19 0>; + sfd-gpio = <&gpio1 13 0>; + cca-gpio = <&gpio1 16 0>; + vreg-gpio = <&gpio0 31 0>; + reset-gpio = <&gpio1 12 0>; + };