From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 D5664313543 for ; Sun, 23 Aug 2026 11:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787486033; cv=none; b=Ea5Mv59cm65ignESjhjn5DbzOWG90CSUgASi/Jx2s+Qzxd8HEzvOeIXBSjUNSU9Jt3RqcgZI5m+qsIicCN6bYtW4rbmnHwHBlAHbl94DtG3se0jYfp1lvpeCCpEC9Da3jey50EYcaMShgxuUEjX3hEdsgoW65mSIIXwxHAYoDEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787486033; c=relaxed/simple; bh=/t5b4apjuUqazPmhw90ov7CghXz1Qkh9CYOJwiCV1OQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j8UFPWDFSicQQzHWad+JqzI60BmfWYEXFbqObik4NbVyvnYGk0IcUIU+/wzPR3w/doBDjSqRAYkMvQmBLDhVUQ/1jjoF8TiDx1MBx5NREg+v/9SRea3wjmWttahxvjbYkgqJMhAtzY6pHaxu0MVFLyz+CwUanVJCITrZEdEkiTs= 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.50 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-f50.google.com with SMTP id 5b1f17b1804b1-499ae1c6471so15422615e9.3 for ; Sun, 23 Aug 2026 04:53:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787486030; x=1788090830; h=content-transfer-encoding:mime-version: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=hJkLdfWqS4G1xdqUVtL2U3xbkMZdjpzIyL7R/rtgSKY=; b=c4dWsHVEMcnPdCz0o/P6frrTaKLOdto8RKpUghw4FZTNTe6u6yjSIeNCXa5+2sHV/c tdeKt4tzNMXbouThIopw8648wpvaqNWAGf0jg1KnGZComsmKJpJTvW5zjc3WZJeCq3ob TG6TMRNkYsSgCWx10BTcKeW1MtC72ntTN2KecM6hoh6kUCu8Mizs+M9IYqCtsyySliE0 v3yLXDiO2ex+dceFNiIyjgnkqfOu/WwDN6BEb0bNCWBEhOTudbmVXqlcWp11Px0dmem2 sRG1INMxyCizA9ENUa0XxouFy6IyububHla0MVAW7prrdtDdU5Zu1LSEnKJdpJvccQbL dexw== X-Forwarded-Encrypted: i=1; AHgh+RrJPZRomlQWwhHfbpBpdtAjeSas3GiO2aEwXec0NzeoUlm3XFsNAzwz7edu6sT9a5AXoxi2nj2XATLsHwU=@vger.kernel.org X-Gm-Message-State: AFuF++lKvDRlNopKemHIjRGre9NXvADi/TVYxq0HfD+d51b4nN3us4Tj q3bn3d0L0DqDvX04txr2pHdLXqKd3XitldUkO1AgqtMcmPv3uX077EJZ X-Gm-Gg: AR+sD12Zjjcxv3ccmP0S3dDjppZF3VttDRwCkl5J48DBPmh1YhOUQKGZAc4yhGifRxV Hcyfa80Yxhwz9yNZjVMrHHWOwAHIQHrr5VxH1DYAcSa892S+hSIWh6STyNJI3BaIaTcfNJa9IIZ MJVbUlTzgD21iPQilafxy9bHl5+hdAz58yPEmHxwZznIqvj0Ntyh1bKO4/Td2SMH9aWHhcjtuWc fU3qHx1U2YyvlpLo7nIPAxpsIS/+m1YSZuyV+1/NWysyciM1SYLuG7biaIiGpSlhsZtPoVsJYnV 1TtKaxBWKy9BaSaoi5CGVc3tEBmX6qwLc14G3G8JFzQE83mz0ucaRGITrmFZBBQY++T2rvLqjqv Z9aQgh3F4mlodJRXuNhJa0qq9Tbw2uSYCNNyZ7IhsaYnkgu7HQDtosuLPWbvHNcusQfD7jrDsD9 MCQcSgjVnkwTGYtliVR4EVZi3SqSTTWuSE2kuERxtTCjyLvrB0g7iEZ//PGnSbcO/FJADCB+JlA 0rxrxANiWSeTfK948Jg1vzXCDC2gxBv+iQy9A== X-Received: by 2002:a05:600c:c08f:b0:499:be9e:49c8 with SMTP id 5b1f17b1804b1-499be9e4a32mr134720045e9.13.1787486030111; 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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2026 04:53:49 -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 0/2] arm64: dts: amlogic: t7: fix UART clock and SD card recovery Date: Sun, 23 Aug 2026 12:53:33 +0100 Message-ID: <20260823115335.102219-1-tanure@linux.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Two fixes found while booting mainline on a Khadas VIM4. The first one wires uart_a to the real UART bus clock. It was pointed at the 24MHz crystal as a placeholder, because the T7 clock controller driver did not exist when these boards were added. That leaves the real clock without a user, so the kernel turns it off when it disables unused clocks at the end of boot, and the board hangs with the console gone. The second one drops regulator-always-on from the SD card supply. A card that refuses the 1.8V UHS switch can only be recovered by removing its power, which that property prevents, so the card never initialises and the MMC core retries forever. Both were tested on a Khadas VIM4 booting v7.2 from the SD card. Changes in v2: - Update UART clocks directly in the board DTS files instead of moving them to amlogic-t7.dtsi, as &xtal is defined at the board level. Lucas Tanure (2): arm64: dts: amlogic: t7: use the real UART pclk arm64: dts: amlogic: t7: khadas-vim4: allow the SD card to be power cycled arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-an400.dts | 2 +- arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) -- 2.55.0