Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4639467pxu; Wed, 21 Oct 2020 01:11:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpDLSdsqodYoS9LkGVhZxwK4xdxxOnPDV6Imo6AjUtRTKDFW/SR4PfWOg9h6hMpmguqEuX X-Received: by 2002:a17:906:48b:: with SMTP id f11mr2344690eja.293.1603267898038; Wed, 21 Oct 2020 01:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603267898; cv=none; d=google.com; s=arc-20160816; b=DVzvUSJEGqqy1nxQda4Ej0r7kCEmN4twzU3kvCS0cK8fIkt7SMSkG2ry8GAg4/cPHf aMwt+ma6MSfaOFg0+cBsaieHFmcMxZixImOPUdw+G8Z1d9Uj99CTX3qvrQJyYFQMD7aC ehtDuhPVAkB4mPvFikoMFsZe5/ekX/uIcLP6o6RHQYSlDtuIH+Hw74gYURMPTyrw5ExG rETXilD/0VbiERSSyUNk+enxdCLlYkOPjf/G9mJ5yR7juO4DKoi0j53Miz9gRYndpMKf uAmEBDqDrL18vSaFCpchKNlSRyIab0gGHU4pnvzfyeP+2qbkT11C6rpNmjV4EICVNwVm 2h/w== 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=uf/L+N0SXiT5GxWzSMpW76s8MjBMaRe3gnVIlCSIR5M=; b=r2xXf8VE8LlE9X5Wp3hpJdoVbLl9zXtuMWD+SVBhJBhq2RL/yxj+azKvadIMHk94Go DDHfvYW15Gm1gORL255X1ZtMEzMQrcxtkDZYQKst3DCXnnrW2oPP+fyfbAaKVdBgQOSv jmfx1HIwli5GunbCjdNvm23kaPCcV3gb03//lQ/3YIqEorTjyT/H4g+pmb0slOHHfWd/ sFCnbLfYs3wXbMipSpwJnXMMU1W5JAx9PDSoxtRVlRaTKZ8J1SdBlAS2Sp0Itv4u6PRu XUL5tKQA2PY1vdDI2FA3vtHYyuixhoeOYfQQa7wlBoziMdfK+fOG9zbKDyMqjYTOtt78 liug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cK9G7+OH; 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 k18si899215edr.149.2020.10.21.01.11.16; Wed, 21 Oct 2020 01:11:38 -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=cK9G7+OH; 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 S2393519AbgJTOzv (ORCPT + 99 others); Tue, 20 Oct 2020 10:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392672AbgJTOzu (ORCPT ); Tue, 20 Oct 2020 10:55:50 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19611C061755 for ; Tue, 20 Oct 2020 07:55:49 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id f21so2105100wml.3 for ; Tue, 20 Oct 2020 07:55:49 -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=uf/L+N0SXiT5GxWzSMpW76s8MjBMaRe3gnVIlCSIR5M=; b=cK9G7+OH/TUQCyR8rfJv0QoQ3SjEQsnF9XCjVN6xqr/O8yU3IlDfbvmsbTfkhxQ06f q4IpVZ8VlQ3fVXlWWHGSfLpylD2IH5P4NE25315km3BTplz4wROeM/cLeRnrZhnHb/v5 PyAaPitLsRWmdVTipbLqX4Out+F21VmQJ/X09y763klLznhk8Wjph5Dm6ltToTwu1GKi 6cF9SRXzSOe+CnDRgo2LkN4n5tkvfZ7EpQsA7EkHbGt3NkoE1mD/PmAfdxkXt8UbFE9X RN1mqjge119zJMoJpTqXMa+rN2apg4iQxVK+dpL4RLHKRIlCnNkTt3EAvl5wmXLl4Uz1 eT1A== 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=uf/L+N0SXiT5GxWzSMpW76s8MjBMaRe3gnVIlCSIR5M=; b=F3YPZl80xX9/VpyyGhGYPaiFnlEatGyQ6+ZZIZWKYpuus/5Bp4Frm8rs589hCCaOZ2 /np0lB77MHCqorw9A8Jbz+Rpqfmq6KEvRD4quQbpdXghJViJVw/P+oqC65i6T4gxoinm ALvXnAnbGCSNof6H4XWbno9or68G79c1xlUvJ+WL/+51JiwcvyxhTXBXuM+o+Iai0s1j zUfq/xsa0BT5x0lwwJaJNy8B+2Zm30RAjQ5qKVTQZoT4be9FYSbDe6Cobr5NhZpbX8L8 arqbl5iYAb0dX1t2pEkaYZ22uRqYfKOtBA8I2n6Y+Ry0OjxO/CywqgYeznzMbg9VK3Ut ymtA== X-Gm-Message-State: AOAM532tbTykqW4ZaSRD3G90HH5VdrKrRsSSlBVxWWKkipiQyGzWvAep uX/SR7vDX93XX3jv4YuO4LDCGw== X-Received: by 2002:a7b:ce8f:: with SMTP id q15mr3351776wmj.88.1603205747699; Tue, 20 Oct 2020 07:55:47 -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 1sm3868599wre.61.2020.10.20.07.55.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2020 07:55:46 -0700 (PDT) Subject: Re: [PATCH v11 2/3] ASoC: qcom: dt-bindings: Add sc7180 machine bindings To: Mark Brown , Cheng-yi Chiang Cc: 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> From: Srinivas Kandagatla Message-ID: <63f1a29c-0758-97b8-ce80-fe43d91630fa@linaro.org> Date: Tue, 20 Oct 2020 15:55:45 +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: <20201020143711.GC9448@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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