From patchwork Fri Jun 20 12:17:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varka Bhadram X-Patchwork-Id: 362233 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 AF13F140084 for ; Fri, 20 Jun 2014 22:22:02 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967360AbaFTMV6 (ORCPT ); Fri, 20 Jun 2014 08:21:58 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:50468 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966074AbaFTMV4 (ORCPT ); Fri, 20 Jun 2014 08:21:56 -0400 Received: by mail-pd0-f172.google.com with SMTP id w10so2946936pde.3 for ; Fri, 20 Jun 2014 05:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:subject:date:in-reply-to:references; bh=oaduxgNmj9OaOB/xbDdspvj8bDBFnfOgpwEiZlnmusM=; b=Ln7UdILmDIqfiYPn6jD8Yfkpm1SY2JB2YkySTq/B/nLQX/MXgoNYD8hBTTtPofz0Wo 0LVK9HrMEUSvb6sG5m+/CI3oIex5u5JIyOBBk7o+fpmMMGMhKJK2EpV/u0DN3RSkjzDB KguYBrJ0XfSVoAfBIiC8/ZZ0C5n7a6rzuIY+gQXkoLJl42hsxHiXSFH+98L0NEf+7mhX U2wt0nYVhq7n+zv9ANdwVspWfj6UHo9A+ctGfYimysv5uNOWLuD9VM/7KT1zgFrZhLY9 qlirgdS2EIJy8Ja09qZiqfT6l0/ShvYYf/GO9kg23INs1hIyj2QjrZPibNT4i9raT7fd 9Eug== X-Received: by 10.68.197.99 with SMTP id it3mr4086741pbc.37.1403266916272; Fri, 20 Jun 2014 05:21:56 -0700 (PDT) Received: from cdac.hyderabad.cdac.in ([196.12.45.164]) by mx.google.com with ESMTPSA id id10sm13330978pbc.35.2014.06.20.05.21.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 05:21:55 -0700 (PDT) Message-ID: <53a42763.6ac3440a.5afd.56c7@mx.google.com> X-Google-Original-Message-ID: <1403266637-6150-4-git-send-email-y> From: varkabhadram@gmail.com X-Google-Original-From: y To: netdev@vger.kernel.org Cc: alex.bluesman.smirnov@gmail.com, dbaryshkov@gmail.com, linux-zigbee-devel@lists.sourceforge.net, davem@davemloft.net, sowjanyap@cdac.in, venkatas@cdac.in, santoshk@cdac.in, Varka Bhadram Subject: [PATCH net-next v7 3/3] devicetree: add device tree bindings for cc2520 driver Date: Fri, 20 Jun 2014 17:47:17 +0530 X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403266637-6150-1-git-send-email-y> References: <1403266637-6150-1-git-send-email-y> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Varka Bhadram 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>; + };