Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1443884rdb; Fri, 1 Dec 2023 17:45:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpc9tuSb4fFwihc225m+ca3QdJ5pqLPO1WY7vbsktDzKUKicZf0AcXASLMrsKXq02LWz/Z X-Received: by 2002:a05:6358:180f:b0:170:17eb:3798 with SMTP id u15-20020a056358180f00b0017017eb3798mr408427rwm.64.1701481524701; Fri, 01 Dec 2023 17:45:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701481524; cv=none; d=google.com; s=arc-20160816; b=gERzUGHEDLL74Z+9B5MQgp5/5WMryqkzf9UaBaWUi2jdEtCusH2It8ftlsNTePVimO ny6EViHsHFiNm/V0KJv91yvmVGrQSNL5dkqBR1QsYKiTu1pL6PsmskIE7gus2mvHgSDe G2ibyzgpSp/MLy+W19GNdqMlK82a4KEmM5O4fxB1UJZaFUB5bM+HAvvK6EKdXOq+kGB5 bIzYIYbSWhm5ESda94uC2m1iUiSD59jBiu5LQT7Sl62mjLWYDimETNRrK6mFD4YpW6Qh 7bgTo2kVmeZW4+6MVlWxDKEHSnWsvtzLKq/jngx+8EYuIrkEqfJyotqwvY11HJ151TjQ zqkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AEhBHN8VbNTSZ80HrOax/U+nyc8vUjuAU0nMFJkgYg0=; fh=TRZMlQXL34iL2koKyIQimakJIeRDL+AIlQNJ0qsEQlA=; b=tM/PybdETvSBYH6ZuvO9EWmpX5mOgOxxLExwg2D4ChHCP8IGEp0f6ernpB54Xkai0l DbQsmMu5kPb5XBC78Yc9i1iVi654pWtSvxs3ZiofcBNQrfq8Y6b6UlnXBT5v//7gZGU5 zFk11qgMLM4LvgrlOU1ve4zkyN6o0AfPOxC3Q9dXpSj1Rs3t8hg02JLa3ejG+5kSufow 6vk6BdBWbdjYYuzFVkWtduu9zZgi5FRLxQ0ZHF7XG02pe5FI1mtLTfbDExV3jCn5f8H6 1DepxehNLOPBDztKMZ9Dh6VTBCbCGgWBGWqjZR+OV3dOo1+3O5OGiFE07rD2NNpmZNc7 5Vcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ddWQY+K8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id np16-20020a17090b4c5000b00285d330b961si4361669pjb.157.2023.12.01.17.45.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 17:45:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ddWQY+K8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id CE9EB837A4D8; Fri, 1 Dec 2023 17:45:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbjLBBpF (ORCPT + 99 others); Fri, 1 Dec 2023 20:45:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLBBpF (ORCPT ); Fri, 1 Dec 2023 20:45:05 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52094F1 for ; Fri, 1 Dec 2023 17:45:09 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6d7fc4661faso812158a34.3 for ; Fri, 01 Dec 2023 17:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701481508; x=1702086308; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AEhBHN8VbNTSZ80HrOax/U+nyc8vUjuAU0nMFJkgYg0=; b=ddWQY+K8z4Na3b3mDxDDDpEvCV/Hq3xR/VezTBCxlH+6oe7Qi0Vh2975oN4ioCr9yC d+g0iTbIPvjFIpVQz1bVYGc2eVPE1I7YJnLsqOzwSRWrM+FnJ+dLB1qI3zktgeZKpbnK 0T7V2V25S4iofwIXRpFfEa/32rk2XRgbTFEiY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701481508; x=1702086308; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AEhBHN8VbNTSZ80HrOax/U+nyc8vUjuAU0nMFJkgYg0=; b=vunSuXA2glRLy0d1jRPM+uXqFyZLHhhp+BUt8kt8TObeGkbRHYAz3P1eOvj/bp+LyV rYQz2d7izsgAgU6Nte4dq9QD5izquDaoOKbm0KCtOYwe3YVbc4m2BbV1MfA8VEWqbyBb qfckTbIVLKPnh4s6RMB56xnNbML9+UtZgI3M8Q1f5HUGteVklZciRkaRq+mC9YXQA4cJ FR93gSoZQ+LjRwXipSZleUmeABjOGvsTw+EHqQyozPugOJwoJLc6a4P36+DhGXIcnyc5 G4/i57QwiSllKflvVJ4WBC6FVb5td9i4rJwItFWDjgIyDog2MTe/OeZMjG6HJKsZ9kMt Z3Cw== X-Gm-Message-State: AOJu0YyVmq7Z8xOOidUTq2enI+2kxbX8EQ6EyPmiwimfM13MBJ432HBQ QtxATW/ve2hRBz2DKKdXayUnr3GEYD5+V9Pb/Pw4xw== X-Received: by 2002:a05:6830:1696:b0:6d8:5534:61f9 with SMTP id k22-20020a056830169600b006d8553461f9mr541143otr.35.1701481508614; Fri, 01 Dec 2023 17:45:08 -0800 (PST) MIME-Version: 1.0 References: <20231201070719.1229447-1-wenst@chromium.org> <20231201070719.1229447-7-wenst@chromium.org> In-Reply-To: <20231201070719.1229447-7-wenst@chromium.org> From: Hsin-Yi Wang Date: Fri, 1 Dec 2023 17:44:42 -0800 Message-ID: Subject: Re: [PATCH v2 6/9] arm64: dts: mediatek: Add MT8186 Krabby platform based Tentacruel / Tentacool To: Chen-Yu Tsai Cc: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 01 Dec 2023 17:45:21 -0800 (PST) On Fri, Dec 1, 2023 at 5:39=E2=80=AFPM Chen-Yu Tsai wr= ote: > > Tentacruel and Tentacool are MT8186 based Chromebooks based on the > Krabby design. > > Tentacruel, also known as the ASUS Chromebook CM14 Flip CM1402F, is a > convertible device with touchscreen and stylus. > > Tentacool, also known as the ASUS Chromebook CM14 CM1402C, is a laptop > device. It does not have a touchscreen or stylus. > > The two devices both have two variants. The difference is a second > source touchpad controller that shares the same address as the original, > but is incompatible. > > The extra SKU IDs for the Tentacruel devices map to different sensor > components attached to the Embedded Controller. These are not visible > to the main processor. > > Signed-off-by: Chen-Yu Tsai > --- > Changes since v1: > - Reorder SKU numbers in descending order. > - Fixed pinconfig node names > - Moved pinctrl-* properties after interrupts-* > - Switched to interrupts-extended for external components > - Marked ADSP as explicitly disabled, with a comment explaining that it > stalls the system > - Renamed "touchpad" to "trackpad" > - Dropped bogus "no-laneswap" property from it6505 node > - Moved "realtek,jd-src" property to after all the regulator supplies > - Switched to macros for MT6366 regulator "regulator-allowed-modes" > - Renamed "vgpu" regulator name to allow coupling, with a comment > containing the name used in the design > - Renamed "cr50" node name to "tpm" > - Moved trackpad_pins reference up to i2c2; workaround for second source > component resource sharing. > - Fix copyright year > - Fixed touchscreen supply name > > arch/arm64/boot/dts/mediatek/Makefile | 4 + > .../dts/mediatek/mt8186-corsola-krabby.dtsi | 129 ++ > .../mt8186-corsola-tentacool-sku327681.dts | 57 + > .../mt8186-corsola-tentacool-sku327683.dts | 26 + > .../mt8186-corsola-tentacruel-sku262144.dts | 44 + > .../mt8186-corsola-tentacruel-sku262148.dts | 28 + > .../boot/dts/mediatek/mt8186-corsola.dtsi | 1719 +++++++++++++++++ > 7 files changed, 2007 insertions(+) > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-krabby.dt= si > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool= -sku327681.dts > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool= -sku327683.dts > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacrue= l-sku262144.dts > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacrue= l-sku262148.dts > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi > > diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/= mediatek/Makefile > index e6e7592a3645..442af61b1305 100644 > --- a/arch/arm64/boot/dts/mediatek/Makefile > diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327= 683.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327683.d= ts > new file mode 100644 > index 000000000000..2e4d8df978c1 > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327683.dts > @@ -0,0 +1,26 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Copyright 2023 Google LLC > + */ > + > +#include "mt8186-corsola-tentacool-sku327681.dts" > + > +/ { > + compatible =3D "google,tentacruel-sku327683", "google,tentacruel"= , "mediatek,mt8186"; > +}; > + > +/* This variant replaces only the touchpad controller. */ > +&i2c2 { > + /delete-node/ touchpad@15; corsola.dtsi has this node named trackpad@15. > + > + touchpad@15 { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&trackpad_pin>; > + compatible =3D "hid-over-i2c"; > + reg =3D <0x15>; > + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_LOW>; > + hid-descr-addr =3D <0x0001>; > + vdd-supply =3D <&pp3300_s3>; > + wakeup-source; > + }; > +}; > diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku26= 2148.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262148= .dts > new file mode 100644 > index 000000000000..7841046084dc > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262148.dt= s > @@ -0,0 +1,28 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Copyright 2023 Google LLC > + */ > + > +#include "mt8186-corsola-tentacruel-sku262144.dts" > + > +/ { > + compatible =3D "google,tentacruel-sku262151", "google,tentacruel-= sku262150", > + "google,tentacruel-sku262149", "google,tentacruel-sk= u262148", > + "google,tentacruel", "mediatek,mt8186"; > +}; > + > +/* This variant replaces only the touchpad controller. */ > +&i2c2 { > + /delete-node/ touchpad@15; > + ditto. > + touchpad@15 { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&trackpad_pin>; > + compatible =3D "hid-over-i2c"; > + reg =3D <0x15>; > + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_LOW>; > + hid-descr-addr =3D <0x0001>; > + vdd-supply =3D <&pp3300_s3>; > + wakeup-source; > + }; > +}; > diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi b/arch/arm6= 4/boot/dts/mediatek/mt8186-corsola.dtsi > new file mode 100644 > index 000000000000..c5446b18783d > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi > @@ -0,0 +1,1719 @@ > + > +&i2c2 { > + pinctrl-names =3D "default"; > + /* > + * Trackpad pin put here to work around second source components > + * sharing the pinmux > + */ > + pinctrl-0 =3D <&i2c2_pins>, <&trackpad_pin>; > + clock-frequency =3D <400000>; > + i2c-scl-internal-delay-ns =3D <10000>; > + status =3D "okay"; > + > + trackpad@15 { > + compatible =3D "elan,ekth3000"; > + reg =3D <0x15>; > + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_LOW>; > + vcc-supply =3D <&pp3300_s3>; > + wakeup-source; > + }; > +}; > +