From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [PATCH v4 58/59] acpi: Add more documentation for struct acpi_gpio
Date: Wed, 28 Oct 2020 22:02:11 +0200 [thread overview]
Message-ID: <20201028200211.GA4077@smile.fi.intel.com> (raw)
In-Reply-To: <20200922184544.2920969-27-sjg@chromium.org>
On Tue, Sep 22, 2020 at 12:45:43PM -0600, Simon Glass wrote:
> Add some documentation provided by Andy Shevchenko to describe how to
> use struct acpi_gpio.
Thanks!
I see Bin already applied this, perhaps follow up fix is needed. See below.
...
> + * Note that GpioIo doesn't have any means of Active Low / High setting, so a
GpioIo -> GpioIo()
> + * _DSD must be provided to mitigate this.
Plus the following:
"This parameter does not make sense for GpioInt() since it has its own means
to define it."
> + * GpioIo doesn't properly communicate the initial state of the output pin,
GpioIo -> GpioIo()
> + * thus Linux assumes the simple rule:
> + *
> + * Pull Bias Polarity Requested...
> + *
> + * Implicit x AS IS (assumed firmware configured for us)
> + * Explicit x (no _DSD) as Pull Bias (Up == High, Down == Low),
> + * assuming non-active (Polarity = !Pull Bias)
> + *
> + * Down Low as low, assuming active
> + * Down High as high, assuming non-active
Should be read:
" * Down High as low, assuming non-active"
> + * Up Low as high, assuming non-active
> + * Up High as high, assuming active
> + *
> + * GpioIo() can be used as interrupt and in this case the IoRestriction mustn't
> + * be OutputOnly.
> + * It also requires active_low flag from _DSD in cases where it's
> + * needed (better to always provide than rely on above assumption made on OS
> + * level).
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2020-10-28 20:02 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-22 18:44 [PATCH v4 00/59] dm: Add programatic generation of ACPI tables (part D) Simon Glass
2020-09-22 18:44 ` [PATCH v4 01/59] x86: acpi: Add cros_ec tables Simon Glass
2020-09-22 18:44 ` [PATCH v4 02/59] x86: acpi: Add base asl files for common x86 devices Simon Glass
2020-09-22 18:44 ` [PATCH v4 03/59] x86: acpi: apl: Add asl files for Apollo Lake Simon Glass
2020-09-22 18:44 ` [PATCH v4 04/59] x86: acpi: Add DPTF asl files Simon Glass
2020-09-22 18:44 ` [PATCH v4 05/59] x86: apl: Correct PCIE_ECAM_BASE Simon Glass
2020-09-22 18:44 ` [PATCH v4 06/59] x86: Add a config for the systemagent PCIEX regions size Simon Glass
2020-09-22 18:44 ` [PATCH v4 07/59] x86: Add a common global NVS structure Simon Glass
2020-09-22 18:44 ` [PATCH v4 08/59] x86: acpi: Support external GNVS tables Simon Glass
2020-09-22 18:44 ` [PATCH v4 09/59] x86: acpi: Expand the GNVS Simon Glass
2020-09-22 18:44 ` [PATCH v4 10/59] x86: coral: Add ACPI tables for coral Simon Glass
2020-09-22 18:44 ` [PATCH v4 11/59] acpi: Add support for writing a _PRW Simon Glass
2020-09-22 18:44 ` [PATCH v4 12/59] acpi: Add support for conditions and return values Simon Glass
2020-09-22 18:44 ` [PATCH v4 13/59] acpi: Support generating a multi-function _DSM for devices Simon Glass
2020-09-22 18:44 ` [PATCH v4 14/59] dm: acpi: Use correct GPIO polarity type in acpi_dp_add_gpio() Simon Glass
2020-09-22 18:45 ` [PATCH v4 15/59] x86: link: Allow more space for U-Boot Simon Glass
2020-09-22 18:45 ` [PATCH v4 16/59] i2c: Add a generic driver to generate ACPI info Simon Glass
2020-09-22 18:45 ` [PATCH v4 17/59] x86: Add wake sources for the acpi_gpe driver Simon Glass
2020-09-22 18:45 ` [PATCH v4 18/59] x86: apl: Support writing the IntelGraphicsMem table Simon Glass
2020-09-22 18:45 ` [PATCH v4 19/59] x86: acpi: Add a common routine to write WiFi info Simon Glass
2020-09-22 18:45 ` [PATCH v4 20/59] x86: Add some definitions for SMM Simon Glass
2020-09-22 18:45 ` [PATCH v4 21/59] x86: apl: Add power-management definitions Simon Glass
2020-09-22 18:45 ` [PATCH v4 22/59] x86: apl: Update iomap for ACPI Simon Glass
2020-09-22 18:45 ` [PATCH v4 23/59] x86: Add a few common Intel CPU functions Simon Glass
2020-09-22 18:45 ` [PATCH v4 24/59] x86: acpi: Support generation of the HPET table Simon Glass
2020-09-22 18:45 ` [PATCH v4 25/59] x86: acpi: Support generation of the DBG2 table Simon Glass
2020-09-22 18:45 ` [PATCH v4 26/59] acpi: Add support for generating processor tables Simon Glass
2020-09-22 18:45 ` [PATCH v4 27/59] x86: acpi: Add PCT and PTC tables Simon Glass
2020-09-22 18:45 ` [PATCH v4 28/59] acpi: Add more support for generating processor tables Simon Glass
2020-09-22 18:45 ` [PATCH v4 29/59] x86: acpi: Add common Intel ACPI tables Simon Glass
2020-09-22 18:45 ` [PATCH v4 30/59] x86: Support Atom SoCs using SWSMISCI rather than the SWSCI Simon Glass
2020-09-22 18:45 ` [PATCH v4 31/59] x86: acpi: Add support for additional Intel tables Simon Glass
2020-09-22 18:45 ` [PATCH v4 32/59] x86: apl: Allow reading hostbridge base addresses Simon Glass
2020-09-22 18:45 ` [PATCH v4 33/59] p2sb: Add some definitions used for ACPI Simon Glass
2020-09-22 18:45 ` [PATCH v4 34/59] x86: apl: Generate required ACPI tables Simon Glass
2020-09-22 18:45 ` [PATCH v4 35/59] x86: apl: Add support for hostbridge ACPI generation Simon Glass
2020-09-22 18:45 ` [PATCH v4 36/59] x86: apl: Generate CPU tables Simon Glass
2020-09-22 18:45 ` [PATCH v4 37/59] x86: apl: Generate ACPI table for LPC Simon Glass
2020-09-22 18:45 ` [PATCH v4 38/59] x86: apl: Drop unnecessary code in PMC driver Simon Glass
2020-09-22 18:45 ` [PATCH v4 39/59] tpm: cr50: Add ACPI support Simon Glass
2020-09-22 18:45 ` [PATCH v4 40/59] x86: fsp: Update the FSP API with the end-firmware method Simon Glass
2020-09-22 18:45 ` [PATCH v4 41/59] x86: cpu: Report address width from cpu_get_info() Simon Glass
2020-09-22 18:45 ` [PATCH v4 42/59] x86: Sort the MTRR table Simon Glass
2020-09-22 18:45 ` [PATCH v4 43/59] x86: Notify the FSP of the 'end firmware' event Simon Glass
2020-09-22 18:45 ` [PATCH v4 44/59] x86: Correct the assembly guard in e820.h Simon Glass
2020-09-22 18:45 ` [PATCH v4 45/59] x86: Add a header guard to asm/acpi_table.h Simon Glass
2020-09-22 18:45 ` [PATCH v4 46/59] x86: Correct handling of MADT table CPUs Simon Glass
2020-09-22 18:45 ` [PATCH v4 47/59] acpi: tpm: Add a TPM2 table Simon Glass
2020-09-22 18:45 ` [PATCH v4 48/59] acpi: tpm: Add a TPM1 table Simon Glass
2020-09-22 18:45 ` [PATCH v4 49/59] x86: acpi: Set the log category for x86 table generation Simon Glass
2020-09-22 18:45 ` [PATCH v4 50/59] x86: coral: Add audio descriptor files Simon Glass
2020-09-22 18:45 ` [PATCH v4 51/59] x86: apl: Check low-level init in FSP-S pre-init Simon Glass
2020-09-22 18:45 ` [PATCH v4 52/59] x86: fsp: Add more debugging for silicon init Simon Glass
2020-09-22 18:45 ` [PATCH v4 53/59] x86: fsp: Show FSP-S or FSP-M address in fsp_get_header() Simon Glass
2020-09-22 18:45 ` [PATCH v4 54/59] acpi: Use defines for field lengths Simon Glass
2020-09-22 18:45 ` [PATCH v4 55/59] x86: Add a way to add to the e820 memory table Simon Glass
2020-09-22 18:45 ` [PATCH v4 56/59] x86: Move include of bitops out of ACPI region Simon Glass
2020-09-22 18:45 ` [PATCH v4 57/59] x86: coral: Update config and device tree for ACPI Simon Glass
2020-09-22 18:45 ` [PATCH v4 58/59] acpi: Add more documentation for struct acpi_gpio Simon Glass
2020-10-28 20:02 ` Andy Shevchenko [this message]
2021-01-23 18:09 ` Simon Glass
2020-09-22 18:45 ` [PATCH v4 59/59] acpi: Use I2cSerialBusV2() instead of I2cSerialBus() Simon Glass
2020-09-23 5:58 ` [PATCH v4 00/59] dm: Add programatic generation of ACPI tables (part D) Bin Meng
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=20201028200211.GA4077@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=u-boot@lists.denx.de \
/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