From patchwork Sat Sep 14 06:31:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianeng Ceng X-Patchwork-Id: 13804271 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 264E8FC619C for ; Sat, 14 Sep 2024 06:31:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A172810E1C1; Sat, 14 Sep 2024 06:31:39 +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="k45myYcR"; dkim-atps=neutral Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTPS id E0CA510E1C1 for ; Sat, 14 Sep 2024 06:31:38 +0000 (UTC) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-7cf5e179b68so2357731a12.1 for ; Fri, 13 Sep 2024 23:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1726295498; x=1726900298; 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=ZMbpfoBsozAlPEt45oixhx4qB7QHE0ziqmDEI/ywgss=; b=k45myYcRFa69EGlcw1o2tr1B9I6Vwj2YhJXWJwpH8TFkF1yTjOuo/6JvfyqbToYVmv OwzxQG1mCROMgkADItdCcDgL3X39Z5BPxnQFck35zV5h1Z3EQ/qznItUTvtHdRvt0JEe 8bA7WsQNl7NLt4s2Qp0Km6BNbuTbZGrtA+LtckBO/vo72Rr9mlSHJi2lXcEJI3nKelBo iPIem3ss7eW5xTc94RdoFpfb9k5j1yiJx2xrRia9XDYA8DdpH1HenBaabAvfFQRkImXz uPsoBQPSlohvgjTReWeZzBRY27GPA8CEx5riMg2fRiroTt8wlPSNAsAzARY51LE6Qw29 cTmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726295498; x=1726900298; 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=ZMbpfoBsozAlPEt45oixhx4qB7QHE0ziqmDEI/ywgss=; b=kyWEcni1eePXj59ZAOqBzyaESjOkRbFXWQxCMjdtF7LlXCJ0tfBVchwaIDU1069LkN 2v1SSSgEzSp+cR0gHnWDbWEZRSmffM54x4uF362Rz02jqLwBvnSCbM6aWexnzAz1q8hX W4xn2hx3lfliHQCC3xGtYTnKzH3OMrQ0Og7kHOXq/Jo98Yse2qaWQJ61XbbfM59uvRHE A4jVXXVOWczkBentq75NG9k0CKMOIPdrQfa8Vz6tUCIUFn1FI0BoRCJVoHOuwH5dDnrQ A2Nsx27hwEMQft2OVfUFuqFZcquz6Q8TcdsDpeRm2So4yP/lJIylBIGM32qjB+csql9v MoGQ== X-Gm-Message-State: AOJu0Yyb45VETPkb0XD6uxSjrzRu6H9xFJt8T1NEkAQbGVP7mgGGdDOt 0mKrNfcGVLY2Z8zprmZ1XaXTtBFanVZz9CJKFh0BI9KWcuCPK9hhuwm/45vqoBhd1bzwf4jcv6u w X-Google-Smtp-Source: AGHT+IGycpetak1pWQ8TZomDKaTDzd4/oHu4i8ppeV0iKcr0nagXoU73WEZHK3VSlahquUT08PKg5w== X-Received: by 2002:a05:6a21:328e:b0:1c6:9a3b:ba44 with SMTP id adf61e73a8af0-1cf5e21aeddmr18019343637.25.1726295497922; Fri, 13 Sep 2024 23:31:37 -0700 (PDT) Received: from zjn.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db4990cebbsm599216a12.37.2024.09.13.23.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 23:31:37 -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, linux-mediatek@lists.infradead.org, Jianeng Ceng , Krzysztof Kozlowski Subject: [PATCH v8 1/2] dt-bindings: arm: mediatek: Add MT8186 Ponyta Chromebook Date: Sat, 14 Sep 2024 14:31:21 +0800 Message-Id: <20240914063122.1622196-2-cengjianeng@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240914063122.1622196-1-cengjianeng@huaqin.corp-partner.google.com> References: <20240914063122.1622196-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. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski Signed-off-by: Jianeng Ceng Reviewed-by: Matthias Brugger --- Changes in v8: - PATCH 1/2: Remove custom label. - Link to v7:https://lore.kernel.org/all/01020191ea98a643-2d0be5d1-e00b-48e0-b823-bfe2c65b0d00-000000@eu-west-1.amazonses.com/ Chage since V6: - No change. 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..88f50989ba3f 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 + items: + - const: google,ponyta-sku0 + - const: google,ponyta + - const: mediatek,mt8186 + - description: Google Ponyta + 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 Sat Sep 14 06:31:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianeng Ceng X-Patchwork-Id: 13804272 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 23494FC619A for ; Sat, 14 Sep 2024 06:31:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9734110E291; Sat, 14 Sep 2024 06:31:50 +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="Avc7eyWz"; dkim-atps=neutral Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3632010E299 for ; Sat, 14 Sep 2024 06:31:50 +0000 (UTC) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718a3b8a2dcso1231225b3a.2 for ; Fri, 13 Sep 2024 23:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1726295510; x=1726900310; 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=RMDclbtx7gHhtYQ7pcwGHJBdL790wexMa87Hv1rL3aE=; b=Avc7eyWzc6QYUZGc315mN7PC8XH5aa9ohMFrt0oJ6wlJQ9hGAvC5C+T4WC74CR/pNS zDuYZC5eurQYkWjwhQ/bh1D+39N/LVIWa31Zz9b/YTYe8eQrWhGf3K6X27qDcw9890Za 9Ityw7Yd3vOXeL/orN5Hz3FTqASFi2oW17gzPJBXdCRxcroAbewdSjOHK0iTKuMJY90Z irDFlrEydrLfUeXZ5XaQXSZ09xBlZQsCCH/2TpMxj4X5QPWoCe8QHShjxFvgdXNZU49f azPv+8AaABDg9ySPBrx8+w6lIQqBkVoOl8Qv2QbsFW2vLawXU2XLEIEzyUH+osjRPM5O yx+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726295510; x=1726900310; 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=RMDclbtx7gHhtYQ7pcwGHJBdL790wexMa87Hv1rL3aE=; b=dahgJA54RHx8SNAjL3pPLGyQy7ZHmEra/2vOAhs8koZhmCid0ZGKSdEK6RdcOXGAun hb2F4sRN28+gRuhyi6n1VUrQ5FOgDUP6ngwQe/eHCxAdu9bp228pFt/xik1kyoo+ymZg s3Mmwk3AT2O8RD8rvd74jupJoJTttc1kUbh8PzBgJMlSF1s8k4/0SkrhyVLJlX4q38TG Xo5xEX0PXiL8Qb/WTyC6RnkBr7C8DpquNU4eLw/wokjFfI0YSKgp5oXcvJ1k1Zy6YU/8 CzYQ8u23rtvIoWgb3m3WUbIk+ItzKHI/lw6jI266T6sXQNKpRtjPHTR8TGGw5iy9X4f7 YimQ== X-Gm-Message-State: AOJu0YwEYHi4a0RweuQzbvPyekoBk8M7kwPIj09/U4XNinOi90dgd/qr mlA88IQjg4b1L8xis3GBgZ3golmFj4+h6ykBNrf16JomEtgMEAm1IB33X6bp0KY= X-Google-Smtp-Source: AGHT+IGsok1vDAZ/mi760URrjlrejrK4cZ0oz7PvT67mcNxyXmewLZnIj+/X60ao6Owm7NY6ot6Hmg== X-Received: by 2002:a05:6a20:304a:b0:1d1:1795:4b43 with SMTP id adf61e73a8af0-1d117954cb8mr4571669637.26.1726295509521; Fri, 13 Sep 2024 23:31:49 -0700 (PDT) Received: from zjn.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db4990cebbsm599216a12.37.2024.09.13.23.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 23:31:49 -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, linux-mediatek@lists.infradead.org, Jianeng Ceng Subject: [PATCH v8 2/2] arm64: dts: mediatek: Add MT8186 Ponyta Chromebooks Date: Sat, 14 Sep 2024 14:31:22 +0800 Message-Id: <20240914063122.1622196-3-cengjianeng@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240914063122.1622196-1-cengjianeng@huaqin.corp-partner.google.com> References: <20240914063122.1622196-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 is a Huaqin board based on the Corsola board design with the addition of LTE connectivity through usb integrated module. SKU0 with LTE. SKU1 without LTE. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Jianeng Ceng --- Changes in v8: - PATCH 2/2: Change the commit about ponyta. - Link to v7:https://lore.kernel.org/all/20240913031505.372868-3-cengjianeng@huaqin.corp-partner.google.com/ Changes in v7: - PATCH 2/2: Remove prototype sku. - PATCH 2/2: Disable the other trackpad to enable one of them. - Link to v5:https://lore.kernel.org/all/20240909023148.1677936-3-cengjianeng@huaqin.corp-partner.google.com/ Changes in v6: - No change. 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 | 18 ++++++++ .../mediatek/mt8186-corsola-ponyta-sku1.dts | 22 ++++++++++ .../dts/mediatek/mt8186-corsola-ponyta.dtsi | 44 +++++++++++++++++++ 4 files changed, 86 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..986498af4c70 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku0.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-ponyta.dtsi" + +/ { + model = "Google Ponyta sku0 board"; + compatible = "google,ponyta-sku0", "google,ponyta", "mediatek,mt8186"; +}; + +&i2c2 { + trackpad@15 { + status = "disabled"; + }; +}; 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..ff5eea0ddeb4 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-ponyta-sku1.dts @@ -0,0 +1,22 @@ +// 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 { + trackpad@2c { + status = "disabled"; + }; +}; + +&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 */ +};