From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 B76D338236C for ; Fri, 21 Aug 2026 04:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787287204; cv=none; b=Q+YRjonoXrCl26RikzB1KI0u87OBJJTZXYSiiVoOj0uxyfcOs0jVWyTGMpyoW7kQduc0pYQdGifKufMJcaX6vBBu4fjUruGCG9JHUeCJaa6vtVIy+cB9Dh4yfS+/0nLbcXQHmIPJTXUq2YfTP3bRb0ewrcFVO+eIv+iTXEvHGN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787287204; c=relaxed/simple; bh=fhF5eyedH2gXD/2uR68oyWbe5657S6ghrkVsIg3OrOo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=t2ER5kE/B0mmJWJ+Im4EqPz7nY5MBfIiKdHMEZGxjsIBM7AfcvvV6qxzNDNeZ6qgQHqde0UgEO8QeTrgSB9aNRwLeOlw1KDM6mg5C7D+Zn+j4qhXjleHcwb1qmT78EziTjYGFt2b5eX9DuibXCDkr9u67WLtC8VEVzG0Dbvgj2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=asseily.com; spf=pass smtp.mailfrom=asseily.com; dkim=pass (2048-bit key) header.d=asseily.com header.i=@asseily.com header.b=fwaTLiNf; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=asseily.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=asseily.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=asseily.com header.i=@asseily.com header.b="fwaTLiNf" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-c2055f5a993so65423466b.2 for ; Thu, 20 Aug 2026 21:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asseily.com; s=google; t=1787287201; x=1787892001; 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:content-type; bh=u38MAgQ16EkssZf3acMydlSoJl569lszmJMEzuVuQGs=; b=fwaTLiNfqdVSen5BDYRC/CrGkGGduzgA7tIGa1t1FaXMYDoC/5KBb6KAwmrdi5k8OZ i+rnKSArsNmpA2UeIpOH3jB9Fb+SG7vgHeJkMGxkYtTtkym2jU66OEnLzw+99wgp7M4Y CpcyVwI/NUS4MAy+pefeknGaeLUrlidEZC/8rVqpSoASglSb+WsG9qrK1IFdNaKhIovA UzuF7OgyRbwmJ0I0XclbP1gQ6QMIY3nO/GWIUJdHBix24SSPkQm6jUZmQeUJGMvv/w5a ofv/ejAVtSZZ493fgcWSyilirRZZWc3tDtn8/XVKD/V8dmK4xL2ha5UvpzJbY6Y75Rxj 5img== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787287201; x=1787892001; 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:content-type; bh=u38MAgQ16EkssZf3acMydlSoJl569lszmJMEzuVuQGs=; b=mrHnJngczTV+YVIv3qFWkrS46KgdW4dmz7c+uL+B/8FO9xpt+0jQhR4TjbB335/6/a I21AOQk0Yb6kewowlONzFsAzl8mNIxOzF6JC34koAGoYQPRuP1Es9EGzS1NOpcpkrg+f HqBUR4gZNWp/Xcb2vRMziM/3dVUQgv97hXl1EMi+If6RHWL67axV9XeBcb4Y/BumvCbz +w9UKHWsRIXEPC2HRZjMPY+sfwwiSPVat1quoW/meG+GTCpoIaqMZ0RclxWWwh/y2t7l RWspMyxgpVJYaDTvRWiIjiTuwx97ipViCuDRAhENCokv1L4XPK7df3qfHpomiJJWgB/q bkyA== X-Forwarded-Encrypted: i=1; AHgh+RowWcHVKNjhjR4lSfKx3ZNPHiVVJTmoh0y34qhlBJl0VpnBGdFCuMI08QbPpICwofJjh2/XUiMZcIf6S3A=@vger.kernel.org X-Gm-Message-State: AOJu0YwAk/DlBmgGhQEzemL6D0GTX503csei5hyqH5wix77gqwulV8GH DZg5H2brQhsMxCcibB7iAwUkKg8X/JmxKSoXbHytW5P2zqGqcI48xSduhcGCvPe6DvA= X-Gm-Gg: AR+sD11HZjRCueKwa7K2eIrtaRWZ4bVb2jXPPg1dU1WjSmwjVHmomSqBD6DFgRy5HAW ofHnWBpj/rG8PXcFcUxgYqZ5gm4hqlKtLHmWbgZlCBFXZmUun4Us8HV3CScPaB9K0etvFWNVJHs gXZM/GmN3TUihXaEs+sJJSG3X+7xpYS+AYhFKAqutb7mjW/8UxAX4z0TZnTHOBKnySj5RI9C8zB Y+QuyzJRCft9Ub9EqF3FgMGnH70m+W2e96u/nxX6QGPlm30CSznViL32do8XY4J49HV/UkPNYQw Bk0itIh8OmZbjG9P7fvDOg9RZxyzkyEHEjS/63XEHmRW5pYJFKF6zpmMPz2QueSVQzLWjfYOw/6 aJ96aYjt1xTH+8W/5/t97J32x8ctUqFdOvjy9+6XiXmb1dv7J0Hz2poAo36F173tHozSTpnPqnb wqSsQG6evKC4K10vqABTj06d+y2XRB4PTCS/Tirn1wd3GlAVSH3imn0Poh6NJMJ5m9Vj6k25tb/ 6rXpCAi9WNohA== X-Received: by 2002:a17:906:9f8b:b0:c1f:c061:569a with SMTP id a640c23a62f3a-c246a4c6d63mr275364766b.7.1787287201026; Thu, 20 Aug 2026 21:40:01 -0700 (PDT) Received: from Behemoth.triland.local ([178.135.16.43]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c2458b5d438sm268182266b.27.2026.08.20.21.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 21:40:00 -0700 (PDT) From: Karl Asseily To: broonie@kernel.org, lgirdwood@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, perex@perex.cz, tiwai@suse.com Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Karl Asseily Subject: [PATCH v2 2/4] ASoC: dt-bindings: add ESS Technology ES9039Q2M Date: Fri, 21 Aug 2026 07:38:57 +0300 Message-Id: <20260821043859.171871-3-karl@asseily.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260821043859.171871-1-karl@asseily.com> References: <20260821043859.171871-1-karl@asseily.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 Add a binding for the ES9039Q2M, a 32-bit two-channel audio DAC with an asynchronous sample rate converter. The part selects between two control personalities with its MODE pin: hardware mode, strapped by HW0/HW1/HW2 with no control bus at all, and software mode over I2C or SPI. This binding describes software mode over I2C, which MODE = GND selects. Assisted-by: Claude:claude-opus-5 Signed-off-by: Karl Asseily --- Notes: v2: rename the binding to esstech,es9039q2m and update its $id and compatible .../bindings/sound/esstech,es9039q2m.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/esstech,es9039q2m.yaml diff --git a/Documentation/devicetree/bindings/sound/esstech,es9039q2m.yaml b/Documentation/devicetree/bindings/sound/esstech,es9039q2m.yaml new file mode 100644 index 00000000000..c1d03d3a855 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/esstech,es9039q2m.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/esstech,es9039q2m.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ESS Technology ES9039Q2M audio DAC + +maintainers: + - Karl Asseily + +description: + The ES9039Q2M is a 32-bit two-channel audio DAC supporting PCM to 768 kHz, + DSD64 to DSD1024, DoP and S/PDIF. It is controlled over I2C or SPI when the + MODE pin selects software mode; this binding covers the I2C interface. The + part contains an asynchronous sample rate converter, so the system clock need + not be synchronous with the audio bit or frame clocks. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: esstech,es9039q2m + + reg: + description: + I2C address, selected by the ADDR0 and ADDR1 pins - 0x48, 0x49, 0x4a or + 0x4b for GND/GND, GND/AVDD, AVDD/GND and AVDD/AVDD respectively. + enum: [ 0x48, 0x49, 0x4a, 0x4b ] + + clocks: + maxItems: 1 + + clock-names: + const: mclk + + "#sound-dai-cells": + const: 0 + +required: + - compatible + - reg + - "#sound-dai-cells" + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + audio-codec@48 { + compatible = "esstech,es9039q2m"; + reg = <0x48>; + #sound-dai-cells = <0>; + clocks = <&dac_mclk>; + clock-names = "mclk"; + }; + }; -- 2.34.1