From patchwork Fri May 25 11:15:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 136840 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3442740lji; Fri, 25 May 2018 04:18:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqEJs1LIxjydgyMzumwvxCJ3luYd7IWE83+zDrcRtIzo/Zmxie/FPIMCBxF/kpW8Oj/ryO/ X-Received: by 2002:a17:902:8218:: with SMTP id x24-v6mr2167058pln.57.1527247096203; Fri, 25 May 2018 04:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527247096; cv=none; d=google.com; s=arc-20160816; b=KdHKWVXGkSrMjvW8JnaLlASFc1FgS/PmGy3O6/k0htSwaqhVQk7LRxFYZ/wfkzJ6J4 lNrpdOY45FMD17+txsyuVRxABPxkZaSXtXc4P0hzxhKczm5eIlulDe3hlYbliciVGenh hoNcd9lz+iVE5dxqK0rdy5Gu9ZQSPN5KrGNg2dMyoZiWIAuAil7RVZwLv2HL4zCrVIoK ClGfdnKdSG2k419JpBotklQdXhQQvjXQdkFljTdkK+Cc2vimZVK21skEGVuaNlygPcJK rI6Y5mPSLNV9+eLgpPTb0fNOWc3V7lUfHdNkzmQbgyn6hL8/w2OdeSNxTUt5utyooONq xZkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=A4YPrlBf1E9n+7b/eeqsYKytLQB8/Py4UzrU/yMkMGQ=; b=iU/021SWG0BCmhZNLFOCVdYlgoGUoO+FMkaEcJH3mUP4HdCJyLkYd73jABLTgE5AGf FO62dHuxU+PY+aaeyNPnnvybtNsHTS2cx98xDL8MI/HDhRutmp3M+p3+jtUSn9nwlfXd v3l44Pfzo1SwOURCXbkx+Wk2V5d6PmmHAhUPq7ddvWmXh3+XJm09u5iDZ/CiBRTaKfia rIhccG9hxA61/sq0/IykCVZ+0D6dNuiOMLee0mYYre7pN3R0AV+TPNXV9fF4bzvpsIf7 qb6XAmj6CJcj9NhGrg+PIH4EJeCxeNbWzWOjNRi57ZWYrdXhgQTuou+2H8koUXFAvBib C+Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CZpHFhGT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6-v6si22804127pfh.17.2018.05.25.04.18.15; Fri, 25 May 2018 04:18:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CZpHFhGT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966396AbeEYLSL (ORCPT + 30 others); Fri, 25 May 2018 07:18:11 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33340 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966232AbeEYLSH (ORCPT ); Fri, 25 May 2018 07:18:07 -0400 Received: by mail-wm0-f67.google.com with SMTP id x12-v6so31891503wmc.0 for ; Fri, 25 May 2018 04:18:06 -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=A4YPrlBf1E9n+7b/eeqsYKytLQB8/Py4UzrU/yMkMGQ=; b=CZpHFhGT1C3/L7uKA/eyGbhdOF9HSMcQ9KoTG24mk90qUq/x1jYSVdty2Lxyj5VQ5A dYizc940srCCR7GsJJdNq9RyrXRvTSy4xsxKLkHf9G/UR1wF/bZCbnzajmTDufHNhh/q PgvITTKWCZBlXYybaT5lB7F50C8cd0rCjtQ/0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=A4YPrlBf1E9n+7b/eeqsYKytLQB8/Py4UzrU/yMkMGQ=; b=LOaQgoV9TkRs7Bp3St9R/JxqkVRZJFG0ScTKNKwRemYe4yWQoG1qOJaKJHdcmS4Nnl Hwb3xWxUiouPRXlP62vYMsIS/MNRzDL46LcHKLZJssXtN2+th+ZJaAEuWpLEoYjLf5FE MmKYm2Tpd71qQx8BTK9+S30dpZlRA8ke5M8KgyeCZo2i3o9GBGo/UIvLMEKHPBRUg4uv KJtxdB6KbPjHkRtAEYZoAaBxc07taR+FASUHjvEEZnCoUFC7E1WdDd362YhrIT6zENPu TQZhwSC0ZcrmJ+BB9qYyP3O2DS+PTsTNsoptqQdsP9AdXXPCjht6EFAxHrLullSBEtJw r1Vw== X-Gm-Message-State: ALKqPwd+vDLCcU6Fm3THzX7qbR7QYje4z20SeC5csieq9nyB5lbzL4sR N+mtdyngiZEsbPqU4cWvr6BXzA== X-Received: by 2002:a1c:1047:: with SMTP id 68-v6mr1418081wmq.132.1527247086335; Fri, 25 May 2018 04:18:06 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id b105-v6sm30536884wrd.64.2018.05.25.04.18.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 May 2018 04:18:05 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org, robh+dt@kernel.org Cc: kramasub@codeaurora.org, sdharia@quicinc.com, girishm@quicinc.com, linux-kernel@vger.kernel.org, mark.rutland@arm.com, bgoswami@codeaurora.org, devicetree@vger.kernel.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, srinivas.kandagatla@linaro.org Subject: [PATCH v2 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings Date: Fri, 25 May 2018 12:15:46 +0100 Message-Id: <20180525111547.18556-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180525111547.18556-1-srinivas.kandagatla@linaro.org> References: <20180525111547.18556-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for Qualcomm SLIMBus NGD controller. SLIMBus NGD controller is a light-weight driver responsible for communicating with SLIMBus slaves directly over the bus using messaging interface and communicating with master component residing on ADSP for bandwidth and data-channel management Signed-off-by: Srinivas Kandagatla --- .../bindings/slimbus/slim-ngd-qcom-ctrl.txt | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/slimbus/slim-ngd-qcom-ctrl.txt -- 2.16.2 diff --git a/Documentation/devicetree/bindings/slimbus/slim-ngd-qcom-ctrl.txt b/Documentation/devicetree/bindings/slimbus/slim-ngd-qcom-ctrl.txt new file mode 100644 index 000000000000..e94a2ad3a710 --- /dev/null +++ b/Documentation/devicetree/bindings/slimbus/slim-ngd-qcom-ctrl.txt @@ -0,0 +1,84 @@ +Qualcomm SLIMBus Non Generic Device (NGD) Controller binding + +SLIMBus NGD controller is a light-weight driver responsible for communicating +with SLIMBus slaves directly over the bus using messaging interface and +communicating with master component residing on ADSP for bandwidth and +data-channel management + +Please refer to slimbus/bus.txt for details of the common SLIMBus bindings. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,slim-ngd-v.." + must be one of the following. + "qcom,slim-ngd-v1.5.0" for MSM8996 + "qcom,slim-ngd-v2.1.0" for SDM845 + +- reg: + Usage: required + Value type: + Definition: must specify the base address and size of the controller + register space. +- dmas + Usage: required + Value type: + Definition: List of rx and tx dma channels + +- dma-names + Usage: required + Value type: + Definition: must be "rx" and "tx". + +- interrupts: + Usage: required + Value type: + Definition: must list controller IRQ. + +#address-cells + Usage: required + Value type: + Definition: Should be 1, reflecting the instance id of ngd. + +#size-cells + Usage: required + Value type: + Definition: Should be 0 + += NGD Devices +Each subnode represents an instance of NGD, must contain the following +properties: + +- reg: + Usage: required + Value type: + Definition: Should be instance id of ngd. + +#address-cells + Usage: required + Refer to slimbus/bus.txt for details of the common SLIMBus bindings. + +#size-cells + Usage: required + Refer to slimbus/bus.txt for details of the common SLIMBus bindings. + += EXAMPLE + +slim@91c0000 { + compatible = "qcom,slim-ngd-v1.5.0"; + reg = <0x91c0000 0x2c000>; + interrupts = <0 163 0>; + dmas = <&slimbam 3>, <&slimbam 4>; + dma-names = "rx", "tx"; + #address-cells = <1>; + #size-cells = <0>; + ngd@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <1>; + codec@1 { + compatible = "slim217,1a0"; + reg = <1 0>; + }; + }; +};