From patchwork Fri Sep 13 03:15:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianeng Ceng X-Patchwork-Id: 13802954 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 66551EEEC07 for ; Fri, 13 Sep 2024 03:15:30 +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: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=h6zUiGfEIYDkx/hYgEbvwsCBnNQajQQUpKSI0EzK4mA=; b=YwhkkoIWPGG5EEDc+vgrXQ97Ym zHm1lOP+3hJ/qf24GwLgn52kKtCrs69XER3fEogId46exkCXB7BbPXRcv7YdhRCqFbIeXQ03WxIyd c02JlR2kQmju/RQcpY0s11l6U1dMqn/pGoqJBAFwngufWCfrAYaQ4X7RP3RVUc496FT5IUPMXaLEt 8xofYWSBDAREsNfXIbIVozN/QkqlOXVOlDSKrBU6RWxOZ4mF2OiwmddLOVEoigRNl+kpW9bm9dW6o bE3lBaR52pap5Em3AENrykkNNITExcPeWIh1BwWPbgKvYtHrpox1WPJ6+T555040aMPjOTPt6udKr igUv5fsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sowmP-0000000Enpl-3KS6; Fri, 13 Sep 2024 03:15:29 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sowmM-0000000Enmw-2SeM for linux-mediatek@lists.infradead.org; Fri, 13 Sep 2024 03:15:28 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-207115e3056so16479705ad.2 for ; Thu, 12 Sep 2024 20:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1726197325; x=1726802125; darn=lists.infradead.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=h6zUiGfEIYDkx/hYgEbvwsCBnNQajQQUpKSI0EzK4mA=; b=bfJRXvkQLzOQf5NQj4yYwMpb+f7EYSOwmPt0+MoaCJVKu0aXJWrTxdaRuWf8wCDO/w sMaNbGJBpFiQGyuxVqaSLVVTA3bjfnYgbHjKwy2rbSGMhqlQ2r5nE4yeQAQny4rPk4El 5bTpsyGDBhuj3iQbnGLExZ4PUNEpnEJ471VDkPiKf8V8Q79Y5enrmuVWU4i2Y6fxM2Tg W/jfgvI6qeJNU6H7Khp7JCCrNfNa3CzAamCU6wLAjN71j/o+MQrGuDrzeOG5TouHqe8b xg2peczftf3sTiorx2t4UM4qzxgluz1NdPKgLlRv+In0Ubl/dVRaT6NdRnV+wiTkCGyA pv1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726197325; x=1726802125; 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=h6zUiGfEIYDkx/hYgEbvwsCBnNQajQQUpKSI0EzK4mA=; b=bh6HT5ZZaJouknZRMlMEJNeIMOLjX1byf+q3J8YuwXMB5Z7wWszI+5CetFpDUtTKX2 u8L7NKWHRf0uXr6OX8h5ec4cymkVPh4hyeU24WtJkH0FDhUAiRPlb//XbIPlNPSOzlIq 4BJC0VUSNhxpctho3y3h2oNVeceE+nDPtVVBah+Txly8dI/D8v9/89vX9IZCGNF/Qa0S 48wbbYePMQYaAMF0PEY2Mi4msg8Kg6USd7pmMfpKEyVxSXSyvVibvdRCX5ZjV69BK6wn bNBoSk28ca7q4tqsYbrKX7QJSjSaOYqrpIZLZp+JWpgjO5mGv7jAv2wyLGOpo7w0lhCz zJPQ== X-Forwarded-Encrypted: i=1; AJvYcCVIsNypaRxXoQWeSnQrorD/HAWXDBWXKSV8LXqXISAdhICJH1owr7mYQh7fcLhOFLh23NRFLLsIJM8ElI/HiA==@lists.infradead.org X-Gm-Message-State: AOJu0YzsSx8DvQ30afOPQc0UK9x1ngUAnqb0Xw/FHZfwqD+ROvBZ/nCL id+hcscejzlpo/FxLLQdgphIXrkK57YyvMAMKK1jTgG/hf/RX97A+p6NKHhlYRg= X-Google-Smtp-Source: AGHT+IGfp2jY6UmEP8FKaysHpZM1NFEX0xeU1jqUWEHtPLhIGrytFovZpI814k/JhlxOsRiHY/bnMA== X-Received: by 2002:a17:903:2341:b0:207:7952:e6d4 with SMTP id d9443c01a7336-2077952e862mr46149295ad.4.1726197325057; Thu, 12 Sep 2024 20:15:25 -0700 (PDT) Received: from zjn.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2076af45432sm20382305ad.91.2024.09.12.20.15.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 20:15:24 -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 v7 2/2] arm64: dts: mediatek: Add MT8186 Ponyta Chromebooks Date: Fri, 13 Sep 2024 11:15:05 +0800 Message-Id: <20240913031505.372868-3-cengjianeng@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240913031505.372868-1-cengjianeng@huaqin.corp-partner.google.com> References: <20240913031505.372868-1-cengjianeng@huaqin.corp-partner.google.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240912_201526_739253_C5DF10A2 X-CRM114-Status: GOOD ( 14.05 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: AngeloGioacchino Del Regno --- 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 */ +};