Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp909576ybx; Wed, 6 Nov 2019 10:11:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzVI2XHItEgBzq/bYtV/XAS/OslPUzgxo8Rgs/650418YwYSJ62O0K/0OR50siG7koIiqM0 X-Received: by 2002:a17:906:8591:: with SMTP id v17mr24217647ejx.185.1573063890142; Wed, 06 Nov 2019 10:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573063890; cv=none; d=google.com; s=arc-20160816; b=UyhUTpcg4CIn44lvkddQkYHLccLUEZT0dyJ4x/I2yhsMT++GpnDJ3iKPTweOEENtz0 a/nkRYZrR8quKdDFiHQZwLiZqpyO6FH03TzTcaIZP7hUFlcYDq1lrc5I5O3wqAOyp05a ftdJpCHLTGLfIwCKVY2/TsU4/NoDKMc8dkQLf5us/Hb8u/JIS1jxDCPc2Xq9AQQRbycq +AuB4aBhLvrIPqvvNzwRaIX1L7Y5QRwQiZNcDU9CTarJyruaGqjpDEVAO5adrFZsv/UN fYM3Ub2YQMHtGLOJltKSwIB5vXONF3lzUeYgvcTD/hz3yEtQViPiLnDy7h9eLodOOdeW 57lg== 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=rgJXsUBNZa/F0SLsO+it3k7f9qVrt3VaEEsEU5U0WF4=; b=lKw+HKs2aUCV8h4eM3V3euyZKY3UVr3jZkDCPSkHeYDf8bjb5grsqUbm3hkvbZcQ4w VO3x5o0uwMchZNyh+oZ1JjNUlfOdzvx6/p7RAi5fNhjdmipyHEnFzs9aoXRK8BXYac7Q ziQzxgCxHKFkeMEpQQfMhGwNfOYNNkVhKMwk4ukwCCuDtRr5pCVJh6VmRgTlmavcpkIS o9J069e20FSbs0PBVewv/EpOA+WMZU3WQ5HAge3Bn1r9B+rLtgzXsbdk6g86p+DINV3N fcIZF+BId7kOqae679EJ8Ahu73X2HGVziOhVNu+F0OK+lbDvkNNqkKiNHYACsZMPg6eD /H9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=deTo+90l; 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 cf22si16926280ejb.290.2019.11.06.10.11.05; Wed, 06 Nov 2019 10:11:30 -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=deTo+90l; 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 S1732452AbfKFSJq (ORCPT + 99 others); Wed, 6 Nov 2019 13:09:46 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51416 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfKFSJq (ORCPT ); Wed, 6 Nov 2019 13:09:46 -0500 Received: by mail-wm1-f68.google.com with SMTP id q70so4808333wme.1 for ; Wed, 06 Nov 2019 10:09:45 -0800 (PST) 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=rgJXsUBNZa/F0SLsO+it3k7f9qVrt3VaEEsEU5U0WF4=; b=deTo+90lJ6be7HHxTg00sHjXhZ3BCSqrIZB22Zr4Ih0eXfNoJ6Gwt/RbEw5gQSjgIg qidpwKs5uRX2/lu5DRzqXig8ftmUi03AhVaEYUpWJ0jjW9auDFhXL1SkjGYGBmto2pb8 veFrOCGDVpD9USl2jXCi2MXpsVt0aBgUqTgiEF6etTbJSDsHDbDcWFVFy6vonpSHsMI7 L2D0mmBoCGDPshPuZzY4p7VQhtH6IXIpaaGTfk6LPUmiJgvxFMYwzdxm8qdcFIcjlA9c b7kkPdCm7cyF1fB5SXXtiruwEQBPAIdGxrexuet+sitv4fmBS9v4vcbQa8fKE9swANAS tp6A== 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=rgJXsUBNZa/F0SLsO+it3k7f9qVrt3VaEEsEU5U0WF4=; b=fTk3gXyhPuhJyIfPfIebHs9HolH0WItesmUXm234HF73oHvl6rPUAusCC8uJnx56Ry u8uBCKiUkX1UDCOm2bTPRaiT7PjLO+uG0YpBRj5KjueNPD28uFq4JjBDuucGS/orfRz9 IoH+1j8NBA0t7Jl+TYI3G7x7c5idGsOcg2M9WIgRrTcvHBLCgIG5sTbWAYdZPg/zXap4 EWiNy0+QbRVryRtl2cYEeXfXDheqaCguoIsRI5WojWUJTCLcxMi8CTl/kR3iVDJKRcJ0 D6/rTtNXX8UVsM1v051YIHMuzFX/v1sIcJSibzZguYFTGnnH+3+Nr1dpYRm59YIUZIyT tKxw== X-Gm-Message-State: APjAAAVvO7I5ULxDnRHbTV0HhXMdyR/n6wlh/MjTUNKpoEBXGxXuCcmU 2qKsYBBoU9BtuCyo26/7Wqu6iA== X-Received: by 2002:a1c:6a0d:: with SMTP id f13mr3948924wmc.164.1573063784694; Wed, 06 Nov 2019 10:09:44 -0800 (PST) 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 r19sm29208269wrr.47.2019.11.06.10.09.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 10:09:43 -0800 (PST) Subject: Re: [PATCH v2 01/11] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec To: Rob Herring Cc: Mark Brown , Linus Walleij , Lee Jones , Vinod Koul , Linux-ALSA , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , spapothi@codeaurora.org, Banajit Goswami , "open list:GPIO SUBSYSTEM" References: <20191018001849.27205-1-srinivas.kandagatla@linaro.org> <20191018001849.27205-2-srinivas.kandagatla@linaro.org> <20191025204338.GA25892@bogus> <90b2d83b-f2b2-3a5d-4deb-589f4b48b208@linaro.org> <371955d9-ad2d-5ddc-31b4-710729feae42@linaro.org> <7811be04-dfda-5953-110c-bca685fdcaa4@linaro.org> From: Srinivas Kandagatla Message-ID: Date: Wed, 6 Nov 2019 18:09:43 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: 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 05/11/2019 19:08, Rob Herring wrote: > On Wed, Oct 30, 2019 at 4:55 AM Srinivas Kandagatla > wrote: >> >> >> >> On 29/10/2019 20:47, Rob Herring wrote: >>> On Mon, Oct 28, 2019 at 7:45 AM Srinivas Kandagatla >>> wrote: >>>> >>>> >>>> >>>> On 28/10/2019 12:40, Srinivas Kandagatla wrote: >>>>> Its Phandle. >>>>> >>>>> something like this is okay? >>>>> >>>>> slim-ifc-dev: >>>>> $ref: '/schemas/types.yaml#/definitions/phandle-array' >>>> >>>> Sorry this should not be an array, so something like this: >>>> >>>> slim-ifc-dev: >>>> description: SLIMBus Interface device phandle >>> >>> You're just spelling out the abbreviated name. I can do that much. >>> What is 'SLIMBus Interface device'? >> >> Each SLIMBus Component contains one Interface Device. Which is >> responsible for Monitoring and reporting the status of component, Data >> line to Data pin connection setup for SLIMBus streaming. Interface >> device is enumerated just like any other slim device. > > So a standard set of registers every slimbus device has? In hindsight, > I would have made reg have 2 entries with both addresses. I guess that > ship has sailed. That will break SLIMBus bindings, Which is expecting one device per device node. > > It seems strange you would need both "devices" described as separate > nodes in DT. Because they are two different devices on the SLIMBus Component. > >> >> We already have exactly same bindings for WCD9335 in upstream at: >> >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt?h=v5.4-rc5#n42 >> >>> >>> Is it a standard SLIMBus property? If so, document it in the right >>> place. If not, then needs a vendor prefix. >> >> "SLIMBus Interface Device" itself is documented in SLIMBus Specification. >> >> If I remember it correctly You suggested me to move to "slim-ifc-dev" >> as this is part of SLIMBus Specification. > > Probably so. If it is common, then document it in bindings/slimbus/bus.txt. > As we are dealing with audio codecs here, it might be that "slim-ifc-dev" is common across wcd9335 and wcd934x but not all devices on the SLIMBus Component would need handle to interface device. SLIMbus can also be used for control buses as well which might not need this. > Then here, 'slim-ifc-dev: true' is sufficient. You can just assume we > convert bus.txt to schema (or feel free to do that :) ). We need phandle to the interface device so that we can program the streaming parameters for the SLIMBus Component. --srini > > Rob >