From patchwork Fri Jun 20 05:48:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varka Bhadram X-Patchwork-Id: 362077 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 6A571140096 for ; Fri, 20 Jun 2014 15:49:55 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934654AbaFTFtu (ORCPT ); Fri, 20 Jun 2014 01:49:50 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:36580 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933914AbaFTFtt (ORCPT ); Fri, 20 Jun 2014 01:49:49 -0400 Received: by mail-pb0-f47.google.com with SMTP id up15so2721381pbc.6 for ; Thu, 19 Jun 2014 22:49:49 -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=dskhXE+GAXrrQSRBj0rZiuejqRvkknSzRxV+ggc1tMA=; b=lhZffriRhoXH3yWEecO/k+irmAvZ3S4QDSanYRTk3Yc/yy36RPL8Rvl8oM0z4c3YKN FM/jkZyUayegc7ZU+UEqLYU9vFqDmJCWFkRHdrIM4KOe+rf4oyGuQEXwylyh6HK3tvcy DE9AxE44wCzUoXEEE+zY/Yk84g4l2EujAAJRca6oMxFXq+0nOyABwc0kIckiTDh4PHng M0yPtVigZURyDa4BaE44BeQM/yrHGd211izYFTKmF0Un3oo3dkg0fl88025AMtDCyGt2 /ODcc9k0I+MNAOl6AMRA9s+HISiJ8zeLIlSSzUHrZmzmNFqldNtyaWzCYl4hDss/RPyj uGaQ== X-Received: by 10.68.132.68 with SMTP id os4mr1691451pbb.129.1403243389192; Thu, 19 Jun 2014 22:49:49 -0700 (PDT) Received: from cdac.hyderabad.cdac.in ([196.12.45.164]) by mx.google.com with ESMTPSA id ec2sm11497895pbc.63.2014.06.19.22.49.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Jun 2014 22:49:48 -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, davem@davemloft.net, devicetree@vger.kernel.org, sowjanyap@cdac.in, venkatas@cdac.in, santoshk@cdac.in, Varka Bhadram Subject: [PATCH net-next v6 3/3] devicetree: add device tree bindings for cc2520 driver Date: Fri, 20 Jun 2014 11:18:14 +0530 Message-Id: <1403243294-15400-4-git-send-email-varkab@cdac.in> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403243294-15400-1-git-send-email-varkab@cdac.in> References: <1403243294-15400-1-git-send-email-varkab@cdac.in> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org DT bindings for cc2520 radio driver Signed-off-by: Varka Bhadram --- .../devicetree/bindings/net/ieee802154/cc2520.txt | 29 ++++++++++++++++++++ 1 file changed, 29 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..6b41f78 --- /dev/null +++ b/Documentation/devicetree/bindings/net/ieee802154/cc2520.txt @@ -0,0 +1,29 @@ +*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 + - pinctrl-0: pin control group to be used for this controller. + - pinctrl-names: must contain a "default" entry. + - fifo-gpio: GPIO spec for the FIFO pin + - fifop-gpio: GPIO spec for the FIFOP pin + - sfd-gpio: GPIO spec for the SFD pin + - cca-gpio: GPIO spec for the CCA pin + - vreg-gpio: GPIO spec for the VREG pin + - reset-gpio: GPIO spec for the RESET pin +Example: + cc2520@0 { + compatible = "ti,cc2520"; + reg = <0>; + spi-max-frequency = <4000000>; + pinctrl-names = "default"; + pinctrl-0 = <&cc2520_cape_pins>; + 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>; + };