Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1894744lqz; Tue, 2 Apr 2024 00:15:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrfAttkgQBYMAmxwNCVOQVmuqy8wD4huYHyEGCp3zcVwChAUMmZdvios4hm/BbOC7iKon9ikVEO2bWqGRFg/5kEUvoVdkzMlwGOXYlNQ== X-Google-Smtp-Source: AGHT+IF7zQfEDf2lfGFeY3PQuJQiSzu/ZX8s0KfKuL8BJBZbyoUKCV5delE+eHh9QAXUwoQO+tM3 X-Received: by 2002:a17:902:e950:b0:1e2:62c9:7480 with SMTP id b16-20020a170902e95000b001e262c97480mr1953063pll.54.1712042148585; Tue, 02 Apr 2024 00:15:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712042148; cv=pass; d=google.com; s=arc-20160816; b=i9RWjK+UEsVHO8f3jdaVTv7ansiu2H4wCXP2/fX3oSgvScntNm10rz5n4xgUeUSKTS zT7Z9chiFvujOGb7fsb3Da7sGLXxoEWr+j1VxbVqCqt9sSWoUwCKfPlEYpWgT8yMttgE HSrr5Vrk1pfTECHY+DWrfjXglFRP6iYZAK7Bbdd6SMmPhBiOxz8T2M8X9uhCc7sksg8e HIse1UnXVjHCyQBqD4liqe7a1dqJ/991CdAvu1awBGs/thKcG5yGQhgiKv6L8jR+keM5 7TWVP2wogBZP03H58hkvzdjLKa4SaQV0v8fZH4WbhJT9I60PzEgsMMmiVN4XFUlV31MR bIDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=6hUXRPUn9Ew3xx8mNXSwygNKoR19Gfh8s6NOLyAtqSQ=; fh=geQJ6f4GGkO67aA4OnEJfdb5FkPflu4mDfU0FzMTC5M=; b=QcM8kGuLYjOxzCJORVX5oGBNzzyLjsRuMTDdH/EF2TCdY4c776NbY0cgSbvUXcTbYU VQGEkxcVbAD4wAYnNGYq974EIS6LodqJialPNw1zgigrgY56A0lg3uq+qFYdiBmD8tIi P36q86ETXl9jVoPR95nANg8aVae3ty9MzTg+8uto+NhdM1j3AKTcWWBPW+ztaHAFEczC VaCT8ekvkmEKR+9K1symf0efEcA9cSB4nRiLmNLnr04lvwMBI8n1qMD6MBVi1/RlZ8Gb mRGH85X/Jv8+MYM08WiMAKew+gRQn4HK67/CQZt9ZSssIPFe+8Pdh0Vkff3ALxkpfs6s +8/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=i6CP8+jV; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-127490-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e7-20020a170902784700b001e0f9617595si10165745pln.2.2024.04.02.00.15.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 00:15:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127490-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=@bootlin.com header.s=gm1 header.b=i6CP8+jV; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-127490-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 95D04283315 for ; Tue, 2 Apr 2024 07:15:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8E233B193; Tue, 2 Apr 2024 07:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="i6CP8+jV" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 265CE59177; Tue, 2 Apr 2024 07:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041958; cv=none; b=LdN4wOcW9YkAeBhuW27r2bRItuYq4p2sc4l5cC9zxBK9E7KXgmcFRUHtAHSu6cMOukFUHWbO00L0JFDQKjcOnRm8u9z9BBp+kLY4VMYLSMZ7jmpfdkHipBRknQ6ssPk8hZG+63yfXr7d86VYc9q0fR3wro1aP/o9XI5GetVTfjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041958; c=relaxed/simple; bh=YgIbRUy6+1L5DOGVht8whZV1f4NbwbHZHWVmd2UytFc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rZQZWge31Ibz0HgkA1E44DTcsix1N7AI00ndcZSkh3z5p1J7UjOXyOl9e+HpxKOpzJKGjEYN4OFIHKusOEaHeiUkynmeZcNi/GayKYkMSaEOPaa+5lOc0/xbTxihEFH4XWR1QCylyXWYjW+va2oHssXoN2voIQ0CMRIAHipVI9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=i6CP8+jV; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPA id EADE9FF809; Tue, 2 Apr 2024 07:12:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712041954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6hUXRPUn9Ew3xx8mNXSwygNKoR19Gfh8s6NOLyAtqSQ=; b=i6CP8+jVSldQ/HJGgUsQdDB4c3KK4OwrJlMLeSshrbCKBa+aV1SQ9ewq1GXO0GxOXbGWXg sMPMwvYVigLnAZNXrldko5xJzftmVB1uf7K3OLAIKQt+5IL1ufw+HhjPF7KkNb/ZAKDzxr Q3H5eshHRygaEpu1WkXSwKE3wKs93A3P9up6eJm/fsUI7BKE6BrgUfs+xvnP0sUtT5BYOK Fb0oncJe+BWsKWv70FbBIAeRtSpRS25w/uSDfD8bSpJXOs+2tIFC1KvFswXvpxZkE3SYcL rc8fYgqPQsTfTyiJsACP0Zs6XxC34G4rjRpG1CXISj9WA+Hl4DSDUaNLgzs/yQ== From: Bastien Curutchet To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Ujfalusi , Jaroslav Kysela , Takashi Iwai , Bastien Curutchet Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Thomas Petazzoni , herve.codina@bootlin.com, christophercordahi@nanometrics.ca Subject: [PATCH v2 12/13] ASoC: dt-bindings: davinci-mcbsp: Add the 'ti,T1-framing-{rx/tx}' flags Date: Tue, 2 Apr 2024 09:12:12 +0200 Message-ID: <20240402071213.11671-13-bastien.curutchet@bootlin.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240402071213.11671-1-bastien.curutchet@bootlin.com> References: <20240402071213.11671-1-bastien.curutchet@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: bastien.curutchet@bootlin.com McBSP's data delay can be configured from 0 to 2 bit clock periods. 0 is used for DSP_B format, 1 for DSP_A format. A data delay of 2 bit clock periods can be used to interface to 'T1 framing' devices where data stream is preceded by a 'framing bit'. This 2 bit clock data delay is not described in the bindings. Add two flags 'ti,T1-framing-[rx/tx]' to enable a data delay of 2 bit clock periods in reception or transmission. Signed-off-by: Bastien Curutchet --- .../devicetree/bindings/sound/davinci-mcbsp.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml b/Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml index 0c2b1936c6a1..4fa677023827 100644 --- a/Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml +++ b/Documentation/devicetree/bindings/sound/davinci-mcbsp.yaml @@ -67,6 +67,20 @@ properties: "#sound-dai-cells": const: 0 + ti,T1-framing-tx: + $ref: /schemas/types.yaml#/definitions/flag + description: + If the property is present, tx data delay is set to 2 bit clock periods. + McBSP will insert a blank period (high-impedance period) before the first + data bit. This can be used to interface to T1-framing devices. + + ti,T1-framing-rx: + $ref: /schemas/types.yaml#/definitions/flag + description: + If the property is present, rx data delay is set to 2 bit clock periods. + McBSP will discard the bit preceding the data stream (called framing bit). + This can be used to interface to T1-framing devices. + required: - "#sound-dai-cells" - compatible -- 2.44.0