From patchwork Thu Dec 8 15:30:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= X-Patchwork-Id: 2780 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp264822wrr; Thu, 8 Dec 2022 07:36:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EkQUme3iIo+ZJAvBnb8WuxvC2RUD1uemSvE2nNcy7HxpO+EKfILT2l8aaQxcUsk8vYk0b X-Received: by 2002:a17:902:d4c8:b0:189:cf7a:b563 with SMTP id o8-20020a170902d4c800b00189cf7ab563mr20069306plg.56.1670513819449; Thu, 08 Dec 2022 07:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670513819; cv=none; d=google.com; s=arc-20160816; b=GzZcSAJuI23jyJ8PETJ5EhntdpIjdU8hOYPS/FU0tuQZaOmzyDZYxIYOb28lvTUyoO xkbVQR3IXNs2WyyyoxmnropFOjucFbqL9l+1xhCadyjOL+PZEDG7miAxgAuRVIwG7kyF HgRLMRET/XV8HJz+3jh+zy8/fU3jRLUnyV6urZ5gXpG+3yfWyLGhQ5/coQsxKmOnOwn2 dQ7+ZhCbz195AvD5d9nZNi8MAfyNYoAI/C+kFZyK6Fnqk14CpU2rImxyyh5Dis/33QiT MbXPccmvBtFno1IaHNaMJ7jPwRyCBGu016V8cuErO2XkkzXedTfFpRcLfyGkBjzS0VLy XtIA== 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=h77EcyzmHrKVFjoWMhSpWChgCbULzYbCN7M8zPTR4Iw=; b=MH+Jrc6luxY6rFjn70I/UMKK2TMWmsQd8UUV6oTbThtTFsY0sHeCbvgLCVAqJxk3Hg GYUZR775LYcQ2zAmlQITUP0wprjes577PG3Izb1XIJXDjmUC8GTCuQSy6YKKRXFT2i2B 4e8dBCe7djE9G5eKPtA8CuhfPtc33cjnmzzPCCkwweUuVmEeQc/RCUwP7/0QJqfzbM1w Dl1BRbdXTBm7CAyAjm9bs5KO647fnBw/hYfs3uz49jnXFfjU3/caYZ96Ofd2MKhinsLi A6eaUbANvaePT1+R95uQ3aKlZ7wNxpk/q+yUop337aZsdCwvZbb/Mvo9zhx8HFeLQmaG /H0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=QgAChH6t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020a170902bcc100b001889ad48288si21130768pls.384.2022.12.08.07.36.44; Thu, 08 Dec 2022 07:36:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=QgAChH6t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230427AbiLHPbm (ORCPT + 99 others); Thu, 8 Dec 2022 10:31:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbiLHPav (ORCPT ); Thu, 8 Dec 2022 10:30:51 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20C3283248 for ; Thu, 8 Dec 2022 07:30:44 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id h11so2007051wrw.13 for ; Thu, 08 Dec 2022 07:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h77EcyzmHrKVFjoWMhSpWChgCbULzYbCN7M8zPTR4Iw=; b=QgAChH6txpKBJOTvAjnQBz3MysBSBiOnM5ttfAOm8LpwpJ97PQJ8EmkR9SCHMcabT5 vFh5XmCYpbB+uyotqBwdWN/MV12wGjYu8sIXBvteNu+qwwGqg0RqxMVYrkL5Fmg42D1s Vw+s0On6BlcqG3i2ZEvuWQSAeVxXYNlWqYa/QUL1I4JOu9okydOJVcxTtaAYC/qlTHkz It0ii48J1VnQLMQ2PG5qZ3buHA11R5HeBQvTIk2Ef8EvtW9FwRuae4juJ42ocUPuIBQf xzNMtHlxR9shDDM4GT1gkvEEFCsqKJvfwposyXsLOnwkhrWXSsf2Q2BMgKQqw41O6pJC 16gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=h77EcyzmHrKVFjoWMhSpWChgCbULzYbCN7M8zPTR4Iw=; b=adIgIt2INRQ1vIkEbZud0weEZUIHPPpA91MNs1jksAFOAxO7ULuZ6b9/HU+AEraJjU tjnRHN0Z4vhwZ1jN4F0uyW/FfXSJJIHydl+LGOTHmQOuKS9C1RKtQQWums8kORPAIy0i F+jP3BfF6TgkpkAopb1ZPIFcO3KVHgOIxFRPSdz0uPrnXlzBn2j5DDTIx6ywnD+SloVs jDjNSBj1Ypf4S+TeHQkykxbwz/y4bdQVdBd/6NhLnZ6eytBITSPGeLYphekWVrvpvjwa Ix+055smBp8D5piVk+fqJGdphWtui/DAouFGhOj1he+yZTe4gAJqVye7zU1zIhu+dXk4 qjmw== X-Gm-Message-State: ANoB5pmX3RwAavDd9WyyqGKSz44oiV3ZGjb1J7Y58spBjkmQe4avB09d NhdkawK9WELLoi6Bq0GQ90bj1g== X-Received: by 2002:adf:dc4b:0:b0:242:149:9f0b with SMTP id m11-20020adfdc4b000000b0024201499f0bmr1682892wrj.55.1670513442704; Thu, 08 Dec 2022 07:30:42 -0800 (PST) Received: from predatorhelios.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id h10-20020a5d504a000000b002366553eca7sm10673239wrt.83.2022.12.08.07.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 07:30:42 -0800 (PST) From: =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= To: linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, khilman@baylibre.com Subject: [PATCH v4 0/7] Add minimal MT8365 and MT8365-EVK support Date: Thu, 8 Dec 2022 16:30:33 +0100 Message-Id: <20221208153041.3965378-1-bero@baylibre.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751660698585399112?= X-GMAIL-MSGID: =?utf-8?q?1751660698585399112?= This adds minimal support for the MediaTek 8365 SOC and the EVK reference board, allowing the board to boot to initramfs with serial port I/O. v4: - Remove pins-are-numbered references that have been holding things up now that the patches removing it from dt-bindings have landed in linux-next v3: - Remove a number of components that are not yet supported (they will come back alongside the corresponding drivers) - Address issues found by dt_binding_check (mostly fixing pinctrl bindings) - Address issues pointed out in comments - Reorder patches v2: - Add missing dt-bindings documentation - Small cleanups addressing issues in v1 pointed out by Krzysztof Kozlowski Bernhard Rosenkränzer (4): dt-bindings: arm64: dts: mediatek: Add mt8365-evk board dt-bindings: irq: mtk, sysirq: add support for mt8365 dt-bindings: mfd: syscon: Add mt8365-syscfg dt-bindings: pinctrl: add bindings for Mediatek MT8365 SoC Fabien Parent (3): dt-bindings: usb: mediatek,mtu3: add MT8365 SoC bindings dt-bindings: usb: mediatek,mtk-xhci: add MT8365 SoC bindings arm64: dts: mediatek: Initial mt8365-evk support .../devicetree/bindings/arm/mediatek.yaml | 4 + .../interrupt-controller/mediatek,sysirq.txt | 1 + .../devicetree/bindings/mfd/syscon.yaml | 1 + .../pinctrl/mediatek,mt8365-pinctrl.yaml | 197 ++++++++++ .../bindings/usb/mediatek,mtk-xhci.yaml | 1 + .../bindings/usb/mediatek,mtu3.yaml | 1 + arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 163 +++++++++ arch/arm64/boot/dts/mediatek/mt8365.dtsi | 343 ++++++++++++++++++ 9 files changed, 712 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml create mode 100644 arch/arm64/boot/dts/mediatek/mt8365-evk.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8365.dtsi