From patchwork Tue Mar 29 04:35:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 64564 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1794658lbc; Mon, 28 Mar 2016 21:36:25 -0700 (PDT) X-Received: by 10.66.235.9 with SMTP id ui9mr193482pac.135.1459226185303; Mon, 28 Mar 2016 21:36:25 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tr1si1374781pab.135.2016.03.28.21.36.25; Mon, 28 Mar 2016 21:36:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755853AbcC2EgX (ORCPT + 8 others); Tue, 29 Mar 2016 00:36:23 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36513 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751471AbcC2Efb (ORCPT ); Tue, 29 Mar 2016 00:35:31 -0400 Received: by mail-pa0-f54.google.com with SMTP id tt10so4511788pab.3 for ; Mon, 28 Mar 2016 21:35:31 -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:references; bh=oR/jNtsQiuJNRQBruxBZUzSdTI0nk5ntzWIc8Fe/liA=; b=DmXjcQyTSp/17MMJFGoBUWM0hJNPhw55LnqbwFjllxc6/sisv27ZxtZK83QxoG3cks O2rIqutMEfet6c6pLoFK+fQHGFo7TU82KhnCWQDeOsQ0t98pBF7NvG0czD4DMx7z5Pb0 RBblvAXcIg0s4Wp5IZ5xKj/cqy5pnLDnFackc= 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=oR/jNtsQiuJNRQBruxBZUzSdTI0nk5ntzWIc8Fe/liA=; b=lWqsQFUb1PJU0mpp4z9V1JXxh+PJ4cp40NmQtFPfFFFbpQ2fAJuGBZ/3JajyHEx7Cq KDIAr8V6Ia9Yd1DzUVyE9YtiL8eOIs2uIilwbFMEV7uWFyBN/T8qDalRCJG5Nq9EeH7E jOT+q4ZnpRDZxNOHpv0B8Zzy1Y9/rFrq5q3VzxgPufFdnQRpi6ST4fwUBX5gk3NteFLx VyBcGIqK9GR07m3CCAyQ0H5FBYTSAKud5xa/QLMGGTzIVDKHF5Tu4SVNMr4bURA+uBVY nTCv1kgI5PcOLn0sjpvImtz1IIeUHNb1l9lFnEU27A6Lwyt5SKRnjJhLWPf5m5TmYtjh MLAQ== X-Gm-Message-State: AD7BkJJv2qxloz1HxO/m2gs7tJqJRnIt6cG1BKoGfoTsBwk4kkPqQwHjC7pSAVNpSm3MQhYl X-Received: by 10.67.7.1 with SMTP id cy1mr196121pad.123.1459226130996; Mon, 28 Mar 2016 21:35:30 -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 o69sm39133068pfi.14.2016.03.28.21.35.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Mar 2016 21:35:30 -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 3/5] dt-binding: Add Qualcomm WCNSS control binding Date: Mon, 28 Mar 2016 21:35:24 -0700 Message-Id: <1459226126-16725-3-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459226126-16725-1-git-send-email-bjorn.andersson@linaro.org> References: <1459226126-16725-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 --- Got a reviewed-by from Andy and acked-by from Rob on the WiFi part of this binding. But during futher testing I spotted a timing issue, where the wcnss_ctrl driver must finish the uploading of NV to the core os of the wcnss before the wifi driver can initiate any communication with the wifi part (although available from the get-go). The sanest way I could figure to model this is to describe the core part as parent of the wifi and bt pieces. .../devicetree/bindings/soc/qcom/qcom,wcnss.txt | 104 +++++++++++++++++++++ 1 file changed, 104 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..5488904b6185 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt @@ -0,0 +1,104 @@ +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 + += 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,btqcomsmd" + +== WiFi +The following properties are defined to the WiFi node: + +- compatible: + Usage: required + Value type: + Definition: must be one of: + "qcom,wcn3620-wlan", + "qcom,wcn3660-wlan", + "qcom,wcn3680-wlan" + +- qcom,wcnss-mmio: + Usage: required + Value type: + Definition: should specify base address and size of the WiFi related + registers of WCNSS + +- 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>; + + bt { + compatible = "qcom,btqcomsmd"; + }; + + wifi { + compatible = "qcom,wcn3680-wlan"; + + qcom,wcnss-mmio = <0xfb000000 0x21b000>; + + 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"; + }; + }; + }; +};