From nobody Mon Sep 28 10:43:06 2026 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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 initia= l device-tree") Fixes: 6f048cc7a635 ("arm64: dts: add board AN400") Signed-off-by: Lucas Tanure Assisted-by: Claude:claude-fable-5 Reviewed-by: Neil Armstrong --- 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 { }; =20 &uart_a { - clocks =3D <&xtal>, <&xtal>, <&xtal>; + clocks =3D <&xtal>, <&clkc_periphs CLKID_SYS_UART_A>, <&xtal>; clock-names =3D "xtal", "pclk", "baud"; status =3D "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 { =20 &uart_a { status =3D "okay"; - clocks =3D <&xtal>, <&xtal>, <&xtal>; + clocks =3D <&xtal>, <&clkc_periphs CLKID_SYS_UART_A>, <&xtal>; clock-names =3D "xtal", "pclk", "baud"; }; --=20 2.55.0 From nobody Mon Sep 28 10:43:06 2026 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 1497A3CCA19 for ; Sun, 23 Aug 2026 11:53:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787486035; cv=none; b=kGIspRyOfoaX4Qtm9gHKpOlRGnqbbW/ZrRZ8r6hppLSnOqJ8ZXBGc9Umd7zFPKCKFZ8qXa1s8K5D7dJZcQjaNpeK6QDKfHLbvD4n5hIS2WwtKHQIfM/uWQRd4ZuTYB1SnKEuv9L+pTaWd5pw8X2on7jXlT/+HobDAeaTV7mIGR4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787486035; c=relaxed/simple; bh=dVv3havpeDsTBU4IBCU9QgSQ+lf39jAeKDEpWEAl208=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qEFDv+Qo/pZrm4Axkmu2WHqwkD1nDY0pkuNREcKYW8XHjwbqFEQVNWvvUoaQYkm/+1r4EG9uOcw1CyvUGvFfidM0Qp2Je8EP0bz6sczQrSa1E9b8WgPuR24hJtivv1iH0ZgWHy9L8ETxPh14SMxfs6MbZF1hAo6iSzTsX0AF8YU= 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.51 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-f51.google.com with SMTP id 5b1f17b1804b1-499b6c02b02so10831745e9.1 for ; Sun, 23 Aug 2026 04:53:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787486032; x=1788090832; 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=7jThRiaQ/26wqHZ1vL8lEl8IaaxJS8aQBBZUVqHcHFM=; b=gnns+YNe51X4qApYFof5b78Ujvp3crJB733U212qhVzKBj0YJ615CZTedB44/9BoK2 9R7jxt/NSSBwcRrrK20VfeDx5wB0044g2yLGSe7P/q8h10vE+0b9M+qh449GdaQD+XUQ k4H7L3rz+5hF8nhTYIoDZqZHNzgKWApgGw1+tEh1TlHNmqHWX+KJETj2RrkeusW7ZEks T1Qf7Sag1zc4FIv1QG1fBAywB/MaUfvdFpXIgkfquE1J+ijoH/MgjEWA5CHxEF/AmD8B J93XnNWXa4VnGs9xJIA7SnjtWPt/uOvodXFGPx27ZJN+xfwXc0FAV17lEDC0Nps8xJj9 cxRw== X-Forwarded-Encrypted: i=1; AHgh+RpJwrZU9j/4iNv9ZnmCL0aAOEurkokYL8MH5XHGOX0sT9OPhhLnmqJW8VsoGOsLx+/VxK1M01u5p8epNyM=@vger.kernel.org X-Gm-Message-State: AFuF++k2IhgTmp11l0IW3OrSy+P0fS+/w8Hfli3mLLLssVDR308TNWPo PzQhPkxPFBAvtZRpk9mscDQNv9L2DGF7PPCsppl7o/HR1QwsKE9FgDDo X-Gm-Gg: AR+sD117dbrItlDhddQqvW49wkIBVKyTy98pMK2UTwiPGME4gN9bAApzajZ66O2Le7K 1dB8qsFibzrBXh33t3BmUeJO8prAEt7t2QNOuZCAsNi+y1i3t0klYq+LLTM+/eoXmHTMQhRi8OX 0pQr5cKWkQApxsC1M/L3BVBrGu2F5KY9GqS5XeOXKq2AvjZBpdFILc8ep/e48MGjt+NO5sHelrD qmicF64sTFgxL2/gVXZ/pq4te0rrlI/EejVoYMvkQwsuapzanKmUATN1lQ4J+1SRpNvSnSUR7UT 1Aic1ZS11IvLiCjJPzwtMhiKlERaNipazXXc1ADhJE+8AYbRp79obyPXie9vDSHWlfiOAS6Z/D2 C+5V60F+8rahpe6GX3fz6k74JvwHmeqjEp7xdtKZp9fPEcYNh7gpFGV3w4d8VMfFBw+7ma4iytn yD6YS0Q8oq0kW6aQccI6oyfAOxfGgiddkz2OIkpPLLEtYoy5isobO4afPEPXr4+1l/G+6MKs7sg FpmnXqyOh6OdTZIo9AD198vZkkduvdv3DS2/uk= X-Received: by 2002:a05:600c:6296:b0:495:4d5c:903e with SMTP id 5b1f17b1804b1-499b8327cd8mr242910645e9.7.1787486032189; Sun, 23 Aug 2026 04:53:52 -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:51 -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 2/2] arm64: dts: amlogic: t7: khadas-vim4: allow the SD card to be power cycled Date: Sun, 23 Aug 2026 12:53:35 +0100 Message-ID: <20260823115335.102219-3-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: quoted-printable Content-Type: text/plain; charset="utf-8" SD cards start at 3.3V and switch to 1.8V to reach UHS-I speeds. Some cards refuse that switch, and the SD specification says the only way to recover is to power the card off and start again. SD_3V3 is marked regulator-always-on, so the supply never goes off, the card stays stuck half way through the switch, and the MMC core retries forever: mmc1: error -95 whilst initialising SD card Drop regulator-always-on. regulator-boot-on still turns the supply on at boot, and a card that refuses the switch now falls back to high speed instead of failing to initialise. Fixes: 8c45bf9ae4ef ("arm64: dts: amlogic: t7: khadas-vim4: Add power regul= ators") Signed-off-by: Lucas Tanure Assisted-by: Claude:claude-fable-5 Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 1 - 1 file changed, 1 deletion(-) 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 75d81ad6830d..c94afaaf8826 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 @@ -71,7 +71,6 @@ sd_3v3: regulator-sdcard-3v3 { vin-supply =3D <&vddao_3v3>; gpio =3D <&gpio GPIOD_11 GPIO_ACTIVE_LOW>; regulator-boot-on; - regulator-always-on; }; =20 sdio_pwrseq: sdio-pwrseq { --=20 2.55.0