linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Miroslav Bendík" <miroslav.bendik@gmail.com>
To: Wolfram Sang <wsa@kernel.org>,
	linux-i2c@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: Wrong piix4_smbus address / slow trackpoint on Thinkpad P14s gen 2 (AMD)
Date: Thu, 6 Jan 2022 18:54:12 +0100	[thread overview]
Message-ID: <d28741bf-a461-f4da-2f72-7855023684a1@gmail.com> (raw)
In-Reply-To: <YdbnQjxBINyFIRsQ@ninjato>

Hello,

> Do you think this is this the same issue as described in
 > https://bugzilla.kernel.org/show_bug.cgi?id=214597  <https://bugzilla.kernel.org/show_bug.cgi?id=214597>?

Probably not.

> Isn't the interrupt described in the ACPI tables?

Probably not. I am just web developer, i am not 100% sure, but i have not seen
anything usable in ACPI tables:
https://mireq.linuxos.sk/kernel/p14s_gen2_amd_acpi_tables.tar.xz

Most important section with SMBus is here:
https://lore.kernel.org/all/CAPoEpV0ZSidL6aMXvB6LN1uS-3CUHS4ggT8RwFgmkzzCiYJ-XQ@mail.gmail.com/

This section looked promising:

Scope (_SB.I2CB)
{
     Device (TPNL)
     {
         Name (_HID, "XXXX0000")  // _HID: Hardware ID
         Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */)  // _CID: Compatible ID
         Name (_S0W, 0x03)  // _S0W: S0 Device Wake State
         Name (HID2, 0x00)
         Name (POIO, 0x00)
         Name (SBFB, ResourceTemplate ()
         {
             I2cSerialBusV2 (0x0000, ControllerInitiated, 0x00061A80,
                 AddressingMode7Bit, "\\_SB.I2CB",
                 0x00, ResourceConsumer, _Y0C, Exclusive,
                 )
         })
         Name (SBFG, ResourceTemplate ()
         {
             GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone, 0x0000,
                 "\\_SB.GPIO", 0x00, ResourceConsumer, ,
                 )
                 {   // Pin list
                     0x0005
                 }
         })
         CreateWordField (SBFB, \_SB.I2CB.TPNL._Y0C._ADR, BADR)  // _ADR: Address
         CreateDWordField (SBFB, \_SB.I2CB.TPNL._Y0C._SPE, SPED)  // _SPE: Speed
         Name (ITML, Package (0x0A)
         {
             Package (0x07)
             {
                 0x04F3,
                 0x2A3B,
                 0x10,
                 0x01,
                 0x01,
                 "ELAN901C",
                 0x01
             },


but method _STA returned 0x0 (device not present). There is no activity on pin
5. My device has synaptics trackpoint/touchpad, not elantech.  I think, that
this section is for touchscreen (not on my device).

More infomations to GPIO:

Following command does nothing if psmouse is loaded without synaptics_intertouch:

gpiomon --num-events=1000 gpiochip0 19

After loading psmouse with intertouch it catches constantly cca 2000 changes/s.
There are some changes like two rising / falling edges directly behind each
other. I think, that clok is much faster, than gpiomon monitoring speed,
catching communication with this command would be useless.

I don't know why there is constant communication from trackpoint/touchpad to
GPIO 19/20. Maybe some notification mechanism, attention, maybe something which
stops after clearing some bit, i dont know. Schematic from Lenovo, documentation
or anything useful wold be great, but whithout this i am just guessing.

Pins 19/20 should be SCL/SDA of I2C3 (from coreboot, id don't know source of pin
description:
https://github.com/coreboot/coreboot/blob/cf39336ccfcc363162395bddf65113900aaf19fe/src/soc/amd/cezanne/include/soc/gpio.h#L152


  reply	other threads:[~2022-01-06 17:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-11 12:14 Wrong piix4_smbus address / slow trackpoint on Thinkpad P14s gen 2 (AMD) Miroslav Bendik
2022-01-05 17:57 ` Miroslav Bendík
2022-01-06 12:57   ` Wolfram Sang
2022-01-06 17:54     ` Miroslav Bendík [this message]
2022-01-06 18:27   ` Andrea Ippolito
2022-01-07  5:41     ` Miroslav Bendík
2022-01-06 12:52 ` Wolfram Sang
2022-01-08 18:42 ` Miroslav Bendík
2022-01-11 12:35   ` Wolfram Sang
2022-02-12 17:42 ` Miroslav Bendík
2024-10-10 16:25   ` Mario Limonciello
2024-10-13 17:20     ` Miroslav Bendík
2024-10-13 17:53       ` Hans de Goede
2024-10-14 16:01         ` Shyam Sundar S K
2024-10-14 16:43           ` Miroslav Bendík
2024-10-15 11:58             ` Shyam Sundar S K

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=d28741bf-a461-f4da-2f72-7855023684a1@gmail.com \
    --to=miroslav.bendik@gmail.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=wsa@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;
as well as URLs for NNTP newsgroup(s).