From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 CA83A2C1593 for ; Tue, 17 Feb 2026 23:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771370014; cv=none; b=hSziMzcpvEo3l8G10usRJ/M3h5pQhoMd8Fn7b7eyxsBPJVP/IZatmsMHuaVoafN0FmdPld8nJidAJPmqwSt5sXSo44Ey+gIUKmI2tmJAXhE7oGBe113PZbUYQaGLQBVZyn27iPPWwBTfuCwSDrm4i2OvFrGxHQNZnjx5MPNx5RQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771370014; c=relaxed/simple; bh=8CXx5KGYHmTT1pcaXlh1JWyPSkCdfVKWKnhkw/+2UD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pAJFq4Wo/Yvenn7c4rBco45RQ9QEnzvh5Gw83GoC8FYkJfz08mItUBVxW22vVcb0nlxjhSxRWsYHl8ePijNRl7kf/wI0/XdROqxxNohwMcZbcsHHQ1t3d6X/bSEOO+UIFiMKPMnUpntU8zPBWL7psCvkKLrH5WWmmJNlA8uKk4E= 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=LhiT89QU; arc=none smtp.client-ip=209.85.208.54 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="LhiT89QU" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-658b6757f7fso549254a12.1 for ; Tue, 17 Feb 2026 15:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771370011; x=1771974811; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TuCtFSo1/BpbElvw/aCMIq5QPc8B+MlFWaQWA/8BJQM=; b=LhiT89QUcJVX7auNCjmargZvDpmQ50z+kT0GMcSkZnRmDVBlW+ZSwT1k1a/4n8Kaqs oQ77YxqHjCtFG2I7u0bcNey4nwhGsZWKB52xqI9Hav/cXpOl1D7Iag20BRKnAU0blQMg 0DeIDU3TZFJmuZfhvYM6pifx6/lV8XC1IdOiqE2UQw8IBtAtYp3oS2b28M7FP6SV9hg8 gbmix/T3BsF0lA64l99KJcqEFlad+bRXpiOkjOw2IJQzvgjnnVhyjquBrX7xhCoGo4j1 6jgjYy2hFbxafdhgcBVeBowaklRJzSyyxZdH+xjNebN2IuSL26DlMd6uerBY33dF0L21 js0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771370011; x=1771974811; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TuCtFSo1/BpbElvw/aCMIq5QPc8B+MlFWaQWA/8BJQM=; b=PteZF0hwM1+UV7nWWEe0cw+mxpX3znrbddLpNXC0OwHnXhWrTt8kgllLB0nvWzC1Bc bpgRWpChU3rBipnjWyzB1+tdrpEgOPtapCNzqjm/KAviK5Nk3Brb+Xm2qXUo0XYoSnBd te4tqjqkNVUJ4i8pUzY/o4uHNbOYf7QY7ZOG6SvbAdL0B1REqmd73VwmgOFe4FieiEHA +5JBwl36ArlYI/YVLFCr8pEQuxfb1Bpdpt2VNKNmeyomoxQAgXt3Xu8AHEMRvvX7deTw re2HFaac8Q3yvHLVOCuMb7rjGiLut4XUhNX5Oui4CfCR2MrDDjIyJeMcEMED89mxYtwu l7JA== X-Gm-Message-State: AOJu0YyoDoWgHmsSBuDAwwetnURQpPuB4YjNYK3HRLmebhtGxFypWOG2 XhzPfbuJZUo5ntEa3Zwvj4dpRapmEc/wmJnCsGEBuPCPwdRrE3jJOW7b X-Gm-Gg: AZuq6aJKgjxOmOi0v/UhBMyGp4HSIH/abhcfjwcfKa4F1rJphwkjnFM2skGODs7CqjU bOxHYnF3p5Ga5zsfIEq9x7f86KqmDn9mBwqP3rEoHhtm5ofkwBzsD5BqPFPH08m1bGMzY/YIanC 12+uHfvkU1RUTvwgQIXbvN0g2+4s6uNwc3Crom+TsXj0Y0+uQgQXX+w5UFGfnEUM/9jvC9TAia4 Kn6opYX0iLnfN486F4/tE6+qZZXRjhCoW7Q5QzXBBXM9lZQ77neyfdxu8jsHSEdZXa36c6UCb4J qKLHAXrxOFGmCpejeM8hIhEbHHhp/AlON4R8ZfuV/rO0lsCXzja5MeTk0CKRaldcXxVl8f+GybP fmETDsTXxIh0LmFIgtLc08wi1bhaqSzeyNELIGbLlDi0/coqovPaxhXWxkKtnaHF9BPYE4NGWyR xbrEM+UDkJcPBBFw== X-Received: by 2002:a05:6402:34cf:b0:65b:94e0:a593 with SMTP id 4fb4d7f45d1cf-65c771b4037mr23303a12.1.1771370010832; Tue, 17 Feb 2026 15:13:30 -0800 (PST) Received: from jekhomev ([46.251.53.180]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-65bad3f137dsm2661375a12.27.2026.02.17.15.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Feb 2026 15:13:30 -0800 (PST) From: Yauhen Kharuzhy To: linux-sound@vger.kernel.org, Cezary Rojewski , Liam Girdwood , Pierre-Louis Bossart , Mark Brown Cc: linux-kernel@vger.kernel.org, Hans de Goede , Yauhen Kharuzhy Subject: [PATCH v1 0/2] Add ASoC machine driver for Lenovo YB1 tablets Date: Wed, 18 Feb 2026 01:13:22 +0200 Message-ID: <20260217231324.1319392-1-jekhor@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is the first iteration of my submission for sound support for Lenovo Yoga Book YB1-X90/X91 tablets. These are Cherry Trail-based platforms that use the RT5677 codec and TS3A227E jack detection IC. The YB1-X90 is an Android-designated device and has incorrect ACPI entries for many onboard peripherals, including sound devices. The YB1-X91 has a DSDT node for the codec, and the same node is shared with the TS3A227E jack detection IC (see below). Matching with ACPI entries is somewhat tricky; see the corresponding commit. Jack detection IC info is defined in the x86-android-tablets driver for both platforms to simplify the code. The machine driver is called 'cht_yogabook' because it has some hardcoded device-specific elements and it seems this is the only known Cherry Trail platform using the RT5677 codec. This naming is open to discussion: a more generic name like 'cht_rt5677' or 'cht_bsw_rt5677' may be better (requiring reworking of the driver to make it more generic with device-specific quirks). The driver requires support for the RT5677 definition as an ACPI node or i2c_board_info, submitted earlier in [1]. 1. https://lore.kernel.org/linux-sound/20260211002255.4090440-1-jekhor@gmail.com/ For reference, there is an ACPI node for sound configuration from YB1-X91 DSDT below: HID: 10EC5677 _CRS resources: I2C devices: 0: rt5677 codec 1: ts3a227e jack detection IC GPIOs: 0: rt5677 codec reset 1: rt5677 codec pow-ldo2 2: speaker enable INTs: 0: rt5677 codec 1: ts3a227e jack detection IC SPI device: 0: rt5677 codec SPI connection ACPI decompiled dump fragment: Device (RTEK) { Name (_ADR, Zero) // _ADR: Address Name (_HID, "10EC5677") // _HID: Hardware ID Name (_CID, "10EC5677") // _CID: Compatible ID Name (_DDN, "Realtek IIS Audio Codec") // _DDN: DOS Device Name Name (_SUB, "17AA7005") // _SUB: Subsystem ID Name (_UID, One) // _UID: Unique ID Name (_PR0, Package (0x01) // _PR0: Power Resources for D0 { CLK3 }) Name (CHAN, Package (0x02) { One, 0x0124F800 }) Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings { Name (SBUF, ResourceTemplate () { I2cSerialBusV2 (0x002C, ControllerInitiated, 0x000186A0, AddressingMode7Bit, "\\_SB.PCI0.I2C1", 0x00, ResourceConsumer, , Exclusive, ) I2cSerialBusV2 (0x003B, ControllerInitiated, 0x000186A0, AddressingMode7Bit, "\\_SB.PCI0.I2C1", 0x00, ResourceConsumer, , Exclusive, ) GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, "\\_SB.GPO3", 0x00, ResourceConsumer, , ) { // Pin list 0x0019 } GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, "\\_SB.GPO3", 0x00, ResourceConsumer, , ) { // Pin list 0x0012 } GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, "\\_SB.GPO3", 0x00, ResourceConsumer, , ) { // Pin list 0x0030 } GpioInt (Edge, ActiveLow, Exclusive, PullNone, 0x0000, "\\_SB.GPO0", 0x00, ResourceConsumer, , ) { // Pin list 0x005B } GpioInt (Edge, ActiveLow, Exclusive, PullNone, 0x0000, "\\_SB.GPO0", 0x00, ResourceConsumer, , ) { // Pin list 0x004D } SpiSerialBusV2 (0x0001, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0x003D0900, ClockPolarityHigh, ClockPhaseSecond, "\\_SB.PCI0.SPI1", 0x00, ResourceConsumer, , Exclusive, ) }) Return (SBUF) /* \_SB_.PCI0.I2C1.RTEK._CRS.SBUF */ } } Yauhen Kharuzhy (2): ASoC: Intel: cht_yogabook: Add driver for Lenovo Yoga Book tablets ASoC: Intel: soc-acpi-cht: Add Lenovo Yoga Book entries sound/soc/intel/boards/Kconfig | 15 + sound/soc/intel/boards/Makefile | 2 + sound/soc/intel/boards/cht_yogabook.c | 602 ++++++++++++++++++ .../intel/common/soc-acpi-intel-cht-match.c | 144 +++-- 4 files changed, 713 insertions(+), 50 deletions(-) create mode 100644 sound/soc/intel/boards/cht_yogabook.c base-commit: 635c467cc14ebdffab3f77610217c1dacaf88e8c message-id: 20260211002255.4090440-1-jekhor@gmail.com -- 2.51.0