From patchwork Tue Oct 15 12:26:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengqiao Xia X-Patchwork-Id: 13836335 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 9FBABD21694 for ; Tue, 15 Oct 2024 12:40:50 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/XoNt4i5O7OlASnZwCet38LjSamye4aKCWat9uJ6wnA=; b=q/DAx/HmsPgVZW93E/ihFGKiKA UTQpRMGJh9swDlweG/dIMVcux7LFrlcGnpUjE5RwcH6HjBbYYuvNi1A88ywehWq62Yqfb3l4308+E sIJbDBrbmqdHq1+hME9aYW8FrIuW8BlhEIYjvkdidydwg/1IovEYARNyh4AqdMQGk+OQZhDb12ZLL 1lDJIgsDLJEbyYZf//iY4zRbvwD30B6Sh8xMWkdocJKKK8H2r6r7P42K0cR+fppVpq51W61a/D4aX ohNHlcmXotG5kcK+aBLfyot6IcQeeQguqWSNRmFdTP2i1x1VHZ0A0MSEJjQ5SpwFmJu6M0rBLyzve iXdDyxxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0gqv-00000008Cdi-3U5d; Tue, 15 Oct 2024 12:40:41 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0gd8-00000008A1D-0FdK for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 12:26:28 +0000 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2e2a96b242cso1015824a91.3 for ; Tue, 15 Oct 2024 05:26: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=1728995185; x=1729599985; darn=lists.infradead.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=/XoNt4i5O7OlASnZwCet38LjSamye4aKCWat9uJ6wnA=; b=rUCFVjBqPJJ3eUrMRXukH0ZVcStyTcEn/99KZUPBYiNVs9f6wMSHiAg7jOT6q4Ou83 hpRFSHSwq8Ra/WqbA/mF5ylCwrzB3g2Aya35T8oTWvUs7ZiUgRM5UEGOyEIthB/2V7Ca XfoILryIu5mJpnNC/Y2morf13s4P8aAgwu512sReros8cqtq9H5X4p1zxVKNOY7GUdhb 6GBoupU+UN4Oxw/eGOw2K0h5Dc0j+9taI60h8pL9NP86t8onGaa5ywtT+38pObZKILRp MzA85NVhbo7MhNCz1AaGfICeB8Lpko3dhRxhekw26tbwx9jpR6TE9OeDO1i4f7t9ho3B 4OaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728995185; x=1729599985; h=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=/XoNt4i5O7OlASnZwCet38LjSamye4aKCWat9uJ6wnA=; b=Hg32jsB2Xcl5xOfF4Je5d/Pr+4KiMwEQPf5RtolwG8+YomsTalsi1sa5x6i1DaqnKA fCMAhMyyfGVWe9yCaROGMJAVoEvBcvgwDPXCUKp8LBGzPZyAKIr/5elh5zmFTyOpkFNL BIKZgqO46+ACg2MsSDNnSsIMYrUIX9RZywOLL98Ed0EXUB8FqhzAtbD3t8IceMtd0wAT 6c5HVjbIjsqjDOaGGYJlvTUaaNM5T54kYjR57p00Hi51SEqkfK9lVjmufbluu4mJjHSd HjHyyrOrmra+gm3Yh0Kx+ZMDNB+vt8J0z8Y0cfpNgcnohRz1RxIOQI6PHhpY0ja/fJAF dAYA== X-Forwarded-Encrypted: i=1; AJvYcCUE9HOuTndN7NAwbx7ceygA18Fhd5fm7Ya/PFvA/TWK8vdSJRt6D0Ds6Kj6wAuILLaYOxY7GEL7TxXUgPXJyNYW@lists.infradead.org X-Gm-Message-State: AOJu0YztJ02OAbwe4qSFQOCuvHoLOQlN2LqkOgfgsMbTGtkQQvihwlfJ LACDdatSFFToRkHbrPD6Tz+Do0EAseqxsBRSukLEyTWXgaK69cmXlEVtCghSKR4= X-Google-Smtp-Source: AGHT+IFv7jUf52x1OapZhDKbF4Wm6PZ7vVJ7+vAWep9+WGnlVyBu3Fs9zTM29tVuAjlxWV3cuJMiLg== X-Received: by 2002:a17:90b:295:b0:2d8:be3b:4785 with SMTP id 98e67ed59e1d1-2e2f0d92341mr7180386a91.6.1728995185323; Tue, 15 Oct 2024 05:26:25 -0700 (PDT) Received: from ubuntu.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e392e8cdc7sm1592844a91.10.2024.10.15.05.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 05:26:24 -0700 (PDT) From: Zhengqiao Xia To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, hsinyi@chromium.org, rafal@milecki.pl, macpaul.lin@mediatek.com, sean.wang@mediatek.com, Zhengqiao Xia Subject: [PATCH v1 1/3] dt-bindings: arm: mediatek: Add MT8186 Chinchou Chromebook Date: Tue, 15 Oct 2024 20:26:06 +0800 Message-Id: <20241015122608.24569-2-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20241015122608.24569-1-xiazhengqiao@huaqin.corp-partner.google.com> References: <20241015122608.24569-1-xiazhengqiao@huaqin.corp-partner.google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_052626_131416_DB08BDF9 X-CRM114-Status: UNSURE ( 9.19 ) 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 an entry for the MT8186 based Chinchou Chromebook, also known as the ASUS Chromebook CZ12 Flip (CZ1204F). Signed-off-by: Zhengqiao Xia --- .../devicetree/bindings/arm/mediatek.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index 1d4bb50fcd8d..49188382f6c0 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -239,6 +239,32 @@ properties: - enum: - mediatek,mt8183-pumpkin - const: mediatek,mt8183 + - description: Google Chinchou (ASUS Chromebook CZ12 Flip (CZ1204F)) + items: + - const: google,chinchou-sku0 + - const: google,chinchou-sku2 + - const: google,chinchou-sku4 + - const: google,chinchou-sku5 + - const: google,chinchou + - const: mediatek,mt8186 + - description: Google Chinchou (ASUS Chromebook CZ12 Flip (CZ1204F)) + items: + - const: google,chinchou-sku1 + - const: google,chinchou-sku3 + - const: google,chinchou-sku6 + - const: google,chinchou-sku7 + - const: google,chinchou-sku17 + - const: google,chinchou-sku20 + - const: google,chinchou-sku22 + - const: google,chinchou-sku23 + - const: mediatek,mt8186 + - description: Google Chinchou (ASUS Chromebook CZ12 Flip (CZ1204F)) + items: + - const: google,chinchou-sku16 + - const: google,chinchou-sku18 + - const: google,chinchou-sku19 + - const: google,chinchou-sku21 + - const: mediatek,mt8186 - description: Google Magneton (Lenovo IdeaPad Slim 3 Chromebook (14M868)) items: - const: google,steelix-sku393219 From patchwork Tue Oct 15 12:26:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengqiao Xia X-Patchwork-Id: 13836336 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 8166AD21690 for ; Tue, 15 Oct 2024 12:42:20 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=t/11pqZymKr7g6nOYp4Yw37pWebG9puWo0ZsuE06uk8=; b=OXh6W9hO1q5t5CwYqAp54qX4KQ KsLQ+dVaRtqiZ++Fcz3gafxtMs/YsTZYX0VJ5+7qhldVdbw5HZpSaJfha58KC/yYaeHmxdNIxV+MJ qu6/15xBOpSpPpsU8c+iQ/FBJZ7oUBcy1BhyOK0530IOpGlXBNrtF7/e75xFDtGFHTQa9BarJFRep eY0vStIVgE3/IpQDeQmMC9GhGTCNApbwPUZf4VMTO/cdHsJfbEu9RbmeIUxPKSurKByGK09oetQX8 rbwlBxIvo6sn1OsFC2iMuXntdsOse7UQ5mgMmjwKkzujLyhIOT77ZHkh4VHaH6PH04lDQStVraqU9 rwbfaEKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0gsK-00000008CxD-1hzM; Tue, 15 Oct 2024 12:42:08 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0gdB-00000008A3N-1jZB for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 12:26:32 +0000 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2e2af4dca5cso1061266a91.3 for ; Tue, 15 Oct 2024 05:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1728995189; x=1729599989; darn=lists.infradead.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=t/11pqZymKr7g6nOYp4Yw37pWebG9puWo0ZsuE06uk8=; b=XaRNqtb6DZizLcOGnMjl1vgQH5wW898GgiVZ2b48D/s03KgQTDxJuhq8WPEpBWKUFn nONmarBZpU+X4Fj4VeGZJaAHUUHrqcrbJ3MAD3mpydl0S46Sf/tgXLFIfQdvRQ3hx61K Lj8NpWRV/nalvAtuJ/tpPduf+azFVVq55liNxivliFIg1zQlc24tP+KIisJ/RiRPGF9S g3NTuUMWk1i3etIRgkJ+XPmuQq3qCr1bopldAUaZ7OsoTNNLfMI7t0wZdnMoGaP2RVy4 XWjq+EzXXBl++33d6meyqeMaIZftIK1kbAJDLk3Sw03VrO0JpZJTNqNX8B8GHcjjC2eB TyCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728995189; x=1729599989; h=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=t/11pqZymKr7g6nOYp4Yw37pWebG9puWo0ZsuE06uk8=; b=ejhjSpQipKiRMQFNUehnRmdaBxq0Z71fJ6XtLAPwIF3LS/rSwwf0QGguVb/z7igob6 07RmwuDrEMTTkwy2pR3Oh/4h5x2NOsJbRpp/7HkflphqRqta50WYrsn55lYytVnQaIfA nhdZ9+EvjvyHMyf3pHoQ1z5WeoGQXKrO5GWqWMDLd7pVyKStX2KtWq8c6iQ1hcG6Cef0 n86dIeZV4Milye5E06Dvl/8FopzSogkzo3zkFj2exeyCx8mxUMdoQZnLvAHm0IGYQ80e rtAqGyoEJhQtAxjYquxTmpXfUP5GSuDnmdg1C+M9tmYahJG2ZVxQHLkoojwQsJGDQOm4 HJZQ== X-Forwarded-Encrypted: i=1; AJvYcCXL1Cr5V9atXr7u/xwK6/BcyXzS/HEq4w6Z9cHcii9TKtPOyXpJ02E3B+WE40ZANZOUduh4lLQXoFmGXQ+X4/be@lists.infradead.org X-Gm-Message-State: AOJu0YzO9vdw9yHlswPg1NYT7e6mAcSo2W8a4KAJgSoCd0/Zll53Cuj2 IqKYWW404KgHT+dVBzvEuHqCxaKGlK2tPxtFOfk21c2vnaoT9hTASsFhnexflLY= X-Google-Smtp-Source: AGHT+IFvSSuObe07Qyc3NO61sQNyy2BkFUJepr6gs/GV/cM1sTzl/Zojbm4+d07EFke3PiTwamVD5A== X-Received: by 2002:a17:90a:fe8a:b0:2e2:ebce:c412 with SMTP id 98e67ed59e1d1-2e2f0a2fb4dmr7416434a91.2.1728995188624; Tue, 15 Oct 2024 05:26:28 -0700 (PDT) Received: from ubuntu.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e392e8cdc7sm1592844a91.10.2024.10.15.05.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 05:26:28 -0700 (PDT) From: Zhengqiao Xia To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, hsinyi@chromium.org, rafal@milecki.pl, macpaul.lin@mediatek.com, sean.wang@mediatek.com, Zhengqiao Xia Subject: [PATCH v1 2/3] arm64: dts: mediatek: Add MT8186 Chinchou Chromebooks Date: Tue, 15 Oct 2024 20:26:07 +0800 Message-Id: <20241015122608.24569-3-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20241015122608.24569-1-xiazhengqiao@huaqin.corp-partner.google.com> References: <20241015122608.24569-1-xiazhengqiao@huaqin.corp-partner.google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_052629_492714_AADA0A84 X-CRM114-Status: GOOD ( 15.69 ) 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 MT8186 chinchou, known as ASUS Chromebook CZ12 Flip, is a MT8186 based laptop. It is based on the "corsola" design. It includes chinchou and chinchou360, including LTE, stylus, touchscreen combinations. Signed-off-by: Zhengqiao Xia --- 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 | 296 ++++++++++++++++++ 5 files changed, 379 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..543dc3dd5324 --- /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 2024 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..c53fd42b7488 --- /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 2024 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"; +}; + +&gpio_keys { + status = "disabled"; +}; + +&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-sku16.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou-sku16.dts new file mode 100644 index 000000000000..b6f8eb37c384 --- /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 2024 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", + "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..1ecb51a00e53 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-chinchou.dtsi @@ -0,0 +1,296 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2024 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola.dtsi" + +/ { + /delete-node/ speaker-codec; + + 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>; + }; + + 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>; + }; +}; + +&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>; + 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>; + analogix,lane0-swing = /bits/ 8 <0x70 0x30>; + analogix,lane1-swing = /bits/ 8 <0x70 0x30>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + 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 { + /delete-node/ trackpad@15; + + touchpad@15 { + compatible = "hid-over-i2c"; + reg = <0x15>; + interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_LOW>; + post-power-on-delay-ms = <10>; + hid-descr-addr = <0x0001>; + vdd-supply = <&pp3300_s3>; + wakeup-source; + }; +}; + +&i2c5 { + clock-frequency = <400000>; + /delete-node/ codec@1a; + + 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>; + }; +}; + +&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>; + }; +}; + +&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*/ + >; +}; + +&mmc1_pins_default { + pins-clk { + drive-strength = ; + }; + + pins-cmd-dat { + drive-strength = ; + }; +}; + +&mmc1_pins_uhs { + pins-clk { + drive-strength = ; + }; + + pins-cmd-dat { + drive-strength = ; + }; +}; + +&pen_insert { + wakeup-event-action = ; +}; + +&pio { + anx7625_pins: anx7625-pins { + pins-int { + pinmux = ; + input-enable; + bias-disable; + }; + + pins-reset { + pinmux = ; + output-low; + }; + + pins-power-en { + pinmux = ; + output-low; + }; + }; + + 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; + }; + }; + + touch_pin_report: pin-report { + pinmux = ; + output-low; + }; +}; + +&sound { + compatible = "mediatek,mt8186-mt6366-rt5650-sound"; + mediatek,adsp = <&adsp>; + /delete-property/ audio-routing; + /delete-node/ hs-playback-dai-link; + /delete-node/ spk-share-dai-link; + /delete-node/ spk-hdmi-playback-dai-link; + /delete-node/ hs-capture-dai-link; + playback-codecs { + sound-dai = <&it6505dptx>; + }; + + headset-codec { + sound-dai = <&rt5650>; + }; +}; + +&wifi_enable_pin { + pins-wifi-enable { + pinmux = ; + }; +}; + +&wifi_pwrseq { + reset-gpios = <&pio 51 GPIO_ACTIVE_LOW>; +}; From patchwork Tue Oct 15 12:26:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengqiao Xia X-Patchwork-Id: 13836339 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 88C70D21690 for ; Tue, 15 Oct 2024 12:43:48 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XkkT1YK08fvvBnsXdekTj1dlk1F6WdJ88gbC//Uv2Rg=; b=2+EmevQhCTYscAavJ0b+WAu843 5X9hVMtl/kRbdWYKPmviDuUZ8k7N30as/1UaF3IguTBM8yQvURrbi2stQW6OzIxFap5X7vkPPvkDO dOWKigP6O6xmClnM8MVWuM3/uhNowVU1POJ2EeN2Bw7xma3+UWCvJ1UMno/4yuHgl8Pl4xrdLSMwG njq16Y/3Pz9TqMSMMUhbmYhN08JCQxwF0D+QiuLLifc+1FhGlbY+UUOdCticSYwhd50vbYtD89v9j GMSCU55crf1+84hjXEPCUP4aDE5gHoUqCdQrZEPZhEdnLXEGb/rIZlmYJN8u+3zB5K91mxHHY6nMq D7YY4o+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0gtn-00000008DRX-1MrL; Tue, 15 Oct 2024 12:43:39 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0gdE-00000008A5G-0gcc for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 12:26:33 +0000 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2e2c2a17aa4so1064326a91.0 for ; Tue, 15 Oct 2024 05:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1728995191; x=1729599991; darn=lists.infradead.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=XkkT1YK08fvvBnsXdekTj1dlk1F6WdJ88gbC//Uv2Rg=; b=dtVbUVDU06Ck45B+0mWOkE2iW2v9PRXsLbzTygoPsiTUP0doTW55/sAa75f/8F0DZE KtacbsT+OmBsJSx6V0NG+1KW1lePLaGNF4Mk75E5yyLXJzcXRM2va9pf6KoKmYuIMzLt 8+74kV8hlXWlVQcA6Sw8hRg9RFgOKUluH2l4KKwGU77yFleNoRBoIJx8ZTZ1F1+jC41y 1z2RW2nx3REkeaKe+X0hHq5lQb13bSKTopISOhWf7aCc7aD9oq4IwjH4nefCKpyZmzcg mVqX6fWAAH9Scs886YgEUXIC85ll7dZIMWnz3HDUvqNTIY21xatyld7FYjUBgrxLx6Bx 39cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728995191; x=1729599991; h=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=XkkT1YK08fvvBnsXdekTj1dlk1F6WdJ88gbC//Uv2Rg=; b=LvL7a4/AtoHLE554sN4vpbGi3yvUt+iase28O/23mVhOTGuehVm1nLWfHbetKv+OzP buCkj8Ts0wTmUJyiMRK1bvcpIs7hh6YPOmFNudqNS1EWX2CYTeKxO2ZBLWOKNBhIRAI7 HknTuYRYq2RsXETKk/Qy1wR7zAFzwI3yOKrB7UV8XFap9AveiGqnPoCnVlHCsgJiO7zh 8Wp3GJLpaD/kXMCm8RlI9Ocf6uwMdIDSXjqi4HUO50AigbDR1s4oOY9nnvaoDgw5AYZp dYvGTCdMVehMAlQuHAG87hU8n/P7Q+i+j2eGzCWgBp8ZF9Qj0NxjD6t7dTpZhhPOPU1+ QhTg== X-Forwarded-Encrypted: i=1; AJvYcCVDQPEWZfpr25dQWh/6zpHYDxYZ9i60oQgIuJjMNRz5rNVEXmbUJSl4WgiHcixN3MFP52DdSOrZhELiDj8Oa1rV@lists.infradead.org X-Gm-Message-State: AOJu0YzCnAQ39SkRzxyVF7eS96u0LcP4NPrU6Q2N4nERri9RnRKN4sc6 /4JrCQR36olRoE6ItH+YIjGPeB6Qvv2IzYsVNZru9AmQNCv/gv9palGD/4VMp+s= X-Google-Smtp-Source: AGHT+IFvZj2VfZqljCqw3jma49Pp6xcmlucmNJ1sekFJZrx2haRRMxJLdzbrnRlngELlYtE94RuvZw== X-Received: by 2002:a17:90b:1056:b0:2e2:c423:8e16 with SMTP id 98e67ed59e1d1-2e2f0a2fb66mr7652523a91.1.1728995191585; Tue, 15 Oct 2024 05:26:31 -0700 (PDT) Received: from ubuntu.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e392e8cdc7sm1592844a91.10.2024.10.15.05.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 05:26:31 -0700 (PDT) From: Zhengqiao Xia To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, hsinyi@chromium.org, rafal@milecki.pl, macpaul.lin@mediatek.com, sean.wang@mediatek.com, Zhengqiao Xia Subject: [PATCH v1 3/3] arm64: dts: mediatek: Add exton node for DP bridge Date: Tue, 15 Oct 2024 20:26:08 +0800 Message-Id: <20241015122608.24569-4-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20241015122608.24569-1-xiazhengqiao@huaqin.corp-partner.google.com> References: <20241015122608.24569-1-xiazhengqiao@huaqin.corp-partner.google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_052632_264978_308CA562 X-CRM114-Status: GOOD ( 10.69 ) 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 exton node for DP bridge to make the display work properly. Signed-off-by: Zhengqiao Xia --- arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi index 682c6ad2574d..943837f20377 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi @@ -424,6 +424,7 @@ ovdd-supply = <&mt6366_vsim2_reg>; pwr18-supply = <&pp1800_dpbrdg_dx>; reset-gpios = <&pio 177 GPIO_ACTIVE_HIGH>; + extcon = <&usbc_extcon>; ports { #address-cells = <1>; @@ -1656,6 +1657,11 @@ try-power-role = "source"; }; }; + + usbc_extcon: extcon0 { + compatible = "google,extcon-usbc-cros-ec"; + google,usb-port-id = <0>; + }; }; };