Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2945869ybi; Mon, 10 Jun 2019 01:16:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuar7TKDatj2KbSiCATWGb0GhgANyPU5HeMtPoNMyHhAE3l42lCG0tSFiYMfRnOJ4fDy0x X-Received: by 2002:a17:90a:9f93:: with SMTP id o19mr20321816pjp.70.1560154584551; Mon, 10 Jun 2019 01:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560154584; cv=none; d=google.com; s=arc-20160816; b=kVq0XPBY1IC01QbbwBFbKjWkgemaugPtK6950FWfH7F/oqj6iFosvDg2kdjY1ytuED FKXLcRZ88HqXLB69/uMm4UHRLdVtbYG6nkutiXlGuqXt4D8y5ooy8d2WfcpHb2zd+Ho5 60gJG1TzFVjBZhqgaEDvP5iEBx57EBqkxWMGv+MVB9NixrsC3MhNe6P21kma9fbZZeNo 3ITWUz72RrTItMFtY04HXe/OlWXM2n3KK+1coWlcMV1GP/xOk2YHwa17Vb+NxO02ul/d yjWLmvNcIu1P/+RIRQr7BLhDeoFCS8lxM5TdtHM5+4aWDgdW+I6QTFrb27h6I2Q5Vcgh bkGw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=FoeVTYzF5ZDi2tID72FryeJ/j+o8r81eaeVqgETUoko=; b=FWekPVYpE60Sx2DF0SpY8jtKHd3wzSRJRFkoVibVp2yDa1r96G7kOmY+vxI2b1YAEM MI6v+jbraUTNulvL1ESfGkd7cpVrI3X6/8NgxJS9a5HBWdeOyz3hoAEhlBkHTBuWi0vS uZxTQhDowYcKT78MyXDZ3NvxKW4yS65flZ8++1hEz4vblOsbXpUUcBTEyoGGa18CL+2C Xgt3VSRq7tjLgSew+6IiaHevf7j1IYBoLUaMuXc9CXbuDXRkFWMDoM7UbhWBv+BVH0Wb TsZ8UzMk8TGVEgTIojw9S4W8QWd9s0QQMh+cYqbG+Sd/LWfuYAgPzs2bXyRRFUAug1TI bZPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=itjfuEoX; 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 w20si8973565plp.394.2019.06.10.01.16.09; Mon, 10 Jun 2019 01:16:24 -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=itjfuEoX; 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 S2387915AbfFJIOn (ORCPT + 99 others); Mon, 10 Jun 2019 04:14:43 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:35445 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387824AbfFJIOm (ORCPT ); Mon, 10 Jun 2019 04:14:42 -0400 Received: by mail-wr1-f66.google.com with SMTP id m3so8194022wrv.2 for ; Mon, 10 Jun 2019 01:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FoeVTYzF5ZDi2tID72FryeJ/j+o8r81eaeVqgETUoko=; b=itjfuEoXOvXwxbRwuF6HrhTmMzpt6ljGh0o24LPk+N83H/V44mafKAvoTtxvdP14KI LJFlVdi880AiwQnNR9viKWtZQ/ad5i6A238QtGDRjDfySmXGFr6sRkq82+fKocOAZg5N 4FziCyWxT7dEY3/oADWNFmOvqND8lybwrvWtQqEOafXloTjd6s9k1YaLHjevxD08LR1U kDfqayPy7cM7+IajIExVAVT7g1tOUDCkmPYDVnR1yGcu5rH0JH6gGpihkAiIv3xsatlv isLSXUYnVtLdBH7SmW7QVjYbO/Md30vYrs7/2WQEtnGwzMYCg1yf40HuHbDIHbr5Q6Pu IzoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FoeVTYzF5ZDi2tID72FryeJ/j+o8r81eaeVqgETUoko=; b=pyi7TRajwEijQ90t3K/F2fcgnrCVHp52S0IqDRUzzo0o1n12+gyHIM68raDVa4hmgK s5SUT/6Xmd/22cvF0tnB3G7w8HYg4qoEiTgAZaxb1n5t3dMAdK0fwDE2QbZGB5sVlKG/ /7R1VXK1AG2aibpi1yG+8Rcn3z7nWmIl+KkRv3D18GlKK5uTS795zgTOZ4njtgAcxPlJ UdHgdBphg1Ij77pmh2Q1G+/3SlYHskcoeGv1K2aXflrJMoVTbt2yxHhHlXVSFNo3iRIF N++LafPg2qoPqvPxPWO2z5VMQ5tUbxApjfuhb3ecMqRKNuagGPBz6cAceNwo+axH3VZ6 NHLA== X-Gm-Message-State: APjAAAWAFn2HRg8jRTfZgOC8CVZj3CJlXxGnlon+ZumRx5Xi8GDzgr/j /CAHWEXSrXYsZX3c2pXbw92YpdfHVlHz4g== X-Received: by 2002:adf:e2c3:: with SMTP id d3mr16647979wrj.314.1560154480327; Mon, 10 Jun 2019 01:14:40 -0700 (PDT) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id f2sm17310279wrq.48.2019.06.10.01.14.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 01:14:39 -0700 (PDT) Subject: Re: [RFC PATCH 5/6] dt-bindings: soundwire: add bindings for Qcom controller To: Vinod Koul Cc: broonie@kernel.org, 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 References: <20190607085643.932-1-srinivas.kandagatla@linaro.org> <20190607085643.932-6-srinivas.kandagatla@linaro.org> <20190610045150.GJ9160@vkoul-mobl.Dlink> From: Srinivas Kandagatla Message-ID: Date: Mon, 10 Jun 2019 09:14:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190610045150.GJ9160@vkoul-mobl.Dlink> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/06/2019 05:51, Vinod Koul wrote: > On 07-06-19, 09:56, Srinivas Kandagatla wrote: >> 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 +++++++++++++++++++ > > So I was expecting to see bus support patches for OF first. I think you > have missed those changes. Please do include those in v2 with bindings > and OF support for bus. I was planning to post bus bindings along with soundwire slave bindings of WSA881x driver! I will be sending this soon! > >> 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 > > On these I think we should have specified dpn properties as specified in > DisCo, but then looking at spec we do not define that for master, but > bus seems to have it. > > Pierre do you why master does not have dpn properties in DisCo? > >> +- 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. > > These are software so do not belong here These are board-specfic properties w.r.t this controller ports configuration. I don't see any other option to specify this? Do you have any alternative suggestions? --srini >