From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=67.231.157.77 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796150210; b=OoMTBbC3c5NpUYaiDVhbrxqI1sCeBGiz18PrSypue9Z+D3Z1u5ogZUuHjzapuzUiRt6+ RnPnmVEKZ4I7BUESoEuYbRDYDV4k4vX1MRyM5uW4qUZEaRQ+ha+egt+3mqx/lY4CuzPya V/grzijAoqm/iYVguxvw/AZv6X9h+2Qy6UL864AYqbmUmuVWO0OG30bcuaCZjkg34i/c8 CEknqLXTealaqmkpUQ52EvoNQ8g/ZnQqiO30ScogvrpJCuPrXuPXXxtpNUkApyrAoOEKh 0Ln2QscZEBrCbN33mVchOaZbD8pOVmAEHcVltROedQbr6W534EzrdA0wRn/P/O7tN/A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796150210; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-Reinject: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis:X-Proofpoint-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Reason; bh=182Hp//rimEdBj+NyZE49IfnTmzl8VjRy7NJAE1/i1I=; b=e9Z9NXzHlWHatOoh41qTvrPJKlA/OjU7xb65e8bqjsvs801MP5QNd5Fo3cFG9z8ifaLz f5CVJgxF7x1dHNwCjknq8UFRvXMS9L015YayhLH5ePDbNu1PEdEv7vidylwMBwZgRxTOT UKUvP3lpiX8YN7uwTlPDVj5cMQDxWCOQvHLrHI+HQGsfax0mM1/R3UwIBfeF268Q8iIUA dA4c2R0ZJs34LYF3vwIO6ujg3jtddWEp0B9ci+mrWuRM8oI8mB1rrWqxtCzg3P61MOZqa Bsmu7Hy9/qHxc5uUaebQve8hwQm6qWB8XaWePS6XUjVz+hnAHZHXKzFeSyEhZLfWbrw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=plexus.com; spf=pass smtp.mailfrom=plexus.com; dkim=pass header.d=plexus.com header.i=@plexus.com header.a=rsa-sha256 header.s=pps1 header.b="Kzyh/rXz"; arc=none smtp.remote-ip=67.231.157.77 Received: from mx0b-0046e701.pphosted.com (mx0b-0046e701.pphosted.com [67.231.157.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3BE5606A32F; Tue, 1 Dec 2026 18:36:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B3BE5606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=plexus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=plexus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=plexus.com header.i=@plexus.com header.a=rsa-sha256 header.s=pps1 header.b=Kzyh/rXz Received: from pps.filterd (m0425992.ppops.net [127.0.0.1]) by mx0b-0046e701.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1IYrHD2062469; Tue, 1 Dec 2026 12:36:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plexus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pps1; bh=182Hp //rimEdBj+NyZE49IfnTmzl8VjRy7NJAE1/i1I=; b=Kzyh/rXzzillM+KTjlxdq NAGeG7qSn3SkXCpRdb2qqHQb4fgOzHOgJMcgOTJlkzi+rpnARl+pk2kAAfMyBb++ OzutW78DiK7KGxh0q4vXumA4nA6e9g3OWIkcpBsUyFIz2GMJyLE9AxcQxsHHkKnq 2DdM/NRDPnQMleBhNvxbtkxLDTkXeeBVOhuu1GZ1yKVj34HXRXPBz6RaxQB2HVd3 /KzDtbj2v2wA8uUjHKTunorvAsg3jAcmtkvq3XAuAm9FDTw3yZme+ilk8e+u12Xr dyzrZxZc+G298ocxmgEkQ6TgMTR8GfX3vrVIuJeSkY5Bdjt+/Z98GAg4oGGgj2S3 w== Received: from intranet-smtp.plexus.com ([64.215.193.254]) by mx0b-0046e701.pphosted.com (PPS) with ESMTPS id 4j8hcmy1xb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 12:36:31 -0600 (CST) Received: from LNDCL34533.neenah.na.plexus.com (unknown [10.255.48.203]) by intranet-smtp.plexus.com (Postfix) with ESMTP id 252933F18F; Tue, 1 Dec 2026 12:36:30 -0600 (CST) From: Danny Kaehn Date: Tue, 01 Dec 2026 12:35:04 -0600 Subject: [PATCH 2/2] Documentation: ACPI: Add Silicon Labs CP2112 enumeration document X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261201-cp2112-docs-v1-2-92156113ac84@plexus.com> References: <20261201-cp2112-docs-v1-0-92156113ac84@plexus.com> In-Reply-To: <20261201-cp2112-docs-v1-0-92156113ac84@plexus.com> To: "Rafael J. Wysocki" , Len Brown , Andy Shevchenko Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Danny Kaehn X-Mailer: b4 0.14-dev-d4707 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796150104; l=6286; i=danny.kaehn@plexus.com; s=20260127; h=from:subject:message-id; bh=9RLH7ko08sg0J3ih1HY9THiYkdzvV3sxfHP06fzffR8=; b=7I4xFnZJHKMc96WL938VYoUwE9bHRzaWWg+lVXFlQtnrxPyP1s3HBr2KTMQ6BvjjbZXwIP5Rp ThYRpC8xfmRD+8lQGH69QbsxuuJwBiJPg91AA7kJazV48xeJHAWogsX X-Developer-Key: i=danny.kaehn@plexus.com; a=ed25519; pk=cbcR30mXg2VNyXtpE2SxVSXEDWLYwrxgnPCjJZn6A8s= X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA3MyBTYWx0ZWRfX5IbRr2xrc61l Ta8FskHl+NzxIVTuIne0LzyFKEUaK4ml4jhlCk8rWHtIQZUEK0Wdh/2Z7+ooL3uQN6yXbkbrtJ2 1dmICgtAdJKnLEiAaiDc0JLR+LOb3Op5N/SGwd1DayzktWLqsAgFdLJyvbL3qvaBW2cVxfZvxa6 6GtVIumDxfwVp2fBbBZS6s7ZR/Sfs3R9ioKSKybinkYGV4iFZBIzOLKBNaTgsinG2EU4ztOT/GI xipWhCYlDirOhJaYjWS9De3C4S/RHbPyAWbRv/XZedbYRBSm/IPrgqreC8kgFKgeZYjcdqDVp5Z vuob+lfx96d4NQD5xl5PknwwmlLkSInw4/VGdJjxqpYOQksiH7/SX8xL532H9Orfmj5PewjvtkM 0hyXDzcXLG0Wfx+rO1KQR9FiYxcYIDGM1t7HR3Mo61z+79F6SsEhG7C+UCDIc0XQJ+p8MTpZFyT IVm41m3XU9tjBth0G7g== X-Authority-Analysis: v=2.4 cv=CdWdd7rl c=1 sm=1 tr=0 ts=6b0f13af cx=c_pps a=356DXeqjepxy6lyVU6o3hA==:117 a=356DXeqjepxy6lyVU6o3hA==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=SL0Da4cj2IsybHzvybfz:22 a=6wD_j1z14G4eGgT9AmLd:22 a=VwQbUJbxAAAA:8 a=QyXUC8HyAAAA:8 a=Y_joWELsAAAA:8 a=YkIGKgMV2KmkjqTdHqoA:9 a=QEXdDO2ut3YA:10 a=g_BQsM8wYJVSTWLOHH1t:22 X-Proofpoint-GUID: GPDjsWpwBPTf5jgXTwqnzDFhQKvl9b2_ X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA3MyBTYWx0ZWRfX3TE3nmwQ7jcU 2icdCfyPznbm1CIeh1ECcTBUlBAUCR8DHej2n9k8bDkDdr3WEZEAyGMhFj0V6wkRExpSLHVa2Zp wcm7YL25jhN8FKo+zUmS0ccdhiIwOPEJOjwbaG2PxeoNVeD7f6wv X-Proofpoint-ORIG-GUID: hJKekZR7mAZQlCD48px1pz--AN_ls5KW X-Proofpoint-Spam-Reason: orgsafe The hid-cp2112 driver supports describing the CP2112 and its I2C and GPIO functions via ACPI, but there is no documentation of how the device is expected to be described. Document that the CP2112 is described as a child of the USB port it is attached to, with child device nodes for its I2C controller (_ADR 0) and GPIO controller (_ADR 1), and that the I2C bus speed can be set with the "clock-frequency" property. Include an example ASL showing an LM75 temperature sensor on the CP2112 I2C bus and a hog on a CP2112 GPIO. Suggested-by: Andy Shevchenko Link: https://lore.kernel.org/linux-input/autpMnQT8t0Ecu-m@ashevche-desk.local/ Signed-off-by: Danny Kaehn --- .../firmware-guide/acpi/i2c/silabs,cp2112.rst | 123 +++++++++++++++++++++ Documentation/firmware-guide/acpi/index.rst | 1 + 2 files changed, 124 insertions(+) diff --git a/Documentation/firmware-guide/acpi/i2c/silabs,cp2112.rst b/Documentation/firmware-guide/acpi/i2c/silabs,cp2112.rst new file mode 100644 index 000000000000..efc218bb6a5a --- /dev/null +++ b/Documentation/firmware-guide/acpi/i2c/silabs,cp2112.rst @@ -0,0 +1,123 @@ +.. SPDX-License-Identifier: GPL-2.0 + +================================================ +Silicon Labs CP2112 HID USB to SMBus/I2C Bridge +================================================ + +The CP2112 is a USB HID device which includes an integrated I2C controller +and 8 GPIO pins. When the CP2112 is permanently attached to a USB port, it +can be described in ACPI so that devices connected to its I2C bus or GPIO +pins can be enumerated and reference it like any other I2C or GPIO +controller. + +The CP2112 is described by a Device () node under the USB port to which it +is attached, with its ``_ADR`` set to the USB port number. The USB HID +driver shares this firmware node with the hid-cp2112 driver. + +The I2C controller and GPIO controller are each described by a child +Device () node of the CP2112, identified by their ``_ADR``: + +======== ==================== +``_ADR`` Function +======== ==================== +0 I2C controller +1 GPIO controller +======== ==================== + +I2C controller +============== + +The I2C controller node (``_ADR`` 0) acts as the parent of any I2C client +devices on the CP2112 bus. I2C clients reference it as the ResourceSource +of their I2cSerialBus () resource. + +The bus speed can be configured with the ``clock-frequency`` device property +in Hz, from 10000 to 400000. The default is 100000. + +GPIO controller +=============== + +The GPIO controller node (``_ADR`` 1) is referenced as the ResourceSource of +GpioIo () and GpioInt () resources of consumer devices. The GPIO controller +is also an interrupt controller, so its pins may be used with GpioInt (). + +The ``gpio-line-names`` property and GPIO hogs are supported as described in +Documentation/firmware-guide/acpi/gpio-properties.rst. + +Example +======= + +The following ASL describes a CP2112 attached to port 1 of the root hub of +a USB host controller, with: + +- the I2C bus configured for 400 kHz, +- an LM75 temperature sensor at address 0x48 on the I2C bus, +- GPIO 7 hogged high and named "FAN_RST". + +:: + + Scope (\_SB.PCI0) + { + Device (SE9) + { + Name (_ADR, 0x001D0001) + + Device (RHUB) + { + Name (_ADR, Zero) + + Device (CP2) + { + Name (_ADR, One) + + Device (I2C0) + { + Name (_ADR, Zero) + Name (_DSD, Package () { + ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "clock-frequency", 400000 }, + } + }) + + Device (TMP0) + { + Name (_HID, "PRP0001") + Name (_CRS, ResourceTemplate () { + I2cSerialBusV2 (0x48, ControllerInitiated, + 400000, AddressingMode7Bit, + "\\_SB.PCI0.SE9.RHUB.CP2.I2C0") + }) + Name (_DSD, Package () { + ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "compatible", "national,lm75" }, + } + }) + } + } + + Device (GPIO) + { + Name (_ADR, One) + Name (_DSD, Package () { + ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), + Package () { + Package () { "fan-rst-hog", "FRST" }, + } + }) + + Name (FRST, Package () { + ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "gpio-hog", 1 }, + Package () { "gpios", Package () { 7, 0 } }, + Package () { "output-high", 1 }, + Package () { "line-name", "FAN_RST" }, + } + }) + } + } + } + } + } diff --git a/Documentation/firmware-guide/acpi/index.rst b/Documentation/firmware-guide/acpi/index.rst index cd29e180410e..4235afa2b0d0 100644 --- a/Documentation/firmware-guide/acpi/index.rst +++ b/Documentation/firmware-guide/acpi/index.rst @@ -23,6 +23,7 @@ ACPI Support apei/einj gpio-properties i2c/i2c-muxes + i2c/silabs,cp2112 acpi-lid lpit video_extension -- 2.25.1