From patchwork Wed Jan 29 17:18:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Minnekhanov X-Patchwork-Id: 13953976 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 610CB1E0DC0 for ; Wed, 29 Jan 2025 17:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738171200; cv=none; b=TnT5QbJjL4jnpCf8uAki9+juR9kP4AfmB5h4h53XrxVac8/pv44BI5LTVFpqo71ktXQ5fVtuT/OnGX07aAsHWFaecQt1NbpHT7gus17Bg+1snvnTXbcgTsiobMrLFLwU9lwIXt2t9+cOLSsCmIXrRnXYUnm2Cwcibm6a4k81cdk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738171200; c=relaxed/simple; bh=6bP6dOWk0CZiMQmqQ7V8tThH3RlrxudkJqBNhQo7WoM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q/snTnas0J1acRVuTHzzUz8Hs8KP0qw7lpj5hUxhKq7mwV60yalngQpfhWPcsFLcNGInR4/PrUYzMKFxcvENg+Mottn7hE8pZv8A4wjoVzQiLA8ujWmHpf8WFIBBeOzNM1VuQu7IUTyl6+XWjBrZjZqBb/X87MKgPeTP7mFpbH8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=UNIHWYgG; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="UNIHWYgG" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1738171181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=W6xxV0PtQ3PAKtzkZYBXyssRiVoSb6vmC8HEN1Bw0iI=; b=UNIHWYgGEXiY7lg8/XdTLW4UiTcMxM+LKgAOwbhrfB3hbyrTZxCguT+/uvTxI14RqUEygF 0X/bNkTQCv7l710ZivRIXnQHTIDnpgxajBZgw2FgBgv1WXEgKEMKIBJB/oiYd6rJf2cYCO iIpWiJAzbfSaf2/mHaK+/I2EXCWRRZSzttouNM6USsrW6yuJqQw7OB/IEuO2I/QOUPm0hb Qjixiy9llpkEIWgVmi6R5fohA3FbVBOGmkaBvmePhCV6rMlRatNrH6EbRk00dyYVt9lcMb MeDcn3FS2+t9uybsfw9LPO5y/Pm1Ob2Y6V06fvwjgYR1+rPnNZVdPi4nEAgXGQ== From: Alexey Minnekhanov To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , Craig Tatlor , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Alexey Minnekhanov Subject: [PATCH 1/2] clk: qcom: gcc-sdm660: Add missing SDCC block resets Date: Wed, 29 Jan 2025 20:18:40 +0300 Message-ID: <20250129171842.1588526-1-alexeymin@postmarketos.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT This will allow linux to properly reset eMMC/SD blocks. Fixes: f2a76a2955c0 ("clk: qcom: Add Global Clock controller (GCC) driver for SDM660") Signed-off-by: Alexey Minnekhanov --- drivers/clk/qcom/gcc-sdm660.c | 2 ++ include/dt-bindings/clock/qcom,gcc-sdm660.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/clk/qcom/gcc-sdm660.c b/drivers/clk/qcom/gcc-sdm660.c index df79298a1a25..1856a2d96dde 100644 --- a/drivers/clk/qcom/gcc-sdm660.c +++ b/drivers/clk/qcom/gcc-sdm660.c @@ -2420,6 +2420,8 @@ static struct gdsc *gcc_sdm660_gdscs[] = { static const struct qcom_reset_map gcc_sdm660_resets[] = { [GCC_QUSB2PHY_PRIM_BCR] = { 0x12000 }, [GCC_QUSB2PHY_SEC_BCR] = { 0x12004 }, + [GCC_SDCC1_BCR] = { 0x16000 }, + [GCC_SDCC2_BCR] = { 0x14000 }, [GCC_UFS_BCR] = { 0x75000 }, [GCC_USB3_DP_PHY_BCR] = { 0x50028 }, [GCC_USB3_PHY_BCR] = { 0x50020 }, diff --git a/include/dt-bindings/clock/qcom,gcc-sdm660.h b/include/dt-bindings/clock/qcom,gcc-sdm660.h index df8a6f3d367e..74c22f67da21 100644 --- a/include/dt-bindings/clock/qcom,gcc-sdm660.h +++ b/include/dt-bindings/clock/qcom,gcc-sdm660.h @@ -153,5 +153,7 @@ #define GCC_USB_30_BCR 7 #define GCC_USB_PHY_CFG_AHB2PHY_BCR 8 #define GCC_MSS_RESTART 9 +#define GCC_SDCC1_BCR 10 +#define GCC_SDCC2_BCR 11 #endif From patchwork Wed Jan 29 17:18:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Minnekhanov X-Patchwork-Id: 13953977 Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (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 EA93B1E0DCE for ; Wed, 29 Jan 2025 17:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738171200; cv=none; b=kvBjNVcTf3EBw4p//rL7q4mPIVcO+i5ta+OynC2eD39S7mjuihhj6tln0yZ8VGEOg2eBTx/rru3qBL5p+rpMBeFwag8QVHDQg2crrVd768R2ozH0QV/Ey30pWtJzVDlSSw2LaRv4ViCohNvHlu2RWJfnpjzrWVDlZwtbrC1dObw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738171200; c=relaxed/simple; bh=FW/GI43N5p3BtB1D64rBvqr5odB3+1/4Ea0iYxTd780=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n6A3LUhHoCdadwgKdTPscq7LKT5S8kIOkem/AdNr3sLTzP+c0LhLHmvjGFkAd40aFRnWAJ4v4/3euCDHWfr9yXsmT02llGvfFEesVKec1w06FxTLVE41FIBq9vkv8DJvtSJcwXNFt/TVh9OY/NuSxIhe7vdkh6rOyAnbD52pjDc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=XqIGXxxq; arc=none smtp.client-ip=91.218.175.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="XqIGXxxq" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1738171192; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=m8dAhViTZBchMGhqpRD9jGMu8g0CRLVsIwsVjBG5aSo=; b=XqIGXxxqfFGWikM3GD58Esh7FNvRaKbRYWOxWgqt6mhTtEAxATm0kXIDPdpzt+M429b11G azgxuDxoOdXMEjMOvATzrc8I5ZthPKknS7ZPhtX59r8LUmOz3odnFhvhkfbuDeaDYXl6mT ze/+sy9U6R1gN00VWdlj1cHmtxvt6pdE88H2fmvmAdTKgE3hc1wUwvgsLA1qFGmRmq/jRk qpE7U8rll01ACM/KNmOoLW0le5GzrDn9iOOzVqkYy+QfKGZS0/cTL78kilYpYX506KT5sB muTn/7vmeR3439edkBXDwVNhOLgIWJeb8AiWd606eUTkXTY1hj1So0wSRrmrbg== From: Alexey Minnekhanov To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Alexey Minnekhanov Subject: [PATCH 2/2] arm64: dts: qcom: sdm630: Add missing resets to mmc blocks Date: Wed, 29 Jan 2025 20:18:41 +0300 Message-ID: <20250129171842.1588526-2-alexeymin@postmarketos.org> In-Reply-To: <20250129171842.1588526-1-alexeymin@postmarketos.org> References: <20250129171842.1588526-1-alexeymin@postmarketos.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Add resets to eMMC/SD card blocks so linux can properly reset them during initialization. Signed-off-by: Alexey Minnekhanov --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index a2c079bac1a7..3722e405a97c 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -1379,6 +1379,7 @@ sdhc_2: mmc@c084000 { <&xo_board>; clock-names = "iface", "core", "xo"; + resets = <&gcc GCC_SDCC2_BCR>; interconnects = <&a2noc 3 &a2noc 10>, <&gnoc 0 &cnoc 28>; @@ -1433,6 +1434,8 @@ sdhc_1: mmc@c0c4000 { <&gcc GCC_SDCC1_ICE_CORE_CLK>; clock-names = "iface", "core", "xo", "ice"; + resets = <&gcc GCC_SDCC1_BCR>; + interconnects = <&a2noc 2 &a2noc 10>, <&gnoc 0 &cnoc 27>; interconnect-names = "sdhc-ddr", "cpu-sdhc";