From patchwork Mon Jun 6 23:58:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 69456 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1717159qgf; Mon, 6 Jun 2016 16:58:27 -0700 (PDT) X-Received: by 10.98.65.209 with SMTP id g78mr27973353pfd.163.1465257507249; Mon, 06 Jun 2016 16:58:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gy6si17034954pac.239.2016.06.06.16.58.26; Mon, 06 Jun 2016 16:58:27 -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 S1751993AbcFFX6Y (ORCPT + 8 others); Mon, 6 Jun 2016 19:58:24 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:32990 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750878AbcFFX6X (ORCPT ); Mon, 6 Jun 2016 19:58:23 -0400 Received: by mail-pf0-f176.google.com with SMTP id y124so11888805pfy.0 for ; Mon, 06 Jun 2016 16:58:23 -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:in-reply-to; bh=1z+qAcZD2SLVSi/dnrYxNWdXXbN/+krnuCj32xxhPr0=; b=T+yFtietffHoz7x2n09TPiJ9PUSQ6+YMe2ZqQsjG2qDpto4g7eJJfO+Ts/wXAgWoJC gEDnD1Tuaewvf0nmZHW71rrBPp0LakixSu2AUEZPYII1dBZGvViF51BpjmUBYGDbd6wM yFoZtAnaXN/6ncMX8Dc9QMRMHsMl+cQDcI8ks= 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; bh=1z+qAcZD2SLVSi/dnrYxNWdXXbN/+krnuCj32xxhPr0=; b=I4DKIW+fX8rZ67SFFoj7c3cvhQ5VxKvcw4R7V2xH/jKaD3gk0N8i2IOBYR60+x6tpQ uaIRMItbVPa2Pt8CQfhAH+kB33Si94qGrFmSV9ahn4huKkEB8Bcd5QgiQq15X9gUOUKY csaI3vuWeUbNmvle6Z4Czciq0vGLGk55IjQksekKqqEGMA+6m6HKNLj2EFBo/P/XPxME Vg33w5yKuu1Xjaio1V8RSCiwidQiRxBJ8Y/tamXMrACtTpMRTWYyVqzmZGQ2HJNPBRBS ys4+C+qsZ5mDHK9JMdIDabmKCnJHkgX5luLiNLxDA3D1DxoQKdGHkSsRbkG16ODHE+RF GdaA== X-Gm-Message-State: ALyK8tLxfYKlqinyAjZW6yhnWc+CSnO3odoV4zt01rmW07P2Q4AaiGLQBATPrEj63UEM+ox2 X-Received: by 10.98.106.65 with SMTP id f62mr27891456pfc.126.1465257502481; Mon, 06 Jun 2016 16:58:22 -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 b67sm30126876pfc.74.2016.06.06.16.58.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jun 2016 16:58:21 -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, devicetree@vger.kernel.org Subject: [PATCH v4 1/2] dt: binding: Add Qualcomm WCNSS control binding Date: Mon, 6 Jun 2016 16:58:19 -0700 Message-Id: <1465257500-28176-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1465256804-27281-1-git-send-email-bjorn.andersson@linaro.org> 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 v3: - Included missed fixup of the smem-state properties Changes since v2: - Fixup some misstakes in the document pointed out by Rob 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 | 116 +++++++++++++++++++++ 1 file changed, 116 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..4ea39e9186a7 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt @@ -0,0 +1,116 @@ +Qualcomm WCNSS Binding + +This binding describes the Qualcomm WCNSS hardware. It consists of control +block and a BT, WiFi and FM radio block, all using 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. + Should be "WCNSS_CTRL". + +- 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,smem-state: + Usage: required + Value type: + Definition: should reference the tx-enable and tx-rings-empty SMEM states + +- qcom,smem-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-edge { + 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,mmio = <&pronto>; + + bt { + compatible = "qcom,wcnss-bt"; + }; + + wlan { + compatible = "qcom,wcnss-wlan"; + + interrupts = <0 145 0>, <0 146 0>; + interrupt-names = "tx", "rx"; + + qcom,smem-state = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-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"; + }; +};