From patchwork Wed Nov 15 14:10:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 118961 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4366005qgn; Wed, 15 Nov 2017 06:14:24 -0800 (PST) X-Google-Smtp-Source: AGs4zMZok2Ft35i+2oqz7A1U1UWpHzkJXjWymhM6h+2SWZPIHeaKGZ5dX2Ql0VPSCBydW8TbLoz/ X-Received: by 10.98.160.193 with SMTP id p62mr18046680pfl.138.1510755264746; Wed, 15 Nov 2017 06:14:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510755264; cv=none; d=google.com; s=arc-20160816; b=h/FmV+Ycs1P9N+cAhuk+7BKE5rGVH92PvgTgTJ0qFKKdM5Ea5n7vNmijR8Go8wsZPd l+Td+cmUCzKSRvNIXY56WvDHSYjd1aqoOy+DzHRBCPXc4aQzv0KyZluUX2tWMzR8aycs zD8KIzi7oQ9csO4LIBwjInmX5PrXds231ag8dBxulCOcdiGBGTi5Unt2VenFa0mlTBJf hXL2t0refc4+Vlhws3Y8bJz6WifUZfPu6J8+JWEGlhclzu4NSg4n4Uqy8sQXieZ6CWuC jNZQ2QEg01Kw4CjZsu9yoO5BKPZ+P+x+BKq+egw3o4nnkFDJi+NF22nl+ykpRleUsWlL EVrw== 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=2dbnsLANb4hAtY7rrd1RYMFMdixJ3dqMequwqpG2OCo=; b=LGRXgEEzWFNqUyRrs1lJv3WbG90ApCXM1t0Dq2oefkXhuJOvpUJd6u3gGAYl7XMckD y6yYBpevGmtfnIvjB5AGmp/Rpj6I5VRWTMYEwh3y5J57GNyT3S6ef7KpI3LIPn9071qo Zpvn9VgNFAf1Cjy3bd6G04uQUrsEm1bT1Vuzku1gEHXc3tHU+utuVLXUfxQlZGJgVxab SQwpDWks7zxNVU4QIzsXCVKrFc7wpdNjaDO7IOn1Qb49XeBo8vz5UveyN+sjf1RbtgOn pRHBAwfEdgaDA4mv9VhEFA0ambsBbzwq8qlV8ZB33rMicy5DAni0NzhUsye/WNvOjc8q CHDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kmhQVTdJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 135si1601027pgh.503.2017.11.15.06.14.24; Wed, 15 Nov 2017 06:14:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 header.s=google header.b=kmhQVTdJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757597AbdKOOOV (ORCPT + 6 others); Wed, 15 Nov 2017 09:14:21 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:44743 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752972AbdKOON2 (ORCPT ); Wed, 15 Nov 2017 09:13:28 -0500 Received: by mail-wm0-f68.google.com with SMTP id r68so3316657wmr.3 for ; Wed, 15 Nov 2017 06:13:27 -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=T5HGY/w94Q5XLwNJumw5XuKglthR0K/rzZeUmDG2muo=; b=kmhQVTdJVAdv+rUYNqHm/JyQRfeLLMY9mGRN+BPX1NO3lHbPSeYxOBEgW5HCUeUT0e WX03WeiqCUUSc5M8PH+AfYUZ2cn/zJyb+jRCAPih/0GfuUOfXurjEk/H1iV48n8x2+OD OqzC+qtiWxZBelMng6Ux3Q0xtPGdNVb7AXLSk= 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=T5HGY/w94Q5XLwNJumw5XuKglthR0K/rzZeUmDG2muo=; b=W80teusbw9bhslGzkpRwKEH13QtvivuKY/HHFS/zqKJba4LixNK3lyEiv4X4RukzJk I3IFhhj1SW8nA4L5XnPgotqMnNq9EVZLXwHL15vbjKnaCq4aqOzocio89d2GkOqhMXV0 BcBuqTLqzJ9cGDpbYIQtJkvZp3oLSt89E6pYt/Bd9FLK7aL9FKpyaCFkCe2dTeocyWZ2 lse5VBOg8kuZ9tBpYrVtIU0W3UZiVVKDcMDIHk7n+NIu0o7VSKWyt50zvlM2WBfP8Ta8 an1v0zJr0gsZOQUEAE8zPaHkbnCVjpdUZ3ZYSfzrh1f6LEGzotr6LG6Q7VnmfTNbSc60 LpRw== X-Gm-Message-State: AJaThX5/LCme71DgDnvqBoyu534caq9wFQM4selwSgnONeKcCh8Dvq63 m90Y4AVDWjUW/i9CtKV5cZsvEg== X-Received: by 10.28.102.6 with SMTP id a6mr11365385wmc.63.1510755206874; Wed, 15 Nov 2017 06:13:26 -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 m11sm56707wrf.56.2017.11.15.06.13.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 06:13:26 -0800 (PST) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org, broonie@kernel.org, alsa-devel@alsa-project.org Cc: sdharia@codeaurora.org, bp@suse.de, poeschel@lemonage.de, treding@nvidia.com, andreas.noever@gmail.com, alan@linux.intel.com, mathieu.poirier@linaro.org, daniel@ffwll.ch, jkosina@suse.cz, sharon.dvir1@mail.huji.ac.il, joe@perches.com, davem@davemloft.net, james.hogan@imgtec.com, michael.opdenacker@free-electrons.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vinod.koul@intel.com, arnd@arndb.de, Srinivas Kandagatla Subject: [PATCH v7 02/13] dt-bindings: Add SLIMbus bindings Date: Wed, 15 Nov 2017 14:10:32 +0000 Message-Id: <20171115141043.29202-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171115141043.29202-1-srinivas.kandagatla@linaro.org> References: <20171115141043.29202-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- Documentation/devicetree/bindings/slimbus/bus.txt | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/slimbus/bus.txt -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/slimbus/bus.txt b/Documentation/devicetree/bindings/slimbus/bus.txt new file mode 100644 index 000000000000..413b5076858e --- /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>; + }; + };