From patchwork Thu May 12 23:17:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 67709 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp999456qge; Thu, 12 May 2016 16:17:54 -0700 (PDT) X-Received: by 10.66.164.165 with SMTP id yr5mr17743665pab.133.1463095074607; Thu, 12 May 2016 16:17:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id or6si20424824pac.233.2016.05.12.16.17.54; Thu, 12 May 2016 16:17:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751637AbcELXRx (ORCPT + 8 others); Thu, 12 May 2016 19:17:53 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:32905 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751352AbcELXRv (ORCPT ); Thu, 12 May 2016 19:17:51 -0400 Received: by mail-pf0-f169.google.com with SMTP id 206so35611347pfu.0 for ; Thu, 12 May 2016 16:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gv+SXVrrcBV8WA8sNjY+bU97T7pC6LCOWZeUAbJgXp8=; b=fsAfN2vTyyvvQW4c2TDL7l+ah9ZrRlMQpVivrnausU8HUjh4jTQ/v2TlZB/Rl3N7pg Oj61vjZ5bwRCd/cXShTtNLyxIb3d/gkmP5O3tcBPNzEkz5czslPztIdLgRzd57m4cCW/ LZRXcApYpfbcWDVUtR5IarAgCvIL2RRENZMuY= 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; bh=gv+SXVrrcBV8WA8sNjY+bU97T7pC6LCOWZeUAbJgXp8=; b=hUOjWWR3YNEFJaIXJu9r19JG6k8o8jyI+eXQ+ffNPBygJSVa/XinaRo3IsUO+ujiqc pJL+f+zXGi4++x0tLPqD+X5qvuAKGhOAvQj5XAiT8FjMehkT9ukQGSwZG81844tq8STy sEnswlU3bfCcW2CRzqcLeuEn/CeyzwGcA4FYLC8l5ot3kTTpP47goBaJJvsgMSzNlxmZ 4oscjgmuyxS/5qoxcoJwZtMNQOmD9f61u4hjHX+/GJt0w46pZYGqVNyjHri860zWHOM8 DJt8wUCV4zhqXCqdn0vMme5vamCh0iow2xGd2O/KZIBy+ZGftglItfKaV9mlWOX8tvrp yFbw== X-Gm-Message-State: AOPr4FVMfzOPA1/rGTzPl9rpbdRMkPGkSKqjO8ArMppIoW50wlExZW0lewVO2Mj0ji+a0YL/ X-Received: by 10.98.14.93 with SMTP id w90mr17813404pfi.69.1463095071092; Thu, 12 May 2016 16:17:51 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id d186sm22344759pfa.45.2016.05.12.16.17.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 May 2016 16:17:50 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt: binding: Add Qualcomm WCNSS control binding Date: Thu, 12 May 2016 16:17:47 -0700 Message-Id: <1463095068-32225-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This binding describes the control interface for the Qualcomm WCNSS. Signed-off-by: Bjorn Andersson --- Changes since v1: - Introduce reference to wcnss block node for register block definition - Use wcnss block node compatible for hw version detection (riva vs pronto) - Clean up compatible name for bt node .../devicetree/bindings/soc/qcom/qcom,wcnss.txt | 115 +++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt new file mode 100644 index 000000000000..5413098a1e1a --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt @@ -0,0 +1,115 @@ +Qualcomm WCNSS Binding + +This binding describes the Qualcomm WCNSS hardware. It consists of control +block and a BT, WiFi and FM radio block, all useing SMD as command channels. + +- compatible: + Usage: required + Value type: + Definition: must be: "qcom,wcnss", + +- qcom,smd-channel: + Usage: required + Value type: + Definition: standard SMD property specifying the SMD channel used for + communication with the WiFi firmware + +- qcom,mmio: + Usage: required + Value type: + Definition: reference to a node specifying the wcnss "ccu" and "dxe" + register blocks. The node must be compatible with one of + the following: + "qcom,riva", + "qcom,pronto" + += SUBNODES +The subnodes of the wcnss node are optional and describe the individual blocks in +the WCNSS. + +== Bluetooth +The following properties are defined to the bluetooth node: + +- compatible: + Usage: required + Value type: + Definition: must be: + "qcom,wcnss-bt" + +== WiFi +The following properties are defined to the WiFi node: + +- compatible: + Usage: required + Value type: + Definition: must be one of: + "qcom,wcnss-wlan", + +- interrupts: + Usage: required + Value type: + Definition: should specify the "rx" and "tx" interrupts + +- interrupt-names: + Usage: required + Value type: + Definition: must contain "rx" and "tx" + +- qcom,state: + Usage: required + Value type: + Definition: should reference the tx-enable and tx-rings-empty SMEM states + +- qcom,state-names: + Usage: required + Value type: + Definition: must contain "tx-enable" and "tx-rings-empty" + += EXAMPLE +The following example represents a SMD node, with one edge representing the +"pronto" subsystem, with the wcnss device and its wcn3680 BT and WiFi blocks +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>; + + wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + #address-cells = <1>; + #size-cells = <1>; + + qcom,wcnss = <&pronto>; + + bt { + compatible = "qcom,wcnss-bt"; + }; + + wlan { + compatible = "qcom,wcnss-wlan"; + + interrupts = <0 145 0>, <0 146 0>; + interrupt-names = "tx", "rx"; + + qcom,state = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,state-names = "tx-enable", "tx-rings-empty"; + }; + }; + }; +}; + +soc { + pronto: pronto { + compatible = "qcom,pronto"; + + reg = <0xfb204000 0x2000>, <0xfb202000 0x1000>, <0xfb21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu"; + }; +};