From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 BEFC93655CE for ; Sun, 23 Aug 2026 11:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787486034; cv=none; b=Ltv+hobpuK9NIRaLeh4llU89hchYgnU/yWUuhndetOCczekESoWq7HLs/IXgRv34nCP3p1dw+FwlDB9U80Ia991YP2uJdTrnphxUWrMmwMxwcPzty1/IK/Y9r9MaSN8oOkzXhmLF+JsHeSpeizE+dVtewcR1eoJYpC0mv3XEgEE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787486034; c=relaxed/simple; bh=CrC6MmS2IBRgSJykWWk9kQbtkszePmpZSqrPmvMBpQM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oysyuTvjBDWo2zrOJY+rFK+aSi4Fs1nZqZdmUGhEpae+/C4t0UCJ5o2rAD7isf/EPidI0zdHRj4HyUaTSRkP9YFuBvv4KAx+LjZCn7Xxh62ECVYo2jMs4/3TtOxnQw3fkk/dyWh6ddcDwm/EyKokaxI0T/FCr330LoGlyl5GnXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4921eed3fa2so20963015e9.0 for ; Sun, 23 Aug 2026 04:53:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787486031; x=1788090831; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=71w4/rq4K9yb8GmFJtMWkONctoSy21P/XVfk3Fhsusk=; b=mBYqFF7rl8RU4JcJaiGU1wdLbwoaMfotG3hxl7yUvb/n3Sg8Xu7lPKGD7eKGtkwe6P boeJWzlWg7RZzZqEPR32O/8Vj9PXXdE+4oyc7tOHjJWMnfeu50FoOWRuY4zJoBlVDPQw DKDGmKw4VZg+jjR2UVelRxP0HD9E0tubu7DXgq1DCI9pRrZpZAbeonSCrdYK14onPO1r b1hvefwpI+HayRagUQ3fszyyP+5KGV1YXY88dyjgQ5C30pMwJ/qrOcUIW8zw4LFon54c xTNlHfylUmEbA1tnqDc0J/m2pqubHjqgr6QR7aGSBmxcFOYK1+jtgJBW0IuzLOfKY41L /w/A== X-Forwarded-Encrypted: i=1; AHgh+RppwwB6/UAKxTBiLR7CHgDvtARRqr7H+qCZm/R6ht71kA+tUWhFU9jFXoexoVXScGWYD5XkeZ75tUUfOuw=@vger.kernel.org X-Gm-Message-State: AFuF++mugjeNiBdK19dRN/v2AcHCdKxTk95EuNS8pSWtG+bkzCUHzQxx ppuWl+pdYFx5IXxYtmScAxPrUQLZ4TWv9/wyJlNYYdbhX3zInwIcjRMv X-Gm-Gg: AR+sD11v4i4wtERbawmdzWes5xKDkzE+4jJBozlCNZeSJYrY9kDGnXAGrN+ihsw+UWF IyYpwij2SOpNcTxAcZXzyjztMVptNnZKrLKHQtJ8ahkFbXWs860vBhLV77kGGLQBelXJDNvo0PS MG/xEh8d3DNdsEuiC5MJJinfe0hT4zNw1wgEDp5imzdcSUT0mlXMIBKuSalf0pi2tHHA7oSioF9 4kx20tOHiVI35a3IZzBQ2K1akG5W/0ynwaKdLTd0T0bUDjuF5Ftgg3lZQ3oqQNzb81Ktb9u6ohC kAWByvS/vVffTF34vulWDA+1dttDF8Gd+ik1uAnU1o1Cua6rWjvK0LCAh9qqEhfKZjea+WfX69l rJJci4l41nuAXaC0ynC4R4xvPTYqOrESZ1EU8JEJpy861mZV9Kvx0ZZJ2FvZ+LluWBP9+6zPkEf 77TFYdn+pZiP7UYJLUo+nI0ETw6jZfDwQkRDoye48ZVZk5bpbdN9ph2aUYcVxPhLVhs5FP7L24z 5ZNIB2e8Rnslvc/k6CMozLGYlvSwyCxXIekUg== X-Received: by 2002:a05:600c:1548:b0:499:841c:2016 with SMTP id 5b1f17b1804b1-499b8273456mr224164355e9.0.1787486030800; Sun, 23 Aug 2026 04:53:50 -0700 (PDT) Received: from threads.localdomain ([83.106.158.114]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-499c355e1ddsm48680935e9.5.2026.08.23.04.53.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2026 04:53:50 -0700 (PDT) From: Lucas Tanure To: Neil Armstrong , Kevin Hilman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, Xianwei Zhao , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: amlogic: t7: use the real UART pclk Date: Sun, 23 Aug 2026 12:53:34 +0100 Message-ID: <20260823115335.102219-2-tanure@linux.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260823115335.102219-1-tanure@linux.com> References: <20260823115335.102219-1-tanure@linux.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit uart_a listed the 24MHz crystal for all three of its clocks because the T7 clock controller driver did not exist when these boards were added. That leaves the real UART bus clock without a user, so the kernel turns it off when it disables unused clocks at the end of boot, and the board hangs. Update the board DTS files to point uart_a's pclk to CLKID_SYS_UART_A instead of the dummy crystal clock. Fixes: 4fef056588f5 ("arm64: dts: amlogic-t7-a311d2-khadas-vim4: add initial device-tree") Fixes: 6f048cc7a635 ("arm64: dts: add board AN400") Signed-off-by: Lucas Tanure Assisted-by: Claude:claude-fable-5 --- arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts | 2 +- arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts index cab2ee9ea0d3..ca7536f772ff 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts @@ -33,7 +33,7 @@ xtal: xtal-clk { }; &uart_a { - clocks = <&xtal>, <&xtal>, <&xtal>; + clocks = <&xtal>, <&clkc_periphs CLKID_SYS_UART_A>, <&xtal>; clock-names = "xtal", "pclk", "baud"; status = "okay"; }; diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts index c41525a34b72..75d81ad6830d 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts @@ -266,6 +266,6 @@ &sd_emmc_c { &uart_a { status = "okay"; - clocks = <&xtal>, <&xtal>, <&xtal>; + clocks = <&xtal>, <&clkc_periphs CLKID_SYS_UART_A>, <&xtal>; clock-names = "xtal", "pclk", "baud"; }; -- 2.55.0