linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads
@ 2025-03-18 10:22 Laura Nao
  2025-03-18 10:22 ` [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober Laura Nao
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Laura Nao @ 2025-03-18 10:22 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	bleung, tzungbi
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	chrome-platform, nfraprado, kernel, Laura Nao

This series marks the trackpads for the Google Spherion variants as
"fail-needs-probe" and makes them compatibile with the ChromeOS DT hardware
prober.

Laura Nao (2):
  platform/chrome: Add support for Google Spherion in HW prober
  arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as
    fail-needs-probe

 .../arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts | 7 +++++++
 arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi           | 6 ++++--
 drivers/platform/chrome/chromeos_of_hw_prober.c            | 4 ++++
 3 files changed, 15 insertions(+), 2 deletions(-)

-- 
2.39.5



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober
  2025-03-18 10:22 [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads Laura Nao
@ 2025-03-18 10:22 ` Laura Nao
  2025-03-18 14:21   ` AngeloGioacchino Del Regno
                     ` (2 more replies)
  2025-03-18 10:22 ` [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe Laura Nao
                   ` (2 subsequent siblings)
  3 siblings, 3 replies; 12+ messages in thread
From: Laura Nao @ 2025-03-18 10:22 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	bleung, tzungbi
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	chrome-platform, nfraprado, kernel, Laura Nao

Add a new compatible entry for "google,spherion" to the hardware prober
platform list, using the same I2C component prober and trackpad data as
"google,hana".

Signed-off-by: Laura Nao <laura.nao@collabora.com>
---
 drivers/platform/chrome/chromeos_of_hw_prober.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/platform/chrome/chromeos_of_hw_prober.c b/drivers/platform/chrome/chromeos_of_hw_prober.c
index c6992f5cdc76..019578bc7ad0 100644
--- a/drivers/platform/chrome/chromeos_of_hw_prober.c
+++ b/drivers/platform/chrome/chromeos_of_hw_prober.c
@@ -84,6 +84,10 @@ static const struct hw_prober_entry hw_prober_platforms[] = {
 		.compatible = "google,hana",
 		.prober = chromeos_i2c_component_prober,
 		.data = &chromeos_i2c_probe_hana_trackpad,
+	}, {
+		.compatible = "google,spherion",
+		.prober = chromeos_i2c_component_prober,
+		.data = &chromeos_i2c_probe_hana_trackpad,
 	},
 };
 
