From patchwork Wed Jul 10 13:28:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diederik de Haas X-Patchwork-Id: 13729322 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D45FC3DA41 for ; Wed, 10 Jul 2024 13:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KLBHZjexyXVN2+OSBryAFtyXrp6LCvLeuz6pNTh3Nso=; b=CU427Rm+D1dSHJum5N7lgR2ejK PA+Iyos9BSiEoKa65GsyijYtmsXGWBVts0o99NYWCApx041LOZ/lYThqNqfeterfiDkSUP7C7ihLC MRBi/OkZwVW8s28UcR0kxH0BUSkJCVKMkhDWZULN5bH0aAOO2+Y1AYTgSLWNL1w2Hb/Xn4qRgZpfD 5cqpFvD77OFw3rf0/ECPL84r1FwjKkXuy9OlCiDQBUE28v2qjMB9oRkFNDVGCjyAxJDiy8lGe/2a5 lh1TYDabNVAvsmdO/jPqQKTRvFynzsuxeG3tYLXzc8LKJTDzWPB6ONgcEX0Afy+oEXrKPxben/p/+ Gw3RkAkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRXP4-0000000Aekw-1vnz; Wed, 10 Jul 2024 13:30:38 +0000 Received: from out-185.mta1.migadu.com ([95.215.58.185]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRXOc-0000000AeU8-2uEd for linux-arm-kernel@lists.infradead.org; Wed, 10 Jul 2024 13:30:12 +0000 X-Envelope-To: heiko@sntech.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow.org; s=key1; t=1720618208; 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=KLBHZjexyXVN2+OSBryAFtyXrp6LCvLeuz6pNTh3Nso=; b=mZcZPQYXx9l2k3OZVdPk/KGs0KYa7tQ/c8R/OJQJYGOtW6Kw+/GLh4VbYWz4eCe5o8UoLm X0pap6fdnLc3uK53eGHnkfCK0FSo2WYZWTia6cKpy4Diu2hpTVmtD/y4NQRRzfn8neeOiP dD3oMxfpTosZV83P7AxFXCRd3nlYBEDpzXsz5J7IUEQn67GKs14c0paAAt4CfClBCExNX/ HFR2a6gbxq8NdNavtR+uz2c317tRRKwBsLH0W9cgcPgzdKPdVZLrIVHaIFs0GWjvtJBkvk ETLarDme6M/byrHWPiIeUYJoJMa5HkX2S6XsJCwVO1ENZ3+B1Z+vtTF5EQ3K8g== X-Envelope-To: knaerzche@gmail.com X-Envelope-To: linux-rockchip@lists.infradead.org X-Envelope-To: devicetree@vger.kernel.org X-Envelope-To: linux-arm-kernel@lists.infradead.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: jbx6244@gmail.com X-Envelope-To: wens@csie.org X-Envelope-To: didi.debian@cknow.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Diederik de Haas To: Heiko Stuebner Cc: Alex Bee , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Jonker , Chen-Yu Tsai , Diederik de Haas Subject: [PATCH v3 1/2] arm64: dts: rockchip: Add sdmmc_ext for RK3328 Date: Wed, 10 Jul 2024 15:28:12 +0200 Message-ID: <20240710132830.14710-3-didi.debian@cknow.org> In-Reply-To: <20240710132830.14710-1-didi.debian@cknow.org> References: <20240710132830.14710-1-didi.debian@cknow.org> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240710_063010_900775_D259BBE3 X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alex Bee RK3328 SoC has a fourth mmc controller called SDMMC_EXT. Some boards have sdio wifi connected to it. In order to use it one would have to add the pinctrls from sdmmc0ext group which is done on board level. Signed-off-by: Alex Bee Signed-off-by: Diederik de Haas Reviewed-by: Dragan Simic --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index b01efd6d042c..95c3f1303544 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -1036,6 +1036,20 @@ usb_host0_ohci: usb@ff5d0000 { status = "disabled"; }; + sdmmc_ext: mmc@ff5f0000 { + compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc"; + reg = <0x0 0xff5f0000 0x0 0x4000>; + interrupts = ; + clocks = <&cru HCLK_SDMMC_EXT>, <&cru SCLK_SDMMC_EXT>, + <&cru SCLK_SDMMC_EXT_DRV>, <&cru SCLK_SDMMC_EXT_SAMPLE>; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; + fifo-depth = <0x100>; + max-frequency = <150000000>; + resets = <&cru SRST_SDMMCEXT>; + reset-names = "reset"; + status = "disabled"; + }; + usbdrd3: usb@ff600000 { compatible = "rockchip,rk3328-dwc3", "snps,dwc3"; reg = <0x0 0xff600000 0x0 0x100000>; From patchwork Wed Jul 10 13:28:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diederik de Haas X-Patchwork-Id: 13729323 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5CE8BC3DA42 for ; Wed, 10 Jul 2024 13:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W7GDLIJzDEbcqmiflPOe8bUQkY3bx/EAeBq+l7AHF5k=; b=k0MDIxJWa+pA9wBqbq43/WW9ey Sa/T4L61Gh7F91tTzOYtAbuWnyq7fg6TnvPU5SFIJ4eATCsiInQuwghoaNvmQUCm+S5QrJQXoykOK S+AfXw4O7r+GBQgfTUsjXKpjLEYaGKYyCTKVGzg8Pp53A0dow99WHALpj5HCIcDBwc4Tu6JQjd9FU rheTKythnqyStReeZzfdDafrPbTGzvB9/Ou/r4MI+ka9I7BTwQyqECqxqt9My5dldsQBku6EIjB+a zhU9G4nNkKUFjbOnu/iZoZEqWz8zGi4x4X1z9CJvS6bOR2+uU8p8BCqbOcRIe5anfHHKPuQHcai+A vJaPzcwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRXPJ-0000000Aesj-3GEG; Wed, 10 Jul 2024 13:30:53 +0000 Received: from out-173.mta1.migadu.com ([95.215.58.173]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRXOf-0000000AeVx-32Eq for linux-arm-kernel@lists.infradead.org; Wed, 10 Jul 2024 13:30:15 +0000 X-Envelope-To: heiko@sntech.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow.org; s=key1; t=1720618211; 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=W7GDLIJzDEbcqmiflPOe8bUQkY3bx/EAeBq+l7AHF5k=; b=w6whZI7ugdXp4drL5ritcRCNJGJC1Jnp31cDfhWb8zEYFeLM+CjuexOh2y2WS/2ufzdy0j 8Gmc9w7txBkTMuCAZB9oNoYIAzAk+d1gi6DDJRLo8tCT9TXjX405fvxmOVxvfupgOX8aca G6Ii6bpgeLoX+easuv4HVAmxOBj3rFNHK8C8kIXWDi5I6+eIbtISFcL6rZIkCIeLLGWMze 3O34zAonH2GRv2OSWcn/ypO6Snxc5v23JK6+ZrXLRaqbcR9h4mJUBbmfI8d+AnG89swE+c evhX4AnlOaLPyE0Cpya9Csh7vkcZDgeMfSr/t56lG9OAH9RykaNnoNkQd63nzA== X-Envelope-To: knaerzche@gmail.com X-Envelope-To: linux-rockchip@lists.infradead.org X-Envelope-To: devicetree@vger.kernel.org X-Envelope-To: linux-arm-kernel@lists.infradead.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: jbx6244@gmail.com X-Envelope-To: wens@csie.org X-Envelope-To: didi.debian@cknow.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Diederik de Haas To: Heiko Stuebner Cc: Alex Bee , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Jonker , Chen-Yu Tsai , Diederik de Haas Subject: [PATCH v3 2/2] arm64: dts: rockchip: Add sdmmc/sdio/emmc reset controls for RK3328 Date: Wed, 10 Jul 2024 15:28:13 +0200 Message-ID: <20240710132830.14710-4-didi.debian@cknow.org> In-Reply-To: <20240710132830.14710-1-didi.debian@cknow.org> References: <20240710132830.14710-1-didi.debian@cknow.org> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240710_063014_060814_7C8CB11B X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alex Bee The DW MCI controller driver will use them to reset the IP block before initialisation. Fixes: d717f7352ec6 ("arm64: dts: rockchip: add sdmmc/sdio/emmc nodes for RK3328 SoCs") Signed-off-by: Alex Bee Signed-off-by: Diederik de Haas Reviewed-by: Dragan Simic --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 95c3f1303544..16b4faa22e4f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -910,6 +910,8 @@ sdmmc: mmc@ff500000 { clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; max-frequency = <150000000>; + resets = <&cru SRST_MMC0>; + reset-names = "reset"; status = "disabled"; }; @@ -922,6 +924,8 @@ sdio: mmc@ff510000 { clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; max-frequency = <150000000>; + resets = <&cru SRST_SDIO>; + reset-names = "reset"; status = "disabled"; }; @@ -934,6 +938,8 @@ emmc: mmc@ff520000 { clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; max-frequency = <150000000>; + resets = <&cru SRST_EMMC>; + reset-names = "reset"; status = "disabled"; };