From patchwork Thu Dec 7 10:27:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 120954 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8179878qgn; Thu, 7 Dec 2017 02:32:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMZMDdfiVR2+NhlXqqo3zA+D7qSHhviHTWQdknKsiWQhRpvjI5OJj7sAivKiYI1cFX33C8LS X-Received: by 10.84.212.151 with SMTP id e23mr25477096pli.449.1512642726563; Thu, 07 Dec 2017 02:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512642726; cv=none; d=google.com; s=arc-20160816; b=AlT2Vg0HUqdw8tNEYYnHNGH83vuGl4UZ7RmirXp42zz72BzU9TktKHtj4XjWkKTlMf LjiuiFhc4SpanBOXYmhv+5PN1ahh05paIUK7ZvlHt8j44JAudtS+bcylUm3GOFrebzd9 bnogLAlXDWie/eztFZ8rg8eRjfXoTW3gvzu8n2zlOOnpKZmU+igvjMBNBkmnnO9nl4Yp bN+BSWiCEvPvd+FlJXund+cMxL6Qd7pu8i4jJ6R+7ycy0v/LkcI5ZIzJ/lhz3cbw1ms2 XhwnD6ZY04JrgQxYUospifzsUiYuIXxb3Po9a6YeQmdN+XQeDXpwdrnMpHi6jOlS56vd 2ilw== 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=HZYbyrD9ze1PZ+q2JHZiocYridKvauK/rrLWoYJTwSg=; b=0K8/9c3FFa7ucuUs8TzBMRBjodYzVvgl0lglHltxjJNb0+18wlsMFjUpiJpLIyFrb1 2VmvercTTnpFip63k3kVVOOohZN17ztF9YWv6mcvWWptLUUNN0+xkC59/WaGPeEhjvtB ZR32fM8kZOtbfxECiZuXaWWhSK8HLrDdfgCnODGCXQK4Egy+wfP+Awr+bgwjK5JHI5sz BcPDkY9u8or/1SSkzvxx5gfsX4Gueu6K9Li3oMh0nvcfkOqJet+QdM4PNw7dcAww6XBr +e2APXQ1qJd6CFJePIExi+zpRkKEcMl3EqNK+WA7Ve9k6eT19hw9DQ5dOfOj9HBA4u6S 6pEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NVD4zrtM; 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 s62si3811047pfe.119.2017.12.07.02.32.06; Thu, 07 Dec 2017 02:32:06 -0800 (PST) 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=NVD4zrtM; 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 S1752859AbdLGKar (ORCPT + 21 others); Thu, 7 Dec 2017 05:30:47 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36846 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752718AbdLGKai (ORCPT ); Thu, 7 Dec 2017 05:30:38 -0500 Received: by mail-wm0-f65.google.com with SMTP id b76so12041419wmg.1 for ; Thu, 07 Dec 2017 02:30:37 -0800 (PST) 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=HZYbyrD9ze1PZ+q2JHZiocYridKvauK/rrLWoYJTwSg=; b=NVD4zrtMO0AblIHWq3niF0eF+HkGK+Dg0RSrgwU1dYKpYB7fSf2a9oKWs8Ji1EQheV 5CNTy8XrXGncEqCNOhNYnPV2CrzNHlJzhETPQG/WEkUg86MEcTF10lf0gZ8CyzKMHs44 jPuzwNiO5u1ouSEwSZilHeHyVigy6ep6W3Ddw= 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=HZYbyrD9ze1PZ+q2JHZiocYridKvauK/rrLWoYJTwSg=; b=CFet3NkzxKaqxcvi3YX9aHH4FcJQxiEAOhS1OHf79t8v38IWjJV0OOA2J71MQAxp89 wy79efzgmc392UqT1JrsAJqS4cuC1skXhgm/Cw2PlyVAri7OkQQE5xFsuha7jOAYVT1C 4RGwwBqWhUwjyBajClGWjMOuWWU4NdFeS8nNAxIqwEaSL+Swe5qdLpZK2y0DnkJe2LoD /dZ7Mv2FRoGk2Q/hPdeZr7pWovIFYmuv2A8q9IwwJSk2plUw/8jIGw7+dZ+nEn6waW2J nidxFvt6r+CtKKSVWNtg4MgjvJ3dWg0CS1yj+4Z/4VLfwpxX5qW1jyPEzj2kqkMm/t8g IaPw== X-Gm-Message-State: AKGB3mKmphvGXuFRtEHRf3IticdyJqSEdrkmMpmuDYV9DKPMg4Gw28zM FiogEo0TVvilbLtLGAxeQeHN8g== X-Received: by 10.28.206.8 with SMTP id e8mr702276wmg.80.1512642637215; Thu, 07 Dec 2017 02:30:37 -0800 (PST) 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 k2sm4837734wrg.4.2017.12.07.02.30.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Dec 2017 02:30:36 -0800 (PST) From: srinivas.kandagatla@linaro.org To: Mark Brown , Greg Kroah-Hartman , alsa-devel@alsa-project.org Cc: sdharia@codeaurora.org, Rob Herring , Mark Rutland , Jonathan Corbet , pombredanne@nexb.com, j.neuschaefer@gmx.net, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v9 02/13] dt-bindings: Add SLIMbus bindings Date: Thu, 7 Dec 2017 10:27:09 +0000 Message-Id: <20171207102720.21071-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171207102720.21071-1-srinivas.kandagatla@linaro.org> References: <20171207102720.21071-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sagar Dharia SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. This patch adds device tree bindings for the slimbus. Signed-off-by: Sagar Dharia Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/slimbus/bus.txt | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/slimbus/bus.txt -- 2.15.0 diff --git a/Documentation/devicetree/bindings/slimbus/bus.txt b/Documentation/devicetree/bindings/slimbus/bus.txt new file mode 100644 index 000000000000..52fa6426388c --- /dev/null +++ b/Documentation/devicetree/bindings/slimbus/bus.txt @@ -0,0 +1,50 @@ +SLIM(Serial Low Power Interchip Media Bus) bus + +SLIMbus is a 2-wire bus, and is used to communicate with peripheral +components like audio-codec. + +Required property for SLIMbus controller node: +- compatible - name of SLIMbus controller + +Child nodes: +Every SLIMbus controller node can contain zero or more child nodes +representing slave devices on the bus. Every SLIMbus slave device is +uniquely determined by the enumeration address containing 4 fields: +Manufacturer ID, Product code, Device index, and Instance value for +the device. +If child node is not present and it is instantiated after device +discovery (slave device reporting itself present). + +In some cases it may be necessary to describe non-probeable device +details such as non-standard ways of powering up a device. In +such cases, child nodes for those devices will be present as +slaves of the SLIMbus controller, as detailed below. + +Required property for SLIMbus child node if it is present: +- reg - Should be ('Device index', 'Instance ID') from SLIMbus + Enumeration Address. + Device Index Uniquely identifies multiple Devices within + a single Component. + Instance ID Is for the cases where multiple Devices of the + same type or Class are attached to the bus. + +- compatible -"slimMID,PID". The textual representation of Manufacturer ID, + Product Code, shall be in lower case hexadecimal with leading + zeroes suppressed + +SLIMbus example for Qualcomm's slimbus manager component: + + slim@28080000 { + compatible = "qcom,apq8064-slim", "qcom,slim"; + reg = <0x28080000 0x2000>, + interrupts = <0 33 0>; + clocks = <&lcc SLIMBUS_SRC>, <&lcc AUDIO_SLIMBUS_CLK>; + clock-names = "iface", "core"; + #address-cells = <2>; + #size-cell = <0>; + + codec: wcd9310@1,0{ + compatible = "slim217,60"; + reg = <1 0>; + }; + };