From nobody Wed Feb 11 04:18:40 2026 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8054B324B1D for ; Tue, 10 Feb 2026 16:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770741920; cv=none; b=FAKoCzDC3XzOadbmb+vrAV/gAPf/3gaq86ANw9GlX+BoM+8nw3rkpLj8zp+lHAcgAIcH8z0haXsC44axz4dioGhMlXLBrGFe+k81cZLYswBIr3hh1W6i/qO35vgDJgB+IVaQAlV6Mrj6oHC/eeLVUY3XalG6N6cKP3QL2sXL9r8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770741920; c=relaxed/simple; bh=rM5wReeBWtgy9nmTdYAlxFeY/pYQ4Hi13y3M6Ph4508=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SIRpSankHjBeDQXd8h/wLtxXYvl8jYBe4CPTCCZabuyCMLBepAjbcslf0eBuKOcwicS6droQA3KhAnUmQ7h1a4aCr/MRpDPW+mFd/Vu6mKrjLMfcQt6QQHwqBKmhkyvBuXoyyiv4bf42txm2xub8AfPPUUrEmc901m/a63PtGlI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fbuzp09Z; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fbuzp09Z" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-47edd6111b4so85574545e9.1 for ; Tue, 10 Feb 2026 08:45:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770741918; x=1771346718; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5UbDOXAtO3a1IS407zSIaYrMcpaX7Lzf/cb9+OP6YuM=; b=fbuzp09ZXbIEt5bPvOJqaavp3j26Nekj78OiVbnOenKf9BWB+rpy/zbxOK3RRGRUSy 4H6Q+zj4PR5RqvZfTHANY02tRGz8PsyWJWseprdw5HhRhQsSnl6vpUBW53tiPF4QyIN9 s16q1mNfb8hGdvmbLxii/MIBTjq9gGbl+0//RYBM9xsYECNJSfgLkKmfoPxe39IYuXLj MIiYog3VnncktOYbF7hJ531oV0bSx5Z2862t9ZP/iBWpNJl7gEJRuWeFn5P5AX+8Z6z3 abEYaXjRgrT9e6HjbUlD/x8rtiQkYXQHzdHGv9tVGPMEu6458g3FIcu2AZLxQWeFtzhJ ZkgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770741918; x=1771346718; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5UbDOXAtO3a1IS407zSIaYrMcpaX7Lzf/cb9+OP6YuM=; b=UDheFbWM7n1zBE9DKoYwMa5+h1FadHhDsKvd4mov3VtYlz3fRTxuGv0nYinS15NPTJ hztEXv4KWgokdbzPH1GBkzFUa4Tbyqv5+24fXBq+76PpPQnovApcX1GdKaz/r9Mwddsn a5RRazvcm9Mm2qhPwL/BpJzx1KTm77MAdEdkM8Cu1O2lJxZweEPyhKT14xby3L2RB6jD RhNrXPjF1GV1rbUsm2xXEXgpNKUDtwaOXRyLj9ierC6yDD6vL9nhbx4GmxxIbSIuIhCK f59QU0eyPQ2eB2HHdpT1sldyuN3ssWxItqruLE60XHX+J7QV9g7XsjIad+75M4vF1WPf G+sQ== X-Forwarded-Encrypted: i=1; AJvYcCVEqv+TF2jzvT21YX6RSl7BOYsfxG9oZRZ3sEiMOZmZ0j9avi7E3Rfsj3jgS2qIQMacqDuL9/7+9LpyOjs=@vger.kernel.org X-Gm-Message-State: AOJu0YyNZh2IvazF588CSVJyiCvZewW/xYYBRAy56Vk6QhYPmd23+/3r jvCfJEDJls8TXelRQ/+DPXf0WNnKyXEAuL5L8TMXKbMUaCJr4xvV+11Z X-Gm-Gg: AZuq6aLkxeyWwGbQHhIoW0G9/ugn7V8lRovNht0th/mJDZtgBRj3VROlRKSNTW7AzsG n/ftDBr0BNJEMWzeKkqYDuX7hAAHQxivRqjxtbdEQiYxIeNrDjUzFvLZwSRBjVAfmndYlwNr2wQ ILT0wg/WfeNG/XzpWGhiD0hW/3rQpAJb6GXgGo/7A9egarwTpjEcbGXBnD5IBefojUz0t7Lsoy+ jQ3RfX/cByD0KQrDIaOL/pHpdh24IDNYPvtPx/5fCLFjAp4SWf+0007fzpjFATyN6J9Y2h3hdki 5WNbVuzb8DBPIG54ToYsVwYbfibp5ubHWxiH2Gg+KN3wacTCWBJaKgz3KAEJ8vY10aMQJCfm/su DrLpX/glIe7jOuIXgPqvQJp4kW4obungMJoNKSKRwagBdlAGcQwZExZM03Iy+mLcMcgb6E3uEK3 pYvJnt9R7soKbLMmC+YkcYJYKQ/0A6/uZxJRGV6c7KqDjcN3jtX+Enj2pCJtFp6Wii9DwNe+jcp DWTVrElMHV7Gv9r1lhOkfvGlwyUC6SRGPDuvSStuz+qd/1bXoc= X-Received: by 2002:a05:600c:a43:b0:477:93f7:bbc5 with SMTP id 5b1f17b1804b1-483507e18acmr44929135e9.10.1770741917807; Tue, 10 Feb 2026 08:45:17 -0800 (PST) Received: from Lord-Beerus.station (net-188-152-100-94.cust.vodafonedsl.it. [188.152.100.94]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4834d5d78cfsm96294245e9.1.2026.02.10.08.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 08:45:17 -0800 (PST) From: Stefano Radaelli X-Google-Original-From: Stefano Radaelli To: Kuninori Morimoto , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mark Brown , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , alexander.h@variscite.com, pierluigi.p@variscite.com, Stefano Radaelli Subject: [PATCH v2 1/2] dt-bindings: sound: simple-card: add sysclk-cpu-first flag Date: Tue, 10 Feb 2026 17:45:05 +0100 Message-ID: <20260210164506.161810-2-stefano.r@variscite.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260210164506.161810-1-stefano.r@variscite.com> References: <20260210164506.161810-1-stefano.r@variscite.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Stefano Radaelli The simple-audio-card driver can program sysclk for CPU and codec DAIs during hw_params. Some setups require calling the CPU DAI sysclk first so that the codec sees the final MCLK rate. Document a new boolean DT flag, sysclk-cpu-first, which allows selecting CPU-first sysclk ordering where needed. The property is supported both as a top-level simple-audio-card property (prefixed) and on dai-link subnodes (non-prefixed). Signed-off-by: Stefano Radaelli --- .../devicetree/bindings/sound/simple-card.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/simple-card.yaml b/Doc= umentation/devicetree/bindings/sound/simple-card.yaml index 533d0a1da56e..ddad440636be 100644 --- a/Documentation/devicetree/bindings/sound/simple-card.yaml +++ b/Documentation/devicetree/bindings/sound/simple-card.yaml @@ -35,6 +35,13 @@ definitions: description: see tdm-slot.txt. $ref: /schemas/types.yaml#/definitions/uint32 =20 + sysclk-cpu-first: + description: + When mclk-fs is used, configure CPU DAI sysclk before codec DAI sysc= lk + so the codec sees the final MCLK rate. + This property only affects the mclk-fs code path. + $ref: /schemas/types.yaml#/definitions/flag + system-clock-frequency: description: | If a clock is specified and a multiplication factor is given with @@ -194,6 +201,8 @@ properties: $ref: "#/definitions/format" simple-audio-card,mclk-fs: $ref: "#/definitions/mclk-fs" + simple-audio-card,sysclk-cpu-first: + $ref: "#/definitions/sysclk-cpu-first" simple-audio-card,aux-devs: $ref: "#/definitions/aux-devs" simple-audio-card,additional-devs: @@ -251,6 +260,8 @@ patternProperties: $ref: "#/definitions/format" mclk-fs: $ref: "#/definitions/mclk-fs" + sysclk-cpu-first: + $ref: "#/definitions/sysclk-cpu-first" aux-devs: $ref: "#/definitions/aux-devs" convert-rate: --=20 2.47.3