Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp15222ybi; Fri, 7 Jun 2019 03:14:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwA4gVXoYsFqpSh/MieL8jLrohlyyyVF7hkPezx+eN/RmxxF4JZHqK2/a4Txn/7Waqc8rpj X-Received: by 2002:aa7:8157:: with SMTP id d23mr57793843pfn.92.1559902488739; Fri, 07 Jun 2019 03:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559902488; cv=none; d=google.com; s=arc-20160816; b=fldNJddh8f13suP74jcBglb30JWx9qFclBNpZCUFs/uMGSTWqSZyhFMytyjBwzKVEu 6OPbUH4beJoNNpxaIDic+CdXuvjBfjX7Cmey3qxOUNDt172BQB906VwD1IcTto5oPDx+ hYMNLR3Dxtu3zH1qZXCGpwC2DnMrgo1Lt2RUJGzWLDiTUTjgUJkOs9GgC9lvmfZK84nP 147nHjW89G+2WV4qteGtNqplGFop6EIc9njFE2u681e12uKfMDPf3voekWgT4tOTpJfa XdJYFH9EKYQEfc0S357lFWoN7FJtaBWqgPTt3Q40bFxs03kG9C2IDbc5irWbTkovX4DO klyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XeGdpoJZKO8xonRoPvjOdBGnzDhlf82qyNmmV40WgQg=; b=EUNjl/x0X1s8+8j92/IuZHZMZT3CN0ltQelYSM+u1iZfqFh5l4tH0qWE08MV0W6VQg 5VVD7G+EhHsepqBKD/hbXFmzOGno64RtaO/OzLCgTjSvf2oLdNSc/mGGm9FPVrqmlBd+ CQZUNvK0i3DE0sJ75epxc2EBSxw/TmNXJD3Ie0dJe+OJkCbXnStXL2BEJoi3ShLOKNsE 1ssd2XHBF7jjGONShUY2nEDX1wWNNeI4iaZG8JgRJyG34G8x+Ha5hFM2mzhmqfv4Q/zc OS9K99lB1hU/HLRnc5a8dejiFrjRoXmTqNym9aEpZ02OYVuUR6PsnJ18irUPakPRJoi5 IqeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ik8kIg7c; 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 n65si1393713pjc.54.2019.06.07.03.14.30; Fri, 07 Jun 2019 03:14:48 -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=ik8kIg7c; 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 S1727931AbfFGI50 (ORCPT + 99 others); Fri, 7 Jun 2019 04:57:26 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38620 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727721AbfFGI5O (ORCPT ); Fri, 7 Jun 2019 04:57:14 -0400 Received: by mail-wm1-f67.google.com with SMTP id t5so1105959wmh.3 for ; Fri, 07 Jun 2019 01:57:13 -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 :mime-version:content-transfer-encoding; bh=XeGdpoJZKO8xonRoPvjOdBGnzDhlf82qyNmmV40WgQg=; b=ik8kIg7c8gHngYFvOgvLDNjZVFS0J/MarZ6AQ00p4jM6fEgI3oml1J5wrZ73JN56OK YSEbnUcuMOkB98vLI5RKnfAj1721k9cgTHfCgU9ueZz9vbnwgD2ZcR4k2e+yE1bWSQqv 4Mo/msNohoAFO3NM2ePmxAdc9vIk9DQNBpo/By/YntrwY6ylDF2d9DVZMhLKdHr8Nt33 v7vKXR71sucu5sdOFRhvGYcV3e7L6c640BmFQuJE60RdBfUhcPpAIlULNCtn8bVAisEr wr3d1Cxl9MNMPyrQvMTZQSeoH4F8nkFQmUPQSTKIsYGz0KfTFK9YAkoRHF0ESOWtl5aO wM7g== 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:mime-version:content-transfer-encoding; bh=XeGdpoJZKO8xonRoPvjOdBGnzDhlf82qyNmmV40WgQg=; b=JkAh/y3SrsDR9mMk9hE9vJtm44ht991T//syr6/9qt2U1IEDGvX1KmQpxHvDMgjaGp DRe09xeZ55LSvHCpJeLwJG6lYb/vgxLgcCDKz5enWQh0qL+kRlULF4uwCaJxX8ZDJ8lD E5UbpOI8EPyYQy6Xt3W3yAVhB+1/9yYZPeodY03qiHk1U7O8p2fyYAzEKvqYb7d+Rlde OAgqfFJFbJBB4yl6dKcEImgUYHQgSKRLoWNmnDipEfrAVMB5Jych88/XdAAS8c2S/lz6 fVVm7s9ncSF5E4D0a+txImL62V+0+3C1LRv5x8Lnd0rKreuKN9Zyt5spTfK9xEPEMIKg w+jA== X-Gm-Message-State: APjAAAUfleHkmk64AUJnxPXo8ck8fVzIZ227CAoWhskfoyg6JMsjWwMN VrQeCZbTJjIXXmtO1wA0a2aTUw== X-Received: by 2002:a1c:e3c1:: with SMTP id a184mr2606525wmh.24.1559897833262; Fri, 07 Jun 2019 01:57:13 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id d10sm2035308wrh.91.2019.06.07.01.57.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 07 Jun 2019 01:57:12 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, vkoul@kernel.org Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, mark.rutland@arm.com, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [RFC PATCH 5/6] dt-bindings: soundwire: add bindings for Qcom controller Date: Fri, 7 Jun 2019 09:56:42 +0100 Message-Id: <20190607085643.932-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190607085643.932-1-srinivas.kandagatla@linaro.org> References: <20190607085643.932-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 soundwire controller. Qualcomm SoundWire Master controller is present in most Qualcomm SoCs either integrated as part of WCD audio codecs via slimbus or as part of SOC I/O. Signed-off-by: Srinivas Kandagatla --- .../bindings/soundwire/qcom,swr.txt | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/soundwire/qcom,swr.txt diff --git a/Documentation/devicetree/bindings/soundwire/qcom,swr.txt b/Documentation/devicetree/bindings/soundwire/qcom,swr.txt new file mode 100644 index 000000000000..eb84d0f4f36f --- /dev/null +++ b/Documentation/devicetree/bindings/soundwire/qcom,swr.txt @@ -0,0 +1,62 @@ +Qualcomm SoundWire Controller + +This binding describes the Qualcomm SoundWire Controller Bindings. + +Required properties: + +- compatible: Must be "qcom,soundwire-v..", + example: + "qcom,soundwire-v1.3.0" + "qcom,soundwire-v1.5.0" + "qcom,soundwire-v1.6.0" +- reg: SoundWire controller address space. +- interrupts: SoundWire controller interrupt. +- clock-names: Must contain "iface". +- clocks: Interface clocks needed for controller. +- #sound-dai-cells: Must be 1 for digital audio interfaces on the controllers. +- #address-cells: Must be 1 for SoundWire devices; +- #size-cells: Must be <0> as SoundWire addresses have no size component. +- qcom,dout-ports: Must be count of data out ports +- qcom,din-ports: Must be count of data in ports +- qcom,ports-offset1: Must be frame offset1 of each data port. + Out followed by In. Used for Block size calculation. +- qcom,ports-offset2: Must be frame offset2 of each data port. + Out followed by In. Used for Block size calculation. +- qcom,ports-sinterval-low: Must be sample interval low of each data port. + Out followed by In. Used for Sample Interval calculation. + += SoundWire devices +Each subnode of the bus represents SoundWire device attached to it. +The properties of these nodes are defined by the individual bindings. + += EXAMPLE +The following example represents a SoundWire controller on DB845c board +which has controller integrated inside WCD934x codec on SDM845 SoC. + +soundwire: soundwire@c85 { + compatible = "qcom,soundwire-v1.3.0"; + reg = <0xc85 0x20>; + interrupts = <20 IRQ_TYPE_EDGE_RISING>; + clocks = <&wcc>; + clock-names = "iface"; + #sound-dai-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + qcom,dout-ports = <6>; + qcom,din-ports = <2>; + qcom,ports-sinterval-low =/bits/ 8 <0x07 0x1F 0x3F 0x7 0x1F 0x3F 0x0F 0x0F>; + qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0C 0x6 0x12 0x0D 0x07 0x0A >; + qcom,ports-offset2 = /bits/ 8 <0x00 0x00 0x1F 0x00 0x00 0x1F 0x00 0x00>; + + /* Left Speaker */ + wsa8810@1{ + .... + reg = <1>; + }; + + /* Right Speaker */ + wsa8810@2{ + .... + reg = <2>; + }; +}; -- 2.21.0