From patchwork Mon Sep 9 02:31:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianeng Ceng X-Patchwork-Id: 13795768 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 70B33EB64DE for ; Mon, 9 Sep 2024 02:32:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D3B9510E2A4; Mon, 9 Sep 2024 02:32:07 +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="hxeT2MK6"; dkim-atps=neutral Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2981610E2A4 for ; Mon, 9 Sep 2024 02:32:06 +0000 (UTC) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2d8a7c50607so2513697a91.1 for ; Sun, 08 Sep 2024 19:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1725849126; x=1726453926; 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=Ai6i40gtLi8KkfaAdRGfJKbTUS/9SVUXMlQmPGbzRSI=; b=hxeT2MK6HHH9LS/NVqvEAe1WQ+f7blVI16JnsENO03evGv9c15GyF/u9eYNGqHzjSl hjiph8zsfVPqkGhCEztsk+k+86w+GZO8JBiPPImRZZB9PKdZZJ8dJ2d4MbWjIFAViVQI JCqF//bnigKONeLJCgZoq7YdSLmvwd5w+3j8FA0PK18pLTfFcXvuYtpjTLemRYtvAUcd VSbTsOmtHTtfeSb7ORJScNHOJCIpg5ifaoihY+hSieNcbBn13SxnVC2+NomqZOgUZVZv yuMNq/IsIdkHn/Y5kCNYOzG/n2wysvaAeTQpVH6pFITTI1UiGxHfl+rCDsPi58el+e9B xjhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725849126; x=1726453926; 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=Ai6i40gtLi8KkfaAdRGfJKbTUS/9SVUXMlQmPGbzRSI=; b=sTBvq5li13zkODyGbIdhQT55NyXJtZq8tg8G7fefofLnw6JXmrA9+LtSzgdhKK31H+ 6hFCkakoNVH+4XYRZFq951iEmzbxBJqBtMHtL1jJIycAzkhzPqLyBFhMjCCgMLO/QkpY Ehe8CRCtqMU6nOcLb3Iyc+x86rzoG82/mIhoS/FLAeEvIj4i52ilcv6VZpnItLPDwMw3 X5/AfGkeTN1eATJyegHQmpjo2w71rIFlUdBy+payGSlIa+n7kIfdnfxiupaisT84dcJ5 6ADCMUkUafnlqUksfmllBzE04p5kPAGVH7QcyFFwyukcBEVuxsbhFKcgKIa1P8GBsnxD itTg== X-Forwarded-Encrypted: i=1; AJvYcCXDH9oZP6KhFVwYGXaS2aciFmhmVoeAPtevIsZCFytYavaqpbIrcEYPCDI8kLsNseaNmB4C40anezk=@lists.freedesktop.org X-Gm-Message-State: AOJu0YxyAvqxjXFi6XuAphvH1h+HrQwJUtImHog4ulLjK/Mgg1pFUVRZ kzq2Ghl8yZ9YU/qtiBuEwpseAFWaVBUOEZOVSUEETGdWgnIGrthm23TC7OQpe34= X-Google-Smtp-Source: AGHT+IGgNx7WABZhDETOCChw3HAPeP3YssU06NrA2tHr9bsZ2XDn3kY71U0vqFahzzAqH5lBWek1ow== X-Received: by 2002:a17:90b:196:b0:2d3:c664:e253 with SMTP id 98e67ed59e1d1-2dad4ef6033mr13296275a91.10.1725849125363; Sun, 08 Sep 2024 19:32:05 -0700 (PDT) Received: from zjn.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2db049873b0sm3323645a91.47.2024.09.08.19.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 19:32:05 -0700 (PDT) From: Jianeng Ceng To: hsinyi@chromium.org Cc: angelogioacchino.delregno@collabora.com, cengjianeng@huaqin.corp-partner.google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, hsinyi@google.com, knoxchiou@google.com, krzk+dt@kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, robh@kernel.org Subject: [PATCH v5 1/2] dt-bindings: arm: mediatek: Add MT8186 Ponyta Chromebook Date: Mon, 9 Sep 2024 10:31:47 +0800 Message-Id: <20240909023148.1677936-2-cengjianeng@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909023148.1677936-1-cengjianeng@huaqin.corp-partner.google.com> References: <20240909023148.1677936-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" Ponyta is a custom label Chromebook based on MT8186. It is a self-developed project of Huaqin and has no fixed OEM. Signed-off-by: Jianeng Ceng Acked-by: Krzysztof Kozlowski --- Changes in v5: - PATCH 1/2: Remove sku2147483647. - Link to v4:https://lore.kernel.org/all/20240906085739.1322676-2-cengjianeng@huaqin.corp-partner.google.com/ Changes in v4: - PATCH 1/2: Add more info for Ponyta custom label in commit. - Link to v3:https://lore.kernel.org/all/20240904081501.2060933-1-cengjianeng@huaqin.corp-partner.google.com/ Changes in v3: - PATCH 1/2: Modify lable to label. - Link to v2:https://lore.kernel.org/all/20240903061603.3007289-1-cengjianeng@huaqin.corp-partner.google.com/ Chage since V2: - No change. --- Documentation/devicetree/bindings/arm/mediatek.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index 1d4bb50fcd8d..43a824bee1b6 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -257,6 +257,16 @@ properties: - const: google,steelix-sku393218 - const: google,steelix - const: mediatek,mt8186 + - description: Google Ponyta (Custom label) + items: + - const: google,ponyta-sku0 + - const: google,ponyta + - const: mediatek,mt8186 + - description: Google Ponyta (Custom label) + 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 Mon Sep 9 02:31:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianeng Ceng X-Patchwork-Id: 13795769 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 818ABEB64DE for ; Mon, 9 Sep 2024 02:32:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4B4E10E2B5; Mon, 9 Sep 2024 02:32:13 +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="weYmHNT6"; dkim-atps=neutral Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 21E6F10E2A6 for ; Mon, 9 Sep 2024 02:32:12 +0000 (UTC) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2da55ea8163so2705207a91.1 for ; Sun, 08 Sep 2024 19:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1725849131; x=1726453931; 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=D+b6jx+f7kvgJlvo0cxl6YbQGHVpI7BdUKY8T3RF60g=; b=weYmHNT6yluf16kplgYjudJb7xHoeAyPpIzH4CeNJfrwAJCIcoz5b5U1HeTuvXMajY o9G1d2XIP4dGZgywVGrEhbznTprsSorYKUUX/1F8g2tfR7uyZjvDkzpW1QKQE5NP8vAP Iy/CwndRKq4a+48t+a95l9mzokqA4EuOYEn1CYuylQdHxDztcccZdQmVu+rKrYi3vmzi HqENQuJ0GVFyJOa+fGWwHM4n6uJuLnEN6Ig3ttf2NaGVzN4tNJ7oP7RuMr8L+44puaIK /m1z1RNVqjqycYB6uMi0BY/VeSbCdV2iM+CdGDE3uSGYq7ueKigUuddRCR3pWiLa929o JNew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725849131; x=1726453931; 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=D+b6jx+f7kvgJlvo0cxl6YbQGHVpI7BdUKY8T3RF60g=; b=Mr9KTmH3B9ENP6QO1fgnXLqfWCOs+iOIZp3NFy/rtD0Qsvb9neHdH40690Db5Nwmno rbSXh81RCJUNFZkUQP4GNGWCUhQt9hykwDzL7sl6RZcI2HbgR6EXKsqS5bSIz5yZVU4c mb0Gi6fZzf8yKfJS89k50gOumIuBhCOMpsvBo45GQJi/prHwb7CvwZtU3fw1e7gknKg5 dctpFqc6yYFZ08HmgbUT9Mq5njf04Zfe92n7K/kG7PLIxL+2BIrXSPAFefZqYzxddypz 2LToT/GpsTbSE3nS/uKyQSVYwZRYD04Y88ZblyG9S/p2swZUTwc378sgIp5bZVwBssn/ EPEg== X-Forwarded-Encrypted: i=1; AJvYcCU/m7EQQlNG/fLxItvYkFvRu9v7b4aEADOZoZ6If9HU9ujITV/eoI8KaJRlDJPlEyRxi8kaMJ8Dn4A=@lists.freedesktop.org X-Gm-Message-State: AOJu0Yz9YkuetYf17bXTzvZKa2GyciOpNoeCulP7X8ea6HW2e0xGoGF8 cwxkL87/VUr6Ogp68T8sr3vrgtIu+ZSP8nsjHa0/HdvEfLelyrgkebwM1tu6h4Q= X-Google-Smtp-Source: AGHT+IGEOgbKiPjg7KMzWiGWFE1ab3WEbtq7A2HIs6fso6eVdsQtvFeAkU3qUHkWy4pOGlpeWdtiKg== X-Received: by 2002:a17:90a:668b:b0:2d3:d8c9:780e with SMTP id 98e67ed59e1d1-2dad50ff80emr9220988a91.20.1725849131388; Sun, 08 Sep 2024 19:32:11 -0700 (PDT) Received: from zjn.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2db049873b0sm3323645a91.47.2024.09.08.19.32.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 19:32:11 -0700 (PDT) From: Jianeng Ceng To: hsinyi@chromium.org Cc: angelogioacchino.delregno@collabora.com, cengjianeng@huaqin.corp-partner.google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, hsinyi@google.com, knoxchiou@google.com, krzk+dt@kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, robh@kernel.org Subject: [PATCH v5 2/2] arm64: dts: mediatek: Add MT8186 Ponyta Chromebooks Date: Mon, 9 Sep 2024 10:31:48 +0800 Message-Id: <20240909023148.1677936-3-cengjianeng@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909023148.1677936-1-cengjianeng@huaqin.corp-partner.google.com> References: <20240909023148.1677936-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 label, is a MT8186 based laptop. It is based on the "corsola" design. It includes LTE, touchpad combinations. Signed-off-by: Jianeng Ceng --- Changes in v5: - PATCH 2/2: Remove sku2147483647. - Link to v4:https://lore.kernel.org/all/20240906085739.1322676-3-cengjianeng@huaqin.corp-partner.google.com/ Chage since v3: - No change. Changes in v2: - PATCH 2/2: Modify the dtb name without rev2. - Link to v1:https://lore.kernel.org/all/20240902125502.1844374-1-cengjianeng@huaqin.corp-partner.google.com/ --- arch/arm64/boot/dts/mediatek/Makefile | 2 + .../mediatek/mt8186-corsola-ponyta-sku0.dts | 23 ++++++++++ .../mediatek/mt8186-corsola-ponyta-sku1.dts | 27 ++++++++++++ .../dts/mediatek/mt8186-corsola-ponyta.dtsi | 44 +++++++++++++++++++ 4 files changed, 96 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..f6448e91436a --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku0.dts @@ -0,0 +1,23 @@ +// 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", "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 */ +};