From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60C3C2973D4 for ; Mon, 28 Apr 2025 19:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745869510; cv=none; b=ctS0vpIpDK+YDuOERlUk2H3l7duB6sAl1J4O59hrr6p1GoPvNbppPSXW3CjgXFIdDN9LuHgnBCFFR+gSkgwg3yd5lRsjfIGmQIs0Ta76dFc14DTrZYUQSeN1n5WG+ZxXu+clD3p3SCokpaG8uV/+T5nj+gvd/KssOD18ETW+IDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745869510; c=relaxed/simple; bh=Ske+BDAj21huhvtbIRDfyBrEs+/jQGWomwPZgUuFL2U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j1UjqkBXtovnuCZiRx5RC0bIqv2H8cJ4xzzlJtlv870usJkq0U8C7lr36ueVItRIrezLhuZxfn4EaBG4mUFBnPfCqw1t9wN3xG++vPwbGj83q4+cd3EbNhYj5X/iksi4c6Qdb7fmVTkAoCUHvIMq6WxhE6PuY01L5GUlbJBXwBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=eFj7DDQ+; arc=none smtp.client-ip=209.85.215.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="eFj7DDQ+" Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-af579e46b5dso3708950a12.3 for ; Mon, 28 Apr 2025 12:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1745869508; x=1746474308; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KaMu0L4wBURz9xq4JXnOvgxpR2Jhc7zGFIG2V5tCWLw=; b=eFj7DDQ+3JW1iavBKbsxGboGIg7RsxfyyCr7BzNV3XXywElUMvaXuONSQciAAaOHfr 8hg1tfFvmiiAWQPc796s/T3X215Hg0VkC8koFytNFXsllglOu7cO9qMEdQxbKLm6aCvH dzZuuBXqqPYSj1vXnCdlvIicoWZZFpf31xDhwoi6Ts+uKI0047MjBNrBvRLV0iDJ1LbY p6DAL8c3t7LDdEx/O3Y3571jLy1spHx4X3PGge2uAmmIP63wlWILroUzzMxBJniXjXax YhroESF38NFYuBA6pfCJ/VlYHsGQv7FrJCnI9+4mmL7yZ79qD2sEiTq6id4ECJnVZKoy n+lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745869508; x=1746474308; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KaMu0L4wBURz9xq4JXnOvgxpR2Jhc7zGFIG2V5tCWLw=; b=acuVN8CFKHGBkqjXbq5kVqdzmCud1Cnrk1aoZS2swk73e/Egey+vViQ9p3H60KGsG8 Jva2zCjf8odAbBP3jV4sJFw69SUV6vSDEyYh8WF4WK7h2pgTlPhNKpjfJd7ojLTwGWMx 7Siw3G/fZn8b0MSP/QFS6QG7k3+Do5t/GjR1SaYl0ZMD41mLrBM45QGgIHmdC2RqqjRq 3R0NbRwZ2PHYnE4qTDm8cTRSjHddOn8uo9noInvukdbIIcv+Kv/5jFBK5+N7C414AKOM w2oKEhqwUaA8gHPFU6R3gcqXz6fHQ/c8VMHVFkQ+sWZyW1OUo9+npPn+mqpUmfzvtlzI w7Tg== X-Forwarded-Encrypted: i=1; AJvYcCXZW2KFd0FmOsOIdpmMU52TWne3PiQMe6fUxVVzjC+L+Cqwrt9jwqW9Wqj0FvP/iuEuyyXXVVKjDcJGAAY=@vger.kernel.org X-Gm-Message-State: AOJu0Yy+KoHRfdTZ7Q9+v0yOukTYhVqnHkKti16ZqrU5HlBwrFLBeoKV dH+/8BalnfPf+5QUOe6z7Qp7SWpEn+aiYcz3rsHiKIKPGsiikr15Ni+3ub+90w== X-Gm-Gg: ASbGncsaCgpXBPt2uASBVZ8CBhn1OvcBuYboPmHdfPfOQpQpSolt8HUZUC4oph2qO7Y GyGQzW76I56/Fp0iP+vfaYOmtvepnveFxIT2nbVvyD9FQtkvc8d88ClzGIWB1j2uzgSvdtFeObb criBcAEGUlC73WV4Xqs4kJ5SglG9pWR5KGdep6brNh+GHx3iT+kj13YLy+e0sHwses+7ckSnnWk yra9dLnzmsuUijkv6M2BlHR//+cwHNBwe/c97gFecnFadWQgtFq647Gqv4ICjaYCF/ZMtFZ1KhL yFWJI1ZI9gtBd6RrJa03MayxCSm4uRrJ7TIvLpuKXUtdT7VEYmvTfrBry5xzbMAzxsnVFk/2ww= = X-Google-Smtp-Source: AGHT+IG6R82DFa9jAy922lzUHN2EAVQRNR18xiowU6WDSy9TAXdGrX8+WhcNG0tMNBGpq3fQ1R7ExQ== X-Received: by 2002:a05:6a20:43a1:b0:1f5:75a9:526c with SMTP id adf61e73a8af0-2093c7e3860mr1003669637.13.1745869507413; Mon, 28 Apr 2025 12:45:07 -0700 (PDT) Received: from google.com (28.67.125.34.bc.googleusercontent.com. [34.125.67.28]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73e25a9abf2sm8338322b3a.122.2025.04.28.12.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Apr 2025 12:45:06 -0700 (PDT) Date: Mon, 28 Apr 2025 19:45:01 +0000 From: Benson Leung To: Chen-Yu Tsai Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Benson Leung , Tzung-Bi Shih , Dmitry Torokhov , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, chrome-platform@lists.linux.dev, linux-input@vger.kernel.org, Douglas Anderson Subject: Re: [PATCH v2 8/8] platform/chrome: of_hw_prober: Support touchscreen probing on Squirtle Message-ID: References: <20250421101248.426929-1-wenst@chromium.org> <20250421101248.426929-9-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3yxgRYuYXTrM4tBx" Content-Disposition: inline In-Reply-To: <20250421101248.426929-9-wenst@chromium.org> --3yxgRYuYXTrM4tBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 21, 2025 at 06:12:46PM +0800, Chen-Yu Tsai wrote: > The MT8186 Squirtle Chromebook is built with one of two possible > touchscreens. Let the prober probe for them. >=20 > Signed-off-by: Chen-Yu Tsai Reviewed-by: Benson Leung > --- > drivers/platform/chrome/chromeos_of_hw_prober.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) >=20 > diff --git a/drivers/platform/chrome/chromeos_of_hw_prober.c b/drivers/pl= atform/chrome/chromeos_of_hw_prober.c > index 10dbaede0541..f3cd612e5584 100644 > --- a/drivers/platform/chrome/chromeos_of_hw_prober.c > +++ b/drivers/platform/chrome/chromeos_of_hw_prober.c > @@ -59,6 +59,7 @@ static int chromeos_i2c_component_prober(struct device = *dev, const void *_data) > DEFINE_CHROMEOS_I2C_PROBE_DATA_DUMB_BY_TYPE(touchscreen); > DEFINE_CHROMEOS_I2C_PROBE_DATA_DUMB_BY_TYPE(trackpad); > =20 > +DEFINE_CHROMEOS_I2C_PROBE_CFG_SIMPLE_BY_TYPE(touchscreen); > DEFINE_CHROMEOS_I2C_PROBE_CFG_SIMPLE_BY_TYPE(trackpad); > =20 > static const struct chromeos_i2c_probe_data chromeos_i2c_probe_hana_trac= kpad =3D { > @@ -76,6 +77,17 @@ static const struct chromeos_i2c_probe_data chromeos_i= 2c_probe_hana_trackpad =3D { > }, > }; > =20 > +static const struct chromeos_i2c_probe_data chromeos_i2c_probe_squirtle_= touchscreen =3D { > + .cfg =3D &chromeos_i2c_probe_simple_touchscreen_cfg, > + .opts =3D &(const struct i2c_of_probe_simple_opts) { > + .res_node_compatible =3D "elan,ekth6a12nay", > + .supply_name =3D "vcc33", > + .gpio_name =3D "reset", > + .post_power_on_delay_ms =3D 10, > + .post_gpio_config_delay_ms =3D 300, > + }, > +}; > + > static const struct hw_prober_entry hw_prober_platforms[] =3D { > { > .compatible =3D "google,hana", > @@ -93,6 +105,10 @@ static const struct hw_prober_entry hw_prober_platfor= ms[] =3D { > .compatible =3D "google,squirtle", > .prober =3D chromeos_i2c_component_prober, > .data =3D &chromeos_i2c_probe_dumb_trackpad, > + }, { > + .compatible =3D "google,squirtle", > + .prober =3D chromeos_i2c_component_prober, > + .data =3D &chromeos_i2c_probe_squirtle_touchscreen, > }, { > .compatible =3D "google,steelix", > .prober =3D chromeos_i2c_component_prober, > --=20 > 2.49.0.805.g082f7c87e0-goog >=20 --3yxgRYuYXTrM4tBx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCaA/avQAKCRBzbaomhzOw wuHsAP9k0n2/zZ8JMwMbW9PvC1L4S+rXwkDzn4vNgVA9gpUADgEAqqQGBGFcOCTo ivudInVAQKMFJJvenfbspzj/SwoyHA8= =MQA+ -----END PGP SIGNATURE----- --3yxgRYuYXTrM4tBx--