From patchwork Mon Nov 25 08:21:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wojciech Macek X-Patchwork-Id: 13884574 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 339A1D3B7EF for ; Mon, 25 Nov 2024 08:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HPnYr8aIDFby+4dgQKR60j9AMYM1qDxkn1rBoSKaia4=; b=RAn+vV2wEMKViLVbMBI5EasZrV 7C81Nb6IgtyMAqIGtx9HKbu9fVgnifDaDXovpVuRBJ9z/HesdhwGFsCjujN+H/HvI5uoSpW10oxvS y1Cqo5hAMHO+lcaPl5Qb08wJf1ASC/XoWV91hEZwufObSVHHNsWegYlNnRTmCWw4dYK9xqAQSUCfW sJeO7Vv43J9F4thwN0IxUPhFdvTWn+yAWCSogu7unu7b6+9TpR3XQcq9lPg3rr5tocN5H5ZRFJPXf Y+NhUQGUb/cprOqmlwKCncIICy1mm3ex/tadKPHIlNn0EJagZaOyD0lXWTNr/cAImPyQmZQh9fjZY JoduQEwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFUZT-00000007Ovy-0wOv; Mon, 25 Nov 2024 08:35:51 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFULo-00000007Mbx-03Yg for linux-arm-kernel@lists.infradead.org; Mon, 25 Nov 2024 08:21:45 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5cefa22e9d5so5009578a12.3 for ; Mon, 25 Nov 2024 00:21:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1732522902; x=1733127702; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HPnYr8aIDFby+4dgQKR60j9AMYM1qDxkn1rBoSKaia4=; b=j2TAza9xRBN8QDTVs0eHv0GDrtbgq7JdbJnMs03gHakxJYWTZsB8tj6o57Rjeax1RR UkrJgYenyzd3bkWSC0WkFPkzy+lWNSuft3Coc5o5KrQZ7iwAMaZ7IkF/qZifcXYI6vOh +AwTqRnqe8TKlEln87XXWL7rhTuoWfNQ/sGX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732522902; x=1733127702; 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=HPnYr8aIDFby+4dgQKR60j9AMYM1qDxkn1rBoSKaia4=; b=Iw/mhmAv8AuVcSLgbVdauPYqjMP/NrmnrhKA/vrYL1S+fSB7wR8r/+aUuY2DkqEv+P ogtv4TPOZln6a9+sACvRmAiDd8y/NEJM7x/32Nt3oLqEty2jpMXs2afYX4adEa8y4RdF uY7s8vkP5U26KAQb9x1HQdSxMKfbCdZof18qmoP2x1NDVQpQmj9Ts/wMaqL7dOERJSKc kwv6NwhXdfFiupgqMUFvDDO57MLnTQU/K00TfSiIgVLNXnEaXcYF8THCkY038pnzJz7Q TmgOZtQjyF7GzJLdHYg4l+34U3x61INFcHxXX3vRQCQ9GS+t8CZzA6dbB4yhqLrnMrUy T+tQ== X-Forwarded-Encrypted: i=1; AJvYcCWXxwe9u6S/AsUc3uGnVJsUmY0O506pA9D11O6EN0+43pKNkero6t86L2Cv9k0n9PdcZlX22848/Fn563GRc2lN@lists.infradead.org X-Gm-Message-State: AOJu0YymbMxBE4VcSeLerx7TWJeGm90DgNsCnWqTGWhBCXEg6+gUuAXu Ov0qGyAxn/1gv5oygAWO2+KU8tJ458ZnArL5kwFohIn+mv5CVbLdiNVKTdn7Ag== X-Gm-Gg: ASbGncvDZVWEhLsSojEgNNzdfW1Z4dV4xJ5JTOXeyabd0WG8yQaVen1cf7yF2bNN6gu 2ilZzG4MWln3KDCNs7HUvg5k5OcDwKF5k9OW7bHmtZISJEdmi7TFRXUpHJVwlA1VV+rxJQUFbLt 41N9XVz1dGH+CQUw+cr07UjErDjzCJcjSDzb+Jb/tB0xdd/Bbijci7nxSfvfevuI9mYYX6AXqIJ QdNMJJICouFKsBH11eIKtrHKicvHVVnK8OI/7KOVZPoy8fo58SBDIrpwPoqmPKcC+15QUkPcK/s OqSSiEMw X-Google-Smtp-Source: AGHT+IFnAzkhOOadrvOXWSDGzf+kPfjLpDwohhUu4l6LeAbOtGTBnyhEYnIeoSDJDix3CiMDzFUNxA== X-Received: by 2002:a17:907:7712:b0:aa5:1699:e25a with SMTP id a640c23a62f3a-aa51699e2e7mr827925366b.10.1732522902261; Mon, 25 Nov 2024 00:21:42 -0800 (PST) Received: from localhost (30.171.91.34.bc.googleusercontent.com. [34.91.171.30]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-aa52e45391dsm318503166b.60.2024.11.25.00.21.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Nov 2024 00:21:41 -0800 (PST) From: Wojciech Macek To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chen-Yu Tsai , Rafal Milecki , Hsin-Yi Wang , Sean Wang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Wojciech Macek Subject: [PATCH v2 1/2] dt-bindings: arm: mediatek: Add MT8186 Starmie Chromebooks Date: Mon, 25 Nov 2024 08:21:28 +0000 Message-ID: <20241125082130.2390310-2-wmacek@chromium.org> X-Mailer: git-send-email 2.47.0.371.ga323438b13-goog In-Reply-To: <20241125082130.2390310-1-wmacek@chromium.org> References: <20241125082130.2390310-1-wmacek@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_002144_067791_2908E70A X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add an entry for the MT8186 based Starmie Chromebooks, also known as the ASUS Chromebook Enterprise CM30 Detachable (CM3001). The device is a tablet style chromebook. Signed-off-by: Wojciech Macek Reviewed-by: AngeloGioacchino Del Regno --- Changelog v2-v1: - Fixed items/const bidings description in mediatek.yaml Documentation/devicetree/bindings/arm/mediatek.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index 1d4bb50fcd8d9..6191a5320c148 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -263,6 +263,19 @@ properties: - const: google,steelix-sku196608 - const: google,steelix - const: mediatek,mt8186 + - description: Google Starmie (ASUS Chromebook Enterprise CM30 (CM3001)) + items: + - const: google,starmie-sku0 + - const: google,starmie-sku2 + - const: google,starmie-sku3 + - const: google,starmie + - const: mediatek,mt8186 + - description: Google Starmie (ASUS Chromebook Enterprise CM30 (CM3001)) + items: + - const: google,starmie-sku1 + - const: google,starmie-sku4 + - const: google,starmie + - const: mediatek,mt8186 - description: Google Steelix (Lenovo 300e Yoga Chromebook Gen 4) items: - enum: From patchwork Mon Nov 25 08:21:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wojciech Macek X-Patchwork-Id: 13884575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DEE2CD3B7EF for ; Mon, 25 Nov 2024 08:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fayYTA2a1wKC0Af3gbGMv+jRLZ70UkpAFBRcF+IGCZU=; b=1KWAeL+j5bIoUPgi0i4SHleTLW wWTW8zch6IMeg+YdtMNLMwtv6p7omDav58iM7vwpREIiaXgqXPiuCdM2MI3+rQAzWOhHGIh/6XYvY dHmDR1wr0iM3ow1S9Ipsap5qVcMUgGoUeQbACc9paWp9KZPpWX7uyyHYlvpTj0soJ6CoZjrOJiY3d zl07H/DNo7T7q5f0uj+ZzfVYLgNzILUTdDNLxagfOI3wFOUu5Ol78WvD1XMkh+ZXOV9OgP1qRRISO tohPAkzh24pF+3wW5mv/kUz1iW2/URwjtcYTUgY4nDxE5w94uqzmtHxBTwRS/NkHHczlg+AcpyEFj Dm984Vaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFUaO-00000007P8D-1oP0; Mon, 25 Nov 2024 08:36:48 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFULp-00000007MdM-3NhE for linux-arm-kernel@lists.infradead.org; Mon, 25 Nov 2024 08:21:47 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-aa535eed875so253719866b.3 for ; Mon, 25 Nov 2024 00:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1732522904; x=1733127704; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fayYTA2a1wKC0Af3gbGMv+jRLZ70UkpAFBRcF+IGCZU=; b=n32c2t1l6u/QDAQPAGr/TpK4+aofOrnmyKnrggRR4qbCy4qhj3vcwoN52/2QIoYfRL Vy7zVH/gajprYGO86BrXnPSNWjlwcFmQCulPHahas4TxuRW0aUrl0c4zU0L5KMCjqaoK af14hUdGfcmjBOpolISvI+feJBwzfYWpJpU4g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732522904; x=1733127704; 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=fayYTA2a1wKC0Af3gbGMv+jRLZ70UkpAFBRcF+IGCZU=; b=eCl3fYK/rRK0XIR6ahb1DAVls2hkjwojkoOF9+YjoRYUbEKrBMVoBmVBdJoUh9Hr1V M/Okq14u+HmyxugiqeVhbOkvC3wLVlhXyfCKrJGnXU8iaNcs3tSyu14fmt4et4jPihvH NimlW09w2N+zw1O9dUbyrxgIYTkJ8H98oBbDq7ur6ElUhrmIf5GTfOo6AHOmYTK+CJIi VUAfGY71F9YEGvzBdLDQ8et4p5lzrDeSMsR+1PWFGiKzViFclM5IOYct+CfBac4aiH/d Vag1shcQ03Px0OZ/6FVkg6Tg7jbVzllmmMlG4RnH+f3mroOWwN8sHoCp5Cp4MiMm80PS J4Dw== X-Forwarded-Encrypted: i=1; AJvYcCUde4yi9+m1UMPkAM+C29uIHRJKNQ69z1gNkzPu8uxJYKoLPH6rzdS33V9T+TZO/556i9Uo4QYmpRNnFaLlgDwC@lists.infradead.org X-Gm-Message-State: AOJu0Yy1JjyEzitVEBELjk38CBuLj+Jw68Gt44bzYjrm/2wJXO8+sLzH BZBg1Tv47oDP7JAXNVDTP7Jgt9GFCi8AvaaJ3EPASthrcS1Rraz2QcRnRncj9A== X-Gm-Gg: ASbGncu64QtXSXID2XXVRhox4MR5qVVjjURuzhTdPSxaEz8f4BEyjt5OzDgHiqQQe78 IsgtTEIqAGpc/hPMPXdlvJo1Cc6ctn82u8pHi4OLnJfY33Ke+u0qc9bhASxm1bZVAJ3HC6wpJxK jV4eozC1JUKC+zFJOtHg+n8JKh3ILsJOFsITmVytXw8lyb/KAhw6qOih0dqO9PiYkCWjkYzzpSp Gfl2Fk2ND8kH1nvhIEtC5e3v5mAr8m4tZveIf76Yq9YfGyLtSbwgjQ9/7T01Sq3mAa2nltljpNs IJaPLXLb X-Google-Smtp-Source: AGHT+IE3rJtw6i/W5Bt6Hxga4HieWNxCBIEs4KjEMSuwFdRWUIwIIQpfMJWrrZ80QURz2lMuQSwrxQ== X-Received: by 2002:a17:907:1b27:b0:a9e:c267:78c5 with SMTP id a640c23a62f3a-aa509c00bc8mr1280088266b.55.1732522903898; Mon, 25 Nov 2024 00:21:43 -0800 (PST) Received: from localhost (30.171.91.34.bc.googleusercontent.com. [34.91.171.30]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-aa545ab0c3dsm180530266b.43.2024.11.25.00.21.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Nov 2024 00:21:43 -0800 (PST) From: Wojciech Macek To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chen-Yu Tsai , Rafal Milecki , Hsin-Yi Wang , Sean Wang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Wojciech Macek Subject: [PATCH v2 2/2] arm64: dts: mediatek: mt8186: Add Starmie device Date: Mon, 25 Nov 2024 08:21:29 +0000 Message-ID: <20241125082130.2390310-3-wmacek@chromium.org> X-Mailer: git-send-email 2.47.0.371.ga323438b13-goog In-Reply-To: <20241125082130.2390310-1-wmacek@chromium.org> References: <20241125082130.2390310-1-wmacek@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_002145_848544_9274AC6D X-CRM114-Status: GOOD ( 15.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for Starmie Chromebooks. Signed-off-by: Wojciech Macek --- Changelog v2-v1: - no change arch/arm64/boot/dts/mediatek/Makefile | 2 + .../mediatek/mt8186-corsola-starmie-sku0.dts | 29 ++ .../mediatek/mt8186-corsola-starmie-sku1.dts | 46 ++ .../dts/mediatek/mt8186-corsola-starmie.dtsi | 480 ++++++++++++++++++ 4 files changed, 557 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie-sku0.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie-sku1.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie.dtsi diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index 8fd7b2bb7a159..2ee6266ddf43d 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -59,6 +59,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-magneton-sku393216.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-magneton-sku393217.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-magneton-sku393218.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-rusty-sku196608.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-starmie-sku0.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-starmie-sku1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-steelix-sku131072.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-steelix-sku131073.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-tentacool-sku327681.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie-sku0.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie-sku0.dts new file mode 100644 index 0000000000000..ca0b8492bbef5 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie-sku0.dts @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-starmie.dtsi" + +/ { + model = "Google Starmie sku0 board"; + compatible = "google,starmie-sku0", "google,starmie-sku2", + "google,starmie-sku3", "google,starmie", + "mediatek,mt8186"; +}; + +&panel { + compatible = "starry,ili9882t"; +}; + +&i2c_tunnel { + /delete-node/ sbs-battery@b; + + battery: sbs-battery@f { + compatible = "sbs,sbs-battery"; + reg = <0xf>; + sbs,i2c-retry-count = <2>; + sbs,poll-retry-count = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie-sku1.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie-sku1.dts new file mode 100644 index 0000000000000..2ba4c083a58c6 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie-sku1.dts @@ -0,0 +1,46 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-starmie.dtsi" + +/ { + model = "Google Starmie sku1 board"; + compatible = "google,starmie-sku1", "google,starmie-sku4", + "google,starmie", "mediatek,mt8186"; +}; + +&panel { + compatible = "starry,himax83102-j02"; +}; + +&i2c1 { + /delete-node/ touchscreen@41; + touchscreen_himax: touchscreen@4f { + status = "okay"; + + compatible = "hid-over-i2c"; + reg = <0x4f>; + interrupt-parent = <&pio>; + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_pins>; + vdd-supply = <&mt6366_vio18_reg>; + panel = <&panel>; + post-power-on-delay-ms = <450>; + hid-descr-addr = <0x0001>; + }; +}; + +&i2c_tunnel { + /delete-node/ sbs-battery@b; + + battery: sbs-battery@f { + compatible = "sbs,sbs-battery"; + reg = <0xf>; + sbs,i2c-retry-count = <2>; + sbs,poll-retry-count = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie.dtsi new file mode 100644 index 0000000000000..28ac65d28143e --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-starmie.dtsi @@ -0,0 +1,480 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola.dtsi" + +/delete-node/ &dsi_out; +/delete-node/ &keyboard_controller; + +/ { + en_pp6000_mipi_disp_150ma: en-pp6000-mipi-disp-150ma { + compatible = "regulator-fixed"; + regulator-name = "en_pp6000_mipi_disp_150ma"; + gpio = <&pio 154 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-names = "default"; + pinctrl-0 = <&pp6000_mipi_disp_150ma_fixed_pins>; + }; + + tboard_thermistor1: thermal-sensor1 { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&auxadc 0>; + io-channel-names = "sensor-channel"; + temperature-lookup-table = < (-5000) 1492 + 0 1413 + 5000 1324 + 10000 1227 + 15000 1121 + 20000 1017 + 25000 900 + 30000 797 + 35000 698 + 40000 606 + 45000 522 + 50000 449 + 55000 383 + 60000 327 + 65000 278 + 70000 236 + 75000 201 + 80000 171 + 85000 145 + 90000 163 + 95000 124 + 100000 91 + 105000 78 + 110000 67 + 115000 58 + 120000 50 + 125000 44>; + }; + + tboard_thermistor2: thermal-sensor2 { + compatible = "generic-adc-thermal"; + #thermal-sensor-cells = <0>; + io-channels = <&auxadc 1>; + io-channel-names = "sensor-channel"; + temperature-lookup-table = < (-5000) 1492 + 0 1413 + 5000 1324 + 10000 1227 + 15000 1121 + 20000 1017 + 25000 900 + 30000 797 + 35000 698 + 40000 606 + 45000 522 + 50000 449 + 55000 383 + 60000 327 + 65000 278 + 70000 236 + 75000 201 + 80000 171 + 85000 145 + 90000 163 + 95000 124 + 100000 91 + 105000 78 + 110000 67 + 115000 58 + 120000 50 + 125000 44>; + }; +}; + +&cros_ec { + cbas: cbas { + compatible = "google,cros-cbas"; + }; + + keyboard-controller { + compatible = "google,cros-ec-keyb-switches"; + }; +}; + +&dsi0 { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + panel: panel@0 { + /* compatible will be set in board dts */ + reg = <0>; + enable-gpios = <&pio 98 0>; + pinctrl-names = "default"; + pinctrl-0 = <&panel_pins_default>; + avdd-supply = <&en_pp6000_mipi_disp>; + avee-supply = <&en_pp6000_mipi_disp_150ma>; + pp1800-supply = <&mt6366_vio18_reg>; + backlight = <&backlight_lcd0>; + rotation = <270>; + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + + ports { + port { + dsi_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; +}; + +&i2c0 { + status = "disabled"; +}; + +&i2c1 { + touchscreen: touchscreen@41 { + status = "okay"; + + compatible = "ilitek,ili9882t"; + reg = <0x41>; + interrupt-parent = <&pio>; + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_pins>; + panel = <&panel>; + reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>; + vccio-supply = <&mt6366_vio18_reg>; + }; +}; + +&i2c2 { + status = "disabled"; +}; + +&i2c4 { + status = "disabled"; +}; + +&i2c5 { + clock-frequency = <400000>; + +}; + +&mmc1_pins_default { + pins-clk { + drive-strength = ; + }; + + pins-cmd-dat { + drive-strength = ; + }; +}; + +&mmc1_pins_uhs { + pins-clk { + drive-strength = ; + }; + + pins-cmd-dat { + drive-strength = ; + }; +}; + +&pen_insert { + wakeup-event-action = ; +}; + +&pio { + /* 185 lines */ + gpio-line-names = "TP", + "TP", + "TP", + "I2S0_HP_DI", + "I2S3_DP_SPKR_DO", + "SAR_INT_ODL", + "BT_WAKE_AP_ODL", + "WIFI_INT_ODL", + "DPBRDG_INT_ODL", + "NC", + "EC_AP_HPD_OD", + "NC", + "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", + "NC", + "NC", + "UCAM_SEN_EN", + "NC", + "NC", + "NC", + "I2S2_DP_SPK_MCK", + "I2S2_DP_SPKR_BCK", + "I2S2_DP_SPKR_LRCK", + "NC", + "NC", + "NC", + "NC", + "UART_GSC_TX_AP_RX", + "UART_AP_TX_GSC_RX", + "UART_DBGCON_TX_ADSP_RX", + "UART_ADSP_TX_DBGCON_RX", + "NC", + "TCHSCR_REPORT_DISABLE", + "NC", + "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", + "WLAN_MODULE_RST_L", + "NC", + "NC", + "NC", + "NC", + "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", + "NC", + "MIPI_BL_PWM_1V8", + "DISP_RST_1V8_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", + "NC", + "NC", + "UCAM_DET_ODL", + "NC", + "NC", + "AP_I2C_TCHSCR_SCL_1V8", + "AP_I2C_TCHSCR_SDA_1V8", + "NC", + "NC", + "AP_I2C_DPBRDG_SCL_1V8", + "AP_I2C_DPBRDG_SDA_1V8", + "NC", + "NC", + "AP_I2C_AUD_SCL_1V8", + "AP_I2C_AUD_SDA_1V8", + "AP_I2C_DISP_SCL_1V8", + "AP_I2C_DISP_SDA_1V8", + "NC", + "NC", + "NC", + "NC", + "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_DISP_BKLTEN", + "EN_PP6000_MIPI_DISP", + "EN_PP6000_MIPI_DISP_150MA", + "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", + "NC", + "DPBRDG_RST_L", + "LTE_W_DISABLE_L", + "LTE_SAR_DETECT_L", + "EN_PP3300_LTE_X", + "LTE_PWR_OFF_L", + "LTE_RESET_L", + "TP", + "TP"; + + dpi_pin_default: dpi-pin-default { + pins-cmd-dat { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + drive-strength = ; + output-low; + }; + }; + + dpi_pin_func: dpi-pin-func { + pins-cmd-dat { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + drive-strength = ; + }; + }; + + edp_panel_fixed_pins: edp-panel-fixed-pins { + pins1 { + pinmux = ; + output-low; + }; + }; + + pp6000_mipi_disp_150ma_fixed_pins: pp6000-mipi-disp-150ma-fixed-pins { + pins1 { + pinmux = ; + output-low; + }; + }; + + panel_pins_default: panel-pins-default { + pins1 { + pinmux = ; + output-low; + }; + }; + wifi_pins_pwrseq: wifipwrseq { + pins-wifi-enable { + pinmux = ; + }; + }; +}; + +&usb_c1 { + status = "disabled"; +}; + +&thermal_zones { + tboard1 { + polling-delay = <1000>; /* milliseconds */ + polling-delay-passive = <0>; /* milliseconds */ + thermal-sensors = <&tboard_thermistor1>; + }; + + tboard2 { + polling-delay = <1000>; /* milliseconds */ + polling-delay-passive = <0>; /* milliseconds */ + thermal-sensors = <&tboard_thermistor2>; + }; +}; + +&wifi_pwrseq { + reset-gpios = <&pio 51 1>; +}; + +en_pp6000_mipi_disp: &pp3300_disp_x { + regulator-name = "en_pp6000_mipi_disp"; + gpio = <&pio 153 GPIO_ACTIVE_HIGH>; + regulator-enable-ramp-delay = <3000>; + /delete-property/ regulator-boot-on; +};