Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3107812rdb; Tue, 13 Feb 2024 07:09:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWZz+84sAmc3DgmZWliX/MDtzoSokzsITMs702uwVSzPxmap666BSQY4tUOchFrsswqyVfBz6Ryl6ZZypi7nm3sh5eQKrvNtCVCfj+eMA== X-Google-Smtp-Source: AGHT+IH19CnHfvOhN5PTn/1O6lP1Zn3ed/Yq15NOFgOCBHkyHu82QBoNrj8QQ69p+GwLAjIxngC1 X-Received: by 2002:a05:620a:5610:b0:785:dad6:dc30 with SMTP id vu16-20020a05620a561000b00785dad6dc30mr3902220qkn.45.1707836955798; Tue, 13 Feb 2024 07:09:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707836955; cv=pass; d=google.com; s=arc-20160816; b=vXsn6B07QNC4Os7HpycTs+8SiUSbbdNtTIZS2gh4cq28uztpJ3ijR7pFj4tw6PK4MP MAXTBy/T5mo69Yo7gIROIC96dKyc6IIgjjNraEdX1xSozbVwr49J66eADdN1yBWkk+ei qh8TcSS31dCZMMV522cHJ56m2ENsOeengaI6qRLCEzgnr0Q7TC4Nk4j2esv3sdt7hv+H aW7hjai7u+XIwGnXbD2wiGpNdnvjfYKKH5mliK0zKgJNMkeaqouzm1bH30r1SIh7v8N6 fEj8Ss2B/CBnUu9Wkidt+E0Xvi40xHsRNFsytwqYzdmo0KL8cKM5yoPO2+wQo5/+RSwT qj5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=huP/oKiTocOPk8/V8Wp8xZfhx6i2OxdPAsbxAXxAKMw=; fh=2hnsmvP7imlghLUwz4XwaQbLtuRHDxmOGa+/6OlzKAM=; b=IbMpVgMzFtdVANZSX3zIhmSM5TZcGrT8YaKS3ihriHHwMPhdoAfuMdFvZziual2gca vhbr4kx8SGl6VzGL2WRRURri4lgAHJJuUxJlgzTIlfIK17MKHkX0qoxfPFucHNsZA4Pf CICbZbAy10d5rEj27FJn6oVhAhLTEZSphfzZLLi4304IXSsg8N607B4NWPHDEnKSSnXN h3KqWlaBHmWDIs4vOJNBx1XvvU+/aJ3xJ/eBSS9m/aje87af1AaY5uLO9h1aXFQ9deOH w0D4c8WrAM4lBofkvRKdC+mPezserhtKRBrIK4A46KPM3x7zJG5mocjeOM8WFGGxBKR9 TTfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hwduHJED; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-63762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCUZMUB/kDl3ZQ/RR2PCHbv/M/TxYUPG8P06vpjYzHuypQwg4VY9GykZMMi+AlclxNYdhwPFjljo8AspGHzcoFdExVqegXvTMwXdNQjnYw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c32-20020a05620a26a000b00783da46f069si9809190qkp.615.2024.02.13.07.09.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 07:09:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hwduHJED; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-63762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 85A0B1C265CB for ; Tue, 13 Feb 2024 15:05:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 726865FF0B; Tue, 13 Feb 2024 15:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="hwduHJED" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95A1D5FBA9; Tue, 13 Feb 2024 15:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707836571; cv=none; b=l8yDDepYm5PGUrUy7msEhCl1cNi6ewmU+UQGwgD/7QbV8dxWRcmiqXcHSXDiDEJgaZLeFc8AcwXp53oNFuvM3n0Ono5Wg9CbjNG/YJKAIUS7o1akPuQgJUm3f1TOn9v7O6UsG/qQa+7PdBBYaI5of9nNH8ZEdIrBCc553JD2W7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707836571; c=relaxed/simple; bh=Mq7Gr3WDYsBP1PMrwjprrD4YC2YKvVWwkGxj9ia8i/E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=irr6/QUcYQ7QogKGGkTBTg4usfuNMbRn6Q3YTI+9St/TtaoFk/uXP4rcliMDr9krKr4pa1rogGiMGZ7gv3CoxP1+xKlGGSPGwfDN/z+S8jWkNx74V1W78g0cVc+yh7IwsdbjS10vyxSfv254/MuE5pplGfMeY7tJEQhcm+AIbQU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=hwduHJED; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707836565; bh=Mq7Gr3WDYsBP1PMrwjprrD4YC2YKvVWwkGxj9ia8i/E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hwduHJEDs0vx3pjIVoR0oZ6lTTt3czESrIxa+bFne47UUZgw0bwQXZ6SPw37KeyT2 AqUf7Vi8aMvJhcyi3J2mTafivV6AkRoCDqJmB/2w8j3nz3OZQMu8XyV8NzfL7WBvYw d0F5hPRilnGFwFy/lsBuXsdX4DslFUkk/xQPI+gw4qJddB1X9+mh+sMftaipnTX7og 58bsvuJfu/pcm/Sqyza0iYex2mN33f91od6aOCyWi1/aXX/hOvivWJyoJgxaar3+Wk LAIbMzUe/4mTmI5kp4y37EzPFWrs5uyznJD7Z/0s0rlN6JOCZvSOSYChbXRDZ9ml0+ 2QlD5kef4rivg== Received: from [192.168.1.42] (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 569D73782073; Tue, 13 Feb 2024 15:02:43 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Tue, 13 Feb 2024 10:02:37 -0500 Subject: [PATCH v2 1/2] arm64: dts: mediatek: mt8186: Add missing clocks to ssusb power domains Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240213-mt8186-ssusb-domain-clk-fix-v2-1-1f981d35f3fd@collabora.com> References: <20240213-mt8186-ssusb-domain-clk-fix-v2-0-1f981d35f3fd@collabora.com> In-Reply-To: <20240213-mt8186-ssusb-domain-clk-fix-v2-0-1f981d35f3fd@collabora.com> To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Chen-Yu Tsai , Eugen Hristev , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Allen-KH Cheng , kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= X-Mailer: b4 0.12.4 The ssusb power domains currently don't list any clocks, despite depending on some, and thus rely on the bootloader leaving the required clocks on in order to work. When booting with the upstream arm64 defconfig, the power domain controller will defer probe until modules have loaded since it has an indirect dependency on CONFIG_MTK_CMDQ, which is configured as a module. However at the point where modules are loaded, unused clocks are also disabled, causing the ssusb domains to fail to be enabled and consequently the controller to fail probe: mtk-power-controller 10006000.syscon:power-controller: /soc/syscon@10006000/power-controller/power-domain@4: failed to power on domain: -110 mtk-power-controller: probe of 10006000.syscon:power-controller failed with error -110 Add the missing clocks for the ssusb power domains so that they can successfully probe without relying on the bootloader state. Fixes: d9e43c1e7a38 ("arm64: dts: mt8186: Add power domains controller") Signed-off-by: NĂ­colas F. R. A. Prado --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index adaf5e57fac5..e0e5721d6b53 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -931,11 +931,17 @@ power-domain@MT8186_POWER_DOMAIN_CSIRX_TOP { power-domain@MT8186_POWER_DOMAIN_SSUSB { reg = ; + clocks = <&topckgen CLK_TOP_USB_TOP>, + <&infracfg_ao CLK_INFRA_AO_SSUSB_TOP_REF>; + clock-names = "sys_ck", "ref_ck"; #power-domain-cells = <0>; }; power-domain@MT8186_POWER_DOMAIN_SSUSB_P1 { reg = ; + clocks = <&infracfg_ao CLK_INFRA_AO_SSUSB_TOP_P1_SYS>, + <&infracfg_ao CLK_INFRA_AO_SSUSB_TOP_P1_REF>; + clock-names = "sys_ck", "ref_ck"; #power-domain-cells = <0>; }; -- 2.43.0