From nobody Thu Nov 14 05:04:54 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0985FC10DC3 for ; Mon, 4 Dec 2023 08:43:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235314AbjLDInI (ORCPT ); Mon, 4 Dec 2023 03:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234871AbjLDImn (ORCPT ); Mon, 4 Dec 2023 03:42:43 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA5710E7 for ; Mon, 4 Dec 2023 00:42:41 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d076ebf79cso3905745ad.1 for ; Mon, 04 Dec 2023 00:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679361; x=1702284161; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jy3wE8QoVFuCdeDjxGiH3OX0Xt5eOjHqlvzeLRn8ddk=; b=Wd0Z6rGNjRc9b4hUcNXqx9IQ++ziTaJhH8JU1uXF8xegGMMzg+InCmkYSuq6SM0Uzv DNuCUWuFXuCDE2/bCzHmks5zfxZfrF5hxwtJidrknHE/7pEMsJ9qnJH9psyEmpEsGKHf a4jYNBvBRRS72MiI6hvF9N1wr0jfXjf+1tTHQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679361; x=1702284161; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jy3wE8QoVFuCdeDjxGiH3OX0Xt5eOjHqlvzeLRn8ddk=; b=EJ23k2dFhNGh/doKkjtv+1616Zmeai/L4AQg89/7HSyZJ4ajKWpGwOn+DLigsPqg9n nEHvRuEI27/35BGzZlom8v3FSceEH3l9ofcMYF8BGYIJxV03EQbjlwQpe4BGhc1W8CM3 htpAvJyGh7FsdcQEJVLEEwbo4KdO0pNyLhrft2kxpeyd18OhZoS/UKU2+baszXHkMHKj /OdYV4t033iI59x6BOy3KjA7D2CSBlZ2BhnVaTp2VB4DdxkM+8x522K+Sw+8aj9gbYcq oUQH2wW/I8T2yK9Y/kevzQw9OtxlhepIZbUUYuOWac+k1jn7Xfsub4XXP9AUg3NiTCwU 5DDA== X-Gm-Message-State: AOJu0YziCeplh/yV6op3VyMp/HcbVedDgbvWmtvBPIvoPyPI2z4hDKgZ Jlwf4/CKimfzX2Gljh95qKKxUw== X-Google-Smtp-Source: AGHT+IEPGBPJ8kYyNF14VJdYMjPUal8vsvhVNFDhDwyTws8/JnGl7oITwY5R9dTBjQ+Tb0w+uP12tA== X-Received: by 2002:a17:903:1104:b0:1d0:8876:7082 with SMTP id n4-20020a170903110400b001d088767082mr961866plh.72.1701679360934; Mon, 04 Dec 2023 00:42:40 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:40 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , 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, Conor Dooley Subject: [PATCH v3 9/9] arm64: dts: mediatek: Add MT8186 Magneton Chromebooks Date: Mon, 4 Dec 2023 16:40:11 +0800 Message-ID: <20231204084012.2281292-10-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add entries for the MT8186 based Chromebooks, also collectively known as the Lenovo IdeaPad Slim 3 Chromebook (14M868). It is also based on the "Steelix" design. Being a laptop instead of a convertible device, there is no stylus, which is similar to Rusty. However Magneton does not have ports on the right side of the device. Three variants are listed separately. These use different touchscreen controllers, or lack a touchscreen altogether. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - Picked up Conor's ack Changes since v1: - Reorder SKU numbers in descending order. - Mark missing components as disabled instead of deleting the node - Switched to interrupts-extended in touchscreen nodes - Dropped reset-gpios from touchscreen nodes - Drop status =3D "okay", which is the default arch/arm64/boot/dts/mediatek/Makefile | 3 ++ .../mt8186-corsola-magneton-sku393216.dts | 39 +++++++++++++++++++ .../mt8186-corsola-magneton-sku393217.dts | 39 +++++++++++++++++++ .../mt8186-corsola-magneton-sku393218.dts | 26 +++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sk= u393216.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sk= u393217.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sk= u393218.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/me= diatek/Makefile index 6b05f1f2e645..7e365e9516ab 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -43,6 +43,9 @@ dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-kodama-sku3= 2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-pumpkin.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-magneton-sku393216.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-magneton-sku393217.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-magneton-sku393218.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-rusty-sku196608.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-steelix-sku131072.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-steelix-sku131073.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393216= .dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393216.dts new file mode 100644 index 000000000000..c9673381ad3b --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393216.dts @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Magneton board"; + compatible =3D "google,steelix-sku393219", "google,steelix-sku393216", + "google,steelix", "mediatek,mt8186"; + chassis-type =3D "laptop"; +}; + +&gpio_keys { + status =3D "disabled"; +}; + +&i2c1 { + touchscreen@10 { + compatible =3D "hid-over-i2c"; + reg =3D <0x10>; + interrupts-extended =3D <&pio 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&touchscreen_pins>; + vdd-supply =3D <&pp3300_s3>; + post-power-on-delay-ms =3D <350>; + hid-descr-addr =3D <0x0001>; + }; +}; + +&touchscreen { + status =3D "disabled"; +}; + +&usb_c1 { + status =3D "disabled"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393217= .dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393217.dts new file mode 100644 index 000000000000..28e3bbe56421 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393217.dts @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Magneton board"; + compatible =3D "google,steelix-sku393220", "google,steelix-sku393217", + "google,steelix", "mediatek,mt8186"; + chassis-type =3D "laptop"; +}; + +&gpio_keys { + status =3D "disabled"; +}; + +&i2c1 { + touchscreen@40 { + compatible =3D "hid-over-i2c"; + reg =3D <0x40>; + interrupts-extended =3D <&pio 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&touchscreen_pins>; + vdd-supply =3D <&pp3300_s3>; + post-power-on-delay-ms =3D <450>; + hid-descr-addr =3D <0x0001>; + }; +}; + +&touchscreen { + status =3D "disabled"; +}; + +&usb_c1 { + status =3D "disabled"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393218= .dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393218.dts new file mode 100644 index 000000000000..332894218f07 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393218.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Magneton board"; + compatible =3D "google,steelix-sku393221", "google,steelix-sku393218", + "google,steelix", "mediatek,mt8186"; + chassis-type =3D "laptop"; +}; + +&gpio_keys { + status =3D "disabled"; +}; + +&touchscreen { + status =3D "disabled"; +}; + +&usb_c1 { + status =3D "disabled"; +}; --=20 2.43.0.rc2.451.g8631bc7472-goog