-- 
2.39.5



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe
  2025-03-18 10:22 [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads Laura Nao
  2025-03-18 10:22 ` [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober Laura Nao
@ 2025-03-18 10:22 ` Laura Nao
  2025-03-18 14:21   ` AngeloGioacchino Del Regno
                     ` (2 more replies)
  2025-04-07  2:16 ` (subset) [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads Tzung-Bi Shih
  2025-06-23  9:37 ` AngeloGioacchino Del Regno
  3 siblings, 3 replies; 12+ messages in thread
From: Laura Nao @ 2025-03-18 10:22 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	bleung, tzungbi
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	chrome-platform, nfraprado, kernel, Laura Nao

Different Spherion variants use different trackpads on the same I2C2
bus. Instead of enabling all of them by default, mark them as
"fail-needs-probe" and let the implementation determine which one is
actually present.

Additionally, move the trackpad pinctrl entry back to the individual
trackpad nodes.

Signed-off-by: Laura Nao <laura.nao@collabora.com>
---
 .../arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts | 7 +++++++
 arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi           | 6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts b/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts
index 8c485c3ced2c..163960f58db5 100644
--- a/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts
@@ -85,8 +85,15 @@ &i2c2 {
 	trackpad@2c {
 		compatible = "hid-over-i2c";
 		reg = <0x2c>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&trackpad_pins>;
 		hid-descr-addr = <0x20>;
 		interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
 		wakeup-source;
+		status = "fail-needs-probe";
 	};
 };
+
+&trackpad {
+	status = "fail-needs-probe";
+};
diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
index dd0d07fbe61a..b11b32a63bbc 100644
--- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
@@ -335,11 +335,13 @@ &i2c2 {
 	clock-frequency = <400000>;
 	clock-stretch-ns = <12600>;
 	pinctrl-names = "default";
-	pinctrl-0 = <&i2c2_pins>, <&trackpad_pins>;
+	pinctrl-0 = <&i2c2_pins>;
 
-	trackpad@15 {
+	trackpad: trackpad@15 {
 		compatible = "elan,ekth3000";
 		reg = <0x15>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&trackpad_pins>;
 		interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
 		vcc-supply = <&pp3300_u>;
 		wakeup-source;
-- 
2.39.5



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe
  2025-03-18 10:22 ` [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe Laura Nao
@ 2025-03-18 14:21   ` AngeloGioacchino Del Regno
  2025-03-18 14:39   ` Nícolas F. R. A. Prado
  2025-03-19  4:23   ` Chen-Yu Tsai
  2 siblings, 0 replies; 12+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-03-18 14:21 UTC (permalink / raw)
  To: Laura Nao, robh, krzk+dt, conor+dt, matthias.bgg, bleung, tzungbi
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	chrome-platform, nfraprado, kernel

Il 18/03/25 11:22, Laura Nao ha scritto:
> Different Spherion variants use different trackpads on the same I2C2
> bus. Instead of enabling all of them by default, mark them as
> "fail-needs-probe" and let the implementation determine which one is
> actually present.
> 
> Additionally, move the trackpad pinctrl entry back to the individual
> trackpad nodes.
> 
> Signed-off-by: Laura Nao <laura.nao@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober
  2025-03-18 10:22 ` [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober Laura Nao
@ 2025-03-18 14:21   ` AngeloGioacchino Del Regno
  2025-03-18 14:36   ` Nícolas F. R. A. Prado
  2025-03-19  4:23   ` Chen-Yu Tsai
  2 siblings, 0 replies; 12+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-03-18 14:21 UTC (permalink / raw)
  To: Laura Nao, robh, krzk+dt, conor+dt, matthias.bgg, bleung, tzungbi
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	chrome-platform, nfraprado, kernel

Il 18/03/25 11:22, Laura Nao ha scritto:
> Add a new compatible entry for "google,spherion" to the hardware prober
> platform list, using the same I2C component prober and trackpad data as
> "google,hana".
> 
> Signed-off-by: Laura Nao <laura.nao@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober
  2025-03-18 10:22 ` [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober Laura Nao
  2025-03-18 14:21   ` AngeloGioacchino Del Regno
@ 2025-03-18 14:36   ` Nícolas F. R. A. Prado
  2025-03-19  4:23   ` Chen-Yu Tsai
  2 siblings, 0 replies; 12+ messages in thread
From: Nícolas F. R. A. Prado @ 2025-03-18 14:36 UTC (permalink / raw)
  To: Laura Nao
  Cc: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	bleung, tzungbi, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, chrome-platform, kernel

On Tue, Mar 18, 2025 at 11:22:58AM +0100, Laura Nao wrote:
> Add a new compatible entry for "google,spherion" to the hardware prober
> platform list, using the same I2C component prober and trackpad data as
> "google,hana".
> 
> Signed-off-by: Laura Nao <laura.nao@collabora.com>

Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Thanks,
Nícolas


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe
  2025-03-18 10:22 ` [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe Laura Nao
  2025-03-18 14:21   ` AngeloGioacchino Del Regno
@ 2025-03-18 14:39   ` Nícolas F. R. A. Prado
  2025-03-19  4:23   ` Chen-Yu Tsai
  2 siblings, 0 replies; 12+ messages in thread
From: Nícolas F. R. A. Prado @ 2025-03-18 14:39 UTC (permalink / raw)
  To: Laura Nao
  Cc: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	bleung, tzungbi, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, chrome-platform, kernel

On Tue, Mar 18, 2025 at 11:22:59AM +0100, Laura Nao wrote:
> Different Spherion variants use different trackpads on the same I2C2
> bus. Instead of enabling all of them by default, mark them as
> "fail-needs-probe" and let the implementation determine which one is
> actually present.
> 
> Additionally, move the trackpad pinctrl entry back to the individual
> trackpad nodes.
> 
> Signed-off-by: Laura Nao <laura.nao@collabora.com>

Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

With these patches only the right trackpad is enabled on my Spherion and it
works as expected.

Thanks,
Nícolas


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober
  2025-03-18 10:22 ` [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober Laura Nao
  2025-03-18 14:21   ` AngeloGioacchino Del Regno
  2025-03-18 14:36   ` Nícolas F. R. A. Prado
@ 2025-03-19  4:23   ` Chen-Yu Tsai
  2 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2025-03-19  4:23 UTC (permalink / raw)
  To: Laura Nao
  Cc: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	bleung, tzungbi, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, chrome-platform, nfraprado, kernel

On Tue, Mar 18, 2025 at 6:28 PM Laura Nao <laura.nao@collabora.com> wrote:
>
> Add a new compatible entry for "google,spherion" to the hardware prober
> platform list, using the same I2C component prober and trackpad data as
> "google,hana".
>
> Signed-off-by: Laura Nao <laura.nao@collabora.com>

Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>

> ---
>  drivers/platform/chrome/chromeos_of_hw_prober.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/platform/chrome/chromeos_of_hw_prober.c b/drivers/platform/chrome/chromeos_of_hw_prober.c
> index c6992f5cdc76..019578bc7ad0 100644
> --- a/drivers/platform/chrome/chromeos_of_hw_prober.c
> +++ b/drivers/platform/chrome/chromeos_of_hw_prober.c
> @@ -84,6 +84,10 @@ static const struct hw_prober_entry hw_prober_platforms[] = {
>                 .compatible = "google,hana",
>                 .prober = chromeos_i2c_component_prober,
>                 .data = &chromeos_i2c_probe_hana_trackpad,
> +       }, {
> +               .compatible = "google,spherion",
> +               .prober = chromeos_i2c_component_prober,
> +               .data = &chromeos_i2c_probe_hana_trackpad,
>         },
>  };
>
> --
> 2.39.5
>
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe
  2025-03-18 10:22 ` [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe Laura Nao
  2025-03-18 14:21   ` AngeloGioacchino Del Regno
  2025-03-18 14:39   ` Nícolas F. R. A. Prado
@ 2025-03-19  4:23   ` Chen-Yu Tsai
  2025-06-19  7:51     ` Chen-Yu Tsai
  2 siblings, 1 reply; 12+ messages in thread
From: Chen-Yu Tsai @ 2025-03-19  4:23 UTC (permalink / raw)
  To: Laura Nao
  Cc: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	bleung, tzungbi, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, chrome-platform, nfraprado, kernel

On Tue, Mar 18, 2025 at 6:26 PM Laura Nao <laura.nao@collabora.com> wrote:
>
> Different Spherion variants use different trackpads on the same I2C2
> bus. Instead of enabling all of them by default, mark them as
> "fail-needs-probe" and let the implementation determine which one is
> actually present.
>
> Additionally, move the trackpad pinctrl entry back to the individual
> trackpad nodes.
>
> Signed-off-by: Laura Nao <laura.nao@collabora.com>

Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: (subset) [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads
  2025-03-18 10:22 [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads Laura Nao
  2025-03-18 10:22 ` [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober Laura Nao
  2025-03-18 10:22 ` [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe Laura Nao
@ 2025-04-07  2:16 ` Tzung-Bi Shih
  2025-06-23  9:37 ` AngeloGioacchino Del Regno
  3 siblings, 0 replies; 12+ messages in thread
From: Tzung-Bi Shih @ 2025-04-07  2:16 UTC (permalink / raw)
  To: Laura Nao
  Cc: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	bleung, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, chrome-platform, nfraprado, kernel

On Tue, Mar 18, 2025 at 11:22:57AM +0100, Laura Nao wrote:
> This series marks the trackpads for the Google Spherion variants as
> "fail-needs-probe" and makes them compatibile with the ChromeOS DT hardware
> prober.
> 
> Laura Nao (2):
>   platform/chrome: Add support for Google Spherion in HW prober
>   arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as
>     fail-needs-probe
>
> [...]

Applied to

    https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[1/2] platform/chrome: Add support for Google Spherion in HW prober
      commit: 8dc528bed728ca0b887d9d5edecbcf23d7fed5a4

Thanks!


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe
  2025-03-19  4:23   ` Chen-Yu Tsai
@ 2025-06-19  7:51     ` Chen-Yu Tsai
  0 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2025-06-19  7:51 UTC (permalink / raw)
  To: angelogioacchino.delregno
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	nfraprado, kernel, Laura Nao, matthias.bgg

Hi Angelo,

On Wed, Mar 19, 2025 at 12:23 PM Chen-Yu Tsai <wenst@chromium.org> wrote:
>
> On Tue, Mar 18, 2025 at 6:26 PM Laura Nao <laura.nao@collabora.com> wrote:
> >
> > Different Spherion variants use different trackpads on the same I2C2
> > bus. Instead of enabling all of them by default, mark them as
> > "fail-needs-probe" and let the implementation determine which one is
> > actually present.
> >
> > Additionally, move the trackpad pinctrl entry back to the individual
> > trackpad nodes.
> >
> > Signed-off-by: Laura Nao <laura.nao@collabora.com>
>
> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>

It looks like this patch has fallen through the cracks.
Could you pick it up?


Thanks
ChenYu


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: (subset) [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads
  2025-03-18 10:22 [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads Laura Nao
                   ` (2 preceding siblings ...)
  2025-04-07  2:16 ` (subset) [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads Tzung-Bi Shih
@ 2025-06-23  9:37 ` AngeloGioacchino Del Regno
  3 siblings, 0 replies; 12+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-06-23  9:37 UTC (permalink / raw)
  To: robh, krzk+dt, conor+dt, matthias.bgg, bleung, tzungbi, Laura Nao
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	chrome-platform, nfraprado, kernel

On Tue, 18 Mar 2025 11:22:57 +0100, Laura Nao wrote:
> This series marks the trackpads for the Google Spherion variants as
> "fail-needs-probe" and makes them compatibile with the ChromeOS DT hardware
> prober.
> 
> Laura Nao (2):
>   platform/chrome: Add support for Google Spherion in HW prober
>   arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as
>     fail-needs-probe
> 
> [...]

Applied to v6.16-next/dts64, thanks!

[2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe
      commit: 6cf6156bc71b5234c1dfce5a1a57c0229448ae40

Cheers,
Angelo




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-06-23 11:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18 10:22 [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads Laura Nao
2025-03-18 10:22 ` [PATCH 1/2] platform/chrome: Add support for Google Spherion in HW prober Laura Nao
2025-03-18 14:21   ` AngeloGioacchino Del Regno
2025-03-18 14:36   ` Nícolas F. R. A. Prado
2025-03-19  4:23   ` Chen-Yu Tsai
2025-03-18 10:22 ` [PATCH 2/2] arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe Laura Nao
2025-03-18 14:21   ` AngeloGioacchino Del Regno
2025-03-18 14:39   ` Nícolas F. R. A. Prado
2025-03-19  4:23   ` Chen-Yu Tsai
2025-06-19  7:51     ` Chen-Yu Tsai
2025-04-07  2:16 ` (subset) [PATCH 0/2] Use ChromeOS DT hardware prober with MT8192 Spherion trackpads Tzung-Bi Shih
2025-06-23  9:37 ` AngeloGioacchino Del Regno

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).