From patchwork Wed Sep 25 08:03:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Albert_Jakie=C5=82a?= X-Patchwork-Id: 13811775 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0CA1EC369AA for ; Wed, 25 Sep 2024 08:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Cc:To:From:Subject:Message-ID:Mime-Version:Date:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=RpI+72pqCUKa6Ph4QBKiGKr7w0qM8RBrdylhoit18tM=; b=V/PBCmoKxv62pc+JejyEf6dUOY PA8+RRt1/a7Ed6fHbYYfwjoyEM60CdOryguFlg+8mY/RRY58oWea6vtm5yrkq99KxEabBuBnHFkN+ bE6B1WJtwWdlTFvujIB7lBaQbMo8JNdsKswXXKs4QMDvOmyogKONodFIdpQWhv/qoAL3YEkYXuc8r 9h56piwIyM3HP83oOw1vaxzInOUAFWLF7g5l/NbVwTYDGDjeSMhcMfZKZqlzNEPzhJcBdT9oFikuy c4GVy8RsAa9n07NxkRA2/iYOtZLwflBLAMznv3U/+6d7NV5rXTorFXLKL2OAyIusevZnK6qy4ZE79 jFwy0s0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stN3R-00000004SOk-36qX; Wed, 25 Sep 2024 08:07:21 +0000 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stN0Q-00000004RcA-22YR for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 08:04:16 +0000 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-e1d46cee0b0so9767297276.2 for ; Wed, 25 Sep 2024 01:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1727251452; x=1727856252; darn=lists.infradead.org; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:from:to:cc:subject:date:message-id:reply-to; bh=RpI+72pqCUKa6Ph4QBKiGKr7w0qM8RBrdylhoit18tM=; b=En6xyLj9nI+b1prYYVL/068HKqht9IaPZb6+Tkq4cBIJF5iAciG049wq8kX+xAkBXG NwWWtS7c4EAbyK8uGFoUbmDyzlsjzvKtqrIM10G1twtFUqWrV3ggK2DKmztmrrFMiTp0 Wv5v1i3QfbyBQ5CD7eoaYTjrb+IS/ghZvrn+qyYN3BPSIn7VLA5SWMSgbNz8v1NNiRVG 4zoVLOKatUgORu25hgHJ3vAoZFt/bpL0KKt/nrWsw0iTrsPBPfz8P7btwIdPxE6ZdBe7 dh809gboQ0Vs2twE4VOmMfI4gVJYMjze4R/FfjjR/Abua3/Z/fD34yUsiS4GTvOWitfu B+0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727251452; x=1727856252; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RpI+72pqCUKa6Ph4QBKiGKr7w0qM8RBrdylhoit18tM=; b=VMu+ZzXGVJ1rN/lDvtJVAuEw7Q1CsHDJOU//Vtqv2w74zOz8l7vB0K4ihxFT3nsGAT QW/8d2Z0++/uV/gfchSdU6BbAw9efwLI67/Gz/rTA/ApW6sByuxxNgcA/G9kANja1At7 06Ju5cNFp4rCKFsnW1P3V2DW4uRifqQAeG6OVacW7y4CRO1nr+VCkYR3cDhzhSqBsJi6 SDTPUvIZg8GM65w6nCqlh95OzV+8bDNcXaoWK1R+6zKJY15P9vbvn/mi6ZYH8e/FLuEh geSwz8Sz4z9XzsHyPbsOxMczwGLG0o3y+IZocKjZNvA5Gbyhw2/08ovPflIUCWLnK1aR ar7w== X-Forwarded-Encrypted: i=1; AJvYcCVdrILfT5WASX51gQALP+k2sQrdJqx0T648BrbWfBZ75v9WpsmsrjqS5g10T9kWgHaQ47wueQgwnAe5U+cDf96Z@lists.infradead.org X-Gm-Message-State: AOJu0YwCMhyTZe90lBTYJF8Eq6mdM+SxUx3aUCdmkHgTYlV1TC1kPbU3 iryXc2oit8dW9v+xpMHKau7vcbKHVjC6eVj1wx6QUqJ97kCPPwPQwjXqVRllhWcrJWJIcZ7ua8M HtNQ+Iw== X-Google-Smtp-Source: AGHT+IFw0bYPHUqMq0e7EqXrAe/PmOO/o9gXTmryzs8osv8xXCpAe3duc1gxJ6QGosYWIIQYVmnDKsUKdHGX X-Received: from malysz.c.googlers.com ([fda3:e722:ac3:cc00:31:98fb:c0a8:a1e]) (user=jakiela job=sendgmr) by 2002:a05:6902:1782:b0:e0b:958a:3344 with SMTP id 3f1490d57ef6-e24da39b0c3mr15148276.10.1727251452579; Wed, 25 Sep 2024 01:04:12 -0700 (PDT) Date: Wed, 25 Sep 2024 08:03:52 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog Message-ID: <20240925080353.2362879-1-jakiela@google.com> Subject: [PATCH 1/2] dt-bindings: arm: mediatek: Add MT8186 Chinchou/Chinchou360 Chromebooks From: " =?utf-8?q?Albert_Jakie=C5=82a?= " To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, rafal@milecki.pl, hsinyi@chromium.org, nfraprado@collabora.com, macpaul.lin@mediatek.com, sean.wang@mediatek.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, " =?utf-8?q?Albert_Jakie=C5=82a?= " X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_010414_625174_61657C87 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add entries for MT8186 based Chinchou/Chinchou360 Chromebooks. These two are clamshell or convertible with touchscreen, stylus and extra buttons. Signed-off-by: Albert Jakieła --- .../devicetree/bindings/arm/mediatek.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index 1d4bb50fcd8d..110149f5d748 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -239,6 +239,29 @@ properties: - enum: - mediatek,mt8183-pumpkin - const: mediatek,mt8183 + - description: Google Chinchou360 (Asus Chromebook CZ11 Flip CZ1104F) + items: + - const: google,chinchou-sku16 + - const: google,chinchou-sku18 + - const: google,chinchou-sku19 + - const: google,chinchou-sku21 + - const: google,chinchou-sku2147483647 + - const: mediatek,mt8186 + - description: Google Chinchou (Asus Chromebook CZ12 Flip CZ1204C) + items: + - const: google,chinchou-sku0 + - const: google,chinchou-sku1 + - const: google,chinchou-sku2 + - const: google,chinchou-sku3 + - const: google,chinchou-sku4 + - const: google,chinchou-sku5 + - const: google,chinchou-sku6 + - const: google,chinchou-sku7 + - const: google,chinchou-sku17 + - const: google,chinchou-sku22 + - const: google,chinchou-sku23 + - const: google,chinchou + - const: mediatek,mt8186 - description: Google Magneton (Lenovo IdeaPad Slim 3 Chromebook (14M868)) items: - const: google,steelix-sku393219 From patchwork Wed Sep 25 08:03:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Albert_Jakie=C5=82a?= X-Patchwork-Id: 13811776 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8EA2DC369A8 for ; Wed, 25 Sep 2024 08:08:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Cc:To:From:Subject:Message-ID:References:Mime-Version: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XAqzgSMA8rpoKVtECfcgOMf5fHf3R893Qz6RTyD6w6c=; b=ZqXL0MccnzehRHBBXP2QvwE5rY EYbxq4KHyNzxFXeFGvjGihPG5RuIuZrlq/UXJjnQY7+3s+KjkXCNN59zx1/wIYJOcQausWC6ElKz6 PALsnHOdaiZ79eiaAvlpzadl6BbaAhSAMz6xvnI+EV0KxxSzLAT+qApLC3tQI3kvyRw9apcEkkQRr fYsQaMgpXUWUOvFZe5HNodL+m3AjS/XfRrhZQIpQA5paawP7IOmnhO8So/nYKV+CX/g1hZA6p0ojX obxK/YklYy26TLgsUkxEiIgtM438xBCqBSDw7AaR+33/E1gPFBjsHplDpyzfmMilbVTO2TBIsL9Hp 2ovKRzPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stN4Z-00000004Seq-3fCs; Wed, 25 Sep 2024 08:08:31 +0000 Received: from mail-ej1-x649.google.com ([2a00:1450:4864:20::649]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stN0V-00000004ReV-0YPz for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 08:04:21 +0000 Received: by mail-ej1-x649.google.com with SMTP id a640c23a62f3a-a8a9094c973so478732166b.2 for ; Wed, 25 Sep 2024 01:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1727251456; x=1727856256; darn=lists.infradead.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=XAqzgSMA8rpoKVtECfcgOMf5fHf3R893Qz6RTyD6w6c=; b=wQJtFAhaX5aZ8Oe+0BPz4WRnR416TFkj5/IvX/hz/DKc0imB7QnruMzdloohL06gi5 hJKqRYY3yB9cJhwDpI9qLKTfNDwhDh0cQqEcmTzDTfQlggD3tHZT0tyzzltVPa3ZIApb YpHWaQhulMZ0L+7AKTPCZanrwnfSwPN6Z3kefP6jHRcV6+yRLOR9oZd1eO7+EXUWrc5l Da0NtVhN081lXVVIjJm/c+E9agml8l7NN8quNVCZvRDP/NDvSuJsmnx8fx9P7/9W3oDr gKfcmR3sNnvHPOM7uZse1Dl2MAIBc5DPiqr5Q/WuoCIiZqQuC4mIpS97khFD1XyUppJm H1gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727251456; x=1727856256; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=XAqzgSMA8rpoKVtECfcgOMf5fHf3R893Qz6RTyD6w6c=; b=fTh4MqxetsYqMfvfgGrd0QfMaZf7opch2R9Pohn6U9u9ogjZ+seLM7tDwHUU4HmW/1 MYLoK+b8jl3DpoTdMCk9Z5Vzqx4Fp6t1g2owGzIcumpWXg9osaU8ePSSyDYKGN+LgjDY +x99tfBDEte8G1TGYYj2qz+0lU1LQRZ90YLbZ0Jb/yG2B+NkpzEsVvIroXm8RCDrMNd+ EKFqGrOXIuH0Ljk70RrsKtm7khVKGoFI8bw4SytVP3IH6YE3MGx0Zo2DGrVta1mDWIs4 mzzJm3OEAiWBpJB0ltwawYVcDpKmgWZLXcXbE6taJtU1hKccdV4Xgv0HJETf5d4x7eKo QN9Q== X-Forwarded-Encrypted: i=1; AJvYcCVwnVdIShLV9b3jZ3WEDvkgQgp+7a3TXmFrvWNLlkPIBCfkyaX3QmMAPAZqk3eZEkhuXLksQayqjzv5q5kCiLph@lists.infradead.org X-Gm-Message-State: AOJu0YwrqpPrz29Mx/b2sr/c6U5q/8DEdUPhBtNLxpmAxOvqoE4UCEiz gmoRpmiABiSVQ+ZAYGe9mblYR4jsNsy9+MO2e2g4Dr4KSHvdzzWRejxdNSQZPGcIZQ1qUC5cOp4 oaOXfsg== X-Google-Smtp-Source: AGHT+IEO1EOLJdunVALcFZ0S9FLycG3KG7igE5+tglDI+gxl+nW8v3mBzsPgqp8PmdsFdQasb7Lbo4nn8a4Q X-Received: from malysz.c.googlers.com ([fda3:e722:ac3:cc00:31:98fb:c0a8:a1e]) (user=jakiela job=sendgmr) by 2002:a17:906:1c90:b0:a86:6a0b:3f88 with SMTP id a640c23a62f3a-a93a05ba9b4mr81966b.8.1727251456241; Wed, 25 Sep 2024 01:04:16 -0700 (PDT) Date: Wed, 25 Sep 2024 08:03:53 +0000 In-Reply-To: <20240925080353.2362879-1-jakiela@google.com> Mime-Version: 1.0 References: <20240925080353.2362879-1-jakiela@google.com> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog Message-ID: <20240925080353.2362879-2-jakiela@google.com> Subject: [PATCH 2/2] arm64: dts: mediate: Introduce MT8186 Chinchou/Chinchou360 Chromebooks From: " =?utf-8?q?Albert_Jakie=C5=82a?= " To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, rafal@milecki.pl, hsinyi@chromium.org, nfraprado@collabora.com, macpaul.lin@mediatek.com, sean.wang@mediatek.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, " =?utf-8?q?Albert_Jakie=C5=82a?= " X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_010419_213178_4C8B7392 X-CRM114-Status: GOOD ( 14.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The MT8186 Chinchou/Chinchou360, also known as the Asus Chromebook CZ12/CZ11 Flip, is a clamshell or convertible device with touchscreen, stylus and extra buttons. Signed-off-by: Albert Jakieła --- arch/arm64/boot/dts/mediatek/Makefile | 3 + .../mediatek/mt8186-corsola-chinchou-sku0.dts | 18 + .../mediatek/mt8186-corsola-chinchou-sku1.dts | 34 ++ .../mt8186-corsola-chinchou-sku16.dts | 28 ++ .../dts/mediatek/mt8186-corsola-chinchou.dtsi | 445 ++++++++++++++++++ 5 files changed, 528 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku0.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku1.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku16.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou.dtsi diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index 8fd7b2bb7a15..0db7770e8907 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -55,6 +55,9 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-kodama-sku32.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-chinchou-sku0.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-chinchou-sku1.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-chinchou-sku16.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-magneton-sku393216.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-magneton-sku393217.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-magneton-sku393218.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku0.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku0.dts new file mode 100644 index 000000000000..29dd92318da1 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku0.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-chinchou.dtsi" + +/ { + model = "Google chinchou sku0 board"; + compatible = "google,chinchou-sku0", "google,chinchou-sku2", + "google,chinchou-sku4", "google,chinchou-sku5", + "google,chinchou", "mediatek,mt8186"; +}; + +&gpio_keys { + status = "disabled"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku1.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku1.dts new file mode 100644 index 000000000000..8ba31f81d9ad --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku1.dts @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-chinchou.dtsi" + +/ { + model = "Google chinchou sku1/sku17 board"; + compatible = "google,chinchou-sku1", "google,chinchou-sku17", + "google,chinchou-sku3", "google,chinchou-sku6", + "google,chinchou-sku7", "google,chinchou-sku20", + "google,chinchou-sku22", "google,chinchou-sku23", + "mediatek,mt8186"; +}; + +&i2c1 { + i2c-scl-internal-delay-ns = <10000>; + + touchscreen: touchscreen@41 { + compatible = "ilitek,ili2901"; + reg = <0x41>; + interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_pins>; + reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>; + vccio-supply = <&pp1800_tchscr_report_disable>; + }; +}; + +&gpio_keys { + status = "disabled"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku16.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku16.dts new file mode 100644 index 000000000000..d3378d7ad096 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku16.dts @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-chinchou.dtsi" + +/ { + model = "Google chinchou sku16/sku2147483647 board"; + compatible = "google,chinchou-sku16", "google,chinchou-sku18", + "google,chinchou-sku19", "google,chinchou-sku21", + "google,chinchou-sku2147483647", "mediatek,mt8186"; +}; + +&i2c1 { + i2c-scl-internal-delay-ns = <10000>; + + touchscreen: touchscreen@41 { + compatible = "ilitek,ili2901"; + reg = <0x41>; + interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_pins>; + reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>; + vccio-supply = <&pp1800_tchscr_report_disable>; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou.dtsi new file mode 100644 index 000000000000..c77cc43f8442 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou.dtsi @@ -0,0 +1,445 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola.dtsi" + +/ { + tboard_thermistor1: thermal-sensor1 { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&auxadc 0>; + io-channel-names = "sensor-channel"; + temperature-lookup-table = < (-5000) 1491 + 0 1413 + 5000 1324 + 10000 1225 + 15000 1120 + 20000 1012 + 25000 900 + 30000 797 + 35000 698 + 40000 607 + 45000 525 + 50000 451 + 55000 386 + 60000 330 + 65000 282 + 70000 241 + 75000 206 + 80000 176 + 85000 151 + 90000 129 + 95000 111 + 100000 96 + 105000 83 + 110000 72 + 115000 62 + 120000 54 + 125000 47>; + }; + + tboard_thermistor2: thermal-sensor2 { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&auxadc 1>; + io-channel-names = "sensor-channel"; + temperature-lookup-table = < (-5000) 1491 + 0 1413 + 5000 1324 + 10000 1225 + 15000 1120 + 20000 1012 + 25000 900 + 30000 797 + 35000 698 + 40000 607 + 45000 525 + 50000 451 + 55000 386 + 60000 330 + 65000 282 + 70000 241 + 75000 206 + 80000 176 + 85000 151 + 90000 129 + 95000 111 + 100000 96 + 105000 83 + 110000 72 + 115000 62 + 120000 54 + 125000 47>; + }; + + pp1800_tchscr_report_disable: regulator-pp1800-tchscr-report-disable { + compatible = "regulator-fixed"; + regulator-name = "pp1800_tchscr_report_disable"; + pinctrl-names = "default"; + enable-active-low; + regulator-boot-on; + pinctrl-0 = <&touch_pin_report>; + gpio = <&pio 37 GPIO_ACTIVE_LOW>; + }; + + pp1000_edpbrdg: regulator-pp1000-edpbrdg { + compatible = "regulator-fixed"; + regulator-name = "pp1000_edpbrdg"; + pinctrl-names = "default"; + pinctrl-0 = <&en_pp1000_edpbrdg>; + enable-active-high; + regulator-boot-on; + gpio = <&pio 29 GPIO_ACTIVE_HIGH>; + vin-supply = <&pp3300_z2>; + }; + + pp1800_edpbrdg_dx: regulator-pp1800-edpbrdg-dx { + compatible = "regulator-fixed"; + regulator-name = "pp1800_edpbrdg_dx"; + pinctrl-names = "default"; + pinctrl-0 = <&en_pp1800_edpbrdg>; + enable-active-high; + regulator-boot-on; + gpio = <&pio 30 GPIO_ACTIVE_HIGH>; + vin-supply = <&mt6366_vio18_reg>; + }; + + pp3300_edp_dx: regulator-pp3300-edp-dx { + compatible = "regulator-fixed"; + regulator-name = "pp3300_edp_dx"; + pinctrl-names = "default"; + pinctrl-0 = <&en_pp3300_edpbrdg>; + enable-active-high; + regulator-boot-on; + gpio = <&pio 31 GPIO_ACTIVE_HIGH>; + vin-supply = <&pp3300_z2>; + }; +}; + +&rt5682s { + status = "disabled"; +}; + +&rt1019p { + status = "disabled"; +}; + +&dsi_out { + remote-endpoint = <&anx7625_in>; +}; + +&i2c0 { + clock-frequency = <400000>; + + anx_bridge: anx7625@58 { + compatible = "analogix,anx7625"; + reg = <0x58>; + pinctrl-names = "default"; + pinctrl-0 = <&anx7625_pins>; + panel_flags = <1>; + enable-gpios = <&pio 96 GPIO_ACTIVE_HIGH>; + reset-gpios = <&pio 98 GPIO_ACTIVE_HIGH>; + vdd10-supply = <&pp1000_edpbrdg>; + vdd18-supply = <&pp1800_edpbrdg_dx>; + vdd33-supply = <&pp3300_edp_dx>; + #address-cells = <1>; + #size-cells = <0>; + analogix,lane0-swing = /bits/ 8 <0x70 0x30>; + analogix,lane1-swing = /bits/ 8 <0x70 0x30>; + + port@0 { + reg = <0>; + + anx7625_in: endpoint { + remote-endpoint = <&dsi_out>; + data-lanes = <0 1 2 3>; + }; + }; + + port@1 { + reg = <1>; + + anx7625_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + + aux-bus { + panel: panel { + compatible = "edp-panel"; + power-supply = <&pp3300_disp_x>; + backlight = <&backlight_lcd0>; + + port { + panel_in: endpoint { + remote-endpoint = <&anx7625_out>; + }; + }; + }; + }; + }; +}; + +&i2c2 { + trackpad@15 { + compatible = "hid-over-i2c"; + post-power-on-delay-ms = <10>; + hid-descr-addr = <0x0001>; + vdd-supply = <&pp3300_s3>; + }; +}; + +&i2c5 { + clock-frequency = <400000>; + + rt5650: rt5650@1a { + compatible = "realtek,rt5650"; + reg = <0x1a>; + avdd-supply = <&mt6366_vio18_reg>; + pinctrl-names = "default"; + pinctrl-0 = <&rt1019p_pins_default>; + cbj-sleeve-gpio = <&pio 150 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&pio>; + interrupts = <17 IRQ_TYPE_EDGE_BOTH>; + #sound-dai-cells = <0>; + realtek,dmic1-data-pin = <2>; + realtek,jd-mode = <2>; + }; +}; + +&mmc1_pins_default { + pins-clk { + drive-strength = ; + }; + + pins-cmd-dat { + drive-strength = ; + }; +}; + +&mmc1_pins_uhs { + pins-clk { + drive-strength = ; + }; + + pins-cmd-dat { + drive-strength = ; + }; +}; + +&sound { + status = "okay"; + + compatible = "mediatek,mt8186-mt6366-rt5650-sound"; + mediatek,adsp = <&adsp>; + + audio-routing = + "Headphone", "HPOL", + "Headphone", "HPOR", + "HDMI1", "TX"; + + hs-playback-dai-link { + codec { + sound-dai = <&rt5650>; + }; + }; + + hs-capture-dai-link { + codec { + sound-dai = <&rt5650>; + }; + }; + + spk-share-dai-link { + }; + + spk-hdmi-playback-dai-link { + codec { + sound-dai = <&it6505dptx>; + }; + }; +}; + +&wifi_enable_pin { + pins-wifi-enable { + pinmux = ; + }; +}; + +&wifi_pwrseq { + reset-gpios = <&pio 51 GPIO_ACTIVE_LOW>; +}; + +&keyboard_controller { + keypad,num-columns = <15>; + + function-row-physmap = < + MATRIX_KEY(0x00, 0x02, 0) /* T1 */ + MATRIX_KEY(0x03, 0x02, 0) /* T2 */ + MATRIX_KEY(0x02, 0x02, 0) /* T3 */ + MATRIX_KEY(0x01, 0x02, 0) /* T4 */ + MATRIX_KEY(0x03, 0x04, 0) /* T5 */ + MATRIX_KEY(0x02, 0x04, 0) /* T6 */ + MATRIX_KEY(0x01, 0x04, 0) /* T7 */ + MATRIX_KEY(0x02, 0x09, 0) /* T8 */ + MATRIX_KEY(0x01, 0x09, 0) /* T9 */ + MATRIX_KEY(0x00, 0x04, 0) /* T10 */ + MATRIX_KEY(0x00, 0x01, 0) /* T11 */ + MATRIX_KEY(0x01, 0x05, 0) /* T12 */ + >; + + linux,keymap = < + CROS_STD_MAIN_KEYMAP + MATRIX_KEY(0x00, 0x02, KEY_BACK) /* T1 */ + MATRIX_KEY(0x03, 0x02, KEY_REFRESH) /* T2 */ + MATRIX_KEY(0x02, 0x02, KEY_ZOOM) /* T3 */ + MATRIX_KEY(0x01, 0x02, KEY_SCALE) /* T4 */ + MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) /* T5 */ + MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) /* T6 */ + MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) /* T7 */ + MATRIX_KEY(0x02, 0x09, KEY_MUTE) /* T8 */ + MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) /* T9 */ + MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) /* T10 */ + MATRIX_KEY(0x00, 0x01, KEY_MICMUTE) /* T11 */ + MATRIX_KEY(0x01, 0x05, KEY_CONTROLPANEL) /* T12 */ + MATRIX_KEY(0x03, 0x05, KEY_PREVIOUSSONG) /* T13 */ + MATRIX_KEY(0x00, 0x09, KEY_PLAYPAUSE) /* T14 */ + MATRIX_KEY(0x00, 0x0b, KEY_NEXTSONG) /* T15 */ + MATRIX_KEY(0x03, 0x00, KEY_LEFTMETA) /* Search*/ + MATRIX_KEY(0x01, 0x0e, KEY_LEFTCTRL) /* Left Control*/ + MATRIX_KEY(0x06, 0x0d, KEY_LEFTALT) /* Left ALT*/ + MATRIX_KEY(0x03, 0x0e, KEY_RIGHTCTRL) /* Right Control*/ + MATRIX_KEY(0x06, 0x0a, KEY_BACKSLASH) /* BACKSLASH*/ + >; +}; + +&thermal_zones { + cpu-ntc { + polling-delay = <1000>; /* milliseconds */ + polling-delay-passive = <0>; /* milliseconds */ + thermal-sensors = <&tboard_thermistor1>; + }; + + pmic-ntc { + polling-delay = <1000>; /* milliseconds */ + polling-delay-passive = <50>; /* milliseconds */ + thermal-sensors = <&tboard_thermistor2>; + sustainable-power = <1500>; + + trips { + pmic_temp_alert0: trip-point@0 { + temperature = <50000>; + hysteresis = <2000>; + type = "passive"; + }; + + pmic_temp_alert1: target@1 { + temperature = <60000>; + hysteresis = <2000>; + type = "passive"; + }; + + pmic_ntc_crit: pmic-ntc-crit@0 { + temperature = <80000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&pmic_temp_alert1>; + cooling-device = <&cpu0 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu1 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu2 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu3 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu4 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu5 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + contribution = <4096>; + }; + + map1 { + trip = <&pmic_temp_alert1>; + cooling-device = <&cpu6 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>, + <&cpu7 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + contribution = <1024>; + }; + }; + }; +}; + +&pio { + touch_pin_report: pin-report { + pinmux = ; + output-low; + }; + + anx7625_pins: anx7625-pins { + pins1 { + pinmux = , + ; + output-low; + }; + + pins2 { + pinmux = ; + input-enable; + bias-pull-up; + }; + }; + + en_pp1000_edpbrdg: pp1000-edpbrdg-en-pins { + pins-vreg-en { + pinmux = ; + output-low; + }; + }; + + en_pp1800_edpbrdg: pp1800-edpbrdg-en-pins { + pins-vreg-en { + pinmux = ; + output-low; + }; + }; + + en_pp3300_edpbrdg: pp3300-edpbrdg-en-pins { + pins-vreg-en { + pinmux = ; + output-low; + }; + }; +}; + +&i2c_tunnel { + /delete-node/ sbs-battery@b; + + battery: sbs-battery@f { + compatible = "sbs,sbs-battery"; + reg = <0xf>; + sbs,i2c-retry-count = <2>; + sbs,poll-retry-count = <1>; + }; +}; + +&pen_insert { + wakeup-event-action = ; +};