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: 7924411 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BB6CDBEEE5 for ; Mon, 28 Dec 2015 01:35:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E0C2920253 for ; Mon, 28 Dec 2015 01:35:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7845720254 for ; Mon, 28 Dec 2015 01:35:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbbL1BfL (ORCPT ); Sun, 27 Dec 2015 20:35:11 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34362 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862AbbL1Ben (ORCPT ); Sun, 27 Dec 2015 20:34:43 -0500 Received: by mail-pa0-f42.google.com with SMTP id uo6so80058177pac.1 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=NYQnGT8xjQ8OvOdeZbvqnI3rFFnZS4HSFQO55AhoSYJi15ngwXU1FAR3Fn8QNHXzid CHpVJuGNyY/MdQHi/mmX1lDDPZ6fxW3KvsaB1I7kggLosdae43fLpzdI5JahU9xSnp1y RmNCIq7a29y2gp/smzKti90PVIVl8JXwwwJXRAmowsSW0juXwQDKbCL2rXjhzN+8u2yB 5eDLtL+no1NeH76IIVhyYY7JFS87L7j55OQcdf4toiaX/OLHkJtQJFAwmbnDUdEESpYU CWAkMVqihFM5E/SKReRTrXf6oGxI9LsEQGpj5hxfeTjeuXLpD2uRGs4na7O07nxjXAh1 txZA== X-Gm-Message-State: ALoCoQlMKc0Kt0JUrDychM1ecm2TpNLiqsvFoZGMLszMohgJsi9Y/LUCPxgTrJ+jwrgkB1QiG2dLZFTLtlLf1MyiJHoOr86Slg== 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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"; + }; + }; +};