From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E697C4167B for ; Mon, 4 Dec 2023 08:42:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232646AbjLDImS (ORCPT ); Mon, 4 Dec 2023 03:42:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLDImP (ORCPT ); Mon, 4 Dec 2023 03:42:15 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C68D39B for ; Mon, 4 Dec 2023 00:42:21 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1d045097b4cso13475585ad.0 for ; Mon, 04 Dec 2023 00:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679341; x=1702284141; darn=vger.kernel.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=UeadimO+asAMlIwlEDVtTPemzDyXZcW7R/h9zRWVnDY=; b=SK2uzs0g9xzoRVrT4rDzLZ0UwSFMLazkWD9MEMzJRDIvrs8cCV9Qlrs7djrm+eHeeY bMPJd8pxBMxYrHU8Bvdk80TG1BkqoCNJxAeQCg4ni1HAUhfvB0e0mXgm+QFOh0GCSyjY /JH5t5IwxYWYMMbT8ZXt6oPjVmcdRXaAbKtEY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679341; x=1702284141; 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=UeadimO+asAMlIwlEDVtTPemzDyXZcW7R/h9zRWVnDY=; b=ooXOJpQE1yWWa+qC1hyvEaxof2en5nrkZC2WFeJM2Finh6PhkadzownjkH1S8SGWFm /FgDZQ6rmSXoOlJ3sc3xkbPg3VM9CuFyNZbvzArAC/eKAxjOn9lPTSo/Vmabqm/SljYi 1TN0A5oE3EBDtmi3F1vvK2sGw9S23b7iMe9jOXsfz33at95NjzIKkUfeKaLfRWDEFGHd cnYOboeu86eErkyA3wlqvaZQ/AQM8sMKXTFdLV4XhIBd2BXAPKIcZOYF3UPp1SQbGrux ytWziK39968pXyWJVPiD+gBPqkF6LmEJ5FD0lgQ/UQukAK9gWxYle683ca0QhLYUklm8 1rjg== X-Gm-Message-State: AOJu0YwK8Tm/HFY6j0UP/8V+Xu/sUjrGbJR3MwfdFe7ynihb+nPKVeco 2wh7eoa35hNFT2sA5wR+0i8MeQ== X-Google-Smtp-Source: AGHT+IGxDNPGZ8kuF2V6CGoFP9EOV/VGJ0sku+SAfHpjO7lCJMftTJChmR8JtnVVUqFQ7PJHa9Gk3w== X-Received: by 2002:a17:902:8c97:b0:1d0:6ffd:ce96 with SMTP id t23-20020a1709028c9700b001d06ffdce96mr1370655plo.79.1701679341305; Mon, 04 Dec 2023 00:42:21 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:20 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 1/9] dt-bindings: arm: mediatek: Sort entries by SoC then board compatibles Date: Mon, 4 Dec 2023 16:40:03 +0800 Message-ID: <20231204084012.2281292-2-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Some of the new MediaTek board entries were inserted in a chronological order, or just randomly. This makes it harder to search for an entry. Sort the entries by first grouping by SoC, then sorting by board compatible strings. Also add a comment at the top asking people to do the same. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - none Changes since v1: - none .../devicetree/bindings/arm/mediatek.yaml | 123 +++++++++--------- 1 file changed, 62 insertions(+), 61 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Document= ation/devicetree/bindings/arm/mediatek.yaml index a5999b3afc35..60337b439744 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -17,6 +17,7 @@ properties: const: '/' compatible: oneOf: + # Sort by SoC (last) compatible, then board compatible - items: - enum: - mediatek,mt2701-evb @@ -129,71 +130,10 @@ properties: - enum: - mediatek,mt8173-evb - const: mediatek,mt8173 - - items: - - enum: - - mediatek,mt8183-evb - - const: mediatek,mt8183 - - description: Google Hayato rev5 - items: - - const: google,hayato-rev5-sku2 - - const: google,hayato-sku2 - - const: google,hayato - - const: mediatek,mt8192 - - description: Google Hayato - items: - - const: google,hayato-rev1 - - const: google,hayato - - const: mediatek,mt8192 - - description: Google Spherion rev4 (Acer Chromebook 514) - items: - - const: google,spherion-rev4 - - const: google,spherion - - const: mediatek,mt8192 - - description: Google Spherion (Acer Chromebook 514) - items: - - const: google,spherion-rev3 - - const: google,spherion-rev2 - - const: google,spherion-rev1 - - const: google,spherion-rev0 - - const: google,spherion - - const: mediatek,mt8192 - - description: Acer Tomato (Acer Chromebook Spin 513 CP513-2H) - items: - - enum: - - google,tomato-rev2 - - google,tomato-rev1 - - const: google,tomato - - const: mediatek,mt8195 - - description: Acer Tomato rev3 - 4 (Acer Chromebook Spin 513 CP513-= 2H) - items: - - const: google,tomato-rev4 - - const: google,tomato-rev3 - - const: google,tomato - - const: mediatek,mt8195 - - items: - - enum: - - mediatek,mt8186-evb - - const: mediatek,mt8186 - - items: - - enum: - - mediatek,mt8192-evb - - const: mediatek,mt8192 - - items: - - enum: - - mediatek,mt8195-demo - - mediatek,mt8195-evb - - const: mediatek,mt8195 - description: Google Burnet (HP Chromebook x360 11MK G3 EE) items: - const: google,burnet - const: mediatek,mt8183 - - description: Google Krane (Lenovo IdeaPad Duet, 10e,...) - items: - - enum: - - google,krane-sku0 - - google,krane-sku176 - - const: google,krane - - const: mediatek,mt8183 - description: Google Cozmo (Acer Chromebook 314) items: - const: google,cozmo @@ -244,6 +184,13 @@ properties: - google,kodama-sku32 - const: google,kodama - const: mediatek,mt8183 + - description: Google Krane (Lenovo IdeaPad Duet, 10e,...) + items: + - enum: + - google,krane-sku0 + - google,krane-sku176 + - const: google,krane + - const: mediatek,mt8183 - description: Google Willow (Acer Chromebook 311 C722/C722T) items: - enum: @@ -251,10 +198,64 @@ properties: - google,willow-sku1 - const: google,willow - const: mediatek,mt8183 + - items: + - enum: + - mediatek,mt8183-evb + - const: mediatek,mt8183 - items: - enum: - mediatek,mt8183-pumpkin - const: mediatek,mt8183 + - items: + - enum: + - mediatek,mt8186-evb + - const: mediatek,mt8186 + - description: Google Hayato + items: + - const: google,hayato-rev1 + - const: google,hayato + - const: mediatek,mt8192 + - description: Google Hayato rev5 + items: + - const: google,hayato-rev5-sku2 + - const: google,hayato-sku2 + - const: google,hayato + - const: mediatek,mt8192 + - description: Google Spherion (Acer Chromebook 514) + items: + - const: google,spherion-rev3 + - const: google,spherion-rev2 + - const: google,spherion-rev1 + - const: google,spherion-rev0 + - const: google,spherion + - const: mediatek,mt8192 + - description: Google Spherion rev4 (Acer Chromebook 514) + items: + - const: google,spherion-rev4 + - const: google,spherion + - const: mediatek,mt8192 + - items: + - enum: + - mediatek,mt8192-evb + - const: mediatek,mt8192 + - description: Acer Tomato (Acer Chromebook Spin 513 CP513-2H) + items: + - enum: + - google,tomato-rev2 + - google,tomato-rev1 + - const: google,tomato + - const: mediatek,mt8195 + - description: Acer Tomato rev3 - 4 (Acer Chromebook Spin 513 CP513-= 2H) + items: + - const: google,tomato-rev4 + - const: google,tomato-rev3 + - const: google,tomato + - const: mediatek,mt8195 + - items: + - enum: + - mediatek,mt8195-demo + - mediatek,mt8195-evb + - const: mediatek,mt8195 - items: - enum: - mediatek,mt8365-evk --=20 2.43.0.rc2.451.g8631bc7472-goog From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DBD0C4167B for ; Mon, 4 Dec 2023 08:42:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234772AbjLDImV (ORCPT ); Mon, 4 Dec 2023 03:42:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjLDImR (ORCPT ); Mon, 4 Dec 2023 03:42:17 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A8E385 for ; Mon, 4 Dec 2023 00:42:24 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1d075392ff6so11371305ad.1 for ; Mon, 04 Dec 2023 00:42:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679344; x=1702284144; darn=vger.kernel.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=RcS07JnvWd9BMDrKgMxSPHoHbXRrOeA/0qiEua/6c3Y=; b=TOF2EVETY5hEqQXM4l+IxIOYyRoB0AzRAAf6dDELV0PDiNSewV0jIKq5nJcFDJTpGb fzYfg+Uayffm1CxKlfCmCDPIxgB6TT2MtaBksY6TG/UD87jEqoApffORBvPZBDtDGCBy setEyw/GmZLCmvQ7fDxBcmmmVfvVLcrTISJpU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679344; x=1702284144; 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=RcS07JnvWd9BMDrKgMxSPHoHbXRrOeA/0qiEua/6c3Y=; b=k8wFP1ASU0dCJ2kGs/voQcAlKxDqsW2nodseNbzdIwMCrc1FuajDii+THyaLznRvIz dwpZG7670tKSznhmqztshn3vEeAWLvOGx5E7HH9PIuEW8lfLnid6wX3zKDQ8vSQwH3Ct pDof+1WhV+GeZ8jzHlRpho7lnnfs2Rvz2IMt+RoH7uPoVEhL0SDJG4whCYSNcgnEWVUR 8dAqlt9j/hs29rvoYCe8a3nRmIMnZtvXD6AMGbYs995KKnYa/Y8Q96d04gVkw+eoXM/4 dvzSKB+Phg55MrJBuvLxrl7YyAAjBq8kjHfMEEGX+Dvo5KpsYBenUr7npGG6gOII9OnT iPig== X-Gm-Message-State: AOJu0Yzkg+nlrx3HTjkoJiax+l84GR+nG8rWF4K/JydzjevVRcRmG4Ji ceDr+IUHrT4E6x1x0zYqq4NKDQ== X-Google-Smtp-Source: AGHT+IHiGcGn+ZuGw9Sss/rws4YN9EdRsSAOdQ+GmAXf+Q/t8RLI7oy4ZFiupK4BG1Ci18tqVVJAPg== X-Received: by 2002:a17:903:1248:b0:1d0:700b:3f87 with SMTP id u8-20020a170903124800b001d0700b3f87mr3651736plh.65.1701679343751; Mon, 04 Dec 2023 00:42:23 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:23 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 2/9] dt-bindings: arm: mediatek: Add MT8186 Tentacruel / Tentacool Chromebooks Date: Mon, 4 Dec 2023 16:40:04 +0800 Message-ID: <20231204084012.2281292-3-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add entries for MT8186 based Tentacruel / Tentacool Chromebooks. The two are based on the same board design: the former is a convertible device with a touchscreen, stylus, and some extra buttons; the latter is a clamshell device and lacks these additional features. The two devices both have two variants. The difference is a second source touchpad controller that shares the same address as the original, but is incompatible. The extra SKU IDs for the Tentacruel devices map to different sensor components attached to the Embedded Controller. These are not visible to the main processor. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - Picked up Conor's ack Changes since v1: - Reorder SKU numbers in descending order. .../devicetree/bindings/arm/mediatek.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Document= ation/devicetree/bindings/arm/mediatek.yaml index 60337b439744..709a1292bca7 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -206,6 +206,32 @@ properties: - enum: - mediatek,mt8183-pumpkin - const: mediatek,mt8183 + - description: Google Tentacruel (ASUS Chromebook CM14 Flip CM1402F) + items: + - const: google,tentacruel-sku262147 + - const: google,tentacruel-sku262146 + - const: google,tentacruel-sku262145 + - const: google,tentacruel-sku262144 + - const: google,tentacruel + - const: mediatek,mt8186 + - description: Google Tentacruel (ASUS Chromebook CM14 Flip CM1402F) + items: + - const: google,tentacruel-sku262151 + - const: google,tentacruel-sku262150 + - const: google,tentacruel-sku262149 + - const: google,tentacruel-sku262148 + - const: google,tentacruel + - const: mediatek,mt8186 + - description: Google Tentacool (ASUS Chromebook CM14 CM1402C) + items: + - const: google,tentacruel-sku327681 + - const: google,tentacruel + - const: mediatek,mt8186 + - description: Google Tentacool (ASUS Chromebook CM14 CM1402C) + items: + - const: google,tentacruel-sku327683 + - const: google,tentacruel + - const: mediatek,mt8186 - items: - enum: - mediatek,mt8186-evb --=20 2.43.0.rc2.451.g8631bc7472-goog From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0D34C10DC1 for ; Mon, 4 Dec 2023 08:42:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234933AbjLDIma (ORCPT ); Mon, 4 Dec 2023 03:42:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234778AbjLDImW (ORCPT ); Mon, 4 Dec 2023 03:42:22 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06AA3100 for ; Mon, 4 Dec 2023 00:42:27 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1cfabcbda7bso18807005ad.0 for ; Mon, 04 Dec 2023 00:42:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679346; x=1702284146; darn=vger.kernel.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=3qOBfJHT1+5PjLRRaf9qTSuTN75gznyCQLWs4A+G1fg=; b=f5cFI+JPUTacsJVpLQ6J8Z9BoPQdVjeaa4bGVfUvdaas+RiLvoXKSE/Jk0pVtUNEmt mei1+NOEJbEsy8iW5jphnrNEacqexJsO1TGYeP/y320gFZFu6xyMchvHzTR7Ft8q/1II D3+Z9W4ym6nAITEiZx2wI3QfhMgVWCEwZ6W/o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679346; x=1702284146; 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=3qOBfJHT1+5PjLRRaf9qTSuTN75gznyCQLWs4A+G1fg=; b=K7YTvXvUOkFa4WBu8cgtw6jb6zBqswhqyLUHa045j7lVOUw5i4Hcr8FltSXVspDpPu o+B9enOedRFQlKh1gj/kqQjraToNOhl2d1rAsljEa59j3GdL97oUBXnPepr4UnGXdDGb sTLdkfwKw29+U/doFuQqISnyJYLfM740v2AkZajpl94pvmzAnLUiv2ujcN+OiTuVWeXL 3oWhyVYRMSynnrQFx6Nj52XP/nTIv01sapxpvrTiDBnW6hsgCSjjT3Vs0P5G5ieRFcyJ 1y8reC99MeiZgTc+bcfNvckytrB0VQBwt4v5+QsaaRakGNebl9SR3aa1JoT6DwlNSFzg P1PQ== X-Gm-Message-State: AOJu0YxuRRK5cgYvPWxrafto5jQdH8i4QLkfud5kmAhJZuoyZd6Ao+cA S5CcBROezjKpbx+PzVU2ju1R0w== X-Google-Smtp-Source: AGHT+IH3r/F4nbYXPOG1kQenYe0KwmiblO2QhUP+W7XTVCgN8GlIr5u5FdgB35I5wSnpXh/9x+QlNw== X-Received: by 2002:a17:902:aa48:b0:1d0:6ffd:6120 with SMTP id c8-20020a170902aa4800b001d06ffd6120mr3339981plr.66.1701679346161; Mon, 04 Dec 2023 00:42:26 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:25 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 3/9] dt-bindings: arm: mediatek: Add MT8186 Steelix Chromebook Date: Mon, 4 Dec 2023 16:40:05 +0800 Message-ID: <20231204084012.2281292-4-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add an entry for the MT8186 based Steelix Chromebook, also known as the Lenovo 300e Yoga Chromebook Gen 4. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - Picked up Conor's ack Changes since v1: none Documentation/devicetree/bindings/arm/mediatek.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Document= ation/devicetree/bindings/arm/mediatek.yaml index 709a1292bca7..95d2b430ab17 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -206,6 +206,13 @@ properties: - enum: - mediatek,mt8183-pumpkin - const: mediatek,mt8183 + - description: Google Steelix (Lenovo 300e Yoga Chromebook Gen 4) + items: + - enum: + - google,steelix-sku131072 + - google,steelix-sku131073 + - const: google,steelix + - const: mediatek,mt8186 - description: Google Tentacruel (ASUS Chromebook CM14 Flip CM1402F) items: - const: google,tentacruel-sku262147 --=20 2.43.0.rc2.451.g8631bc7472-goog From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEDB5C4167B for ; Mon, 4 Dec 2023 08:42:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232889AbjLDImc (ORCPT ); Mon, 4 Dec 2023 03:42:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjLDIm0 (ORCPT ); Mon, 4 Dec 2023 03:42:26 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 722D3124 for ; Mon, 4 Dec 2023 00:42:29 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-2865742e256so1510612a91.0 for ; Mon, 04 Dec 2023 00:42:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679348; x=1702284148; darn=vger.kernel.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=/wldu9pXjNyIoX3DoG7mDhf3kQNOoAJ2MdYX0EVUOaU=; b=nu/zG4220bD1pvpdU20ZMmQlxJdtutiFJ/U8+c6BlJFEbkgM/dtWIE61/iQBTd027Y Zh0ITNxBKFTRcBHt2/l61WgwLbyBLF07Ivgge1fJDrpFvkrm38qSM5BvLK0JmthaJ58t TBnpP58ltvdvGeHadDwe7v+t2htxIWzZ32ZKI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679348; x=1702284148; 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=/wldu9pXjNyIoX3DoG7mDhf3kQNOoAJ2MdYX0EVUOaU=; b=ZlgBiNy24H6hNIZFjbhMv5s5PUmNhwoiiEffls240a8bHKMtvg3Q4IL+2gzC41Yvfb VJ2lllf6GgshzlsobNxTn0i2O4km+8JwQ28pWB+24RxAGeh60/A1R044gKafEEQoSYo5 hVnu99V36en/9qxcMqEnAPLTS1wfLW4fclvxuUj0fB4twVlbxoVPs6tNPoLtaL6i6/B6 pPJskqyHUFg7a4zpGJIDKaH172vdxQ3EQIQDRQK3dZQehk/mWNndsQrHkyrtPqKqOvbA EUf7S8FNUHHwc3LuafaeG1VAvHYRY/93/WzXEoIfdS3/ZsXEhddTnhf9ucpzT8I+K9QG Bcyg== X-Gm-Message-State: AOJu0Yy1E7smuP2I69FkS2vcWrk9w/ckOowvx1awSpSZiOn/U9hg3jtq +M1dPVoj2L61d13Ygtqzgnfa7g== X-Google-Smtp-Source: AGHT+IHjP/Qz9KwXm+qsjE9MAMvFkbEOBOOQnl7A/qRz7yN22jPCAKlx5OMx/9Xzixd9HImd+rjxFg== X-Received: by 2002:a17:90b:4b4d:b0:286:a27a:f244 with SMTP id mi13-20020a17090b4b4d00b00286a27af244mr607210pjb.22.1701679348562; Mon, 04 Dec 2023 00:42:28 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:28 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 4/9] dt-bindings: arm: mediatek: Add MT8186 Rusty Chromebook Date: Mon, 4 Dec 2023 16:40:06 +0800 Message-ID: <20231204084012.2281292-5-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add an entry for the MT8186 based Rusty Chromebook, also known as the Lenovo 100e Chromebook Gen 4. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - Picked up Conor's ack Changes since v1: - Reorder SKU numbers in descending order. Documentation/devicetree/bindings/arm/mediatek.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Document= ation/devicetree/bindings/arm/mediatek.yaml index 95d2b430ab17..85d394e390f0 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -206,6 +206,12 @@ properties: - enum: - mediatek,mt8183-pumpkin - const: mediatek,mt8183 + - description: Google Rusty (Lenovo 100e Chromebook Gen 4) + items: + - const: google,steelix-sku196609 + - const: google,steelix-sku196608 + - const: google,steelix + - const: mediatek,mt8186 - description: Google Steelix (Lenovo 300e Yoga Chromebook Gen 4) items: - enum: --=20 2.43.0.rc2.451.g8631bc7472-goog From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E18E0C10DC3 for ; Mon, 4 Dec 2023 08:42:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343620AbjLDImd (ORCPT ); Mon, 4 Dec 2023 03:42:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233040AbjLDIm1 (ORCPT ); Mon, 4 Dec 2023 03:42:27 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFA5218A for ; Mon, 4 Dec 2023 00:42:31 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6cb749044a2so4524179b3a.0 for ; Mon, 04 Dec 2023 00:42:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679351; x=1702284151; darn=vger.kernel.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=/aA6QuGxbpfyLA8GoL1DX22vu6yZybaikV0/22DbGWE=; b=Q+w/Ns1rTUgFW+FgUX4cYk0cD9vzyT6rfXCVAcQf2i8NmvWYbEDoHHehxK6oGN9cxW /BvRSaTs9rJOEzm2gFX0dUEluVPxMhHhU/rsAukuxdRb+Ga5xcNHsqoYLSnOp+Dv2/aR 4WDP973C2tQ3gQ+ikQx35+YcQO7EDAkLoR7xg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679351; x=1702284151; 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=/aA6QuGxbpfyLA8GoL1DX22vu6yZybaikV0/22DbGWE=; b=SdCPsIoK1U0GLV6BiJsjPMGkgbKzljB+M08GnJylc/eRm9gubXflYN4QHvyB2XElem EqLe3cXsfGDjKqI6K4csVYMh9X/GyFxdr1CjxkTyY3UFoWLbFn7z55K93auSjfUeM4Dc XzoK8E2LCgKXcTubAKsJYcdlU7W85UJOnV1wOMO5ECvnMyTI9+whnpX8njEs1f3H+TEH cvaMlt2NkhunajBbJAJqhARvqq1FTxlwovV3bpUAQHVEIfeqq87ZIEVdjC1WcDplUGlH SB40lMQMmxqKqs2yi8GuelIu0j9x/MfXfes6SxUpCJd4Hno9E5y3IafL8Ww3NugFZmZx L2NA== X-Gm-Message-State: AOJu0Yxeql+nmfBjmvl2Wag8nUT3xgwtDVFG+qG1a025RKA97laNcCk8 rAYqeskfnG7QmUPrx2C0d+R0nw== X-Google-Smtp-Source: AGHT+IHHys4G1j0LzvAtyDH5r6jNjBqc4C4gAmcOTNfRgLJLRIorxSqsekbLtM7ag3o9PDZsFhb5eA== X-Received: by 2002:a05:6a20:4298:b0:188:444e:2b6c with SMTP id o24-20020a056a20429800b00188444e2b6cmr4840529pzj.49.1701679350992; Mon, 04 Dec 2023 00:42:30 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:30 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 5/9] dt-bindings: arm: mediatek: Add MT8186 Magneton Chromebooks Date: Mon, 4 Dec 2023 16:40:07 +0800 Message-ID: <20231204084012.2281292-6-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add entries for the MT8186 based Chromebooks, also collectively known as the Lenovo IdeaPad Slim 3 Chromebook (14M868). It is also based on the "Steelix" design. Being a laptop instead of a convertible device, there is no touchscreen or stylus, which is similar to Rusty. However Magneton does not have ports on the right side of the device. Three variants are listed separately. These use different touchscreen controllers, or lack a touchscreen altogether. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - Picked up Conor's ack Changes since v1: - Reorder SKU numbers in descending order. .../devicetree/bindings/arm/mediatek.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Document= ation/devicetree/bindings/arm/mediatek.yaml index 85d394e390f0..155ba22e2ad3 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -206,6 +206,24 @@ properties: - enum: - mediatek,mt8183-pumpkin - const: mediatek,mt8183 + - description: Google Magneton (Lenovo IdeaPad Slim 3 Chromebook (14= M868)) + items: + - const: google,steelix-sku393219 + - const: google,steelix-sku393216 + - const: google,steelix + - const: mediatek,mt8186 + - description: Google Magneton (Lenovo IdeaPad Slim 3 Chromebook (14= M868)) + items: + - const: google,steelix-sku393220 + - const: google,steelix-sku393217 + - const: google,steelix + - const: mediatek,mt8186 + - description: Google Magneton (Lenovo IdeaPad Slim 3 Chromebook (14= M868)) + items: + - const: google,steelix-sku393221 + - const: google,steelix-sku393218 + - const: google,steelix + - const: mediatek,mt8186 - description: Google Rusty (Lenovo 100e Chromebook Gen 4) items: - const: google,steelix-sku196609 --=20 2.43.0.rc2.451.g8631bc7472-goog From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B85BC4167B for ; Mon, 4 Dec 2023 08:43:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343600AbjLDImv (ORCPT ); Mon, 4 Dec 2023 03:42:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbjLDImk (ORCPT ); Mon, 4 Dec 2023 03:42:40 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A67D1103 for ; Mon, 4 Dec 2023 00:42:34 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1d04d286bc0so13335845ad.3 for ; Mon, 04 Dec 2023 00:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679354; x=1702284154; darn=vger.kernel.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=EtxwJB+gyX+Kun83a1WzYlUProLM+PYOcLnPqWgIwQU=; b=PbTb/3oVWSOTP/oG6eBJQaepq/5/XryBN4mk7LLiMJvmcuC52VD53f0PUM5IkLP/2a HDHHPq22apRNyZu6xuYXwenqnL38xrP9JZJSD0sKebu/Ld1r8CCv5e0/Fs/Sac5OwMbL S4ZhYd0q4QxhFwmBmG7LnoNiB+pMEEn9Q31R0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679354; x=1702284154; 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=EtxwJB+gyX+Kun83a1WzYlUProLM+PYOcLnPqWgIwQU=; b=Jt98NJwP0Y7FZx4g+VIQRjXuW8v9KJcKt+SA9wANK+7yhTdFFNxRcx0ZRhLXLnYdd5 EkK/1PDmb3UER18CEa9xsMEnXx0Tiy+mABi4Oq2M1vznlJ8/TclNuLT0P9pj54WXC6o7 2LxL3yU3zB71P2owv065vlpfA2M4sWXMgQ9KED3Yab0+HMsmE+M7b7ZmgA8CffFcQZmM 7hz0tA4iXvuMOzeVwbl4rXEfRwt6nyuIVCLINE9MS7euAR0q1Vp4P4YTLJC/j5uZJnVV p7J8bC2v1/rs9HeF9Ibx1JTHHq1KZukuHCzvxc2rQ9vIW6B+cbee1Kuu6ssc6Y+urcaz dsYA== X-Gm-Message-State: AOJu0Yy6X4r5OcytPui82xKeAfl3OvYz12ZlU57WV2O+p3C2UJiuwuEq 7szUolSjKWgVjauv5VxeNshUuA== X-Google-Smtp-Source: AGHT+IHjs1efUxU8PIZC7bPuZUL+egD8AeqZnRrzoov/LNuIduoaGApfdvfjcTYnSLtTvg3DMHMgLQ== X-Received: by 2002:a17:902:ed4d:b0:1d0:6d41:e99 with SMTP id y13-20020a170902ed4d00b001d06d410e99mr1403323plb.46.1701679353640; Mon, 04 Dec 2023 00:42:33 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:33 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 6/9] arm64: dts: mediatek: Add MT8186 Krabby platform based Tentacruel / Tentacool Date: Mon, 4 Dec 2023 16:40:08 +0800 Message-ID: <20231204084012.2281292-7-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Tentacruel and Tentacool are MT8186 based Chromebooks based on the Krabby design. Tentacruel, also known as the ASUS Chromebook CM14 Flip CM1402F, is a convertible device with touchscreen and stylus. Tentacool, also known as the ASUS Chromebook CM14 CM1402C, is a laptop device. It does not have a touchscreen or stylus. The two devices both have two variants. The difference is a second source touchpad controller that shares the same address as the original, but is incompatible. The extra SKU IDs for the Tentacruel devices map to different sensor components attached to the Embedded Controller. These are not visible to the main processor. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley --- Changes since v2: - Picked up Conor's ack - Rename touchpad to trackpad - Drop pinctrl properties from trackpad in tentacruel/tentacool second source trackpad Changes since v1: - Reorder SKU numbers in descending order. - Fixed pinconfig node names - Moved pinctrl-* properties after interrupts-* - Switched to interrupts-extended for external components - Marked ADSP as explicitly disabled, with a comment explaining that it stalls the system - Renamed "touchpad" to "trackpad" - Dropped bogus "no-laneswap" property from it6505 node - Moved "realtek,jd-src" property to after all the regulator supplies - Switched to macros for MT6366 regulator "regulator-allowed-modes" - Renamed "vgpu" regulator name to allow coupling, with a comment containing the name used in the design - Renamed "cr50" node name to "tpm" - Moved trackpad_pins reference up to i2c2; workaround for second source component resource sharing. - Fix copyright year - Fixed touchscreen supply name arch/arm64/boot/dts/mediatek/Makefile | 4 + .../dts/mediatek/mt8186-corsola-krabby.dtsi | 129 ++ .../mt8186-corsola-tentacool-sku327681.dts | 57 + .../mt8186-corsola-tentacool-sku327683.dts | 24 + .../mt8186-corsola-tentacruel-sku262144.dts | 44 + .../mt8186-corsola-tentacruel-sku262148.dts | 26 + .../boot/dts/mediatek/mt8186-corsola.dtsi | 1719 +++++++++++++++++ 7 files changed, 2003 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-krabby.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-s= ku327681.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-s= ku327683.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-= sku262144.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-= sku262148.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/me= diatek/Makefile index e6e7592a3645..442af61b1305 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -43,6 +43,10 @@ dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-kodama-sku= 32.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-pumpkin.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-tentacool-sku327681.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-tentacool-sku327683.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-tentacruel-sku262144.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-tentacruel-sku262148.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8192-asurada-hayato-r1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8192-asurada-hayato-r5-sku2.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-krabby.dtsi b/arch= /arm64/boot/dts/mediatek/mt8186-corsola-krabby.dtsi new file mode 100644 index 000000000000..9b2b64525961 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-krabby.dtsi @@ -0,0 +1,129 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola.dtsi" +#include + +/ { + aliases { + i2c4 =3D &i2c4; + }; +}; + +&dsi_out { + remote-endpoint =3D <&ps8640_in>; +}; + +&i2c0 { + clock-frequency =3D <400000>; + + ps8640: edp-bridge@8 { + compatible =3D "parade,ps8640"; + reg =3D <0x8>; + powerdown-gpios =3D <&pio 96 GPIO_ACTIVE_LOW>; + reset-gpios =3D <&pio 98 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&ps8640_pins>; + vdd12-supply =3D <&mt6366_vrf12_reg>; + vdd33-supply =3D <&mt6366_vcn33_reg>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + ps8640_in: endpoint { + remote-endpoint =3D <&dsi_out>; + }; + }; + + port@1 { + reg =3D <1>; + + ps8640_out: endpoint { + remote-endpoint =3D <&panel_in>; + }; + }; + }; + + aux-bus { + panel { + compatible =3D "edp-panel"; + power-supply =3D <&pp3300_disp_x>; + backlight =3D <&backlight_lcd0>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&ps8640_out>; + }; + }; + }; + }; + }; +}; + +&i2c1 { + i2c-scl-internal-delay-ns =3D <10000>; + + touchscreen: touchscreen@10 { + compatible =3D "hid-over-i2c"; + reg =3D <0x10>; + interrupts-extended =3D <&pio 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&touchscreen_pins>; + post-power-on-delay-ms =3D <10>; + hid-descr-addr =3D <0x0001>; + vdd-supply =3D <&pp3300_s3>; + }; +}; + +&i2c4 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c4_pins>; + clock-frequency =3D <400000>; + status =3D "okay"; + + proximity@28 { + compatible =3D "semtech,sx9324"; + reg =3D <0x28>; + interrupts-extended =3D <&pio 5 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&sar_sensor_pins>; + vdd-supply =3D <&mt6366_vio18_reg>; + svdd-supply =3D <&mt6366_vio18_reg>; + #io-channel-cells =3D <1>; + }; +}; + +&pio { + i2c4_pins: i2c4-pins { + pins-bus { + pinmux =3D , + ; + bias-disable; + drive-strength =3D <4>; + input-enable; + }; + }; + + ps8640_pins: ps8640-pins { + pins-pwrdn-rst { + pinmux =3D , + ; + output-low; + }; + }; + + sar_sensor_pins: sar-sensor-pins { + pins-irq { + pinmux =3D ; + input-enable; + bias-pull-up; + }; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku32768= 1.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327681.dts new file mode 100644 index 000000000000..9bb64353ca65 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327681.dts @@ -0,0 +1,57 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-krabby.dtsi" + +/ { + model =3D "Google Tentacool board"; + compatible =3D "google,tentacruel-sku327681", "google,tentacruel", "media= tek,mt8186"; + chassis-type =3D "laptop"; +}; + +/* Tentacool omits the pen. */ +&gpio_keys { + status =3D "disabled"; +}; + +/* Tentacool omits the touchscreen; nothing else is on i2c1. */ +&i2c1 { + status =3D "disabled"; +}; + +&keyboard_controller { + function-row-physmap =3D < + 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 */ + >; + + linux,keymap =3D < + 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(0x02, 0x09, KEY_MUTE) + MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) + MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) + CROS_STD_MAIN_KEYMAP + >; +}; + +/* Tentacool omits the touchscreen. */ +&touchscreen { + status =3D "disabled"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku32768= 3.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327683.dts new file mode 100644 index 000000000000..c3ae6f9616c8 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327683.dts @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +#include "mt8186-corsola-tentacool-sku327681.dts" + +/ { + compatible =3D "google,tentacruel-sku327683", "google,tentacruel", "media= tek,mt8186"; +}; + +/* This variant replaces only the trackpad controller. */ +&i2c2 { + /delete-node/ trackpad@15; + + trackpad@15 { + compatible =3D "hid-over-i2c"; + reg =3D <0x15>; + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_LOW>; + hid-descr-addr =3D <0x0001>; + vdd-supply =3D <&pp3300_s3>; + wakeup-source; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku2621= 44.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262144.d= ts new file mode 100644 index 000000000000..26d3451a5e47 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262144.dts @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-krabby.dtsi" + +/ { + model =3D "Google Tentacruel board"; + compatible =3D "google,tentacruel-sku262147", "google,tentacruel-sku26214= 6", + "google,tentacruel-sku262145", "google,tentacruel-sku262144", + "google,tentacruel", "mediatek,mt8186"; + chassis-type =3D "convertible"; +}; + +&keyboard_controller { + function-row-physmap =3D < + 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 */ + >; + + linux,keymap =3D < + 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(0x02, 0x09, KEY_MUTE) + MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) + MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) + CROS_STD_MAIN_KEYMAP + >; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku2621= 48.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262148.d= ts new file mode 100644 index 000000000000..447b57b12b41 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262148.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +#include "mt8186-corsola-tentacruel-sku262144.dts" + +/ { + compatible =3D "google,tentacruel-sku262151", "google,tentacruel-sku26215= 0", + "google,tentacruel-sku262149", "google,tentacruel-sku262148", + "google,tentacruel", "mediatek,mt8186"; +}; + +/* This variant replaces only the trackpad controller. */ +&i2c2 { + /delete-node/ trackpad@15; + + trackpad@15 { + compatible =3D "hid-over-i2c"; + reg =3D <0x15>; + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_LOW>; + hid-descr-addr =3D <0x0001>; + vdd-supply =3D <&pp3300_s3>; + wakeup-source; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi b/arch/arm64/= boot/dts/mediatek/mt8186-corsola.dtsi new file mode 100644 index 000000000000..8726b2916ef1 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi @@ -0,0 +1,1719 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2022 MediaTek Inc. + */ +/dts-v1/; +#include "mt8186.dtsi" +#include +#include +#include +#include +#include + +/ { + aliases { + i2c0 =3D &i2c0; + i2c1 =3D &i2c1; + i2c2 =3D &i2c2; + i2c3 =3D &i2c3; + i2c5 =3D &i2c5; + mmc0 =3D &mmc0; + mmc1 =3D &mmc1; + serial0 =3D &uart0; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + memory@40000000 { + device_type =3D "memory"; + /* The size should be filled in by the bootloader. */ + reg =3D <0 0x40000000 0 0>; + }; + + backlight_lcd0: backlight-lcd0 { + compatible =3D "pwm-backlight"; + pwms =3D <&pwm0 0 500000>; + power-supply =3D <&ppvar_sys>; + enable-gpios =3D <&pio 152 0>; + brightness-levels =3D <0 1023>; + num-interpolated-steps =3D <1023>; + default-brightness-level =3D <576>; + }; + + btsco: bt-sco { + compatible =3D "linux,bt-sco"; + #sound-dai-cells =3D <0>; + }; + + dmic_codec: dmic-codec { + compatible =3D "dmic-codec"; + num-channels =3D <2>; + wakeup-delay-ms =3D <50>; + #sound-dai-cells =3D <0>; + }; + + gpio_keys: gpio-keys { + compatible =3D "gpio-keys"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pen_eject>; + + pen_insert: pen-insert-switch { + label =3D "Pen Insert"; + /* Insert =3D low, eject =3D high */ + gpios =3D <&pio 18 GPIO_ACTIVE_LOW>; + linux,code =3D ; + linux,input-type =3D ; + wakeup-event-action =3D ; + wakeup-source; + }; + }; + + pp1800_dpbrdg_dx: regulator-pp1800-dpbrdg-dx { + compatible =3D "regulator-fixed"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&en_pp1800_dpbrdg>; + regulator-name =3D "pp1800_dpbrdg_dx"; + enable-active-high; + gpio =3D <&pio 39 GPIO_ACTIVE_HIGH>; + vin-supply =3D <&mt6366_vio18_reg>; + }; + + pp3300_disp_x: regulator-pp3300-disp-x { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp3300_disp_x"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&edp_panel_fixed_pins>; + enable-active-high; + regulator-boot-on; + gpio =3D <&pio 153 GPIO_ACTIVE_HIGH>; + vin-supply =3D <&pp3300_z2>; + }; + + /* system wide LDO 3.3V power rail */ + pp3300_z5: regulator-pp3300-ldo-z5 { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp3300_ldo_z5"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&ppvar_sys>; + }; + + /* separately switched 3.3V power rail */ + pp3300_s3: regulator-pp3300-s3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp3300_s3"; + /* automatically sequenced by PMIC EXT_PMIC_EN2 */ + regulator-always-on; + regulator-boot-on; + vin-supply =3D <&pp3300_z2>; + }; + + /* system wide 3.3V power rail */ + pp3300_z2: regulator-pp3300-z2 { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp3300_z2"; + /* EN pin tied to pp4200_z2, which is controlled by EC */ + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&ppvar_sys>; + }; + + /* system wide 4.2V power rail */ + pp4200_z2: regulator-pp4200-z2 { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp4200_z2"; + /* controlled by EC */ + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <4200000>; + regulator-max-microvolt =3D <4200000>; + vin-supply =3D <&ppvar_sys>; + }; + + /* system wide switching 5.0V power rail */ + pp5000_z2: regulator-pp5000-z2 { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp5000_z2"; + /* controlled by EC */ + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + vin-supply =3D <&ppvar_sys>; + }; + + /* system wide semi-regulated power rail from battery or USB */ + ppvar_sys: regulator-ppvar-sys { + compatible =3D "regulator-fixed"; + regulator-name =3D "ppvar_sys"; + regulator-always-on; + regulator-boot-on; + }; + + reserved_memory: reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + adsp_dma_mem: memory@61000000 { + compatible =3D "shared-dma-pool"; + reg =3D <0 0x61000000 0 0x100000>; + no-map; + }; + + adsp_mem: memory@60000000 { + compatible =3D "shared-dma-pool"; + reg =3D <0 0x60000000 0 0xA00000>; + no-map; + }; + + scp_mem: memory@50000000 { + compatible =3D "shared-dma-pool"; + reg =3D <0 0x50000000 0 0x10a0000>; + no-map; + }; + }; + + sound: sound { + compatible =3D "mediatek,mt8186-mt6366-rt1019-rt5682s-sound"; + pinctrl-names =3D "aud_clk_mosi_off", + "aud_clk_mosi_on", + "aud_clk_miso_off", + "aud_clk_miso_on", + "aud_dat_miso_off", + "aud_dat_miso_on", + "aud_dat_mosi_off", + "aud_dat_mosi_on", + "aud_gpio_i2s0_off", + "aud_gpio_i2s0_on", + "aud_gpio_i2s1_off", + "aud_gpio_i2s1_on", + "aud_gpio_i2s2_off", + "aud_gpio_i2s2_on", + "aud_gpio_i2s3_off", + "aud_gpio_i2s3_on", + "aud_gpio_tdm_off", + "aud_gpio_tdm_on", + "aud_gpio_pcm_off", + "aud_gpio_pcm_on", + "aud_gpio_dmic_sec"; + pinctrl-0 =3D <&aud_clk_mosi_off>; + pinctrl-1 =3D <&aud_clk_mosi_on>; + pinctrl-2 =3D <&aud_clk_miso_off>; + pinctrl-3 =3D <&aud_clk_miso_on>; + pinctrl-4 =3D <&aud_dat_miso_off>; + pinctrl-5 =3D <&aud_dat_miso_on>; + pinctrl-6 =3D <&aud_dat_mosi_off>; + pinctrl-7 =3D <&aud_dat_mosi_on>; + pinctrl-8 =3D <&aud_gpio_i2s0_off>; + pinctrl-9 =3D <&aud_gpio_i2s0_on>; + pinctrl-10 =3D <&aud_gpio_i2s1_off>; + pinctrl-11 =3D <&aud_gpio_i2s1_on>; + pinctrl-12 =3D <&aud_gpio_i2s2_off>; + pinctrl-13 =3D <&aud_gpio_i2s2_on>; + pinctrl-14 =3D <&aud_gpio_i2s3_off>; + pinctrl-15 =3D <&aud_gpio_i2s3_on>; + pinctrl-16 =3D <&aud_gpio_tdm_off>; + pinctrl-17 =3D <&aud_gpio_tdm_on>; + pinctrl-18 =3D <&aud_gpio_pcm_off>; + pinctrl-19 =3D <&aud_gpio_pcm_on>; + pinctrl-20 =3D <&aud_gpio_dmic_sec>; + mediatek,adsp =3D <&adsp>; + mediatek,platform =3D <&afe>; + + playback-codecs { + sound-dai =3D <&it6505dptx>, <&rt1019p>; + }; + + headset-codec { + sound-dai =3D <&rt5682s 0>; + }; + }; + + rt1019p: speaker-codec { + compatible =3D "realtek,rt1019p"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&rt1019p_pins_default>; + sdb-gpios =3D <&pio 150 GPIO_ACTIVE_HIGH>; + #sound-dai-cells =3D <0>; + }; + + usb_p1_vbus: regulator-usb-p1-vbus { + compatible =3D "regulator-fixed"; + regulator-name =3D "vbus1"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + enable-active-high; + gpio =3D <&pio 148 GPIO_ACTIVE_HIGH>; + vin-supply =3D <&pp5000_z2>; + }; + + wifi_pwrseq: wifi-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&wifi_enable_pin>; + post-power-on-delay-ms =3D <50>; + reset-gpios =3D <&pio 54 GPIO_ACTIVE_LOW>; + }; + + wifi_wakeup: wifi-wakeup { + compatible =3D "gpio-keys"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&wifi_wakeup_pin>; + + wowlan-event { + label =3D "Wake on WiFi"; + gpios =3D <&pio 7 GPIO_ACTIVE_LOW>; + linux,code =3D ; + wakeup-source; + }; + }; +}; + +&adsp { + memory-region =3D <&adsp_dma_mem>, <&adsp_mem>; + status =3D "disabled"; /* causes stall */ +}; + +&afe { + i2s0-share =3D "I2S1"; + i2s3-share =3D "I2S2"; + status =3D "okay"; +}; + +&cci { + proc-supply =3D <&mt6366_vproc12_reg>; +}; + +&cpu0 { + proc-supply =3D <&mt6366_vproc12_reg>; +}; + +&cpu1 { + proc-supply =3D <&mt6366_vproc12_reg>; +}; + +&cpu2 { + proc-supply =3D <&mt6366_vproc12_reg>; +}; + +&cpu3 { + proc-supply =3D <&mt6366_vproc12_reg>; +}; + +&cpu4 { + proc-supply =3D <&mt6366_vproc12_reg>; +}; + +&cpu5 { + proc-supply =3D <&mt6366_vproc12_reg>; +}; + +&cpu6 { + proc-supply =3D <&mt6366_vproc11_reg>; +}; + +&cpu7 { + proc-supply =3D <&mt6366_vproc11_reg>; +}; + +&dpi { + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&dpi_pins_default>; + pinctrl-1 =3D <&dpi_pins_sleep>; + status =3D "okay"; +}; + +&dpi_out { + remote-endpoint =3D <&it6505_in>; +}; + +&dsi0 { + status =3D "okay"; +}; + +&gic { + mediatek,broken-save-restore-fw; +}; + +&gpu { + mali-supply =3D <&mt6366_vgpu_reg>; + status =3D "okay"; +}; + +&i2c0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c0_pins>; + status =3D "okay"; +}; + +&i2c1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c1_pins>; + clock-frequency =3D <400000>; + i2c-scl-internal-delay-ns =3D <8000>; + status =3D "okay"; +}; + +&i2c2 { + pinctrl-names =3D "default"; + /* + * Trackpad pin put here to work around second source components + * sharing the pinmux in steelix designs. + */ + pinctrl-0 =3D <&i2c2_pins>, <&trackpad_pin>; + clock-frequency =3D <400000>; + i2c-scl-internal-delay-ns =3D <10000>; + status =3D "okay"; + + trackpad@15 { + compatible =3D "elan,ekth3000"; + reg =3D <0x15>; + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_LOW>; + vcc-supply =3D <&pp3300_s3>; + wakeup-source; + }; +}; + +&i2c3 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c3_pins>; + clock-frequency =3D <100000>; + status =3D "okay"; + + it6505dptx: dp-bridge@5c { + compatible =3D "ite,it6505"; + reg =3D <0x5c>; + interrupts-extended =3D <&pio 8 IRQ_TYPE_LEVEL_LOW>; + ovdd-supply =3D <&mt6366_vsim2_reg>; + pwr18-supply =3D <&pp1800_dpbrdg_dx>; + reset-gpios =3D <&pio 177 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&it6505_pins>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + #sound-dai-cells =3D <0>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + it6505_in: endpoint { + link-frequencies =3D /bits/ 64 <150000000>; + remote-endpoint =3D <&dpi_out>; + }; + }; + + port@1 { + reg =3D <1>; + }; + }; + }; +}; + +&i2c5 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c5_pins>; + status =3D "okay"; + + rt5682s: codec@1a { + compatible =3D "realtek,rt5682s"; + reg =3D <0x1a>; + interrupts-extended =3D <&pio 17 IRQ_TYPE_EDGE_BOTH>; + AVDD-supply =3D <&mt6366_vio18_reg>; + DBVDD-supply =3D <&mt6366_vio18_reg>; + LDO1-IN-supply =3D <&mt6366_vio18_reg>; + MICVDD-supply =3D <&pp3300_z2>; + realtek,jd-src =3D <1>; + #sound-dai-cells =3D <1>; + }; +}; + +&mfg0 { + domain-supply =3D <&mt6366_vsram_gpu_reg>; +}; + +&mfg1 { + domain-supply =3D <&mt6366_vgpu_reg>; +}; + +&mipi_tx0 { + status =3D "okay"; +}; + +&mmc0 { + pinctrl-names =3D "default", "state_uhs"; + pinctrl-0 =3D <&mmc0_pins_default>; + pinctrl-1 =3D <&mmc0_pins_uhs>; + bus-width =3D <8>; + max-frequency =3D <200000000>; + non-removable; + cap-mmc-highspeed; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + supports-cqe; + no-sd; + no-sdio; + cap-mmc-hw-reset; + hs400-ds-delay =3D <0x11814>; + mediatek,hs400-ds-dly3 =3D <0x14>; + vmmc-supply =3D <&mt6366_vemc_reg>; + vqmmc-supply =3D <&mt6366_vio18_reg>; + status =3D "okay"; +}; + +&mmc1 { + pinctrl-names =3D "default", "state_uhs", "state_eint"; + pinctrl-0 =3D <&mmc1_pins_default>; + pinctrl-1 =3D <&mmc1_pins_uhs>; + pinctrl-2 =3D <&mmc1_pins_eint>; + /delete-property/ interrupts; + interrupt-names =3D "msdc", "sdio_wakeup"; + interrupts-extended =3D <&gic GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>, + <&pio 87 IRQ_TYPE_LEVEL_LOW>; + bus-width =3D <4>; + max-frequency =3D <200000000>; + cap-sd-highspeed; + sd-uhs-sdr104; + sd-uhs-sdr50; + keep-power-in-suspend; + wakeup-source; + cap-sdio-irq; + no-mmc; + no-sd; + non-removable; + vmmc-supply =3D <&pp3300_s3>; + vqmmc-supply =3D <&mt6366_vio18_reg>; + mmc-pwrseq =3D <&wifi_pwrseq>; + status =3D "okay"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + bluetooth@2 { + compatible =3D "mediatek,mt7921s-bluetooth"; + reg =3D <2>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&bt_pins_reset>; + reset-gpios =3D <&pio 155 GPIO_ACTIVE_LOW>; + }; +}; + +&nor_flash { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&nor_pins_default>; + assigned-clock-parents =3D <&topckgen CLK_TOP_MAINPLL_D7_D4>; + status =3D "okay"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + flash@0 { + compatible =3D "jedec,spi-nor"; + reg =3D <0>; + spi-max-frequency =3D <39000000>; + }; +}; + +&pio { + /* 185 lines */ + gpio-line-names =3D "TP", + "TP", + "TP", + "I2S0_HP_DI", + "I2S3_DP_SPKR_DO", + "SAR_INT_ODL", + "BT_WAKE_AP_ODL", + "WIFI_INT_ODL", + "DPBRDG_INT_ODL", + "EDPBRDG_INT_ODL", + "EC_AP_HPD_OD", + "TCHPAD_INT_ODL", + "TCHSCR_INT_1V8_ODL", + "EC_AP_INT_ODL", + "EC_IN_RW_ODL", + "GSC_AP_INT_ODL", + /* AP_FLASH_WP_L is crossystem ABI. Rev1 schematics call it AP_WP_ODL= . */ + "AP_FLASH_WP_L", + "HP_INT_ODL", + "PEN_EJECT_OD", + "WCAM_PWDN_L", + "WCAM_RST_L", + "UCAM_SEN_EN", + "UCAM_RST_L", + "LTE_RESET_L", + "LTE_SAR_DETECT_L", + "I2S2_DP_SPK_MCK", + "I2S2_DP_SPKR_BCK", + "I2S2_DP_SPKR_LRCK", + "I2S2_DP_SPKR_DI (TP)", + "EN_PP1000_EDPBRDG", + "EN_PP1800_EDPBRDG", + "EN_PP3300_EDPBRDG", + "UART_GSC_TX_AP_RX", + "UART_AP_TX_GSC_RX", + "UART_DBGCON_TX_ADSP_RX", + "UART_ADSP_TX_DBGCON_RX", + "EN_PP1000_DPBRDG", + "TCHSCR_REPORT_DISABLE", + "EN_PP3300_DPBRDG", + "EN_PP1800_DPBRDG", + "SPI_AP_CLK_EC", + "SPI_AP_CS_EC_L", + "SPI_AP_DO_EC_DI", + "SPI_AP_DI_EC_DO", + "SPI_AP_CLK_GSC", + "SPI_AP_CS_GSC_L", + "SPI_AP_DO_GSC_DI", + "SPI_AP_DI_GSC_DO", + "UART_DBGCON_TX_SCP_RX", + "UART_SCP_TX_DBGCON_RX", + "EN_PP1200_CAM_X", + "EN_PP2800A_VCM_X", + "EN_PP2800A_UCAM_X", + "EN_PP2800A_WCAM_X", + "WLAN_MODULE_RST_L", + "EN_PP1200_UCAM_X", + "I2S1_HP_DO", + "I2S1_HP_BCK", + "I2S1_HP_LRCK", + "I2S1_HP_MCK", + "TCHSCR_RST_1V8_L", + "SPI_AP_CLK_ROM", + "SPI_AP_CS_ROM_L", + "SPI_AP_DO_ROM_DI", + "SPI_AP_DI_ROM_DO", + "NC", + "NC", + "EMMC_STRB", + "EMMC_CLK", + "EMMC_CMD", + "EMMC_RST_L", + "EMMC_DATA0", + "EMMC_DATA1", + "EMMC_DATA2", + "EMMC_DATA3", + "EMMC_DATA4", + "EMMC_DATA5", + "EMMC_DATA6", + "EMMC_DATA7", + "AP_KPCOL0", + "NC", + "NC", + "NC", + "TP", + "SDIO_CLK", + "SDIO_CMD", + "SDIO_DATA0", + "SDIO_DATA1", + "SDIO_DATA2", + "SDIO_DATA3", + "NC", + "NC", + "NC", + "NC", + "NC", + "NC", + "EDPBRDG_PWREN", + "BL_PWM_1V8", + "EDPBRDG_RST_L", + "MIPI_DPI_CLK", + "MIPI_DPI_VSYNC", + "MIPI_DPI_HSYNC", + "MIPI_DPI_DE", + "MIPI_DPI_D0", + "MIPI_DPI_D1", + "MIPI_DPI_D2", + "MIPI_DPI_D3", + "MIPI_DPI_D4", + "MIPI_DPI_D5", + "MIPI_DPI_D6", + "MIPI_DPI_DA7", + "MIPI_DPI_D8", + "MIPI_DPI_D9", + "MIPI_DPI_D10", + "MIPI_DPI_D11", + "PCM_BT_CLK", + "PCM_BT_SYNC", + "PCM_BT_DI", + "PCM_BT_DO", + "JTAG_TMS_TP", + "JTAG_TCK_TP", + "JTAG_TDI_TP", + "JTAG_TDO_TP", + "JTAG_TRSTN_TP", + "CLK_24M_WCAM", + "CLK_24M_UCAM", + "UCAM_DET_ODL", + "AP_I2C_EDPBRDG_SCL_1V8", + "AP_I2C_EDPBRDG_SDA_1V8", + "AP_I2C_TCHSCR_SCL_1V8", + "AP_I2C_TCHSCR_SDA_1V8", + "AP_I2C_TCHPAD_SCL_1V8", + "AP_I2C_TCHPAD_SDA_1V8", + "AP_I2C_DPBRDG_SCL_1V8", + "AP_I2C_DPBRDG_SDA_1V8", + "AP_I2C_WLAN_SCL_1V8", + "AP_I2C_WLAN_SDA_1V8", + "AP_I2C_AUD_SCL_1V8", + "AP_I2C_AUD_SDA_1V8", + "AP_I2C_TPM_SCL_1V8", + "AP_I2C_UCAM_SDA_1V8", + "AP_I2C_UCAM_SCL_1V8", + "AP_I2C_UCAM_SDA_1V8", + "AP_I2C_WCAM_SCL_1V8", + "AP_I2C_WCAM_SDA_1V8", + "SCP_I2C_SENSOR_SCL_1V8", + "SCP_I2C_SENSOR_SDA_1V8", + "AP_EC_WARM_RST_REQ", + "AP_XHCI_INIT_DONE", + "USB3_HUB_RST_L", + "EN_SPKR", + "BEEP_ON", + "AP_EDP_BKLTEN", + "EN_PP3300_DISP_X", + "EN_PP3300_SDBRDG_X", + "BT_KILL_1V8_L", + "WIFI_KILL_1V8_L", + "PWRAP_SPI0_CSN", + "PWRAP_SPI0_CK", + "PWRAP_SPI0_MO", + "PWRAP_SPI0_MI", + "SRCLKENA0", + "SRCLKENA1", + "SCP_VREQ_VAO", + "AP_RTC_CLK32K", + "AP_PMIC_WDTRST_L", + "AUD_CLK_MOSI", + "AUD_SYNC_MOSI", + "AUD_DAT_MOSI0", + "AUD_DAT_MOSI1", + "AUD_CLK_MISO", + "AUD_SYNC_MISO", + "AUD_DAT_MISO0", + "AUD_DAT_MISO1", + "NC", + "NC", + "DPBRDG_PWREN", + "DPBRDG_RST_L", + "LTE_W_DISABLE_L", + "LTE_SAR_DETECT_L", + "EN_PP3300_LTE_X", + "LTE_PWR_OFF_L", + "LTE_RESET_L", + "TP", + "TP"; + + aud_clk_mosi_off: aud-clk-mosi-off-pins { + pins-clk-sync { + pinmux =3D , + ; + input-enable; + bias-pull-down; + }; + }; + + aud_clk_mosi_on: aud-clk-mosi-on-pins { + pins-clk-sync { + pinmux =3D , + ; + }; + }; + + aud_clk_miso_off: aud-clk-miso-off-pins { + pins-clk-sync { + pinmux =3D , + ; + input-enable; + bias-pull-down; + }; + }; + + aud_clk_miso_on: aud-clk-miso-on-pins { + pins-clk-sync { + pinmux =3D , + ; + }; + }; + + aud_dat_mosi_off: aud-dat-mosi-off-pins { + pins-dat { + pinmux =3D , + ; + input-enable; + bias-pull-down; + }; + }; + + aud_dat_mosi_on: aud-dat-mosi-on-pins { + pins-dat { + pinmux =3D , + ; + }; + }; + + aud_dat_miso_off: aud-dat-miso-off-pins { + pins-dat { + pinmux =3D , + ; + input-enable; + bias-pull-down; + }; + }; + + aud_dat_miso_on: aud-dat-miso-on-pins { + pins-dat { + pinmux =3D , + ; + input-schmitt-enable; + bias-disable; + }; + }; + + aud_gpio_i2s0_off: aud-gpio-i2s0-off-pins { + pins-sdata { + pinmux =3D ; + }; + }; + + aud_gpio_i2s0_on: aud-gpio-i2s0-on-pins { + pins-sdata { + pinmux =3D ; + }; + }; + + aud_gpio_i2s1_off: aud-gpio-i2s-off-pins { + pins-clk-sdata { + pinmux =3D , + , + , + ; + output-low; + }; + }; + + aud_gpio_i2s1_on: aud-gpio-i2s1-on-pins { + pins-clk-sdata { + pinmux =3D , + , + , + ; + }; + }; + + aud_gpio_i2s2_off: aud-gpio-i2s2-off-pins { + pins-cmd-dat { + pinmux =3D , + ; + output-low; + }; + }; + + aud_gpio_i2s2_on: aud-gpio-i2s2-on-pins { + pins-clk { + pinmux =3D , + ; + drive-strength =3D <4>; + }; + }; + + aud_gpio_i2s3_off: aud-gpio-i2s3-off-pins { + pins-sdata { + pinmux =3D ; + output-low; + }; + }; + + aud_gpio_i2s3_on: aud-gpio-i2s3-on-pins { + pins-sdata { + pinmux =3D ; + drive-strength =3D <4>; + }; + }; + + aud_gpio_tdm_off: aud-gpio-tdm-off-pins { }; + + aud_gpio_tdm_on: aud-gpio-tdm-on-pins { }; + + aud_gpio_pcm_off: aud-gpio-pcm-off-pins { + pins-clk-sdata { + pinmux =3D , + , + , + ; + output-low; + }; + }; + + aud_gpio_pcm_on: aud-gpio-pcm-on-pins { + pins-clk-sdata { + pinmux =3D , + , + , + ; + }; + }; + + aud_gpio_dmic_sec: aud-gpio-dmic-sec-pins { + pins { + pinmux =3D ; + output-low; + }; + }; + + bt_pins_reset: bt-reset-pins { + pins-bt-reset { + pinmux =3D ; + output-high; + }; + }; + + dpi_pins_sleep: dpi-sleep-pins { + pins-cmd-dat { + pinmux =3D , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + drive-strength =3D <10>; + output-low; + }; + }; + + dpi_pins_default: dpi-default-pins { + pins-cmd-dat { + pinmux =3D , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + drive-strength =3D <10>; + }; + }; + + ec_ap_int: cros-ec-int-pins { + pins-ec-ap-int-odl { + pinmux =3D ; + input-enable; + }; + }; + + edp_panel_fixed_pins: edp-panel-fixed-pins { + pins-vreg-en { + pinmux =3D ; + output-high; + }; + }; + + en_pp1800_dpbrdg: en-pp1800-dpbrdg-pins { + pins-vreg-en { + pinmux =3D ; + output-low; + }; + }; + + gsc_int: gsc-int-pins { + pins-gsc-ap-int-odl { + pinmux =3D ; + input-enable; + }; + }; + + i2c0_pins: i2c0-pins { + pins-bus { + pinmux =3D , + ; + bias-disable; + drive-strength =3D <4>; + input-enable; + }; + }; + + i2c1_pins: i2c1-pins { + pins-bus { + pinmux =3D , + ; + bias-disable; + drive-strength =3D <4>; + input-enable; + }; + }; + + i2c2_pins: i2c2-pins { + pins-bus { + pinmux =3D , + ; + bias-disable; + drive-strength =3D <4>; + input-enable; + }; + }; + + i2c3_pins: i2c3-pins { + pins-bus { + pinmux =3D , + ; + bias-disable; + drive-strength =3D <4>; + input-enable; + }; + }; + + i2c5_pins: i2c5-pins { + pins-bus { + pinmux =3D , + ; + bias-disable; + drive-strength =3D <4>; + input-enable; + }; + }; + + it6505_pins: it6505-pins { + pins-hpd { + pinmux =3D ; + input-enable; + bias-pull-up; + }; + + pins-int { + pinmux =3D ; + input-enable; + bias-pull-up; + }; + + pins-reset { + pinmux =3D ; + output-low; + bias-pull-up; + }; + }; + + mmc0_pins_default: mmc0-default-pins { + pins-clk { + pinmux =3D ; + bias-pull-down =3D ; + }; + + pins-cmd-dat { + pinmux =3D , + , + , + , + , + , + , + , + ; + input-enable; + bias-pull-up =3D ; + }; + + pins-rst { + pinmux =3D ; + bias-pull-up =3D ; + }; + }; + + mmc0_pins_uhs: mmc0-uhs-pins { + pins-clk { + pinmux =3D ; + drive-strength =3D <6>; + bias-pull-down =3D ; + }; + + pins-cmd-dat { + pinmux =3D , + , + , + , + , + , + , + , + ; + input-enable; + drive-strength =3D <6>; + bias-pull-up =3D ; + }; + + pins-ds { + pinmux =3D ; + drive-strength =3D <6>; + bias-pull-down =3D ; + }; + + pins-rst { + pinmux =3D ; + bias-pull-up =3D ; + }; + }; + + mmc1_pins_default: mmc1-default-pins { + pins-clk { + pinmux =3D ; + drive-strength =3D <6>; + bias-pull-down =3D ; + }; + + pins-cmd-dat { + pinmux =3D , + , + , + , + ; + input-enable; + drive-strength =3D <6>; + bias-pull-up =3D ; + }; + }; + + mmc1_pins_uhs: mmc1-uhs-pins { + pins-clk { + pinmux =3D ; + drive-strength =3D <6>; + bias-pull-down =3D ; + }; + + pins-cmd-dat { + pinmux =3D , + , + , + , + ; + input-enable; + drive-strength =3D <8>; + bias-pull-up =3D ; + }; + }; + + mmc1_pins_eint: mmc1-eint-pins { + pins-dat1 { + pinmux =3D ; + input-enable; + bias-pull-up =3D ; + }; + }; + + nor_pins_default: nor-default-pins { + pins-clk-dat { + pinmux =3D , + , + ; + drive-strength =3D <6>; + bias-pull-down; + }; + + pins-cs-dat { + pinmux =3D , + , + ; + drive-strength =3D <6>; + bias-pull-up; + }; + }; + + pen_eject: pen-eject-pins { + pins { + pinmux =3D ; + input-enable; + /* External pull-up. */ + bias-disable; + }; + }; + + pwm0_pin: disp-pwm-pins { + pins { + pinmux =3D ; + output-high; + }; + }; + + rt1019p_pins_default: rt1019p-default-pins { + pins-sdb { + pinmux =3D ; + output-low; + }; + }; + + scp_pins: scp-default-pins { + pins-scp-uart { + pinmux =3D , + ; + }; + }; + + spi1_pins: spi1-pins { + pins-bus { + pinmux =3D , + , + , + ; + bias-disable; + input-enable; + }; + }; + + spi2_pins: spi2-pins { + pins-bus { + pinmux =3D , + , + , + ; + bias-disable; + input-enable; + }; + }; + + spmi_pins: spmi-pins { + pins-bus { + pinmux =3D , + ; + }; + }; + + touchscreen_pins: touchscreen-pins { + pins-irq { + pinmux =3D ; + input-enable; + bias-pull-up; + }; + + pins-reset { + pinmux =3D ; + output-high; + }; + + pins-report-sw { + pinmux =3D ; + output-low; + }; + }; + + trackpad_pin: trackpad-default-pins { + pins-int-n { + pinmux =3D ; + input-enable; + bias-disable; /* pulled externally */ + }; + }; + + wifi_enable_pin: wifi-enable-pins { + pins-wifi-enable { + pinmux =3D ; + }; + }; + + wifi_wakeup_pin: wifi-wakeup-pins { + pins-wifi-wakeup { + pinmux =3D ; + input-enable; + }; + }; +}; + +&pwm0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pwm0_pin>; + status =3D "okay"; +}; + +&pwrap { + pmic { + compatible =3D "mediatek,mt6366", "mediatek,mt6358"; + interrupt-controller; + interrupts-extended =3D <&pio 201 IRQ_TYPE_LEVEL_HIGH>; + #interrupt-cells =3D <2>; + + mt6366codec: codec { + compatible =3D "mediatek,mt6366-sound", "mediatek,mt6358-sound"; + Avdd-supply =3D <&mt6366_vaud28_reg>; + mediatek,dmic-mode =3D <1>; /* one-wire */ + }; + + mt6366_regulators: regulators { + compatible =3D "mediatek,mt6366-regulator", "mediatek,mt6358-regulator"; + vsys-ldo1-supply =3D <&pp4200_z2>; + vsys-ldo2-supply =3D <&pp4200_z2>; + vsys-ldo3-supply =3D <&pp4200_z2>; + vsys-vcore-supply =3D <&pp4200_z2>; + vsys-vdram1-supply =3D <&pp4200_z2>; + vsys-vgpu-supply =3D <&pp4200_z2>; + vsys-vmodem-supply =3D <&pp4200_z2>; + vsys-vpa-supply =3D <&pp4200_z2>; + vsys-vproc11-supply =3D <&pp4200_z2>; + vsys-vproc12-supply =3D <&pp4200_z2>; + vsys-vs1-supply =3D <&pp4200_z2>; + vsys-vs2-supply =3D <&pp4200_z2>; + vs1-ldo1-supply =3D <&mt6366_vs1_reg>; + vs2-ldo1-supply =3D <&mt6366_vdram1_reg>; + vs2-ldo2-supply =3D <&mt6366_vs2_reg>; + vs2-ldo3-supply =3D <&mt6366_vs2_reg>; + + vcore { + regulator-name =3D "pp0750_dvdd_core"; + regulator-min-microvolt =3D <550000>; + regulator-max-microvolt =3D <800000>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <200>; + regulator-allowed-modes =3D ; + regulator-always-on; + }; + + mt6366_vdram1_reg: vdram1 { + regulator-name =3D "pp1125_emi_vdd2"; + regulator-min-microvolt =3D <1125000>; + regulator-max-microvolt =3D <1125000>; + regulator-ramp-delay =3D <12500>; + regulator-enable-ramp-delay =3D <0>; + regulator-allowed-modes =3D ; + regulator-always-on; + }; + + mt6366_vgpu_reg: vgpu { + /* + * Called "ppvar_dvdd_gpu" in the schematic. + * Called "ppvar_dvdd_vgpu" here to match + * regulator coupling requirements. + */ + regulator-name =3D "ppvar_dvdd_vgpu"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <950000>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <200>; + regulator-allowed-modes =3D ; + regulator-coupled-with =3D <&mt6366_vsram_gpu_reg>; + regulator-coupled-max-spread =3D <10000>; + }; + + mt6366_vproc11_reg: vproc11 { + regulator-name =3D "ppvar_dvdd_proc_bc_mt6366"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1200000>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <200>; + regulator-allowed-modes =3D ; + regulator-always-on; + }; + + mt6366_vproc12_reg: vproc12 { + regulator-name =3D "ppvar_dvdd_proc_lc"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1200000>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <200>; + regulator-allowed-modes =3D ; + regulator-always-on; + }; + + mt6366_vs1_reg: vs1 { + regulator-name =3D "pp2000_vs1"; + regulator-min-microvolt =3D <2000000>; + regulator-max-microvolt =3D <2000000>; + regulator-ramp-delay =3D <12500>; + regulator-enable-ramp-delay =3D <0>; + regulator-always-on; + }; + + mt6366_vs2_reg: vs2 { + regulator-name =3D "pp1350_vs2"; + regulator-min-microvolt =3D <1350000>; + regulator-max-microvolt =3D <1350000>; + regulator-ramp-delay =3D <12500>; + regulator-enable-ramp-delay =3D <0>; + regulator-always-on; + }; + + va12 { + regulator-name =3D "pp1200_va12"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-enable-ramp-delay =3D <270>; + regulator-always-on; + }; + + mt6366_vaud28_reg: vaud28 { + regulator-name =3D "pp2800_vaud28"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <270>; + }; + + mt6366_vaux18_reg: vaux18 { + regulator-name =3D "pp1840_vaux18"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1840000>; + regulator-enable-ramp-delay =3D <270>; + }; + + mt6366_vbif28_reg: vbif28 { + regulator-name =3D "pp2800_vbif28"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <270>; + }; + + mt6366_vcn18_reg: vcn18 { + regulator-name =3D "pp1800_vcn18_x"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <270>; + }; + + mt6366_vcn28_reg: vcn28 { + regulator-name =3D "pp2800_vcn28_x"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <270>; + }; + + mt6366_vefuse_reg: vefuse { + regulator-name =3D "pp1800_vefuse"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <270>; + }; + + mt6366_vfe28_reg: vfe28 { + regulator-name =3D "pp2800_vfe28_x"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <270>; + }; + + mt6366_vemc_reg: vemc { + regulator-name =3D "pp3000_vemc"; + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3000000>; + regulator-enable-ramp-delay =3D <60>; + }; + + mt6366_vibr_reg: vibr { + regulator-name =3D "pp2800_vibr_x"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <60>; + }; + + mt6366_vio18_reg: vio18 { + regulator-name =3D "pp1800_vio18_s3"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <2700>; + regulator-always-on; + }; + + mt6366_vio28_reg: vio28 { + regulator-name =3D "pp2800_vio28_x"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <270>; + }; + + mt6366_vm18_reg: vm18 { + regulator-name =3D "pp1800_emi_vdd1"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1840000>; + regulator-enable-ramp-delay =3D <325>; + regulator-always-on; + }; + + mt6366_vmc_reg: vmc { + regulator-name =3D "pp3000_vmc"; + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3000000>; + regulator-enable-ramp-delay =3D <60>; + }; + + mt6366_vmddr_reg: vmddr { + regulator-name =3D "pm0750_emi_vmddr"; + regulator-min-microvolt =3D <700000>; + regulator-max-microvolt =3D <750000>; + regulator-enable-ramp-delay =3D <325>; + regulator-always-on; + }; + + mt6366_vmch_reg: vmch { + regulator-name =3D "pp3000_vmch"; + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3000000>; + regulator-enable-ramp-delay =3D <60>; + }; + + mt6366_vcn33_reg: vcn33 { + regulator-name =3D "pp3300_vcn33_x"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-enable-ramp-delay =3D <270>; + }; + + vdram2 { + regulator-name =3D "pp0600_emi_vddq"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <600000>; + regulator-enable-ramp-delay =3D <3300>; + regulator-always-on; + }; + + mt6366_vrf12_reg: vrf12 { + regulator-name =3D "pp1200_vrf12_x"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-enable-ramp-delay =3D <120>; + }; + + mt6366_vrf18_reg: vrf18 { + regulator-name =3D "pp1800_vrf18_x"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <120>; + }; + + vsim1 { + regulator-name =3D "pp1860_vsim1_x"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1860000>; + regulator-enable-ramp-delay =3D <540>; + }; + + mt6366_vsim2_reg: vsim2 { + regulator-name =3D "pp2760_vsim2_x"; + regulator-min-microvolt =3D <2700000>; + regulator-max-microvolt =3D <2760000>; + regulator-enable-ramp-delay =3D <540>; + }; + + mt6366_vsram_gpu_reg: vsram-gpu { + regulator-name =3D "pp0900_dvdd_sram_gpu"; + regulator-min-microvolt =3D <850000>; + regulator-max-microvolt =3D <1050000>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <240>; + regulator-coupled-with =3D <&mt6366_vgpu_reg>; + regulator-coupled-max-spread =3D <10000>; + }; + + mt6366_vsram_others_reg: vsram-others { + regulator-name =3D "pp0900_dvdd_sram_core"; + regulator-min-microvolt =3D <900000>; + regulator-max-microvolt =3D <900000>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <240>; + regulator-always-on; + }; + + mt6366_vsram_proc11_reg: vsram-proc11 { + regulator-name =3D "pp0900_dvdd_sram_bc"; + regulator-min-microvolt =3D <850000>; + regulator-max-microvolt =3D <1120000>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <240>; + regulator-always-on; + }; + + mt6366_vsram_proc12_reg: vsram-proc12 { + regulator-name =3D "pp0900_dvdd_sram_lc"; + regulator-min-microvolt =3D <850000>; + regulator-max-microvolt =3D <1120000>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <240>; + regulator-always-on; + }; + + vusb { + regulator-name =3D "pp3070_vusb"; + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3070000>; + regulator-enable-ramp-delay =3D <270>; + regulator-always-on; + }; + + vxo22 { + regulator-name =3D "pp2240_vxo22"; + regulator-min-microvolt =3D <2200000>; + regulator-max-microvolt =3D <2240000>; + regulator-enable-ramp-delay =3D <120>; + /* Feeds DCXO internally */ + regulator-always-on; + }; + }; + + rtc { + compatible =3D "mediatek,mt6366-rtc", "mediatek,mt6358-rtc"; + }; + }; +}; + +&scp { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&scp_pins>; + firmware-name =3D "mediatek/mt8186/scp.img"; + memory-region =3D <&scp_mem>; + status =3D "okay"; + + cros-ec-rpmsg { + compatible =3D "google,cros-ec-rpmsg"; + mediatek,rpmsg-name =3D "cros-ec-rpmsg"; + }; +}; + +&spi1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&spi1_pins>; + mediatek,pad-select =3D <0>; + status =3D "okay"; + + cros_ec: ec@0 { + compatible =3D "google,cros-ec-spi"; + reg =3D <0>; + spi-max-frequency =3D <1000000>; + interrupts-extended =3D <&pio 13 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&ec_ap_int>; + + i2c_tunnel: i2c-tunnel { + compatible =3D "google,cros-ec-i2c-tunnel"; + google,remote-bus =3D <1>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + + typec { + compatible =3D "google,cros-ec-typec"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + usb_c0: connector@0 { + compatible =3D "usb-c-connector"; + reg =3D <0>; + label =3D "left"; + power-role =3D "dual"; + data-role =3D "host"; + try-power-role =3D "source"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@1 { + reg =3D <1>; + + typec_port0: endpoint { }; + }; + }; + }; + + usb_c1: connector@1 { + compatible =3D "usb-c-connector"; + reg =3D <1>; + label =3D "right"; + power-role =3D "dual"; + data-role =3D "host"; + try-power-role =3D "source"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@1 { + reg =3D <1>; + + typec_port1: endpoint { }; + }; + }; + }; + }; + }; +}; + +&spi2 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&spi2_pins>; + cs-gpios =3D <&pio 45 GPIO_ACTIVE_LOW>; + mediatek,pad-select =3D <0>; + status =3D "okay"; + + tpm@0 { + compatible =3D "google,cr50"; + reg =3D <0>; + spi-max-frequency =3D <1000000>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&gsc_int>; + interrupt-parent =3D <&pio>; + interrupts =3D <15 IRQ_TYPE_EDGE_RISING>; + }; +}; + +&ssusb0 { + status =3D "okay"; +}; + +&ssusb1 { + status =3D "okay"; +}; + +&u3phy0 { + status =3D "okay"; +}; + +&u3phy1 { + status =3D "okay"; +}; + +&uart0 { + status =3D "okay"; +}; + +&usb_host0 { + vbus-supply =3D <&pp3300_s3>; + status =3D "okay"; +}; + +&usb_host1 { + vbus-supply =3D <&usb_p1_vbus>; + status =3D "okay"; + #address-cells =3D <2>; + #size-cells =3D <2>; +}; + +&watchdog { + mediatek,reset-by-toprgu; +}; + +#include +#include --=20 2.43.0.rc2.451.g8631bc7472-goog From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A8A9C46CA0 for ; Mon, 4 Dec 2023 08:42:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234905AbjLDImt (ORCPT ); Mon, 4 Dec 2023 03:42:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234953AbjLDImk (ORCPT ); Mon, 4 Dec 2023 03:42:40 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01DED10C for ; Mon, 4 Dec 2023 00:42:36 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1d04d286bc0so13336045ad.3 for ; Mon, 04 Dec 2023 00:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679356; x=1702284156; darn=vger.kernel.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=OXDmR35PSwt5zimt75w5RuDKP6s87NauCjPbXnXkPPY=; b=dOoGNY6HT6uhZZOca7sSmtlGm2nMkkvvfjipfToWGFVFMoXDrticWHuZyXPVWhd/3m 9NLdyjB/ZdVIwk2HW2D7GIGu0u1vnfx5efEe9VmQ5dQdJCPrzTd0nKxk1aGu6VbscmMU R1aPQnNTp1k+8o3lGn1YhS99piJ6tmICHtaW4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679356; x=1702284156; 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=OXDmR35PSwt5zimt75w5RuDKP6s87NauCjPbXnXkPPY=; b=YGFqTTTpgXaFhqUI7mmTd4DPYwsZpuN96xlHCTNDDcR4hhtEjn/G/knyPln6sPKSEK +3XRBSJOewst2RDX+u+myao8795Qm7FaGpINQgB4NBTm1uJ7x7X/pH8jE8kqG8iToAU0 28gIhCY59jGwqmLAekxl6Y810Rnp0wCSflt8F/vrxrzfKVaKpBjISKJ1HkyEIZaqPWYu Gw6Zp2Mz6flbYcagLpjB5Gq5N9Qxu+PMFMgVR2wYn7BnLakhspt6QeamUteS0BXFKJEK UiA9u/uzCZMtMhctFDJRXteX63jAkVqQsbyZQboQmDkMXuR+EQjrJdO+6JpHR9KAMcIp iQgg== X-Gm-Message-State: AOJu0Yx9M92e+INW7fIJq++xQXjRLXQpEpK9TBtZ/OL5g8bwv+kM+E69 vMXbqFO4G+3KdXZRtvcgXSI9ew== X-Google-Smtp-Source: AGHT+IGQFeUpgbN9ZYnZqlqWAKQZkCaHF3saYni6lBIywiJ3c2g6frOADBmwP2ylV276nH7EdGGaUQ== X-Received: by 2002:a17:903:2305:b0:1d0:6ffd:cea8 with SMTP id d5-20020a170903230500b001d06ffdcea8mr1559097plh.97.1701679356080; Mon, 04 Dec 2023 00:42:36 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:35 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 7/9] arm64: dts: mediatek: Introduce MT8186 Steelix Date: Mon, 4 Dec 2023 16:40:09 +0800 Message-ID: <20231204084012.2281292-8-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The MT8186 Steelix, also known as the Lenovo 300e Yoga Chromebook Gen 4, is a convertible device based on a common design of the same name. The device comes in different variants. Of them, whether a world facing camera is integrated is the only differentiating factor between the two device trees added. The different SKU IDs describe this alone. The other device difference is the touchpad component used. This is simply handled by having both possible components described in the device tree, and letting the implementation figure out which one is actually available. The system bootloader / firmware does not differentiate this in that they share the same SKU IDs. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley --- Changes since v2: - Picked up Conor's ack Changes since v1: - Removed trackpad_pins reference (moved to i2c2 in corsola dtsi) - Fixed copyright year - Renamed touchpad to trackpad arch/arm64/boot/dts/mediatek/Makefile | 2 + .../mt8186-corsola-steelix-sku131072.dts | 18 ++ .../mt8186-corsola-steelix-sku131073.dts | 18 ++ .../dts/mediatek/mt8186-corsola-steelix.dtsi | 195 ++++++++++++++++++ 4 files changed, 233 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku= 131072.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku= 131073.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/me= diatek/Makefile index 442af61b1305..7bd9471b89f9 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -43,6 +43,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-kodama-sku3= 2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-pumpkin.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-steelix-sku131072.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-steelix-sku131073.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-tentacool-sku327681.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-tentacool-sku327683.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-tentacruel-sku262144.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku131072.= dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku131072.dts new file mode 100644 index 000000000000..eae17bca8585 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku131072.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Steelix board"; + compatible =3D "google,steelix-sku131072", "google,steelix", + "mediatek,mt8186"; + chassis-type =3D "convertible"; +}; + +&mt6366codec { + mediatek,dmic-mode =3D <0>; /* two-wire */ +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku131073.= dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku131073.dts new file mode 100644 index 000000000000..a55375b95d0d --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku131073.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Steelix board"; + compatible =3D "google,steelix-sku131073", "google,steelix", + "mediatek,mt8186"; + chassis-type =3D "convertible"; +}; + +&mt6366codec { + mediatek,dmic-mode =3D <1>; /* one-wire */ +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi b/arc= h/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi new file mode 100644 index 000000000000..47262bc499ad --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi @@ -0,0 +1,195 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola.dtsi" +#include +#include + +/{ + pp1000_edpbrdg: regulator-pp1000-edpbrdg { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp1000_edpbrdg"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&en_pp1000_edpbrdg>; + enable-active-high; + regulator-boot-on; + gpio =3D <&pio 29 GPIO_ACTIVE_HIGH>; + vin-supply =3D <&pp3300_z2>; + }; + + pp1800_edpbrdg_dx: regulator-pp1800-edpbrdg-dx { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp1800_edpbrdg_dx"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&en_pp1800_edpbrdg>; + enable-active-high; + regulator-boot-on; + gpio =3D <&pio 30 GPIO_ACTIVE_HIGH>; + vin-supply =3D <&mt6366_vio18_reg>; + }; + + pp3300_edp_dx: regulator-pp3300-edp-dx { + compatible =3D "regulator-fixed"; + regulator-name =3D "pp3300_edp_dx"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&en_pp3300_edpbrdg>; + enable-active-high; + regulator-boot-on; + gpio =3D <&pio 31 GPIO_ACTIVE_HIGH>; + vin-supply =3D <&pp3300_z2>; + }; +}; + +&dsi_out { + remote-endpoint =3D <&anx7625_in>; +}; + +&i2c0 { + clock-frequency =3D <400000>; + + anx_bridge: anx7625@58 { + compatible =3D "analogix,anx7625"; + reg =3D <0x58>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&anx7625_pins>; + enable-gpios =3D <&pio 96 GPIO_ACTIVE_HIGH>; + reset-gpios =3D <&pio 98 GPIO_ACTIVE_HIGH>; + vdd10-supply =3D <&pp1000_edpbrdg>; + vdd18-supply =3D <&pp1800_edpbrdg_dx>; + vdd33-supply =3D <&pp3300_edp_dx>; + analogix,lane0-swing =3D /bits/ 8 <0x70 0x30>; + analogix,lane1-swing =3D /bits/ 8 <0x70 0x30>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + anx7625_in: endpoint { + remote-endpoint =3D <&dsi_out>; + data-lanes =3D <0 1 2 3>; + }; + }; + + port@1 { + reg =3D <1>; + + anx7625_out: endpoint { + remote-endpoint =3D <&panel_in>; + }; + }; + }; + + aux-bus { + panel: panel { + compatible =3D "edp-panel"; + power-supply =3D <&pp3300_disp_x>; + backlight =3D <&backlight_lcd0>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&anx7625_out>; + }; + }; + }; + }; + }; +}; + +&i2c1 { + touchscreen: touchscreen@5d { + compatible =3D "goodix,gt7375p"; + reg =3D <0x5d>; + interrupts-extended =3D <&pio 12 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&touchscreen_pins>; + reset-gpios =3D <&pio 60 GPIO_ACTIVE_LOW>; + vdd-supply =3D <&pp3300_s3>; + goodix,no-reset-during-suspend; + }; +}; + +&i2c2 { + i2c-scl-internal-delay-ns =3D <22000>; + + /* second source component */ + trackpad@2c { + compatible =3D "hid-over-i2c"; + reg =3D <0x2c>; + hid-descr-addr =3D <0x20>; + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_LOW>; + vdd-supply =3D <&pp3300_s3>; + wakeup-source; + }; +}; + +&keyboard_controller { + function-row-physmap =3D < + 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 */ + >; + + linux,keymap =3D < + 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_BRIGHTNESSDOWN) + MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSUP) + MATRIX_KEY(0x01, 0x04, KEY_MICMUTE) + MATRIX_KEY(0x02, 0x09, KEY_MUTE) + MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) + MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) + CROS_STD_MAIN_KEYMAP + >; +}; + +&pio { + anx7625_pins: anx7625-pins { + pins1 { + pinmux =3D , + ; + output-low; + }; + + pins2 { + pinmux =3D ; + input-enable; + bias-disable; + }; + }; + + en_pp1000_edpbrdg: pp1000-edpbrdg-en-pins { + pins { + pinmux =3D ; + output-low; + }; + }; + + en_pp1800_edpbrdg: pp1800-edpbrdg-en-pins { + pins { + pinmux =3D ; + output-low; + }; + }; + + en_pp3300_edpbrdg: pp3300-edpbrdg-en-pins { + pins { + pinmux =3D ; + output-low; + }; + }; +}; --=20 2.43.0.rc2.451.g8631bc7472-goog From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0171C10DC3 for ; Mon, 4 Dec 2023 08:43:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343631AbjLDImx (ORCPT ); Mon, 4 Dec 2023 03:42:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234909AbjLDImk (ORCPT ); Mon, 4 Dec 2023 03:42:40 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9FAD4F for ; Mon, 4 Dec 2023 00:42:39 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6cdde2aeb64so4132623b3a.2 for ; Mon, 04 Dec 2023 00:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679358; x=1702284158; darn=vger.kernel.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=9ljd2T3j+VnPx33d4ekX7y2D1w1JW97BW4rSuy9Dt1c=; b=gP3euRbGZCwntW1zC9Bwhj1piBkxvxHGyJn8R2GxW6qn3A8P6zLcxXZ7XRWnffD1tD qXei/XynG3toU2wxcjX19n8RzccgvBEcRc/TFCaR/K51Moy3ZmVpA7fR6PdbXh6HHcp4 QyMJ8udBKlOT5XOokhYKisi77cdCAfGp1qLcA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679358; x=1702284158; 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=9ljd2T3j+VnPx33d4ekX7y2D1w1JW97BW4rSuy9Dt1c=; b=ehv2VOLX/AU6BiqmfHrHvuM0MNqnt4GWfMVWQCdwpkzJ9+UuvVKjbuuDBbsIa2fuKN +d3F2Ew85dtMAI4tFUrPhirw8uHC6YI9q3QWgQqOTxCX9nnn2IeAS+ST8+g+O09sVHh5 ZuMqnIgDzloqwPlZfuaGkHOvf6pGF9Ug0zVGcGBtc97RtnzYKG+QzwVHFGkn0SzctHmH 4/efWqsA9hvQW7Axfy+8eiMlGI5PFQDEh7gTZtuGGvrcpGoPojDdzX26M59mwo7fYp3t Fv46w2TTBDghWEYGzhK9p5MNuGxS+ujtWtgtG4y1mTDDK7IY5ZXyYMAqocNdDHcJ5V6Y iC2g== X-Gm-Message-State: AOJu0Yx8IJVhXBd0TPu/oXDBg5baJwtz8d06laxSjoKMejCKBu9c+XXr 3Aa5w9V26OTpiAbZ0jBSBntAYw== X-Google-Smtp-Source: AGHT+IG/GF8Pm6cp3cedzDbB0NGJWF0gnZO6NRRQ4bKoSNmp32TEAouKqNXVEdPy5ZsKsd52VrR9qQ== X-Received: by 2002:a05:6a20:938d:b0:18f:97c:6165 with SMTP id x13-20020a056a20938d00b0018f097c6165mr4702348pzh.98.1701679358550; Mon, 04 Dec 2023 00:42:38 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:38 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 8/9] arm64: dts: mediatek: Add MT8186 Steelix platform based Rusty Date: Mon, 4 Dec 2023 16:40:10 +0800 Message-ID: <20231204084012.2281292-9-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" MT8186 Rusty, otherwise known as the Lenovo 100e Chromebook Gen 4, is an MT8186 based laptop. It is based on the "Steelix" design. Being a laptop instead of a convertible device, there is no touchscreen or stylus. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - Picked up Conor's ack Changes since v1: - Reorder SKU numbers in descending order. - Mark missing components as disabled instead of deleting the node arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mt8186-corsola-rusty-sku196608.dts | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-rusty-sku19= 6608.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/me= diatek/Makefile index 7bd9471b89f9..6b05f1f2e645 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -43,6 +43,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-kodama-sku3= 2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-pumpkin.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-rusty-sku196608.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-steelix-sku131072.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-steelix-sku131073.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-tentacool-sku327681.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-rusty-sku196608.dt= s b/arch/arm64/boot/dts/mediatek/mt8186-corsola-rusty-sku196608.dts new file mode 100644 index 000000000000..731b0d60228d --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-rusty-sku196608.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Rusty board"; + compatible =3D "google,steelix-sku196609", "google,steelix-sku196608", + "google,steelix", "mediatek,mt8186"; + chassis-type =3D "laptop"; +}; + +&gpio_keys { + status =3D "disabled"; +}; + +&i2c1 { + status =3D "disabled"; +}; + +&touchscreen { + status =3D "disabled"; +}; --=20 2.43.0.rc2.451.g8631bc7472-goog From nobody Thu Nov 14 05:06:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0985FC10DC3 for ; Mon, 4 Dec 2023 08:43:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235314AbjLDInI (ORCPT ); Mon, 4 Dec 2023 03:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234871AbjLDImn (ORCPT ); Mon, 4 Dec 2023 03:42:43 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA5710E7 for ; Mon, 4 Dec 2023 00:42:41 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d076ebf79cso3905745ad.1 for ; Mon, 04 Dec 2023 00:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679361; x=1702284161; darn=vger.kernel.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=jy3wE8QoVFuCdeDjxGiH3OX0Xt5eOjHqlvzeLRn8ddk=; b=Wd0Z6rGNjRc9b4hUcNXqx9IQ++ziTaJhH8JU1uXF8xegGMMzg+InCmkYSuq6SM0Uzv DNuCUWuFXuCDE2/bCzHmks5zfxZfrF5hxwtJidrknHE/7pEMsJ9qnJH9psyEmpEsGKHf a4jYNBvBRRS72MiI6hvF9N1wr0jfXjf+1tTHQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679361; x=1702284161; 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=jy3wE8QoVFuCdeDjxGiH3OX0Xt5eOjHqlvzeLRn8ddk=; b=EJ23k2dFhNGh/doKkjtv+1616Zmeai/L4AQg89/7HSyZJ4ajKWpGwOn+DLigsPqg9n nEHvRuEI27/35BGzZlom8v3FSceEH3l9ofcMYF8BGYIJxV03EQbjlwQpe4BGhc1W8CM3 htpAvJyGh7FsdcQEJVLEEwbo4KdO0pNyLhrft2kxpeyd18OhZoS/UKU2+baszXHkMHKj /OdYV4t033iI59x6BOy3KjA7D2CSBlZ2BhnVaTp2VB4DdxkM+8x522K+Sw+8aj9gbYcq oUQH2wW/I8T2yK9Y/kevzQw9OtxlhepIZbUUYuOWac+k1jn7Xfsub4XXP9AUg3NiTCwU 5DDA== X-Gm-Message-State: AOJu0YziCeplh/yV6op3VyMp/HcbVedDgbvWmtvBPIvoPyPI2z4hDKgZ Jlwf4/CKimfzX2Gljh95qKKxUw== X-Google-Smtp-Source: AGHT+IEPGBPJ8kYyNF14VJdYMjPUal8vsvhVNFDhDwyTws8/JnGl7oITwY5R9dTBjQ+Tb0w+uP12tA== X-Received: by 2002:a17:903:1104:b0:1d0:8876:7082 with SMTP id n4-20020a170903110400b001d088767082mr961866plh.72.1701679360934; Mon, 04 Dec 2023 00:42:40 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6084:72e2:9ac2:f115]) by smtp.gmail.com with ESMTPSA id p14-20020a1709028a8e00b001cfc3f73927sm7871795plo.9.2023.12.04.00.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:40 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Subject: [PATCH v3 9/9] arm64: dts: mediatek: Add MT8186 Magneton Chromebooks Date: Mon, 4 Dec 2023 16:40:11 +0800 Message-ID: <20231204084012.2281292-10-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204084012.2281292-1-wenst@chromium.org> References: <20231204084012.2281292-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add entries for the MT8186 based Chromebooks, also collectively known as the Lenovo IdeaPad Slim 3 Chromebook (14M868). It is also based on the "Steelix" design. Being a laptop instead of a convertible device, there is no stylus, which is similar to Rusty. However Magneton does not have ports on the right side of the device. Three variants are listed separately. These use different touchscreen controllers, or lack a touchscreen altogether. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - Picked up Conor's ack Changes since v1: - Reorder SKU numbers in descending order. - Mark missing components as disabled instead of deleting the node - Switched to interrupts-extended in touchscreen nodes - Dropped reset-gpios from touchscreen nodes - Drop status =3D "okay", which is the default arch/arm64/boot/dts/mediatek/Makefile | 3 ++ .../mt8186-corsola-magneton-sku393216.dts | 39 +++++++++++++++++++ .../mt8186-corsola-magneton-sku393217.dts | 39 +++++++++++++++++++ .../mt8186-corsola-magneton-sku393218.dts | 26 +++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sk= u393216.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sk= u393217.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sk= u393218.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/me= diatek/Makefile index 6b05f1f2e645..7e365e9516ab 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -43,6 +43,9 @@ dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-kodama-sku3= 2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8183-pumpkin.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-magneton-sku393216.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-magneton-sku393217.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-magneton-sku393218.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-rusty-sku196608.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-steelix-sku131072.dtb dtb-$(CONFIG_ARCH_MEDIATEK) +=3D mt8186-corsola-steelix-sku131073.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393216= .dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393216.dts new file mode 100644 index 000000000000..c9673381ad3b --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393216.dts @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Magneton board"; + compatible =3D "google,steelix-sku393219", "google,steelix-sku393216", + "google,steelix", "mediatek,mt8186"; + chassis-type =3D "laptop"; +}; + +&gpio_keys { + status =3D "disabled"; +}; + +&i2c1 { + touchscreen@10 { + compatible =3D "hid-over-i2c"; + reg =3D <0x10>; + interrupts-extended =3D <&pio 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&touchscreen_pins>; + vdd-supply =3D <&pp3300_s3>; + post-power-on-delay-ms =3D <350>; + hid-descr-addr =3D <0x0001>; + }; +}; + +&touchscreen { + status =3D "disabled"; +}; + +&usb_c1 { + status =3D "disabled"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393217= .dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393217.dts new file mode 100644 index 000000000000..28e3bbe56421 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393217.dts @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Magneton board"; + compatible =3D "google,steelix-sku393220", "google,steelix-sku393217", + "google,steelix", "mediatek,mt8186"; + chassis-type =3D "laptop"; +}; + +&gpio_keys { + status =3D "disabled"; +}; + +&i2c1 { + touchscreen@40 { + compatible =3D "hid-over-i2c"; + reg =3D <0x40>; + interrupts-extended =3D <&pio 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&touchscreen_pins>; + vdd-supply =3D <&pp3300_s3>; + post-power-on-delay-ms =3D <450>; + hid-descr-addr =3D <0x0001>; + }; +}; + +&touchscreen { + status =3D "disabled"; +}; + +&usb_c1 { + status =3D "disabled"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393218= .dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393218.dts new file mode 100644 index 000000000000..332894218f07 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393218.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-steelix.dtsi" + +/ { + model =3D "Google Magneton board"; + compatible =3D "google,steelix-sku393221", "google,steelix-sku393218", + "google,steelix", "mediatek,mt8186"; + chassis-type =3D "laptop"; +}; + +&gpio_keys { + status =3D "disabled"; +}; + +&touchscreen { + status =3D "disabled"; +}; + +&usb_c1 { + status =3D "disabled"; +}; --=20 2.43.0.rc2.451.g8631bc7472-goog