Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1152982lqb; Thu, 30 May 2024 01:37:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvqObgh9rGP/tJbgPhd113aSz1o8vnre9TrTCN+NS3CpxmoV9dff7S1q2VMRjxm2As2sdT4mBome4/uJ2fbcRJ04IUPoSur5wKx9mw0w== X-Google-Smtp-Source: AGHT+IGIQLIj1mq/UnQen7+09rNx/JPejJF3Man88lRKUCWIX9a1hkDbc6kFdV+6bB9SUPQXUusu X-Received: by 2002:a05:6359:2706:b0:186:5c1:1dd1 with SMTP id e5c5f4694b2df-199b94cdadamr212481055d.19.1717058230999; Thu, 30 May 2024 01:37:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717058230; cv=pass; d=google.com; s=arc-20160816; b=lrJFovwl0YFv0zW/9geMfYfWjSTqSnuvIYLaKYCNgrIL11eeq+zZuXVh7VxkVlBH9F BBWa1xJtWyZ+D393boFp9Y8cJkYb55xK7LCFdAFEFFXojk/P0vJn7QiyHz05beMOLN1P FaxXz/FHzEPHSXVKRYEJuErW6hnVrJqTRNcMbgSjTpoCujU4OGM+jiz/mNvKhJmlLmps Fv9zkRtt+FAHYFEKXnTnV8qSBpUJc2vPZYPtYIKPxpBLiOttkJttu9hbBPFzbkdVekuO o32fx6ST/Hf57tHxbuh/ngGWz49A7cXMyOyYL5nYOxAPE0ogoBaY/eReAK4E0dwdZnUs M4hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=SmWglR2Ij5/TGj5MHHzWjORF1jpZWpClgT/eZSAiwmw=; fh=smiuOjyZdVz2Ys8vQ8FA/soNUzii1/oy1l7gUUt5JIg=; b=I6waervieNtc7ybuLadufJ72JnI+t+F2zLJxCdaWF/mhm/gW3xU+7C5duMNnpQaImS aiTKkTw9uVRuIkaW7xGGQ/LcQ7LiJiLVEYuosDFz2ne1MRysQ+XE7wOIY3lCLjDgZqvi fqBTaVdf/ruQQ0mip7uM18QPWST99I+Knodyvbr2KzyuA3fjQgmJQUjIWkLE5FYuGdLQ OgAjw4yXZkB/6/YW0m8t/duHtloXsNp3wzc7WeZaD+DuWxCiV6UckibFw0Z194GxoaTr zPYmXlqs/kILqDoP13KcKTo7CQIIv40oHfpncO5+yjpAvVoAXVlvSeW3v9Vk3L+si9TS /dXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KOKixVyj; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-195073-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6bff25e7039si963176a12.270.2024.05.30.01.37.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195073-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KOKixVyj; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-195073-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2811B284A24 for ; Thu, 30 May 2024 08:37:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B8BC176187; Thu, 30 May 2024 08:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="KOKixVyj" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 822A46F317 for ; Thu, 30 May 2024 08:35:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717058139; cv=none; b=IhSNsMCkhhOHCWBBVao8ONA5xBcGf1PUrNOCFpEQpWadVV4Ero1lykdbWfTjWToPJr0cHqJTwAoehB5ayX/GUXP9wwf81tVrbfjJyb3JNROfpxfIeYwQHzlhc5i/vNASjiZ843rwsjNA4P5ySKBN3PUFYE6mmWfxUcSQ6RZzwOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717058139; c=relaxed/simple; bh=3pvDzOqGauCPupjcFSsY1hPMvPhsIclEecQbEFRd8VQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kdAGKZUPPI6vhkyavFAUy8kFcJGC8r6/uNXDn1+Jc0sOA/PYg3dEaVIJd6WwsfT3zw8e2rNTENje1SiGRJIZOaZ6C7ZNCkKQMNPajgo6d3DRuqxdGHInnyrHoDA/d8Bg1fg2Kdc++ZIq3StUs+VCaohhOBvQoHdhIm0M9+p+w+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=KOKixVyj; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1f62217f806so2071605ad.2 for ; Thu, 30 May 2024 01:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717058138; x=1717662938; darn=vger.kernel.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=SmWglR2Ij5/TGj5MHHzWjORF1jpZWpClgT/eZSAiwmw=; b=KOKixVyjJyxXE/zGv6pVX+zYl6HzS3mUlRy1hUupdMnTF4Lq0/PM7kFcWgGO3XRIoR x4VFaFRmweMuNeZBuUG1G+Tcas3eXDdflTmELrEPqjYBOFl/XmEeKjjMh7w/sGwC1/Sq I9Rhxoe8nqyJAUzDVhazgmtcPfEMkvHFCzO84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717058138; x=1717662938; 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=SmWglR2Ij5/TGj5MHHzWjORF1jpZWpClgT/eZSAiwmw=; b=oCwvu/itIX7GtVBN6s59qP/3qG9I8x5aghPfy3rbH6gHmfXiBRRRj5ooDDO4T2iuKM AInsFJK2Up+iA5jw5sbzxj1RC9Ck79IIyZ29QzIbJXWiSEFf+qj20KkhQ9+TCbEdHpkX 919jXbiPdeYYkRwwukGTmHAK2cwK202vl+1bOaw4vrVQT0Ga8PiBgmqqcQ23mB6uFUgq rdzfugq4SthwFxglpRniZbQbFRSZEz73sAm8+f7HhzSWpL2iOsAxkoe/Vqf+l8H1hobc MvLU9gtrk0glo1GT+iWezAn3tzfhYGXfb1erXhkM8/avmbtLgETd/SiHCKlU3YQLyPi5 u3Hw== X-Forwarded-Encrypted: i=1; AJvYcCXBHpx/F2F9HG76LzRW4yyrfYaeCecBNuPerd2TpsyH/r5iZjeBhmlDtjGXxPWfCQ6TXYlFZc8io/5wk5que4hwgigyEN6doiZKtssk X-Gm-Message-State: AOJu0YzfnrEwXhtrJ2vuF+/xBDCzBOMQ7VDu5nhoVpSh/hF3DVa04dgr 4o1hoQboHyMuxInPKEo1+iZCU7vhTMq7xK6e4EFiXEWc/MZRMGO+Rpt0opA3Kw== X-Received: by 2002:a17:902:74c8:b0:1f4:7f18:6d7c with SMTP id d9443c01a7336-1f61a4db927mr16665575ad.61.1717058137709; Thu, 30 May 2024 01:35:37 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:65f0:63a9:90bb:50b8]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f617390fe7sm10950635ad.146.2024.05.30.01.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:35:37 -0700 (PDT) From: Chen-Yu Tsai To: Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: mediatek: mt8173: Fix MFG_ASYNC power domain clock Date: Thu, 30 May 2024 16:35:04 +0800 Message-ID: <20240530083513.4135052-6-wenst@chromium.org> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog In-Reply-To: <20240530083513.4135052-1-wenst@chromium.org> References: <20240530083513.4135052-1-wenst@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The MFG_ASYNC domain, which is likely associated to the whole MFG block, currently specifies clk26m as its domain clock. This is bogus, since the clock is an external crystal with no controls. Also, the MFG block has a independent CLK_TOP_AXI_MFG_IN_SEL clock, which according to the block diagram, gates access to the hardware registers. Having this one as the domain clock makes much more sense. This also fixes access to the MFGTOP registers. Change the MFG_ASYNC domain clock to CLK_TOP_AXI_MFG_IN_SEL. Fixes: 8b6562644df9 ("arm64: dts: mediatek: Add mt8173 power domain controller") Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 3458be7f7f61..136b28f80cc2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -497,7 +497,7 @@ power-domain@MT8173_POWER_DOMAIN_USB { }; mfg_async: power-domain@MT8173_POWER_DOMAIN_MFG_ASYNC { reg = ; - clocks = <&clk26m>; + clocks = <&topckgen CLK_TOP_AXI_MFG_IN_SEL>; clock-names = "mfg"; #address-cells = <1>; #size-cells = <0>; -- 2.45.1.288.g0e0cd299f1-goog