Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4674910pxu; Wed, 21 Oct 2020 02:20:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1crgnjgTZ7LpnQz+aJTau/6EI+FzUJEaH0eb7u7qmXUAXi+hbk68CBOdbue9oQEm1iAa3 X-Received: by 2002:a17:906:2709:: with SMTP id z9mr2587506ejc.277.1603272051235; Wed, 21 Oct 2020 02:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603272051; cv=none; d=google.com; s=arc-20160816; b=vxHxjOalnRcedt+uxFYlmBw6J3JlXWfelvFB0tnXVjivuxGYA6AcQIoS/LjyPGDew3 mmJc33KX38VN6ZmjlU4N+gp/ooWqXG+lmQOF8YdGmc14Zoh7RyJX4IFjZydg480waFOf tibs6OOTrwTMgU+C2gY2PxPXOE3YvVvFVvJFZ+5nw9EdXBPsaWQ1nV0gCj8n53yYCSkq YpMQXbH9ji+drV1bbLizl3TxPdabZ344zEL8G16m9jx7jqQ249+Yn5eC28aT+bfgUNKw w1uvOgPX+1ODO5mopyKOG/JVgc667ObOTboNuk/q4TmFket7oiR0F74cGRrkFgDO+BHY 8NyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mScZ8ah2UgtXD/hHaoKN6/WZjy3yp0sHiaOHV6wLFW8=; b=lu7KNsz7jRm7qOPA7b9LmOsfAE5rfDdykao97ylnFUnT8UDBcSQ2Jf0BC+2B8mzP14 Pj/TnDshZfa0/VgKd4KXS+YjIcFKAZ2bQhXjRZef0NTM3KzTb+nlcP+kw3pBZq4IuvkN 0Bo8++/Pj/NWAPWhiEQp9BrL4t1lk4fppKoo0nLxmeB7IBO6HBDBQyuBMfSR+A+H6ki6 RrAr+z5h+AR6wXSUNbli3zlBKAhgJBh62vmcloDd2RpdQWPWR0QPUo6ViZYAhg/6zX5G iBwAhQSyYJW6F7rLkZm1KZas966J3DhgvphDlk+T4mrhbCXO2BKB6utuXqC/Q/uTctI9 hydA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kC1bm7nz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si1436700edl.552.2020.10.21.02.20.29; Wed, 21 Oct 2020 02:20:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kC1bm7nz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437858AbgJTSzP (ORCPT + 99 others); Tue, 20 Oct 2020 14:55:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437854AbgJTSzO (ORCPT ); Tue, 20 Oct 2020 14:55:14 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27545C0613D1 for ; Tue, 20 Oct 2020 11:55:14 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id t9so3505294wrq.11 for ; Tue, 20 Oct 2020 11:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mScZ8ah2UgtXD/hHaoKN6/WZjy3yp0sHiaOHV6wLFW8=; b=kC1bm7nzh6+1h/Q0nN45KdnVbW/OI5uUooOLQ2Vs/LpFzRvJnYRUV+JwP0kcW7T4QR 41jNfWJ2Z9lO48O89PVVflQTzDH60CTncg14/nyfU9FIEeibQS8Vrf68eqVidtcHz3vp 3lByNPbOMsEb9+VEVy4e6EqFieABTbe7vnr3g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mScZ8ah2UgtXD/hHaoKN6/WZjy3yp0sHiaOHV6wLFW8=; b=ZtoDtaK94dxCgp1ZEBAU9B6jiTJ5XDmLHQIxUehHoHZ7CVksL5JmknEpKQCY3hnvU2 83+VlPcbsximeK6vBDPJe/ZT7CM/U6AAButEwfBhloOian6ZA00N5jD6GwsV0xA2pPJA SEP1DluOVsdzmB45ROCw/udHguaVWGZimmZcF8wjmyIJJJweCK0URO6kHb+7/1+z3IY/ XBwbcD3fuzxfzmJ/RABvHyE5awd5Gd96zCDj0/6GiaHTlcOumnPNS2s4ZOG0ecFA2XcA duAffiJ6nFmNjbGKfWvidYuqQ2VPkzr8cemfoVnEvsKhKY9UazGFbemZa8ox4Ky5F+YQ bUWQ== X-Gm-Message-State: AOAM533xkJBHUkoBGOk5drDw/ibiG+62bUfzHylwme9VU9MBqFbxDkFS 3frTe2XUCwKTJ2RnWMrxBRWBo3pLEazXcYIJbEF8Cg== X-Received: by 2002:a5d:49ca:: with SMTP id t10mr5023373wrs.404.1603220112425; Tue, 20 Oct 2020 11:55:12 -0700 (PDT) MIME-Version: 1.0 References: <20200914080619.4178587-1-cychiang@chromium.org> <20200914080619.4178587-3-cychiang@chromium.org> <7bdc0d63-27b1-f99e-c5f8-65f880733d16@linaro.org> <20201015161251.GF4390@sirena.org.uk> <20201020143711.GC9448@sirena.org.uk> <63f1a29c-0758-97b8-ce80-fe43d91630fa@linaro.org> In-Reply-To: <63f1a29c-0758-97b8-ce80-fe43d91630fa@linaro.org> From: Cheng-yi Chiang Date: Wed, 21 Oct 2020 02:54:43 +0800 Message-ID: Subject: Re: [PATCH v11 2/3] ASoC: qcom: dt-bindings: Add sc7180 machine bindings To: Srinivas Kandagatla Cc: Mark Brown , linux-kernel , Taniya Das , Rohit kumar , Banajit Goswami , Patrick Lai , Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , Stephan Gerhold , Matthias Brugger , Heiko Stuebner , Srinivasa Rao , Doug Anderson , Dylan Reid , Tzung-Bi Shih , Linux ARM , linux-arm-msm , Kuninori Morimoto , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , "moderated list:ARM/Mediatek SoC support" , "open list:ARM/Rockchip SoC..." , Ajye Huang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 20, 2020 at 10:55 PM Srinivas Kandagatla wrote: > > > > On 20/10/2020 15:37, Mark Brown wrote: > > I don't understand what "logic scattered in various dtsi files" means, > > sorry. > > > >> Yes, that should work to describe the dailink we are using. > >> But a more tricky issue is how to do calls like setting PLL in dai startup ops. > > ... > > > >> I think that asking a generic machine driver to do configuration like > >> this with only a limited interface of device property > >> might be too much of an ask for the machine driver. > > Richard was looking at some basic configuration for PLLs. > > > >> Would you mind if I simplify the compatible string like Srinivas > >> suggested, and send a v12? > >> As for other two kinds of variations that I am aware of: > >> 1. front mic / rear mic > >> 2. replace alc5682 with adau7002 > > The CODEC change is going to be described in the DT no matter what - > > you'll have a reference to the CODEC node but it may make sense if > > there's enough custom code around it. For front vs rear mic the > > simplest thing would just be to not mention which if this is a hardware > > fixed thing, otherwise a control. > > > >> We can set different board names and different compatible strings to > >> achieve such variation. > >> So that it would make sense to describe configuration in compatible > >> strings like you suggested, and also provides UCM a way to distinguish > >> different boards. > > I don't recall having suggested distinguishing these things with a > > compatible string, especially not the microphones. UCM can already use > > the display names for the boards to distinguish things. > > > Not with the compatible string! > > Currently card name, and long name are exactly same in all Qualcomm > soundcards, which makes it very difficult to identify how those boards > re wired up at UCM2 level. So the plan is to properly populate card long > name with "model" property which can include details on how things are > wiredup on that board. > > --srini Hi Srini, Thanks for taking a look. Let me try to clarify your comments in case there is any misunderstanding. I understand your request on having different board variations using different sound card names through model property, and I totally agree with that. As for compatible strings, do you insist on having all the board variations using exactly the same compatible string ? Thanks!