Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2476865rdb; Sun, 3 Dec 2023 19:51:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1eHgOpE4zsYy4bwrmiRx2DtWDtVRTJoreRQR8megltKfBkwZJkBg8LGgYzMq+XXVARvEZ X-Received: by 2002:a17:90b:4b4a:b0:286:a068:59c3 with SMTP id mi10-20020a17090b4b4a00b00286a06859c3mr490936pjb.48.1701661883765; Sun, 03 Dec 2023 19:51:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701661883; cv=none; d=google.com; s=arc-20160816; b=ifmiMKoOW9hgQdFwmSr8BxlYGw5HvdP9fnqmst3BiabFZefcCApUQ9VXGV9CrxlEsl Djj4flY2Y2mx4uE6HpOwdyQkRnIUOeblLiYUkIUANIkDD66ZbIYVZ9n5rDPgSbPmpXuh 1QrYKE3Ei+FWisb+jFcMqjyPIXrhZK7QUdgkVf6h2oLgW6MvXhEVM5JWL1/rsCdE7pT/ zz4uswhdEWpBi4X9hlTMbkfTIBoXFIgTZ0fNMZfpDOJachYflSZOKJf1GpOru0va6ZeM buA0iU4bio8bzrcV4ztT3fRA/pkmAnLSubhAxVjoLjkxaFHU2+IK32bylEs2kSHtpbAA 9X5A== 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=0syhQ4FzCWigP5oJO4Kq1BAVvU372cUxnkG2YAyqM58=; fh=5AIeVzOZYFot06FYFx/L+hM1o9zymcGX0ho9ExkryOk=; b=RzP2CtyO0mOHcfq0e9V1DtPkFhHqfdSHB1kj0o5jV+RPUXHkAPws3B6bQ25GC/LWGw DwD1l4r3Cl/MqhAfJbL5acP3ilUdTvREjTFOh6dztOYDY8TPGAcgRGCFtezytLkdNWQN a5RFJrd6wYrpQWlZOLa2YPDD6FwNKSyDxm78/oHvXMr2ckfUN9EMAtdwtgB9fTGeKr51 EgRqryw379nZceW9IBuYMOfKJp4BsSRqPjaBsRmrL+lqWNqcE3xuyZ7nOMU5A661F6ji I8PGZ9of79NKDjyME7LWejV5ReDRsUwdFRAoe5Msxd9aoC7L02p181k/wuU6SfyBc7JK EJBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PcNYI5fx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o2-20020a17090ac70200b00286b8bafefasi635848pjt.120.2023.12.03.19.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 19:51:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PcNYI5fx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 75914807F65B; Sun, 3 Dec 2023 19:51:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbjLDDvD (ORCPT + 99 others); Sun, 3 Dec 2023 22:51:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjLDDvB (ORCPT ); Sun, 3 Dec 2023 22:51:01 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43182B6 for ; Sun, 3 Dec 2023 19:51:06 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-50be4f03b06so1626242e87.0 for ; Sun, 03 Dec 2023 19:51:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701661864; x=1702266664; 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=0syhQ4FzCWigP5oJO4Kq1BAVvU372cUxnkG2YAyqM58=; b=PcNYI5fxCJPUC+t/YG1iv6LaStC1Y6VLe+CMzuh6QoVRJvqq5vMWZqxfMpaTTJDu7Q O8yDRO+76iWsSAkud3Q2QIMPYYr+MlUT8lOq62yFA0r6K5l1kDlMGzOq6YvSp2icYj0Z QUW78tD5e43LR61yxReuOcYCjN793t969Gwak= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701661864; x=1702266664; 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=0syhQ4FzCWigP5oJO4Kq1BAVvU372cUxnkG2YAyqM58=; b=N54NrDZ28BPDvU5/5oCLJ7kiILVLmO96+plOlaNQl4834JduRKz+9Hz9fkEqOP1jTF J3x83rHOd2P7zDGn6MMCwwu9cD0y0SBxcyxXoAlwWehtEij5OUyq1Ok0pLOo40weAZUL btLJsHZaiiC8jESLhsmjzZbgzhnhSWvkuvKMesbAz/oxCBzUQuUfI+QVF1ZS0kuRIXDd G0vDJk9P5QM06O1nQWMUIpRxFiPxOXcvXGYi/11jvMLNufR9IyxWUX7PzeFNFLFfdTV5 S5mlE3LCXQkY9qGqtYvStiqIWZmI4dpIa4g77bBuc7CbJjqaBlXMOhcaZhbO5rJRAZHM Mr3w== X-Gm-Message-State: AOJu0Yw2Lub/+aDuaqCbTdE/HBAeuTZIrI9/KC95vOIpFgct4VuRBzt2 qB6xKpcDNUEW0kdRSXFEWXAKfuH+st/6fn+c360ABg== X-Received: by 2002:ac2:48ae:0:b0:50b:f8e6:3786 with SMTP id u14-20020ac248ae000000b0050bf8e63786mr174325lfg.103.1701661864266; Sun, 03 Dec 2023 19:51:04 -0800 (PST) MIME-Version: 1.0 References: <20231201070719.1229447-1-wenst@chromium.org> <20231201070719.1229447-7-wenst@chromium.org> In-Reply-To: From: Chen-Yu Tsai Date: Mon, 4 Dec 2023 11:50:53 +0800 Message-ID: Subject: Re: [PATCH v2 6/9] arm64: dts: mediatek: Add MT8186 Krabby platform based Tentacruel / Tentacool To: Hsin-Yi Wang 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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 03 Dec 2023 19:51:20 -0800 (PST) On Sat, Dec 2, 2023 at 9:45=E2=80=AFAM Hsin-Yi Wang w= rote: > > On Fri, Dec 1, 2023 at 5:39=E2=80=AFPM Chen-Yu Tsai = wrote: > > > > 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 sourc= e > > 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.= dtsi > > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentaco= ol-sku327681.dts > > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentaco= ol-sku327683.dts > > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacr= uel-sku262144.dts > > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacr= uel-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/dt= s/mediatek/Makefile > > index e6e7592a3645..442af61b1305 100644 > > --- a/arch/arm64/boot/dts/mediatek/Makefile > > > > > diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku3= 27683.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327683= .dts > > new file mode 100644 > > index 000000000000..2e4d8df978c1 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327683.d= ts > > @@ -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,tentacrue= l", "mediatek,mt8186"; > > +}; > > + > > +/* This variant replaces only the touchpad controller. */ > > +&i2c2 { > > + /delete-node/ touchpad@15; > > corsola.dtsi has this node named trackpad@15. Thanks for spotting the error. Fixed in the next version. > > + > > + touchpad@15 { > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&trackpad_pin>; Pinctrl also dropped in the next version. Same for mt8186-corsola-tentacruel-sku262148.dts. Thanks ChenYu > > + 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-sku= 262148.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku2621= 48.dts > > new file mode 100644 > > index 000000000000..7841046084dc > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262148.= dts > > @@ -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,tentacrue= l-sku262150", > > + "google,tentacruel-sku262149", "google,tentacruel-= sku262148", > > + "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/ar= m64/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 component= s > > + * 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; > > + }; > > +}; > > + > >