From patchwork Tue Jan 30 20:40:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Grimler X-Patchwork-Id: 13538027 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 E2F23C47DDF for ; Tue, 30 Jan 2024 20:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EDh9ksMFrC5iIccrwYJzaHsT1PGJWQxMcNe7xsgWiDk=; b=Y+BZucb/JmhxsM YgACOOowwffyVLUdG4TnQ8cR/pmrleRw5c2OXgoSgtGsJPOVdKtfjawSiU4q08L0VYc8HsAL6DyM+ DVX3b3Ad+pecs+pszrjxXuclCwarL+SiDw2wUnbIkAWTarUwX/3k9PTfHj2FpMc5FNwI389Ezd1ir 8CIPef5AYIZg2zkHQZrvn2pGan+gwkgOetB4pYdUX4nkr/Eu9BulALPyKy70oxCXaTtPqRIST15np DRY8F0OOhGwHrW0XyNW5QjMEXQ65CQ19Md3HH/5BsMoPMW5P9/5H2XEf07opERRicMLtLs2M/n928 sc7aMuz0LNiyrWnmcNvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUuuz-00000000VFJ-1gbN; Tue, 30 Jan 2024 20:41:17 +0000 Received: from out-181.mta0.migadu.com ([91.218.175.181]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUuuw-00000000VDj-1ou0 for linux-arm-kernel@lists.infradead.org; Tue, 30 Jan 2024 20:41:16 +0000 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=grimler.se; s=key1; t=1706647268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DG7tf3ZanPe0jMuzI6Bk8fkwCRX7z/OicBYBzmzPw1s=; b=Fk+cn2h5CmKdF/qu38riedRwlSYujz/5llH+xmJxnsEDcgmNS47b9PEqdDCZhtcpj6004P GE0Akg7c018Kgt4yQZv//EdMQadw4R/QhV0KbO7EkVNT8k+popqri+266nWCbu9IgEn/SI 9a5LvrhejqreyjpBv6sjSWMekoWbxLQ= From: Henrik Grimler Date: Tue, 30 Jan 2024 21:40:39 +0100 Subject: [PATCH 1/3] ARM: dts: samsung: exynos5420-galaxy-tab-common: sort node properties MIME-Version: 1.0 Message-Id: <20240130-galaxy-tab-s-cleanup-v1-1-d4e17857241d@grimler.se> References: <20240130-galaxy-tab-s-cleanup-v1-0-d4e17857241d@grimler.se> In-Reply-To: <20240130-galaxy-tab-s-cleanup-v1-0-d4e17857241d@grimler.se> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Marek Szyprowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht X-Developer-Signature: v=1; a=openpgp-sha256; l=2728; i=henrik@grimler.se; h=from:subject:message-id; bh=DekZO0aq9lhra3tRrH0719xH/gp0/UNZvHm7ULmUiGI=; b=owEBbQGS/pANAwAKAbAHbkkLcWFrAcsmYgBluV7adNmpL0JxNeL0p04b/DnyOK6UU6hBN48Sd osGQ9v6Oc2JATMEAAEKAB0WIQQsfymul4kfZBmp4s2wB25JC3FhawUCZble2gAKCRCwB25JC3Fh a6SbB/9GyZCxy38ia8XCTbbUIC7Zhq+QX+yYPzOynkJjx4ujULXY4n7Qud22b4uGUzKUD6N7Htc 2oKtBJzqSPk7Gt7B7jYGAfZBpjqb5d9cjIWPkLPmfwzQNgF7aJCILH7au65kBlPrc2d+AvlnUex q4qh5xGwRgjb+mN6o7O/FSkVtVQEZhr6BZ1P7mBcSrdVVe/3bb3tiw8xmwfNu1IFi9RDFhYFfTn gg3Rg3NQU+Dz4OYU10J4i0Z1ZQxNmzMdr1B42G4cP8rYVUMdEB3e0zkxLnZNbdWgiM+FiqgDRWk Tw9bS3doVlsi3dOHWPhsfBqNxHDyaWCBf4G8PaAxbNZn+t8A X-Developer-Key: i=henrik@grimler.se; a=openpgp; fpr=2C7F29AE97891F6419A9E2CDB0076E490B71616B X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240130_124115_121760_873DECBA X-CRM114-Status: GOOD ( 10.63 ) 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 Sort all node properties according to dts coding style guidelines, to make dtsi easier to follow. Signed-off-by: Henrik Grimler --- .../dts/samsung/exynos5420-galaxy-tab-common.dtsi | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi index f525b2f5e4e0..0c1aeafc025b 100644 --- a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi +++ b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi @@ -103,8 +103,8 @@ &cpu4 { }; &gpu { - status = "okay"; mali-supply = <&buck4_reg>; + status = "okay"; }; &hsi2c_7 { @@ -113,11 +113,10 @@ &hsi2c_7 { pmic@66 { compatible = "samsung,s2mps11-pmic"; reg = <0x66>; - interrupt-parent = <&gpx3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; - pinctrl-names = "default"; pinctrl-0 = <&s2mps11_irq>; + pinctrl-names = "default"; s2mps11_osc: clocks { compatible = "samsung,s2mps11-clk"; @@ -605,7 +604,6 @@ &mixer { /* Internal storage */ &mmc_0 { - status = "okay"; bus-width = <8>; cap-mmc-highspeed; card-detect-delay = <200>; @@ -614,27 +612,28 @@ &mmc_0 { non-removable; pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>; pinctrl-names = "default"; + vqmmc-supply = <&ldo3_reg>; samsung,dw-mshc-ciu-div = <3>; samsung,dw-mshc-ddr-timing = <0 2>; samsung,dw-mshc-sdr-timing = <0 4>; - vqmmc-supply = <&ldo3_reg>; + status = "okay"; }; /* External sdcard */ &mmc_2 { - status = "okay"; bus-width = <4>; cap-sd-highspeed; card-detect-delay = <200>; cd-gpios = <&gpx2 4 GPIO_ACTIVE_LOW>; pinctrl-0 = <&sd2_clk &sd2_cmd &mmc2_cd &sd2_bus1 &sd2_bus4>; pinctrl-names = "default"; - samsung,dw-mshc-ciu-div = <3>; - samsung,dw-mshc-ddr-timing = <0 2>; - samsung,dw-mshc-sdr-timing = <0 4>; sd-uhs-sdr50; vmmc-supply = <&ldo19_reg>; vqmmc-supply = <&ldo13_reg>; + samsung,dw-mshc-ciu-div = <3>; + samsung,dw-mshc-ddr-timing = <0 2>; + samsung,dw-mshc-sdr-timing = <0 4>; + status = "okay"; }; &pinctrl_0 { @@ -652,9 +651,9 @@ s2mps11_irq: s2mps11-irq-pins { }; &rtc { - status = "okay"; clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>; clock-names = "rtc", "rtc_src"; + status = "okay"; }; &tmu_cpu0 { @@ -686,11 +685,11 @@ &usbdrd_dwc3_1 { }; &usbdrd3_0 { - vdd33-supply = <&ldo9_reg>; vdd10-supply = <&ldo11_reg>; + vdd33-supply = <&ldo9_reg>; }; &usbdrd3_1 { - vdd33-supply = <&ldo9_reg>; vdd10-supply = <&ldo11_reg>; + vdd33-supply = <&ldo9_reg>; }; From patchwork Tue Jan 30 20:40:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Grimler X-Patchwork-Id: 13538030 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 5B5FCC46CD2 for ; Tue, 30 Jan 2024 20:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DgGC3rF4Rnnq5y9zdbU099h1/hReuwK4S8DVonX9y8c=; b=eVkzIXoLl5jbe0 AZTpgUO2nYt6uDWeS/CbjboKEesxli66rDudOgqhTnDTgAy2D34u6KdB91Mrtc+kJ1IPv8Pg14Hz3 OuFzsmH3DAKEHYuMcNSlFaqD+oPequLtUfy+vz3lGGLUpwXpruR+KR4B3dqXomZEW3rb5QNquia9S a/otNh9+DYmCWfnw25LdhBullbyYFBrMVXiPQ0di2q/6gKtj4rFCEzCT49N0kkGhIXbBIha0YeTVB brkF4UnwLcdrBZOhmz2Wk2gnttj7ULOqMveeKf8Qal5LYtc1xsEuIipz3hSCcJgrvySWiFNeIPoUp LVRWnxFwDml42xrIh4QQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUuv9-00000000VJ7-43Bc; Tue, 30 Jan 2024 20:41:27 +0000 Received: from out-182.mta0.migadu.com ([2001:41d0:1004:224b::b6]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUuuw-00000000VDl-2fmi for linux-arm-kernel@lists.infradead.org; Tue, 30 Jan 2024 20:41:17 +0000 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=grimler.se; s=key1; t=1706647269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vTXS7Usw65Bg+jTRdlumhmylOFlcOQdVX0MiGUHQrRc=; b=eUEbIOXwpx3bESd6400bj0CueBq4EkqNUIn4+CAQHxnzj+pCWdJVzdiO+6JBEVu67DP7vj xi9ruFYxfbxFzNnvSzxwH9m+HzCQJupNGCP9GWgFh7kNnpm7A4etJFtwagDkeK4GC3zSKT l2Vhl4QCY0Ar3Evemit3F6m40LH47d4= From: Henrik Grimler Date: Tue, 30 Jan 2024 21:40:40 +0100 Subject: [PATCH 2/3] ARM: dts: samsung: exynos5420-galaxy-tab-common: add wifi node MIME-Version: 1.0 Message-Id: <20240130-galaxy-tab-s-cleanup-v1-2-d4e17857241d@grimler.se> References: <20240130-galaxy-tab-s-cleanup-v1-0-d4e17857241d@grimler.se> In-Reply-To: <20240130-galaxy-tab-s-cleanup-v1-0-d4e17857241d@grimler.se> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Marek Szyprowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht X-Developer-Signature: v=1; a=openpgp-sha256; l=1940; i=henrik@grimler.se; h=from:subject:message-id; bh=mfgmfT6Y+yAecXwInwSg+9gDbzv0JiMuG/TNlfkMWgk=; b=owEBbQGS/pANAwAKAbAHbkkLcWFrAcsmYgBluV7dB/oNjb2olhfimF3Ut6aoVaol0f9xBck7k +6PMKr9OpOJATMEAAEKAB0WIQQsfymul4kfZBmp4s2wB25JC3FhawUCZble3QAKCRCwB25JC3Fh a2vfCACruJQ/v12UuxMu3lSskVEmOzjYZP76TamvPfeO/Wrs8cS0DxTkx2RNSlN+IAs0XrsBlD+ MQ1/pzf8sK5UDUG+Uw47o9h4e5KfV8hkGXw7ZeYocEC2aOzKnHDqvFWlGyGPvLw/2K2MFk0CCZG XgqxhYk44tl/hW3Xq8vANBXEmpvZdieC7aLBkMeW/pAOrcNKfuqVwAur/HmNA/16G7jrNVRuB7y +4h8VIvtJTPnwGxOy4aa2TEUMpEyV4MMxim9O7ds3M539q5AKcSbPk/3lmSL1UyQN4nXDeo0gY1 U/EpOD65xG7vtSe/MlFGZ79Y78Be9Nb5swo9hlv86CfTdAbm X-Developer-Key: i=henrik@grimler.se; a=openpgp; fpr=2C7F29AE97891F6419A9E2CDB0076E490B71616B X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240130_124115_154788_D82F30D6 X-CRM114-Status: UNSURE ( 9.77 ) 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 By using brcm/brcmfmac4354-sdio.bin from linux-firmware together with nvram.txt from vendor firmware wifi works well on the chagall-wifi and klimt-lte. Signed-off-by: Henrik Grimler --- .../dts/samsung/exynos5420-galaxy-tab-common.dtsi | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi index 0c1aeafc025b..d569fac29b18 100644 --- a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi +++ b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi @@ -30,6 +30,7 @@ / { aliases { mmc0 = &mmc_0; + mmc1 = &mmc_1; mmc2 = &mmc_2; }; @@ -87,6 +88,13 @@ key-volume-down { linux,code = ; }; }; + + mmc1_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpy7 7 GPIO_ACTIVE_LOW>; + clocks = <&s2mps11_osc S2MPS11_CLK_BT>; + clock-names = "ext_clock"; + }; }; &cci { @@ -619,6 +627,25 @@ &mmc_0 { status = "okay"; }; +/* WiFi */ +&mmc_1 { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + card-detect-delay = <200>; + keep-power-in-suspend; + mmc-pwrseq = <&mmc1_pwrseq>; + non-removable; + pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_int>, <&sd1_bus1>, + <&sd1_bus4>, <&wifi_en>; + pinctrl-names = "default"; + vqmmc-supply = <&ldo2_reg>; + samsung,dw-mshc-ciu-div = <1>; + samsung,dw-mshc-ddr-timing = <0 2>; + samsung,dw-mshc-sdr-timing = <0 1>; + status = "okay"; +}; + /* External sdcard */ &mmc_2 { bus-width = <4>; @@ -648,6 +675,11 @@ s2mps11_irq: s2mps11-irq-pins { samsung,pin-pud = ; samsung,pin-drv = ; }; + + wifi_en: wifi-en-pins { + samsung,pins = "gpy7-7"; + samsung,pin-pud = ; + }; }; &rtc { From patchwork Tue Jan 30 20:40:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Grimler X-Patchwork-Id: 13538029 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 26D80C47DDF for ; Tue, 30 Jan 2024 20:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DIblk/f0pPpdUTNR8+8fdGJxkzQf174qq5ik29bIFs0=; b=zH3P1NvVKHjh9E oZuXlxrD3zky1snWu6hpQAN/szKLSmmB7+N1Wi6n2OZJ0HWYM06uEXXQJkCBwErrzVf/216qH/xzd qTKOHQUwkzEGHBoXOrQECYTU/QXO3MfCMsfGc5rNrkPN/933I1bCSB2i5KhZT4dDrzzu1aQsHjsCX e2Dc+p93k3PmYiXAKwJWRNVES9nMnknKZhotORHwGBlB8DYfFSU8DEH3R2Hutk4cqrPZYFAeYmfwo AfF8Ze4uEN0gNIrsRL3dC2ryI9vdah9c5ZZtjU7m8L5TmCJeWCEhQYQRyrDPPjGnGgXO4qVK3u/c+ pHoDrQAy/J6C3l1yHCfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUuv8-00000000VIC-1pli; Tue, 30 Jan 2024 20:41:26 +0000 Received: from out-183.mta0.migadu.com ([91.218.175.183]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUuuw-00000000VDp-1opf for linux-arm-kernel@lists.infradead.org; Tue, 30 Jan 2024 20:41:16 +0000 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=grimler.se; s=key1; t=1706647270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y9OzBq6gWd0BJFvSgtjPyJwiO3ruOjewsWTRko4LLnY=; b=Aq0UQlvzNFD11kaNf3XHOfH/iW849kODjaOMj1v2yq3LLab8Mq3U+lkWK1AWAThc5HTzkc 9G4kGMgpB6IquqkxcO5bYfwFFxxhE0M2Wnk2EG3NtoWVDIwSBsBZWgvuyl7CVgRN2/QGcM hLti9PLufMHq6Tf56sDcpP9MHv/4T94= From: Henrik Grimler Date: Tue, 30 Jan 2024 21:40:41 +0100 Subject: [PATCH 3/3] ARM: dts: samsung: exynos5420-galaxy-tab-common: decrease available memory MIME-Version: 1.0 Message-Id: <20240130-galaxy-tab-s-cleanup-v1-3-d4e17857241d@grimler.se> References: <20240130-galaxy-tab-s-cleanup-v1-0-d4e17857241d@grimler.se> In-Reply-To: <20240130-galaxy-tab-s-cleanup-v1-0-d4e17857241d@grimler.se> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Marek Szyprowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht X-Developer-Signature: v=1; a=openpgp-sha256; l=1202; i=henrik@grimler.se; h=from:subject:message-id; bh=+RHfIOYCokHUptccyiBZRvuJnCzYabw0CvXOcn+k8r8=; b=owEBbQGS/pANAwAKAbAHbkkLcWFrAcsmYgBluV7fF6B01N24dpZiM46HwWy7QO86eVRtTi+9c Y6KjRqW2yiJATMEAAEKAB0WIQQsfymul4kfZBmp4s2wB25JC3FhawUCZble3wAKCRCwB25JC3Fh a8mwCADBSJIa2AFfO1WD6mWg8Brz+Yftzi3+6+Nwh7oTvciF7eaqquXG5yqubm18N8J9CRtxBuD UtYFZKUfDnE68P1FWNiGywdvNJ6bV6aVPaDeM4wsD4eG7zF4Wl5QCxzjoM1WYs9hkOe+2HTbEpN aTto0cpgaLNi1yrFuJbVCdwFbVFdMbmm5dvP61/eGCYtnhKCDb5FmzE+SnoszjaIgxOStr2a0kp Tu5kSLVs/Bb8J80waAvzNzZc0JK/Zeh9Q15dwrlk2phBIBz+6Sly1t+R8np+h+5FY2Mdcrv+Nyq 6nM58l94DK86gXpjXdA1lkK++x4dq/1WskIxNu1cQMYcvdTh X-Developer-Key: i=henrik@grimler.se; a=openpgp; fpr=2C7F29AE97891F6419A9E2CDB0076E490B71616B X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240130_124115_133262_CD1E4689 X-CRM114-Status: GOOD ( 12.70 ) 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 The last 6 MiB are used by trustzone firmware, and cannot be used by Linux. Currently we are saved by that the proprietary bootloader (sboot) passes available memory to kernel through ATAG_MEM. Change memory range in any case so that we do not have to rely on ATAG_MEM. Signed-off-by: Henrik Grimler --- Similar fix was applied for the exynos5422 odroids in commit 6591a02e17e6 ("ARM: dts: reduce total RAM by 22 MiB for exynos5422-odroidxu3"): https://lore.kernel.org/all/1421842972-25807-1-git-send-email-m.szyprowski@samsung.com/ --- arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi index d569fac29b18..ac929e282c84 100644 --- a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi +++ b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi @@ -40,7 +40,7 @@ chosen { memory@20000000 { device_type = "memory"; - reg = <0x20000000 0xc0000000>; + reg = <0x20000000 0xbfa00000>; }; firmware@2073000 {