Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5178593pxu; Wed, 21 Oct 2020 16:10:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDzLJbZyWGWT/dl9n3barXC9qM9jBzeFjIIdW7f91PLNyys7XI8l5EqxkuNZbxCrAZuf2F X-Received: by 2002:a50:eb8c:: with SMTP id y12mr5063434edr.61.1603321840550; Wed, 21 Oct 2020 16:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603321840; cv=none; d=google.com; s=arc-20160816; b=ppDmeWJ5KvQcuUWpBxpnnteYITlXdFbOnTSv0YqZ1hreUayo8Omd/GpLtmD6z0Q4d5 p9KMofERYTSBlxH37lJXsz4XyquIegWPH86RS5gPmOERDc8jgMXfdG9FVDt8+4rytUri TGvB4yTfQfOcTnRpwOrV9R0sVl0JE6qN9A5NQSFxgzFXkULTv4Mfxqs27nj7jhe1eq7X GV7j9iCYvdxBne/xlpHgR4saZDgjyIyPDqWMxVsfNg/9/2hSUe19GcbGERlROgCM1z6f G/SNUTWam9Y3Yc2Su/4sdq/I2mz/C6LlSXZSyhGPevgr6dKQldDhaHbJ5YMWi6klMcIU Gj6w== 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=2fJBIpEa92kQMJ5/9beWt+N555m7+v1D1vPnkJrcT60=; b=wYHCtBE5MYKb327H+oNEkCJSIoWc7b5ETsO6h/Qpglt60r7b0MpECXMKqvepquTy0b 9HzUAazvuWiqKc37natEwktaVqh2zyTatW3ttP3L1tyXUElp+QBUYODqm8YRqVtv7nLx Vb2JsKD2bw1lv9pdopWWffv5TfxmkOgvxMrn7o9mRNuKv0KPZVeZC8fLRf+fhcpjsOHK uDxiL1to2TMzV5tX4kjLmogrIeZjuSytEqwdTlKKfhyoSxlcSoWKjChkMQC1+GqCRQ/5 RevOF/SEkv+vPencFLEY1keLejRKuvUtVshgwpSo9SzQVJ8TYAXOhHr1uoge7DN5nA+b PXwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SenAqoql; 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 k11si2262944edn.156.2020.10.21.16.10.18; Wed, 21 Oct 2020 16:10:40 -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=SenAqoql; 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 S2442137AbgJUMBB (ORCPT + 99 others); Wed, 21 Oct 2020 08:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439773AbgJUMBA (ORCPT ); Wed, 21 Oct 2020 08:01:00 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC520C0613CE for ; Wed, 21 Oct 2020 05:00:58 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id c77so1800593wmd.4 for ; Wed, 21 Oct 2020 05:00:58 -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=2fJBIpEa92kQMJ5/9beWt+N555m7+v1D1vPnkJrcT60=; b=SenAqoqlLi2aW37fpwhuD9srFzhLzrEbBnol9BebPsYEEI+KDFkpx8T7/egwqBcrXA VKXMHj3+b41FIQ4eI7Myj0Na0a6bAyVKcAbDSlj32qMfgAeqpfHG++isqgO4Ii89gzJ4 JdpTeaZZGUhg4QPD0sGFy9Z/DF5jWisVimMRkRKV/T6oPAt4/20N1owP7yvOCZriHz6X MlMQSoxh+Jwwv/iMBlIRdYWmeReU1RJKhiIFKPGCzvTcp2zrd+oHDfQmGvVCJFr7YPR+ vQuoHN7O+rf4SXzK+HkSZwxDxt11IINm8k11O5XS/rsp4h9RtxIkDu8YGDJoy3daSq3j kHew== 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=2fJBIpEa92kQMJ5/9beWt+N555m7+v1D1vPnkJrcT60=; b=nslGCGKqNpI0x3ccy80SxTPRhwScUxhX2E1lEugeoqJiQYVBXuZWZY7elLwr0ADb9g Lpg0nyEirLbTsPKDXgV0uqrP7HgjvRYLPI94Zqy7/PdZZhP27pHf4EvopnE/uNlIEYbv JNKCK73Zk+/ZngnwqV1UEBEILAZjOLVbNUMUefMIKdfOCdGFNxNz9JFrveQ8vdVevWx3 mecyqvG62//ggkeElBGUhaVixoLaNTS6DHjsuEyvraO6M/XOWZAyzW9FCp6TP9OsXG0m T6OF0XB17ovdxyExQD6C5QOL3V7wahA00WdZzHYMxzRieqQnb5plq8ySPqczFkwmUAKF MaGA== X-Gm-Message-State: AOAM532Ydds79c/JRPXHyIJSvmZYiGhS950Ne7d93kqpeAnrUYx0WgHT u/807edp4eFICRY5HnFyZ4k5+g== X-Received: by 2002:a05:600c:d3:: with SMTP id u19mr3261018wmm.150.1603281657485; Wed, 21 Oct 2020 05:00:57 -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 h16sm3896356wre.87.2020.10.21.05.00.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Oct 2020 05:00:56 -0700 (PDT) Subject: Re: [PATCH v11 2/3] ASoC: qcom: dt-bindings: Add sc7180 machine bindings To: Cheng-yi Chiang 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 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> From: Srinivas Kandagatla Message-ID: Date: Wed, 21 Oct 2020 13:00:54 +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 20/10/2020 19:54, Cheng-yi Chiang wrote: >> 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 ? For example if we set below property for sound card in Device tree model = "RB5"; We will end up with # cat /proc/asound/cards 0 [RB5 ]: RB5 - RB5 RB5 This is totally not very useful w.r.t UCM2 and makes it very difficult to common up parts of the configs. My suggestions are. 1. set card->driver_name to something more sensible in your sound card driver. ex: card->driver_name = "SM8250"; 2. set long name in model DT property and set it as card long name ex: in DT: model = "Qualcomm-RB5-WSA8815-Speakers-DMIC0"; in sound driver or common.c: of_property_read_string_index(np, "model", 0, &card->long_name); With this set: now # cat /proc/asound/cards 0 [QualcommRB5WSA8]: SM8250 - Qualcomm-RB5-WSA8815-Speakers-D Qualcomm-RB5-WSA8815-Speakers-DMIC0 This also means that in UCM2 we can have a top level SM8250 directory which can contain other board variants something like: ucm2/Qualcomm/sm8250/Qualcomm-RB5-WSA8815-Speakers-DMIC0.conf ucm2/Qualcomm/sm8250/Qualcomm-RB5-WSA8810-Speakers-DMIC123.conf and so on! Finally Only comment I had regarding compatible was not to encapsulate the connection details in it!. these can be made more sensible, something like "qcom,sc7180-trogdor-v1", "qcom,sc7180-trogdor-v2".. and so on. This compatible has nothing to do with driver or card short and long name. Does that makes sense? Thanks, srini with Currently if