From nobody Thu Nov 14 16:51:29 2024 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 9FB451272D9 for ; Fri, 26 Jan 2024 08:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706258318; cv=none; b=Z+ywdcpSSlnPHaz+gYE4MOb9vj1LYz/1lUjCBd1QX3aggIqZg3/km0Ar7jHi8gQEdnxAlhU+3XQ18dmQSt/wyLhjNNOWUp3eDKRJ6CoyKTYa+SubPC10HYwsuMAvo0ffa+qh9e8SiW50pPH6clJIJBCPzM4wnbNkupLx3ZUD6Y4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706258318; c=relaxed/simple; bh=OxkE5tLPo2O76C0AlfTOkgYtyk1kP8fQsKX2/ZyaR9Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G8uRCdzO5vLGAtgJV5Wat5+l9tx6UIJao0N6waGMWKxCKM90JKtUD2lDJwQCN3qtssttRizQ28hbkTXp5bnn7reYfrPZOJUQIDk5rbtXzR7txJL4WLGyF1qMc02EwBUW7w822YiQnalhjBZz+IB2ne8cAlT2Lx7+d5cCl+EoQZU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=JuYk1YT2; arc=none smtp.client-ip=209.85.215.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JuYk1YT2" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-5ce2aada130so54594a12.1 for ; Fri, 26 Jan 2024 00:38:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706258316; x=1706863116; 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=cu18IbHxxXKtnHnv1Cjrlq/8T8VeE5Y4i7fvBtBG5WM=; b=JuYk1YT2Cgea6N8anQHLj0U4Gk23D+in0AY7acs293ou2bcKoKmnCRUVRSmZCNiYuL 3wFUaURAZ26FYf7go+n+qXGyifxcr2Ixjc3huz12kjur7Q0WKoEsTMaLMOCQtoxghrnb Lkf4rVMFnsc2TgLA41x6zGXep6z9sR6yOtebY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706258316; x=1706863116; 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=cu18IbHxxXKtnHnv1Cjrlq/8T8VeE5Y4i7fvBtBG5WM=; b=a53LAuhBZx6XkC/pkBYcoUjHzsyskbbk6L8WBDbA+b14EwX08/2xD6XOhE1Pyut25q o99BZdemZ1Gjq9h4FDSqzg/goBXS4RodYupxHlMtc1MGZEdnlDSFH3ZRQOs8quwSQ/KV xa0ZGH8IbD+h7IPzqqrPEbFsoQbkjJnJEabQwhlL7l0E8qNCuVR6iuzM2jtiWHDAII1t KmWKLjCBq+Oh9VhNl3xR5pu4VuIo5Ng3dXBQTDlz6gbsL0aFi1pnEe7XtFRXmpgFRT3v +oEw9Voss8KJZmqATJ5P1RxXB3gJmMqEzKwYW9iIEzxxEENy/7pL65lEWNNL7es5k+Wi luqQ== X-Gm-Message-State: AOJu0Yw043ZUDPYs4Ku59uT2WkhIVA4PapWGXiddqMaFPjRxgF/dC8lX tlwINtyfWtWil3RkVUgzfj3v/7Yx2FAFOdmcHu5DHwrMRfhUwFCnoNXZikjMmw== X-Google-Smtp-Source: AGHT+IHrJdgf7K5kb7KjqgIdj8SsIOraefdm8h6pf1HU8AyGQCgzAZBADpnEzvhmhI1vr0s+vJlvWQ== X-Received: by 2002:a05:6a20:6d11:b0:19a:9989:8de1 with SMTP id fv17-20020a056a206d1100b0019a99898de1mr697021pzb.42.1706258316117; Fri, 26 Jan 2024 00:38:36 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:2614:bbbd:8db2:1f54]) by smtp.gmail.com with ESMTPSA id b2-20020a170902a9c200b001d6ff1795aesm589529plr.8.2024.01.26.00.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 00:38:35 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Eugen Hristev , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v5 9/9] arm64: dts: mediatek: Add MT8186 Magneton Chromebooks Date: Fri, 26 Jan 2024 16:37:58 +0800 Message-ID: <20240126083802.2728610-10-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240126083802.2728610-1-wenst@chromium.org> References: <20240126083802.2728610-1-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 v4: none Changes since v3: - Collected reviewed-by from Angelo 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 48327471de12..9896a388e30e 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -51,6 +51,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.429.g432eaa2c6b-goog