From patchwork Tue Sep 3 06:16:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianeng Ceng X-Patchwork-Id: 13788079 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 6CF8BCD342C for ; Tue, 3 Sep 2024 06:16:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C702710E3D6; Tue, 3 Sep 2024 06:16:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="P9FVDqG+"; dkim-atps=neutral Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id A83F310E3D6 for ; Tue, 3 Sep 2024 06:16:19 +0000 (UTC) Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-82a238e0a9cso181558439f.3 for ; Mon, 02 Sep 2024 23:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1725344178; x=1725948978; darn=lists.freedesktop.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=VPpt6ERaV9w0t5on/zQBb5NLjkmrrGxBn+wH2mAAexM=; b=P9FVDqG+/6iXEU+wO9jOnVm5K3pFgIeSDG88z4vBrXBC1Sw41HWmXYfT/izdn+VU4T yaxMDCVgwkbbmWRMMS4g+80XWeOx7VuK6MNVMLLjA6Bg9YX+L72uYqiIGoCO/RxyJo7T zEHsNNrE44yacGq5Pac4rZQB2vRhkDQQMagOOX0AbP/HMUprxIpSsOnMya2kIgu87fbe /kaNeOiSsWxp6OEZeRjPpMX4TsOWl2e9OIeqaA4DPiOCQsK6E7AeeleN1ZxgEWjU66Ct l9ydLCq43dk4IyL+DpcfZGJ0X+rhrbf/7sXgi1Kzr2xP0al5Giu4H9aKTr12AHKI0og1 q8UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725344178; x=1725948978; 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=VPpt6ERaV9w0t5on/zQBb5NLjkmrrGxBn+wH2mAAexM=; b=BrLEx+2HtZZMecZeFWiuS6gU0NRqg+Cc+9M3Gb2n+64SmVkF04y8mBrsTmOfzTtZap QWZTuxeLCC7tnk2Ryh8bem5vqDnE3E9u6EKy4Yx4URKdGmBAMBTN4vPHWVBPAz8au66D oSjO0Zu6BV/oUB+wtDcTpy13bu9R57MMjER+IXtf18osUGAh3+uEGb4XYpyPBb0VuQq5 XMw5i6V+HgmqT095Y3Taad9BCNv5n/z2lKjbxhSvwUegGQyomLOAmvjdATZmAatz5z/W WDGBpq56jRdvtpZorRxVGNAwKakOss9kKBEMBAz1adpHOr3nCnsxaGDwg6zUoYpNLaSS R1ag== X-Gm-Message-State: AOJu0YwMqv8M7rMPyctNoMVcx6X9oeqxt+q2f2Wx0bItG8JDcS2MkitX MQrxqTAQ+RJSMhcq6nQZ/pjlQdLU5vORM/YKiAiOyodimZLv/I4yxPQ7/iLlZdo= X-Google-Smtp-Source: AGHT+IGI5yQXvnwD4tRUXqvvTUqVeA16Ja0c9xrooX0aIQV2flSQ+7+bD4+wQcSDniI3F3maZasMOA== X-Received: by 2002:a05:6e02:1fed:b0:39e:78d9:ebfc with SMTP id e9e14a558f8ab-39f6a9f5455mr24768165ab.17.1725344178513; Mon, 02 Sep 2024 23:16:18 -0700 (PDT) Received: from zjn.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d22e9be1efsm7151415a12.62.2024.09.02.23.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 23:16:18 -0700 (PDT) From: Jianeng Ceng To: angelogioacchino.delregno@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, knoxchiou@google.com, hsinyi@google.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jianeng Ceng Subject: [PATCH v2 1/2] dt-bindings: arm: mediatek: Add MT8186 Ponyta Chromebook Date: Tue, 3 Sep 2024 14:16:02 +0800 Message-Id: <20240903061603.3007289-2-cengjianeng@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240903061603.3007289-1-cengjianeng@huaqin.corp-partner.google.com> References: <20240903061603.3007289-1-cengjianeng@huaqin.corp-partner.google.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add an entry for the MT8186 based Ponyta Chromebook (custom lable). Signed-off-by: Jianeng Ceng --- Documentation/devicetree/bindings/arm/mediatek.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index 1d4bb50fcd8d..410145976272 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -257,6 +257,17 @@ properties: - const: google,steelix-sku393218 - const: google,steelix - const: mediatek,mt8186 + - description: Google Ponyta (Custom lable) + items: + - const: google,ponyta-sku0 + - const: google,ponyta-sku2147483647 + - const: google,ponyta + - const: mediatek,mt8186 + - description: Google Ponyta (Custom lable) + items: + - const: google,ponyta-sku1 + - const: google,ponyta + - const: mediatek,mt8186 - description: Google Rusty (Lenovo 100e Chromebook Gen 4) items: - const: google,steelix-sku196609 From patchwork Tue Sep 3 06:16:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianeng Ceng X-Patchwork-Id: 13788080 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 E58D1CA101E for ; Tue, 3 Sep 2024 06:16:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4DAC110E406; Tue, 3 Sep 2024 06:16:26 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="kcTGR19g"; dkim-atps=neutral Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id 02B7E10E405 for ; Tue, 3 Sep 2024 06:16:24 +0000 (UTC) Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-709339c91f9so2524722a34.0 for ; Mon, 02 Sep 2024 23:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1725344184; x=1725948984; darn=lists.freedesktop.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=3veaRKgwQ7UVVK4AxVxHY1nVXvOhyCQeV9wnobkx2a4=; b=kcTGR19glUjYIXXdC5Fvxs7lcgFkrpp7G7+ncKWgHoWQ2H3eWf9/JPaWOntEc/y4VX crd2F3N4hVMMZ7+00aOhkAEZr0muK1CH3IWYlUgs5LZxqB2LYeroEE+NoQ+E3RjC8T2p n10Sc3DucVDxe3oYJHXljNNB3FUtAlPA9RvHtRQ5+j4Vwm1zsszYcGtCRWAdFjZhn8Uq z7LuS6nvgr7i9HYDuR0gwavAceKhqIxpkZ7UwzG8HmAzrHbCvY05/F76kaMj8jVZcqh5 y+4pdq/5hUkTcs8C7U37rDeJhB/FnJgSFUAY7ST6sciQMI+Lfx+8WFCUo1LufwfrS3Re OkuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725344184; x=1725948984; 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=3veaRKgwQ7UVVK4AxVxHY1nVXvOhyCQeV9wnobkx2a4=; b=eiWuCUeOKk5yhKn7LK9FAcaAeh6oK1r79GrrYQjK46IJD8lPSTa/G+s4n4W6Wvk+0N ZQMH6uAJQl1VnLmQhJGxhuJd8HLpY//orAIubBTE0JStEC8Pdprfu41zPVDjOLv7clbX epiIwt9gjxrd2Y9lGsaRydDw9ve262ADg8IoneulFqLOSJMY2TXqISBITfqsVKlfATPp jgYztdMWZU452exZRrvyyVRBLNnAPWFURKgvA5xOfFZm3OtFEhQFfaK+/qWJmKxQ1pdA baYkJuvHck3iaVWVkt17QK5TzbMBqNGBUEAjtsLL36KgZ7Ecg6FLmBLdDLPImf72e0AC ZZ9g== X-Gm-Message-State: AOJu0YxvA92hHd8/eXOmPB1GH+TmloQWpxdwJhhOawjejyUU/i1MVmaS ImhBpogbunHvgPXhFKTXtI5rTO/t+jL3VBK2cy2rgkfY0VceRvH08mlfx8fQOys= X-Google-Smtp-Source: AGHT+IE0AUBWMknyTN5yeDBqmcCTCmcB/ricmSoqggWDZif4FjwOjvwRbMMPZfggNtmwl2M4uIEWHQ== X-Received: by 2002:a05:6830:438c:b0:709:4d43:32cd with SMTP id 46e09a7af769-710aada2463mr1424722a34.10.1725344184107; Mon, 02 Sep 2024 23:16:24 -0700 (PDT) Received: from zjn.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d22e9be1efsm7151415a12.62.2024.09.02.23.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 23:16:23 -0700 (PDT) From: Jianeng Ceng To: angelogioacchino.delregno@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, knoxchiou@google.com, hsinyi@google.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jianeng Ceng Subject: [PATCH v2 2/2] arm64: dts: mediatek: Add MT8186 Ponyta Chromebooks Date: Tue, 3 Sep 2024 14:16:03 +0800 Message-Id: <20240903061603.3007289-3-cengjianeng@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240903061603.3007289-1-cengjianeng@huaqin.corp-partner.google.com> References: <20240903061603.3007289-1-cengjianeng@huaqin.corp-partner.google.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" MT8186 ponyta, known as huaqin custom lable, is a MT8186 based laptop. It is based on the "corsola" design. It includes LTE, touchpad combinations. Signed-off-by: Jianeng Ceng --- arch/arm64/boot/dts/mediatek/Makefile | 2 + .../mediatek/mt8186-corsola-ponyta-sku0.dts | 24 ++++++++++ .../mediatek/mt8186-corsola-ponyta-sku1.dts | 27 ++++++++++++ .../dts/mediatek/mt8186-corsola-ponyta.dtsi | 44 +++++++++++++++++++ 4 files changed, 97 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku0.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku1.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta.dtsi diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index 8fd7b2bb7a15..50b5cf04d3ae 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -58,6 +58,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.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 +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-ponyta-sku0.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-ponyta-sku1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-rusty-sku196608.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-steelix-sku131072.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-steelix-sku131073.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku0.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku0.dts new file mode 100644 index 000000000000..87e8368189d9 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku0.dts @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-ponyta.dtsi" + +/ { + model = "Google Ponyta sku0/unprovisioned board"; + compatible = "google,ponyta-sku0", "google,ponyta-sku2147483647", + "google,ponyta", "mediatek,mt8186"; +}; + +&i2c2 { + touchpad@2c { + compatible = "hid-over-i2c"; + reg = <0x2c>; + hid-descr-addr = <0x20>; + interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_LOW>; + vcc-supply = <&pp3300_s3>; + wakeup-source; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku1.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku1.dts new file mode 100644 index 000000000000..203ee109bbf7 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku1.dts @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-ponyta.dtsi" + +/ { + model = "Google Ponyta sku1 board"; + compatible = "google,ponyta-sku1", "google,ponyta", "mediatek,mt8186"; +}; + +&i2c2 { + touchpad@15 { + compatible = "elan,ekth3000"; + reg = <0x15>; + interrupt-parent = <&pio>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + vcc-supply = <&pp3300_s3>; + wakeup-source; + }; +}; + +&usb_c1 { + status = "disabled"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta.dtsi new file mode 100644 index 000000000000..59594022331e --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta.dtsi @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +&keyboard_controller { + 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(0x00, 0x04, 0) /* T8 */ + MATRIX_KEY(0x00, 0x01, 0) /* T9 */ + MATRIX_KEY(0x02, 0x09, 0) /* T10 */ + MATRIX_KEY(0x01, 0x09, 0) /* T11 */ + MATRIX_KEY(0x01, 0x05, 0) /* T12 */ + >; + + linux,keymap = < + CROS_STD_MAIN_KEYMAP + MATRIX_KEY(0x00, 0x02, KEY_BACK) + MATRIX_KEY(0x03, 0x02, KEY_REFRESH) + MATRIX_KEY(0x02, 0x02, KEY_ZOOM) + MATRIX_KEY(0x01, 0x02, KEY_SCALE) + MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) + MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) + MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) + MATRIX_KEY(0x00, 0x04, KEY_PLAYPAUSE) + MATRIX_KEY(0x00, 0x01, KEY_MICMUTE) + MATRIX_KEY(0x02, 0x09, KEY_MUTE) + MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) + MATRIX_KEY(0x01, 0x05, KEY_VOLUMEUP) + >; +}; + +&mt6366codec { + mediatek,dmic-mode = <1>; /* one-wire */ +};