Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5866053pxu; Thu, 22 Oct 2020 13:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/VuJL0ERybgfb43hGoXvSTdKStocaGM3ii1UD0OXxkvw1/leIViK5S5MRGck4lxIA3vt3 X-Received: by 2002:a50:f78b:: with SMTP id h11mr3773207edn.329.1603397191432; Thu, 22 Oct 2020 13:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603397191; cv=none; d=google.com; s=arc-20160816; b=z8FFKrPsO7cVUtlNzwr5XDo2PdjiXHzy6QohfxBFP/YEsWUcBx16x/Yfo+U7FEN2EF z6dLa/xAp+KQ3WihumHlHD1Zo4GIJ8NuQMn3mGKBhxgPWlfDtk7PX0btTzCuzlS12KWQ qWovRkoPbmHviYHozeVattoUFMSKy9fpacRYfjd/9vrbgXUg8RyLWLADdwmbA0semvg7 +bRTlyodBivdmejOLvRObWNJ+RX/U99tKUdR35UD9mX7IT9nYL51zBdW/U/KzXYekaX3 Hqtjwni3FsgZ50P/6RebN62Bkm8W+pbNG1HVzIttLEH81Zqn9kNP3NH59EciLcrIQet1 1Riw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=AVYqBwFNeS8pknHZcG1tJcoDoQAS4sJ1OEwl1v423e8=; b=kbNipfB0/3v4n1dmRRIQFvwf+mWvEkGi2EyDKyfIGpswLww2niqlOgU7USpQxPI/OZ Xjhc3ln0P2W22BpAFelVsy4ki7zQvvORt4sWIh618wNIsyF/v9o5uO0e6H8V4jtyoZuv aQK9wP4vcK0P4pTHtm+cZLSb6g899kszyaYilkLrtM6U+gWh1JZ75LlxZaefFnuml1ri kuBmkDJ8H0/MoO7w4CNZNm8+q+I4zM5U0nc47NpcCNkBmmN2sr6pzfwWR9m3br8bPgfK ECvBVW9wBCY80KnxvX/ayGV7+LPl9KTVUGK8BxcqJ4xui0ENkxKJPMOUzQ8LeXS2pBif ZreA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHx9aWm9; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq21si1672877ejb.11.2020.10.22.13.06.09; Thu, 22 Oct 2020 13:06:31 -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=@linaro.org header.s=google header.b=FHx9aWm9; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2896397AbgJVKM4 (ORCPT + 99 others); Thu, 22 Oct 2020 06:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2896392AbgJVKMz (ORCPT ); Thu, 22 Oct 2020 06:12:55 -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 8BDD9C0613D2 for ; Thu, 22 Oct 2020 03:12:55 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id b8so1539886wrn.0 for ; Thu, 22 Oct 2020 03:12:55 -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=AVYqBwFNeS8pknHZcG1tJcoDoQAS4sJ1OEwl1v423e8=; b=FHx9aWm9FktJEtNY/lWrc3MGLVVQTVRPkaKpE/BrIvI65HE1/l83fZFIYH41tRBW5/ HKpKCopsEU3q8T3e3RTCblClXa64BkmrSnDKUmEoPNCVOcIgrYGplAj9LWAKZ+88ul3F lShjw/BQ54t6I7EfHNGaZ+p78XcoqGFpJD0s1hDHX1X/G8PgJdwsSPIC6OZyB6i5yCqL gdjFYC4gh/xNnO8/pYQEZW78XHILWr7IPoR8M97YTNxfst2lz5YZ+orcSJCZTZA7XUgH eyA+LqsmkQUZMZWg3e26x9FmT7iYAi3exYSCwVAw2BYim7sgprHx7allxCYqNPMTgCdF vp5w== 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=AVYqBwFNeS8pknHZcG1tJcoDoQAS4sJ1OEwl1v423e8=; b=FDDwdxUPNtDkXnZ4Ryg8hXMjaR2lIT1BVhdZofMzqyx/D4Cyhw6ikyS+nxGwBc9IF0 x6AywiC/3qjSyZSdR9DYZgtbCESUwWGgh4bymoiMmEKgCWvaqQTt/VGSruwyyJlQLNZp KtSj73+jeorV2A9xnnBJrUPGhsRTBXBmgLa+Yk/UWJ+YtsQgRgon3AazHnhPbYyS3pux oMF7/6CysY/Ug77VUHSTDBOFqVOkeyJHdxzCT1oHKJdRrPB7cQ5A+wYkG2vKo8pDVPmg IhrjV5iXQZ4iGeQI0ynP2YGsVzfzjviQpF/JkHPU5IMxtn4HVDEWC7FSJtfoKdfkkRmh U5cQ== X-Gm-Message-State: AOAM530p67dOO79tZ3hAZNY7PUMXT1DRQx4Sotw02r+mMW/vr/LEAbXI 980c0TJvEHuIOgFOjtVCmIJJ2Q== X-Received: by 2002:adf:ef02:: with SMTP id e2mr1777892wro.381.1603361574107; Thu, 22 Oct 2020 03:12:54 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id j13sm2935385wru.86.2020.10.22.03.12.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Oct 2020 03:12:53 -0700 (PDT) Subject: Re: [PATCH v11 2/3] ASoC: qcom: dt-bindings: Add sc7180 machine bindings To: Tzung-Bi Shih , Mark Brown Cc: 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 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> From: Srinivas Kandagatla Message-ID: <14e7db29-4825-6e9d-22a0-5121bb7006e2@linaro.org> Date: Thu, 22 Oct 2020 11:12:51 +0100 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/10/2020 04:29, Tzung-Bi Shih wrote: > 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. > No, you can just hardcode this driver_name in your machine driver rather than getting it from DT, this is how everyone does!. So need of adding anything to common.c The thing that I suggested to add to common.c is setting card->long_name from "model" property. > > I would expect the following variants in DTS (just for example): > > sound { > compatible = "qcom,sc7180-trogdor"; Make sure that vendor name is correct here, am not sure if trogdor is qcom board or Google own board! > 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. Looks good to me! thanks for doing this! --srini >