From patchwork Mon Dec 28 01:34:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 7924471 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9DB929F349 for ; Mon, 28 Dec 2015 01:36:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5CFD20253 for ; Mon, 28 Dec 2015 01:36:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D00D120251 for ; Mon, 28 Dec 2015 01:36:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751820AbbL1Bfi (ORCPT ); Sun, 27 Dec 2015 20:35:38 -0500 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36682 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417AbbL1Ben (ORCPT ); Sun, 27 Dec 2015 20:34:43 -0500 Received: by mail-pa0-f54.google.com with SMTP id yy13so10187081pab.3 for ; Sun, 27 Dec 2015 17:34:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kryo-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yEvZ8GBrbCiLTX3cwBH3bPavk7YnGucgGzPUvwkdP8I=; b=z6lG8zSILlksaJdwVHJLblQdhVKhc7RO0VS2sYz7p9TA4on9BE2ZcWM7XKdToa+WDD iAsEgBTHh9L789MoOrnnX8i1Cm4/fwsKBcayLn8yYeJ9x++iesWDj1647tNQ2rauxIwI hNAH9SvATpQvyHklTFBW0IADIuepF6SMaTF7v5QdctZDrarcnli5qFFmiar2Xd1Oftuv SeW2jd7wPkKP0jJlkdrSKw+dgp/+3AJiW2E0EJ5oKFnfiSupRhV8E+bqtqeezlia2qQq q4/NDZeVSQmNgh11FlT4R8mJWz6svYvXJjdSgmKt1R07mzXr3TDv4Ec6Au7Ngldbf/BN MmHw== 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:in-reply-to :references; bh=yEvZ8GBrbCiLTX3cwBH3bPavk7YnGucgGzPUvwkdP8I=; b=KPrOP0y0B23a/IHjoqBNl5M+KVL62pv8LPUzyuVdwUHERKUsjWu9hujk1OlKmi4fso Bazhln8R1KxpEPyuiiiMpDc9DT24LMWnhbJkDuPagfJvqG2uOVL0KsHqswJg+QhQX/NO z8fkZm1CqEWxW+bth2yBuvn/KxDq9hr4RpIqLteRxmgscsd49siucWXuYyfy24IOfUqk L1T/ALJVMyOeVBo0p96mUlpOwsWoEVc923Hyf4tiH1foI+lUpzpeWrMU/d55+PDeGJSG Mya9OzqUHDgkxpKSGg0XzvsRGv1fD6n8qcaQDclY4HQTtb9QqzqIbgw/3bTG60O0Lt1W okbA== X-Gm-Message-State: ALoCoQleShj8RtfJnUZr2mqntTLHhguhstXUWab9s/LZCGP+nGqlu9ss33l/z4/f9naerEc5o/iYYF5st0VOV+OYfvZcC71KtQ== X-Received: by 10.66.193.73 with SMTP id hm9mr75226526pac.117.1451266482439; Sun, 27 Dec 2015 17:34:42 -0800 (PST) Received: from tuxbot.san.rr.com (cpe-76-167-68-231.natsow.res.rr.com. [76.167.68.231]) by smtp.gmail.com with ESMTPSA id p80sm47600850pfi.12.2015.12.27.17.34.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Dec 2015 17:34:41 -0800 (PST) From: Bjorn Andersson X-Google-Original-From: Bjorn Andersson To: Eugene Krasnikov , Ian Campbell , Kalle Valo , Mark Rutland , Pawel Moll , Rob Herring Cc: devicetree@vger.kernel.org, fengwei.yin@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, wcn36xx@lists.infradead.org Subject: [PATCH 4/4] dt: binding: Add Qualcomm wcn36xx WiFi binding Date: Sun, 27 Dec 2015 17:34:27 -0800 Message-Id: <1451266467-15377-5-git-send-email-bjorn.andersson@sonymobile.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1451266467-15377-1-git-send-email-bjorn.andersson@sonymobile.com> References: <1451266467-15377-1-git-send-email-bjorn.andersson@sonymobile.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add binding representing the Qualcomm wcn3620/60/80 WiFi block. Signed-off-by: Bjorn Andersson Reviewed-by: Andy Gross Acked-by: Rob Herring --- .../bindings/net/wireless/qcom,wcn36xx-wifi.txt | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/qcom,wcn36xx-wifi.txt diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,wcn36xx-wifi.txt b/Documentation/devicetree/bindings/net/wireless/qcom,wcn36xx-wifi.txt new file mode 100644 index 000000000000..7b314b9f30af --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/qcom,wcn36xx-wifi.txt @@ -0,0 +1,76 @@ +Qualcomm WCN36xx WiFi Binding + +This binding describes the Qualcomm WCN36xx WiFi hardware. The hardware block +is part of the Qualcomm WCNSS core, a WiFi/BT/FM combo chip, found in a variety +of Qualcomm platforms. + +- compatible: + Usage: required + Value type: + Definition: must be one of: + "qcom,wcn3620-wlan", + "qcom,wcn3660-wlan", + "qcom,wcn3680-wlan" + +- qcom,smd-channel: + Usage: required + Value type: + Definition: standard SMD property specifying the SMD channel used for + communication with the WiFi firmware + +- interrupts: + Usage: required + Value type: + Definition: should specify the two IRQs for tx and rx respectively + +- qcom,wcnss-mmio: + Usage: required + Value type: + Definition: should specify base address and size of the WiFi related + registers of WCNSS + +- qcom,state: + Usage: required + Value type: + Definition: should specify the tx-enable and tx-ring-empty state + references + +- qcom,state-names: + Usage: required + Value type: + Definition: name of the states, must be "tx-enable", "tx-rings-empty"; + +- local-mac-address: + Usage: optional + Value type: encoded as array of hex numbers + Definition: specifies MAC address that was assigned to the network + device described by the node containing this property. + += EXAMPLE +The following example represents a SMD node, with one edge representing the +"pronto" subsystem, with the wcn3680 WiFi device described; as found on the +8974 platform. + +smd { + compatible = "qcom,smd"; + + pronto { + interrupts = <0 142 1>; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + + wifi { + compatible = "qcom,wcn3680-wlan"; + qcom,smd-channels = "WLAN_CTRL"; + + interrupts = <0 145 0>, <0 146 0>; + interrupt-names = "tx", "rx"; + + qcom,wcnss-mmio = <0xfb000000 0x21b000>; + + qcom,state = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,state-names = "tx-enable", "tx-rings-empty"; + }; + }; +};