mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Danny Kaehn <danny.kaehn@plexus.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
	Len Brown <lenb@kernel.org>,
	linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] Documentation: ACPI: Add Silicon Labs CP2112 enumeration document
Date: Thu, 3 Dec 2026 12:43:55 +0200	[thread overview]
Message-ID: <axFH65u-XlxugiGf@ashevche-desk.local> (raw)
In-Reply-To: <20261201-cp2112-docs-v1-2-92156113ac84@plexus.com>

On Tue, Dec 01, 2026 at 12:35:04PM -0600, Danny Kaehn wrote:
> 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.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

> Link: https://lore.kernel.org/linux-input/autpMnQT8t0Ecu-m@ashevche-desk.local/

Drop this.

And thanks for this one! I always appreciate documentation and test cases updates.

...

> +
> +                        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" },
> +                                }
> +                            })
> +                        }

Not sure if we need this, but since there are not too many examples of how to
cook PRP0001 in the kernel, I'm fine with this additional piece.

-- 
With Best Regards,
Andy Shevchenko



      reply	other threads:[~2026-12-03 10:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 18:35 [PATCH 0/2] Documentation: ACPI: Document CP2112 enumeration Danny Kaehn
2026-12-01 18:35 ` [PATCH 1/2] Documentation: ACPI: Move i2c-muxes to i2c/ subdirectory Danny Kaehn
2026-12-03 10:38   ` Andy Shevchenko
2026-12-01 18:35 ` [PATCH 2/2] Documentation: ACPI: Add Silicon Labs CP2112 enumeration document Danny Kaehn
2026-12-03 10:43   ` Andy Shevchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axFH65u-XlxugiGf@ashevche-desk.local \
    --to=andriy.shevchenko@intel.com \
    --cc=danny.kaehn@plexus.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®