From patchwork Wed Jun 18 14:06:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varka Bhadram X-Patchwork-Id: 361503 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 92F5B140078 for ; Thu, 19 Jun 2014 00:08:47 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756789AbaFROIM (ORCPT ); Wed, 18 Jun 2014 10:08:12 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:35943 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756767AbaFROHz (ORCPT ); Wed, 18 Jun 2014 10:07:55 -0400 Received: by mail-pd0-f174.google.com with SMTP id y10so735110pdj.5 for ; Wed, 18 Jun 2014 07:07:54 -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=qWvScJQJ8xLqe+nlhB4TDpUfigMZq+DW064T/VB8FFbPF5fHVZudAh9vLrLw5mZ47M LSkaLf2tIjoAyW9HlXUIBzFcbzhVYp0hL1M3vw3s0wkTePM525YRSJjBDlSgMyZ7XhBM XiWybFX9wnItMdrUppdrBAHOSy87cTXXbryg9JWYlfJeD1h5dskz8TOwBpgyvO1ZEy/d a27AMGvqswN1ixmrRTBQF5nGQcIetHOOmPOj0d5GWzMPEjt0gtSpSFD+bYRxV34SNVk2 /POGOUtiaxy7yLpSwK/512g5BjsTwdozVbae8Tpa2WVzVs6WywSlGfqM1hYxybKFNfPj mqVg== X-Received: by 10.68.129.42 with SMTP id nt10mr2929188pbb.134.1403100474880; Wed, 18 Jun 2014 07:07:54 -0700 (PDT) Received: from cdac.hyderabad.cdac.in ([196.12.45.164]) by mx.google.com with ESMTPSA id mt1sm3709118pbb.31.2014.06.18.07.07.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 07:07:54 -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, devicetree@vger.kernel.org, Varka Bhadram Subject: [PATCH net-next v4 3/3] devicetree: add device tree bindings for cc2520 driver Date: Wed, 18 Jun 2014 19:36:43 +0530 Message-Id: <1403100403-6429-4-git-send-email-varkab@cdac.in> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403100403-6429-1-git-send-email-varkab@cdac.in> References: <1403100403-6429-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>; + };