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: 13836320 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 A8B20D21690 for ; Tue, 15 Oct 2024 12:39:16 +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=G8r3JSzI0ZQE3Fc4Kfecx9ME/r ThEgzi/Hlx85Xg+e4lDOLKaIhPd3W07JuRnL26e8oS9KIsL9+8HY55eC0MIhSHl2/ksqVEJusaypt bxYtyuCTAYPchsGY7Okkp6jaDOclTOk89I2kGMBhWT+fTboP9yGPh2yEawWVxQhRWWdoB5vkW/A2b VAYPJxyDH23SJGsO2X4E8kn3fdG1U4USUx3iGlFbTfMwBsdgponzVzs9ALjDO8CwZLiVQA0Y9yvsP thXNOLudT+IpGcqURs5hFizlkFjV5wJiJk5rfI0P+w2k9/r+/R8TG3YdcjvyerSRXSPUW+1K28MWX HZmJDc9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0gpX-00000008CIU-2xt9; Tue, 15 Oct 2024 12:39:15 +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-00000008A1E-0Fgr for linux-mediatek@lists.infradead.org; Tue, 15 Oct 2024 12:26:27 +0000 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2e2d83f15f3so947101a91.0 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=sxlTUH5MEbxYGeNfTl8MYtKjKtV+NGYITBE0qt81Po/QJ9wjLAyYqkykxf8SgbEZ4K 7XARJVHit1hESwBq3oVzCQiblodxl8h3geSr89yewsaMW3UL6I9ToDIaVONc7BTn41C1 rDdHdw9CZoJ6FTbh0fr8IltTh+YiDFBpHCFInhv1JVS4P4WiBOb/CvwNUj7drPgyaE4k sTkoo0ceEKQ5tQPkJZLxa0U+clu+MHc538uRpnkmCcth2EeQgNtxh2ZgMuKF2oaZJgi0 MntkXoPhobAArQIuNTXpIu7xUlZtQ8VLztorYaxFNq+w6I73kbOPR0V6it9S3FYVvYWj bkBA== X-Forwarded-Encrypted: i=1; AJvYcCX7M5LRoGEEzJTDpP8PDfBCB8P7BP5Iz1EiMBJ6ZQhPwudtIVZ+99XXNU71xVQ4NQuCqX4eiyLg+5xH8CqswA==@lists.infradead.org X-Gm-Message-State: AOJu0YyHKP0Rp659zkYhv40D99h8L+4S3HeubW5itn07puvNMMsL9Yxz lIIINnT415vPMd/aFzsR4lVnhsbu80VPP0B7blOlWWHxAcdbAme6w9lxYd0Sb60= 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_139498_476B9148 X-CRM114-Status: UNSURE ( 7.77 ) X-CRM114-Notice: Please train this message. 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 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: 13836321 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 3A9BAD21694 for ; Tue, 15 Oct 2024 12:40:43 +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=0mfWEHtbk0A3QNZ5M95XhtbUOu ZvMP9xdTis25vUn4h910JUHYSWamJG3KQMwmxSbsrxwvFLB2vvCX8G92n1+NWViuczGKAaQL8T3EM oFbGM7KQnycMxQkpY7E0nUSmp4SixediNy356CY8aMyLFmX8s34A9jdwd1KSadxLRocojec5g6Wzr /lJkfCp8BAy1Cbhx2EPCLNrNTTQn1Ru1PlwIa26mu2LDC/O05Wh6Kbpwz3EJqjmFYihHuMNouCCjt DVxAHxXExg0WhJ8N7cwx8W6b+fYK8DXLrT2cRzzT9dhPyFoRkouLStEysDYO4nggjICA5aTs1N4iV zcXmK/Rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0gqw-00000008Ce1-1ncp; Tue, 15 Oct 2024 12:40:42 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0gdB-00000008A3O-1i1e for linux-mediatek@lists.infradead.org; Tue, 15 Oct 2024 12:26:31 +0000 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-2e2b720a0bbso1062494a91.1 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=pp9DFtOzBY2HnZiepm8vPa9L5kQaXUXUYhM7h49UodplMA5TtRgVV+8y8q9SZSG+Dx cyLLTwH8M8wOhZy/Foi69O9lBnsCxduDWYEF8vXrVNb3arfoXAspEpODPYCteS0vtKeU 16mBEjWfYuYQk0XH15TksmpMcfD5ZPeewHpntikRWQKUa/sjO9YGMq/4qIMCrAmFJZUU xYniz90N4RF3UNMDsNHKxKLreOYLxMHxGsN7DaQOpjgGeecvQUi+MLT5WFn3/Wa0kiw9 a5TPFOm7DE+NKRRISsLiB7gZGYzkexL6ZnFKM3oS1RWKgxTv9lxwRgnJe95hOnEpshgj 8YEQ== X-Forwarded-Encrypted: i=1; AJvYcCWAaOvBwDewoJZ+SXV+ErDq0h8qTSa4vK5wxYnw+PF1v4feKnAhdy9rCho/eiG2sIxBhL2dnsTlRKV660Qpag==@lists.infradead.org X-Gm-Message-State: AOJu0YzrRK3CMhfKKss1YF3zXpB0mljT2N7K9b03dhzwgCvM+cpIB84X F53kLVvgCPM4O/EiqdqRVX6o2Of2svzkcmKqZcLxuqto9MvSyPnNSNlJJ4VGkjs= 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_485180_08F2716A X-CRM114-Status: GOOD ( 14.26 ) 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 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: 13836338 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 4D4C2D21690 for ; Tue, 15 Oct 2024 12:43:41 +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=IEYHvoggJ/yx7CbyHaxJLCLpkD XOcWiaZPZK9lB4B2EmrxlwjJGI5fMKr2DGcqPa3OSgSXORxuov2S0MgxU2juyScZnIcLc7ASjfdYE nViCZ+xKJ1mLQkPayDS6BUycGouye0CqQflI9nHnbvpXTbVUF0FW4VmH9zLgTCRRkaw0Jcp02jrwa 4rP96Yv/0E7dDTdn/r0brNf4Vde+PmA4eDq+EyQfrSteZvfyPKmu/RdmHzwwffJIoK0JVUJl+uLxs ALvLcFnfB+hlDgsrEQhRiYEpK/8xjYNH+bJA0qSu8J+ogiSS73/3JGLSCFUZMS0dGhkDZEbiWHAyy n0btgwEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0gto-00000008DSC-2450; Tue, 15 Oct 2024 12:43:40 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0gdE-00000008A5H-2nLW for linux-mediatek@lists.infradead.org; Tue, 15 Oct 2024 12:26:33 +0000 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2e2c2a17aa4so1064328a91.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=DTqAKQoES/rbNTy78MUZnMGmi89lUuqfFgA/ElkZmaR1kVSM9x11lv63YT/wfmaS01 Cmzuw+IrMPqA86OFhN60hveTNcwDV1sCmF9yawIPZVjiYIz6E77vr/pQ+IAEMXZ9lhsi ASnxmK8r44SV5sA5zKyEtYzo/vi12WHi2Ui4W9M3KOs01vW4y0vZzyLaI8CE67QpSW9z YaT7wbYUqtvwtjYSx9tE/Qjtb63j6u94qGXtg7LnAFCisXvvkLTNMuc28EcO7FQ9fkdA 090AKloo2dDr5v3RFD2vjZ86TBITUZLS+dBEDfFVeU6/hT4wHKU9kQOsxlvJyU56tnvk HpVg== X-Forwarded-Encrypted: i=1; AJvYcCUHP2DqhqzUfX299RJtRMu9Mci7eeYztlplGpplIIBCS2jWuX66OVF7RLurvc06qtRhK+yWtr+x1E16PYgxlA==@lists.infradead.org X-Gm-Message-State: AOJu0YxmafBR5p51wEUOvLoOfmNqb0i9F/IIe88swOOnxNJIQAvz51pA ZURwyuayKSbhytG+M3Jo2b57YUVWG4FRicxCC5es1iCFPN6er5WfnkgWbZmXmVI= 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_746694_21886C1D X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. 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 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>; + }; }; };