Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp830615rwb; Thu, 11 Aug 2022 10:36:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR4HcyZ+FQGkszhlvhjwjwCy4li8y85gd207rwgN8EzyMIBSxGHmUKbb2SFi1JEEFdU3WH9T X-Received: by 2002:a17:90b:224e:b0:1f4:ebed:16f6 with SMTP id hk14-20020a17090b224e00b001f4ebed16f6mr118984pjb.17.1660239413741; Thu, 11 Aug 2022 10:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660239413; cv=none; d=google.com; s=arc-20160816; b=g20tHI7jGLKC1HWPXDHpMkVlBuJX+uWf9xKjbEZ/m+O2IQXCT7tcB2yNsfA2QXd0fo tS2LSEWG7ZHga00zbo60/QtJ5bFsP7YskUsWP+St27+D1KDQr/oDeBHRXKrrwp4Hv+da ZepWdEXIvZqiWPoOyLULMDgao314jC4SHkq0XKsscDWBHa0DR4AFibtE0XMA7CKz2Czc qmFeJka4RjfRM1L6dZ3ilYNCgBfhRcfeP5hqU3Q+N8bpa6Xy4AX7dWdr6YE7jO2uZ9ou w2W5Mr19MNrXAFyozPC7t6GWVSmEuo46vuAn1X94ZJ7mB3J6L0sWpDueGtXao5u1A4Li hOrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GHxsedj/YJooSCnMaRqh2mD4vHDlITnVxDHGUsvl8Z0=; b=R/cvSROaTqd4MxZmf5VvUpRn2hrYiRb7Pp/GN/Vsrmbkb4FLkTki5XS3Et0iQ+FxhR Ol8pwEDoJtI3i6h3Kd7WTHPYMFsRYCrgG0cABSVcQ2DwRdQD5AmlBDrSxR6dhHP45iOz hzpO/zswp9FNJQwhj+JDCEOGTwxo743VCnsC+k+QGKcfqGsXRm1imkJbjvDsMUSbbIDG bYzqsq91ZQIk2MBlGuR5ouSj2YjxPQGZpOxkkniM5fNaEBdaz5uPYsxj4xOXmTpjeQNd GAXGU1Dd3ih3V/5asKcV3wtmsRtIi/2NJb9oyLBTt+93sYVHGwilcY38czwFgKns8PYJ 9h4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Cc4NnNdE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a8-20020a1709027d8800b0016e5ab112c9si19532420plm.179.2022.08.11.10.36.37; Thu, 11 Aug 2022 10:36:53 -0700 (PDT) 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=@collabora.com header.s=mail header.b=Cc4NnNdE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235852AbiHKRaK (ORCPT + 99 others); Thu, 11 Aug 2022 13:30:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234627AbiHKRaI (ORCPT ); Thu, 11 Aug 2022 13:30:08 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F35A45071; Thu, 11 Aug 2022 10:30:07 -0700 (PDT) Received: from notapiano (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id E2F956601C04; Thu, 11 Aug 2022 18:30:04 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1660239006; bh=lvFb3qNxbflRt6kaIIDY/QEgJF+f1L7YQ9FOa4oivHY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cc4NnNdE6paaHjMAGFeShTe+BYkDfMv1a3Ujpqdy7c2Vgapkj+1+jvMPU8n7zcTVY p92B/v5t7v0x+f6NgYQ8/nmUfcaEugp2uLd7mZfWaFuevFkfwc/QmIcomBgu25dJyR OAKebNwFcGk/ihZslkA6k5O1/MlnznGLAjpY5qwTiOQELealARpz2pLWkj0sEDiWTN XdTzsaCKExiWK7FmcL8G9/ksrvypsv7nWVHRpEI6jQEiWElFLBlp6BChqiFIicz8Cy jfbNju5+9SuAz0St33VwrGwWE8HvDzk9pspdkUPM0MiTkEKuzxmaiKU433qPI+BVdT eGnm2lpZeZsUw== Date: Thu, 11 Aug 2022 13:30:00 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Allen-KH Cheng Cc: Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Project_Global_Chrome_Upstream_Group@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Chen-Yu Tsai , hsinyi@chromium.org Subject: Re: [PATCH v14 1/1] arm64: dts: Add MediaTek MT8186 dts and evaluation board and Makefile Message-ID: <20220811173000.kiplkbqzawlbreqf@notapiano> References: <20220811125805.28577-1-allen-kh.cheng@mediatek.com> <20220811125805.28577-2-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220811125805.28577-2-allen-kh.cheng@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Thu, Aug 11, 2022 at 08:58:05PM +0800, Allen-KH Cheng wrote: > Add basic chip support for MediaTek MT8186. > > Signed-off-by: Allen-KH Cheng > --- > arch/arm64/boot/dts/mediatek/Makefile | 1 + > arch/arm64/boot/dts/mediatek/mt8186-evb.dts | 228 ++++++ > arch/arm64/boot/dts/mediatek/mt8186.dtsi | 858 ++++++++++++++++++++ > 3 files changed, 1087 insertions(+) > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-evb.dts > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186.dtsi [..] > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt8186-evb.dts [..] > + xhci0: usb@11200000 { > + compatible = "mediatek,mt8186-xhci", > + "mediatek,mtk-xhci"; > + reg = <0 0x11200000 0 0x1000>, > + <0 0x11203e00 0 0x0100>; > + reg-names = "mac", "ippc"; > + interrupts = ; > + phys = <&u2port0 PHY_TYPE_USB2>; > + clocks = <&topckgen CLK_TOP_USB_TOP>, > + <&infracfg_ao CLK_INFRA_AO_SSUSB_TOP_REF>, > + <&infracfg_ao CLK_INFRA_AO_SSUSB_TOP_HCLK>, > + <&infracfg_ao CLK_INFRA_AO_ICUSB>, > + <&infracfg_ao CLK_INFRA_AO_SSUSB_TOP_XHCI>; > + clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; > + mediatek,syscon-wakeup = <&pericfg 0x420 2>; > + wakeup-source; > + status = "disabled"; > + }; You mention in the cover letter that the DSI node was removed from the patch since it requires a power domain, and so will be added later when the MTK power controller binding is sorted out. But the XHCI controller nodes also depend on power domains: MT8186_POWER_DOMAIN_SSUSB MT8186_POWER_DOMAIN_SSUSB_P1 You're omitting the power domain for the xhci nodes here to avoid the dependency on the power controller, which means you're relying on the bootloader to leave them on for them to work. I don't see any problem with adding the nodes without the reference to the power domain for now, and just adding those later when the binding is sorted out. The DT will be incomplete for a while, but that's usually the case anyway. This is to say I think you should keep the DSI node in the patch without the power-domain for now, like in the previous version. But let's see what others think, in case omitting the power domain isn't acceptable, then you should remove the XHCI nodes as well. Matthias, any thoughts on this? Thanks, N?colas