From patchwork Fri Jun 1 09:11:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10442813 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 144BB601D3 for ; Fri, 1 Jun 2018 09:14:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07EE028E16 for ; Fri, 1 Jun 2018 09:14:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EED3F28E1C; Fri, 1 Jun 2018 09:14:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B61228E16 for ; Fri, 1 Jun 2018 09:14:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751052AbeFAJOC (ORCPT ); Fri, 1 Jun 2018 05:14:02 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35822 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbeFAJOA (ORCPT ); Fri, 1 Jun 2018 05:14:00 -0400 Received: by mail-wm0-f65.google.com with SMTP id j15-v6so1437539wme.0 for ; Fri, 01 Jun 2018 02:13:59 -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=PJdsAyA3boANJ8Oig23dpaUGq6oUImWdAfDoOGWfLfE=; b=Z1/MwJv1tpQLTCV41oPC7J5PjxjBgmGClNaff5wfysywB8+Qkj1EVNKe+VPxkLs9+w r7o/Lutq68GDnvnQ5oERdPXojRx3g4zy1WocEOGDjIWeau/4jQBV9+TBdEtH2plf0Zj9 GM3UBHNRqWEjv3AkFq5jSOTezTH9NNXoZkUVQ= 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=PJdsAyA3boANJ8Oig23dpaUGq6oUImWdAfDoOGWfLfE=; b=RF7xHBkN1S0YnaSGx8uCId9volqAcUopHNKnywAHTXZPHx6sU7UoSXxl9DgcZK+zVd Yk0fBUvVPy2q11taN2By0RVFvV3PdWzQuouZP1yAz7lFrQvJ0RLBeK9MYDCySmMaBiz+ C/gizr3OigNWGzcfyZNEj9PdR6TIr+I7QWYi3Cd0OrUmrRlQ5taccKwJcKheR5Y57lMl 0DRGPwvIURCauNpOqZBagcn858Z2/Xp2lcoJPTlW+pGHFu3B9oyFAkx+aYX5/wvVhg4j 2IQWoDbOQhGyrdGINXWrDWbO+ZvwjqepI15CO6A+f4ZPKj92/r5LOQXBR+IZZ9sL+0Gl hQBg== X-Gm-Message-State: APt69E1+2ONAXZ6cWpdiTF40YPl9bXL2SS2yUd2xPzkgmNI4rtATjr9M Yz8X82G7U3hKzq1D2Jq+oZWBCw== X-Google-Smtp-Source: ADUXVKL/MM0f3GFa9ivskI/Sx3VRQiwAD1WtBUxsHatjQqXycRpw8c6hNQfT3kEXcuwTpUZdtqExnA== X-Received: by 2002:a1c:7409:: with SMTP id p9-v6mr1960169wmc.43.1527844439027; Fri, 01 Jun 2018 02:13:59 -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 a69-v6sm1286182wma.7.2018.06.01.02.13.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Jun 2018 02:13:58 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: robh+dt@kernel.org, kramasub@codeaurora.org, sdharia@quicinc.com, girishm@quicinc.com, linux-kernel@vger.kernel.org, bgoswami@codeaurora.org, devicetree@vger.kernel.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, nicolas.dechesne@linaro.org, Srinivas Kandagatla Subject: [PATCH v3 1/2] slimbus: ngd: dt-bindings: Add slim ngd dt bindings Date: Fri, 1 Jun 2018 10:11:40 +0100 Message-Id: <20180601091141.26108-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180601091141.26108-1-srinivas.kandagatla@linaro.org> References: <20180601091141.26108-1-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Rob Herring Tested-by: Craig Tatlor Reviewed-by: Vinod Koul --- .../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 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>; + }; + }; +};