Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6481917rdb; Tue, 2 Jan 2024 03:38:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFta5AfBuXswtKCdkd8UpgUhnSS0X3FBirkdiShLJo4ej+c4tXe8p9d3DQNZ1+mJ1vyoYJt X-Received: by 2002:aa7:8690:0:b0:6d9:bb58:fe0e with SMTP id d16-20020aa78690000000b006d9bb58fe0emr14551842pfo.7.1704195481134; Tue, 02 Jan 2024 03:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704195481; cv=none; d=google.com; s=arc-20160816; b=KCmSrtbMGf0smfMMf2xhZWMEwkgLndNq01NrHmAt0pM+A+lQXjAULpWHZSobu0KwP2 3VcCXRHPReB9uaRRe06+hssZ1lPHdkdHBRMtpCY/Xd70A7S3+Hsicvj6RM/gRh9j1Y4A zpQ7Z23Rfyh92q4iyPFJD9/CqW02XhYbwm24a2VEUwU0jXhb0ouyhPkWmzeF2Px0yKXs WzmwnFIprj0BuQ67okycdstkQNCdM+9xnlhJw3hpiaZIvjWrgCqm+qS9R7r2ANqUoVJi lE2F3rdTX/3ippTNG+Uc2a+WeISHCCOGLbRzi8h0GU0ipnMkSW9saPt6CCsuXZj9B1ta KNug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-index:thread-topic:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature :dkim-filter; bh=bAsNfTDPGcy9UE/qR8q9C/MYhrYIBcUMKG2G3Oi4VLE=; fh=jUFI7tltiQGZUlbA15DZBHvUgDDAPNVS+m07kvGzmGU=; b=vmCIcWBQi6sUTB+7NqR3mSu71IrpMTtkYmIBBqucqGUrbBRtCQnNBwTQ8XSZPUC8pc CZhicfial1QyQotbPMF6bEJ9BXZbtbPRKnukpbUHxPPTqgartY1uyjTxGUZkXHu1+hGV CeNfUhBcd0nlsQ4xR5Ju26DNip4RARwwyZCq2Q6/PyKNpWVk0eowQsCM7sj9DmsbXnOw H7r/cXfigl6I57tJYlcVl8zQCyMhH1jIAutk2TzjvIpsxEA0R5i4fRJStPaiyaPuMVKT A1GjP3ViBcq0KcntMwlVTwaud0JNITUeU/4Hu66a8xtnqzKUOjnhS5wsJtXXlZZLyJoa m1yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=HfBx0L9S; spf=pass (google.com: domain of linux-kernel+bounces-14301-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14301-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ko10-20020a056a00460a00b006d983f1fce5si18066694pfb.276.2024.01.02.03.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 03:38:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14301-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=HfBx0L9S; spf=pass (google.com: domain of linux-kernel+bounces-14301-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14301-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C37AD28338D for ; Tue, 2 Jan 2024 11:38:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBB04EADE; Tue, 2 Jan 2024 11:37:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=savoirfairelinux.com header.i=@savoirfairelinux.com header.b="HfBx0L9S" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 415BAEAC2; Tue, 2 Jan 2024 11:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=savoirfairelinux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=savoirfairelinux.com Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id DFB4E9C0888; Tue, 2 Jan 2024 06:37:40 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id oH47By21Q_s9; Tue, 2 Jan 2024 06:37:40 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 50F959C0957; Tue, 2 Jan 2024 06:37:40 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 50F959C0957 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1704195460; bh=bAsNfTDPGcy9UE/qR8q9C/MYhrYIBcUMKG2G3Oi4VLE=; h=Date:From:To:Message-ID:MIME-Version; b=HfBx0L9SYhFxNTXnatyaVVD/0MKoxKv1DkFPwS4FhP21ZdGhZFAP2Yw2hgXG5W1+t DG22L6dYlNdqI/yA4nolhiQbAYRMk3Yvd1vhj35YZTZ1keQ1XC+emTImMoQmjgdIjh alA58hoYPXIYl8/8523fTVCfrQVCNMBqb6qPyKUQ1uoRLrwWFtxWeVm73HyoV71weA Vcvll8Fbldw/DCB9WQCaUVbMMf9+FXj0uatTbgq9RGC183UtRM5ockSfi6AD3jQlfV NlAXW2vSrvxzA0K2KrHkaWWkgrrQsn+4DCiJZlStF1JhWW5TYl6ACLELjZgkVicaEV 5OCMfpqr9RX7g== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id 20Ly5X62OB9G; Tue, 2 Jan 2024 06:37:40 -0500 (EST) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [192.168.48.237]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 1AD139C0888; Tue, 2 Jan 2024 06:37:40 -0500 (EST) Date: Tue, 2 Jan 2024 06:37:39 -0500 (EST) From: Elinor Montmasson To: Rob Herring Cc: Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , shengjiu wang , Xiubo Lee , Fabio Estevam , Nicolin Chen , Jaroslav Kysela , Takashi Iwai , linux-sound , devicetree , linux-kernel , alsa-devel , linuxppc-dev , Philip-Dylan Gleonec Message-ID: <1300509761.24764.1704195459987.JavaMail.zimbra@savoirfairelinux.com> In-Reply-To: <20231220222550.GA1232936-robh@kernel.org> References: <20231218124058.2047167-1-elinor.montmasson@savoirfairelinux.com> <20231218124058.2047167-11-elinor.montmasson@savoirfairelinux.com> <20231220222550.GA1232936-robh@kernel.org> Subject: Re: [PATCHv3 RESEND 10/10] ASoC: dt-bindings: fsl-asoc-card: add compatible for generic codec Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.8.15_GA_4581 (ZimbraWebClient - GC112 (Linux)/8.8.15_GA_4581) Thread-Topic: ASoC: dt-bindings: fsl-asoc-card: add compatible for generic codec Thread-Index: r/qDupTL/n3XOuEH8yE+GIqg/zABBQ== Hello, On Wednesday, 20 December, 2023 23:25:50, Rob Herring wrote: > On Mon, Dec 18, 2023 at 01:40:58PM +0100, Elinor Montmasson wrote: > > +Optional, relevant only with the "fsl,imx-audio-generic" compatible: > > + > > + - cpu-slot-width : Indicates a specific TDM slot width in bits. > > + - cpu-slot-num : Indicates a specific number of TDM slots per frame. > > Pretty sure I've seen other bindings with TDM slot properties. A sign we > need something common if we don't already have something. That's right, "tdm-slot.txt" already defines TDM bindings, I will use them with the utility function snd_soc_of_parse_tdm_slot(). > > + - cpu-sysclk-freq-rx : Frequency of the CPU DAI sys clock for Rx. > > + - cpu-sysclk-freq-tx : Frequency of the CPU DAI sys clock for Tx. > > + > > + - cpu-sysclk-dir-rx-out : Boolean property. Specifies sys clock direction > > + as 'out' on initialization for Rx. > > + If not set, default direction is 'in'. > > + - cpu-sysclk-dir-tx-out : Boolean property. Specifies sys clock direction > > + as 'out' on initialization for Tx. > > + If not set, default direction is 'in'. > > Looks like clock stuff. Use the clock binding. simple-card defines similar properties at the dai level: "system-clock-frequency" and "system-clock-direction-out". The first is used if no "clocks" binding is specified for the dai node. Maybe I could use a similar logic with fsl-asoc-card ? * adding a "clock-cpu" phandle property which should be the cpu clock. It will be used to retreive the frequency for both RX and TX. * keeping "cpu-sysclk-freq-rx"/"cpu-sysclk-freq-tx", which are used if no clock is provided, like "system-clock-frequency" in simple-card. * keep using "cpu-sysclk-dir-rx-out"/"cpu-sysclk-dir-tx-out", like "system-clock-direction-out" in simple card. Also, maybe I could rename my new properties: cpu-system-clock-frequency-tx, cpu-system-clock-direction-out-rx, ... It would better match those in simple-card as they do the same thing. Best regards, Elinor Montmasson