From patchwork Mon Dec 4 08:40:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 17471 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2626380vqy; Mon, 4 Dec 2023 00:42:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuoIg04AfX7pn8w0hwlZgAlU0IkbVTKPNPCaFfunuhx65y6s52ejv3WUFNNboygxlonJAL X-Received: by 2002:a05:6870:6c0d:b0:1fb:75b:1318 with SMTP id na13-20020a0568706c0d00b001fb075b1318mr4884586oab.106.1701679344987; Mon, 04 Dec 2023 00:42:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701679344; cv=none; d=google.com; s=arc-20160816; b=WSXiKbPcs0YBcdT+R08+C6oYatmJdAiL3Vb2lZC1Ge5dLZskgKD5TD91+uxSJTfqd2 eaPp5v9Vag/DUXfG+Bhrw6lhnOtOrSC3dUgvTZezbnWAUpa+ysbk7hDXX/Rt7zaVn/9F GfZEh+YwV2F7Ch6i1xPtknCD944PDAYV6HVcg5+VLspSUd20hzKg0iVLzKBF+SEbyfwu FFw//c92O7MxigbWXWXQI3RzZQRqZJ4ZGZrdQmzl0aawfF6a+2SpPx+0wNEn2PNgWCFS VNgjSoX+9e4GfedqjWgPeYwnxPdHwOtTOH7qQ7PTXTq6hIqra338LsqDRd/mCu+I/poC wKzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OSbK53fPx2M4UyMXuvtFTsva3e/34kZVsYfj7kI8Z58=; fh=MjSKQhBpUby1rxrAk2lYQV4SnlwAVQgSsOk2fysyUJc=; b=K7XwiZLU/4NeGllDLmDeu0sKsllVvHJpGLqYZ+LIKgLk3z+E8ewDK0r0L+aX1At5sU 6YvorusO9EbPPnzuTXoUIJYw7SAnFBM8CVxp1PyhzN04jLsHkhvd8+OYYX7eDtObo+WA CbWkHq/VoWwMjrhl/cMYz7aMyms3BKREG5rXXiiSUvG+wUaBIQ0I/109+H7zgtHzy2tZ UBMTe3+A+J57OyMyZl5QjKSAZVwhc8vyyOQNydLorRuJQ71u16lBIbbA0LZD5PsqxLt+ c8a/vLHu4PzTt6pR7lnLCU7PlyiD1BKetJtRk4hyL6o/AaJcJOUVa5SbbsvX2Bikqygg 9eqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mDM7P853; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x30-20020a63485e000000b005c21d7d1126si7445092pgk.843.2023.12.04.00.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mDM7P853; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C46A580941C0; Mon, 4 Dec 2023 00:42:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbjLDImO (ORCPT + 99 others); Mon, 4 Dec 2023 03:42:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLDImN (ORCPT ); Mon, 4 Dec 2023 03:42:13 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FAFF9B for ; Mon, 4 Dec 2023 00:42:19 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1d076ebf79cso3903885ad.1 for ; Mon, 04 Dec 2023 00:42:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701679339; x=1702284139; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OSbK53fPx2M4UyMXuvtFTsva3e/34kZVsYfj7kI8Z58=; b=mDM7P85356O/KQnDccOSvdlMU+vA3WWSfb8QiPElBBtSAWJElcgh1uOA+virwK3i6p 6iAf4eXHH7inq2SdCZKKml6pgztzns5rL/ZLHrSCd9ZRVuCys0Ja/L46KPJhsgmULQqA QfjzHtZB4XEQ0zAVFw/OAPOXSCuJfUL4j9qU4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701679339; x=1702284139; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OSbK53fPx2M4UyMXuvtFTsva3e/34kZVsYfj7kI8Z58=; b=sM10ai1gezuEgauvmDl/Bh4CLzugvTkIAxg+JggLQzrzN1BYVxNCrY/OsdSfNW0PAT WzYxniRy2Yhl98tFdzYTsFhEAtZNse1QgrYeYGORJc2FH8ycbX1ic10JB89m62F7VVAw cz1ThOYXhWReEWiW6T2wuDKICNBcSZj1XmeOJeX4LZ6VR/ipFKcdbc9Zr/gmNWV6T2xl iZGxwpD7yPHBcifCh7cjm7bBuySphgvB3uyO9KyPJSpNi7bkTEg8s9aegrPKA7Q0CMGM RNdVVdQ5dqh9IfUE6GBAjvM6S8xxngNdhSZ6KifJSnRhz86J6qJuCHT1RaOt9rxh4zmq Cf6A== X-Gm-Message-State: AOJu0YyHNFP95Wg4Y0dUg+1LsI69vpIT91Ib30CrgZQz5tuzwOfak9sn khdN8cuIE6e8wb61guILDft9yQ== X-Received: by 2002:a17:902:7c8a:b0:1cf:fe32:632f with SMTP id y10-20020a1709027c8a00b001cffe32632fmr1320665pll.22.1701679338791; Mon, 04 Dec 2023 00:42:18 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:42:18 -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 Subject: [PATCH v3 0/9] arm64: dts: mediatek: Add MT8186 Corsola Chromebooks Date: Mon, 4 Dec 2023 16:40:02 +0800 Message-ID: <20231204084012.2281292-1-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 00:42:23 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784340121015832355 X-GMAIL-MSGID: 1784340121015832355 Hi everyone, This is v3 of the MT8186 Chromebook device tree series. Changes since v2: - Picked up Conor's ack - Renamed remaining "touchpad" nodes to "trackpad" - Dropped pinctrl from 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 - Mark missing components as disabled instead of deleting the node - Dropped reset-gpios from touchscreen nodes - Drop status = "okay", which is the default This series adds device trees for the various MT8186 Chromebooks that were initially released. These are the Tentacruel / Tentacool devices released by ASUS, and the Steelix / Rusty / Magneton devices released by Lenovo. The device trees are taken from the downstream ChromeOS v5.15 kernel, ported to mainline and cleaned up. Corsola is the Google codename given to the MT8186 platform. This platform has two reference designs, Krabby and Kingler. Kingler was not used in any actual product, and is therefor not included. Steelix is an alternative design put forward and is effectively a mix-and-match of the two reference designs. Most of the core design is shared between the variants. The differences are on which external components, such as the display bridges, are used. Patch 1 cleans up the current list of MediaTek boards. The entries are reordered by SoC model first, then by board name. Patch 2 through 5 add DT binding entries for the Tentacruel/Tentacool, Steelix, Rusty, and Magneton Chromebooks. Patch 6 through 9 add board device tree files for these devices. Patch 6 also adds the corsola dtsi file for the commonalities between the designs, as well as a dtsi file for the krabby reference design. Currently external display support is missing. Audio is not working, as enabling the audio DSP causes my test systems to hang. Please have a look and test if possible. Regards ChenYu Chen-Yu Tsai (9): dt-bindings: arm: mediatek: Sort entries by SoC then board compatibles dt-bindings: arm: mediatek: Add MT8186 Tentacruel / Tentacool Chromebooks dt-bindings: arm: mediatek: Add MT8186 Steelix Chromebook dt-bindings: arm: mediatek: Add MT8186 Rusty Chromebook dt-bindings: arm: mediatek: Add MT8186 Magneton Chromebooks arm64: dts: mediatek: Add MT8186 Krabby platform based Tentacruel / Tentacool arm64: dts: mediatek: Introduce MT8186 Steelix arm64: dts: mediatek: Add MT8186 Steelix platform based Rusty arm64: dts: mediatek: Add MT8186 Magneton Chromebooks .../devicetree/bindings/arm/mediatek.yaml | 180 +- arch/arm64/boot/dts/mediatek/Makefile | 10 + .../dts/mediatek/mt8186-corsola-krabby.dtsi | 129 ++ .../mt8186-corsola-magneton-sku393216.dts | 39 + .../mt8186-corsola-magneton-sku393217.dts | 39 + .../mt8186-corsola-magneton-sku393218.dts | 26 + .../mt8186-corsola-rusty-sku196608.dts | 26 + .../mt8186-corsola-steelix-sku131072.dts | 18 + .../mt8186-corsola-steelix-sku131073.dts | 18 + .../dts/mediatek/mt8186-corsola-steelix.dtsi | 195 ++ .../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 +++++++++++++++++ 15 files changed, 2489 insertions(+), 61 deletions(-) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-krabby.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393216.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393217.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-magneton-sku393218.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-rusty-sku196608.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku131072.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix-sku131073.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327681.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327683.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