Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5411828pxu; Thu, 22 Oct 2020 01:17:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2lG5/Mb6g0IrhkbTsgjU1Tp9nfsRTA1VkjY4adODC4DGjz4TWynyneBhtQ4Mv1w2vsA2S X-Received: by 2002:a17:906:490b:: with SMTP id b11mr1098028ejq.329.1603354675885; Thu, 22 Oct 2020 01:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603354675; cv=none; d=google.com; s=arc-20160816; b=N0HaXDbZUuk8MeRYbunx7SEJROe+boVloNqwwLCrM2LDRiqxPnxiOtd5hJu06hdP28 qAJK+BeUYE+QGAAcaJVgaIphoP6ePK0N6hrsTBh3pVpyTkAnepA7+7gY5gWcrFR0vEPZ N7RrTvMejbJYpBQID64D0rw31Xl2jMaV83K6VcGG4mCVLSOUkkMF6pxDOjDu2LnOtbDn e7KXEQuRlab0Z5ho/Cbyvbnln7HphDpivU3lqFSQysGXt9ZbZFg8u6Uda8vrjAJ+p4xP 382dYunuQJNtle/JSycEPmwhERXFpT64gUVGPovwbHVI+17WVZWbqLNIWU+ObKEXmzG6 z0Sg== 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=IMFKi57vTn4WORdntFjLONbVhz/S8EeuoMU/ru37Fjk=; b=UOx+P4F5gbBcqwqoliwDoFEiP9pLcWSrFq4jn08OswstLlecAlhBC+nZGEVIppl2uM yf/wmKySBWxyW7wjxd8DXl1OrlMPfKw/ejYNqMcsANHBcs4QSSBU9pNo9x5ZXqkI62RD ufCy2dOjOftd/66oY0HAljRb7JYwclubdpAr6NaCWQYYz9omc0Ywuxa3OkxyWyossH+8 vhtiMkwPOXuqMDbKyFEU20mSr16lMDQ55jjrUXb1EuevSXb2Qhhu2St2VWvqo8nwj9ij fbddc51EbyyAGPPh6YEG6gL2Vky5so7/WAj9ra2+scKky9ezeskDIgi+y9So6UxiUe+M FosA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QmKzFiaH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ny23si405636ejb.586.2020.10.22.01.17.32; Thu, 22 Oct 2020 01:17:55 -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=@google.com header.s=20161025 header.b=QmKzFiaH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2443979AbgJVD3g (ORCPT + 99 others); Wed, 21 Oct 2020 23:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2443900AbgJVD3f (ORCPT ); Wed, 21 Oct 2020 23:29:35 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AB3CC0613CE for ; Wed, 21 Oct 2020 20:29:35 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id q9so71092iow.6 for ; Wed, 21 Oct 2020 20:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IMFKi57vTn4WORdntFjLONbVhz/S8EeuoMU/ru37Fjk=; b=QmKzFiaHxS37kWhYqOevmJSha395OemOg2KLsjigL/6YgPyC0cWSkaDr+ffKa61vPU GXX3dfuhinc3Qluqg/LcYmWn/uxtlNOgkwHIV8z5wVdWNaIK/qBYmvkfpKFr6uIPXDuS AfhJpRPcSFHBisu+853OTgVeFr30qYIhwo146On5XcIrt6UvkDzAOUc8b9oPP4LHY+aP mcF96p2cmiAaoW59NhLHswwH2t/U88kQXPZ09XztB41AQUXax5V0J3N4+8uTmW9J5nLp gvtykGqSZeSnzrM85+VdZrTtv1zRS7Q7rVERJrrNJBtv0PRbYLmliKduECch9kebV8vo 8yGQ== 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=IMFKi57vTn4WORdntFjLONbVhz/S8EeuoMU/ru37Fjk=; b=WLK/NMgQHflQtNYVf4Ojwg4cq8N/aEnVFlwa6aIqs9PQoMZfC7IEw1oXEdhrQSloXa KGxtbu6oxB+qt1QQBjifH3v/5zp4e4UWzm6OSTKmiGiDnx80V/ug6VYL01Qzpw1O2j2h CjwXTRvu6hB1w0TgxfYrZIiFWRgAuTJIy3iRsg88OdVyGTLrUi3trS0Se0fEsoZ3Fwh7 G/4HEYF15YA26xdGfUqJE5PaDpZfsGieFVZYDHhEEtnbp0nBzw0mWpbzs8U3LSfncaLS YUTwlBNy5maANujGMz8CH/zseGjToWopLb1mJXys9ZnwHGxJbzI3Rcc/6m3zj94qRqby ab/g== X-Gm-Message-State: AOAM531tWnzx89Gy+5Q23z8uewe18hupVhMjYcahnoku3IXkIw9BlgAU 4ASCBHnDF1kGHCkQnZipnoKcohWrSHX8h/Smt2Sv/7lTaAjisVwX X-Received: by 2002:a5d:9f0e:: with SMTP id q14mr438269iot.185.1603337374464; Wed, 21 Oct 2020 20:29:34 -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> <20201021123913.GD4497@sirena.org.uk> In-Reply-To: <20201021123913.GD4497@sirena.org.uk> From: Tzung-Bi Shih Date: Thu, 22 Oct 2020 11:29:23 +0800 Message-ID: Subject: Re: [PATCH v11 2/3] ASoC: qcom: dt-bindings: Add sc7180 machine bindings To: Mark Brown Cc: Srinivas Kandagatla , Cheng-yi Chiang , 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 Hi, sorry for jumping into your discussion but I am trying to summarize them to make sure we are on the same page. Pardon me to manually copy-and-paste partial sentences to quote. ACK: - Don't expose DAI connections in compatible strings. - Use "model" DT property to make the card more UCM2-friendly. - Expose new DT properties to distinguish different DMIC models. NACK: - All the board variations using exactly the same compatible string. => This is less realistic. Although the CODECS information can be retrieved from DT, it is inevitable to have some custom code for each CODEC. Per Mark's words: > a different CODEC is something that often justifies a separate compatible I think we should use different compatible strings for new CODECS combinations. And we should try to reuse the machine driver if they share the most code. In the worst case, introduce a new machine driver for the new CODECS combinations. - Srinivas's suggestion to set driver_name. e.g. card->driver_name = "SM8250"; => This sounds like a new DT property should be parsed in sound/soc/qcom/common.c. For example: "qcom,family"? But as we do less care about UCM2 for now, I would prefer to just leave it as is. I would expect the following variants in DTS (just for example): sound { compatible = "qcom,sc7180-trogdor"; model = "sc7180-rt5682-max98357a-1mic"; } sound { compatible = "qcom,sc7180-trogdor"; model = "sc7180-rt5682-max98357a-2mic"; dmic-gpio = ... } sound { compatible = "qcom,sc7180-pompom"; model = "sc7180-adau7002-max98357a"; } Please correct me if there is any misunderstanding.