From patchwork Tue Feb 6 16:02:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Grimler X-Patchwork-Id: 197534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1658845dyb; Tue, 6 Feb 2024 08:30:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4Zx7ppDXwvfoIBkOOD9fGjrT9RYzqqTEIj5AVxYWZlbnB6BkVXMt0lb3nSmZMLj3an+cJ X-Received: by 2002:a17:902:cf4a:b0:1d9:7228:b345 with SMTP id e10-20020a170902cf4a00b001d97228b345mr2404281plg.2.1707237018439; Tue, 06 Feb 2024 08:30:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707237018; cv=pass; d=google.com; s=arc-20160816; b=jWKbjGqKbV6Yj+aVq/W5i6XKA6xpjexouC7V6zymYX8qNFYzS6+akySpp4ENbVbmq5 53BN0F9R4saRKgohJgEPKA49vNgDld1csj5jKQvvNaAcxr/0t9Chh1wJBD2NB75hqH8J wkpAevwAiDHgT7ZS6mNRM86DH0Vx7pkciVzimZm5oL30m0w9b2/7OUOK9nsZB2DYM4gc q/3qLXWpoUhgsY4nW9JDjhq4yaWI2brZYTwidIslkL6pBu7Twmqla6yw8RUG/Jw3t5uU 3Xd0rwqIv2VXQv1SCPo5RcZ0L1qJnzgZwpnTn8pBPG8DgdLX8CC5YP9ER0d3S/RL2pwo Zj/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=bCNSmZUNy207qqwBIb7GldZJs6ZNLGxpkyWc6+ezBmo=; fh=9YwHWJVdArv0kV7Hgf5/Clacc/rTwg6LH9UPXfYBHGA=; b=AMFeXiSXCLxpE9BzDB9KZ7uYU7JVQCZuEcH9DnLNUiVKTVoG5IO3yTohz0DA9oV+5H 7Z5RmKuzdqRi3OHDZ3uSasV4kw+N0k/ymkD3O5VZaHJhEvS5jpgGav9q2jAfXZOX8q1Y cLPcLCqxdQC6AyxkoaTZ82SjNNFuQ0rd0m2+lKZCQC4xL9QUAoA3H5m7jKX1Xej21xa1 VZurmCmgxchqQfTe4YzHZR4cyyiWNt1TfkewkNuAy7DiL1AgYuzH3ZRJ6REiVw6DGyzz RHMBiAFxMrjvxUmyjE17zC38tYCoTmp/aDPCBg805z1tT8Tsmg2QXr/1DYhyNQcZYWJz 77cA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@grimler.se header.s=key1 header.b=ERIDsCH8; arc=pass (i=1 spf=pass spfdomain=grimler.se dkim=pass dkdomain=grimler.se dmarc=pass fromdomain=grimler.se); spf=pass (google.com: domain of linux-kernel+bounces-55296-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55296-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=grimler.se X-Forwarded-Encrypted: i=1; AJvYcCVvU0wNFmcX2fs07mo/xpsQ0aZ6iTnSaEz+TBRpEzIi3iwZjFPe3ufVty7xB15IcMFmeKYmZDFthGQkcDSwd+kQTYa6Pg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j8-20020a170903024800b001d8f827d9bcsi1935855plh.90.2024.02.06.08.30.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 08:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55296-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@grimler.se header.s=key1 header.b=ERIDsCH8; arc=pass (i=1 spf=pass spfdomain=grimler.se dkim=pass dkdomain=grimler.se dmarc=pass fromdomain=grimler.se); spf=pass (google.com: domain of linux-kernel+bounces-55296-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55296-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=grimler.se Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0931AB25694 for ; Tue, 6 Feb 2024 16:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12FE31350EA; Tue, 6 Feb 2024 16:03:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=grimler.se header.i=@grimler.se header.b="ERIDsCH8" Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (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 28CC113475E; Tue, 6 Feb 2024 16:03:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707235397; cv=none; b=GIpYMvaRBcBFzgqfIRr6kO+toG2VhyfhhgDp3rEypTj2Ho7Ci0qcg9SqYa1fa4ztddy9HN/XscHnMXqeBkdnFahTaXDns5645U6mgR4Cl/ZtBBZlJGrf6M1kiJ0Ezl0RnwBRoXh5OqkhJfUG7Th6UcnH2He5sqiFvvIGzenBekQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707235397; c=relaxed/simple; bh=FwS54/PYqrUZiY7LxxdxSfAFIu5FraPSc4TQ7aShN3A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=npna4m11DZwvM0+L0LNpDYctUZs+xFLWWUW7tZupIps4Zt1+SDWjsRQuSW8qBeuiNLbgoMlEqu/upTHZLpiUTGN+1QELGG/xq9BbqxHrQcNYuDSbWWqUWOv3DUi/D7h7Ue+t8eJLARhcErNpQWVGJCSPz+todXo5Xrmw7OHIcrQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=grimler.se; spf=pass smtp.mailfrom=grimler.se; dkim=pass (1024-bit key) header.d=grimler.se header.i=@grimler.se header.b=ERIDsCH8; arc=none smtp.client-ip=91.218.175.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=grimler.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=grimler.se 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=1707235389; 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; bh=bCNSmZUNy207qqwBIb7GldZJs6ZNLGxpkyWc6+ezBmo=; b=ERIDsCH8L/DuCVRwH71hqYtjBJw0TtTTblEe1zg1vXbqeZcE5DJ7iutSBZD2wV6VZpeZeI W8FoC9EnzfHFYLLRJ/R+eKkAIr/Lc/bFcp0EEO+M9YCmsNmuSJd6jT8b9Pnzr3C5ztG4h3 r8NUzLJLP0kCqIGW3OopWiKQROwXxOY= From: Henrik Grimler Date: Tue, 06 Feb 2024 17:02:27 +0100 Subject: [PATCH v2] ARM: dts: samsung: exynos5420-galaxy-tab-common: add wifi node Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240206-galaxy-tab-s-cleanup-v2-1-89025c6c66c5@grimler.se> X-B4-Tracking: v=1; b=H4sIABJYwmUC/3WNQQ6CMBBFr0Jm7ZhOqYCuvIdhUegIkyCQFgmEc HcLe5fvJf/9DQJ74QCPZAPPswQZ+gj6kkDd2r5hFBcZtNIpaVLY2M4uK062woB1x7b/jkjG2Xt R6TRTGcTp6Pkty5l9lZFbCdPg1/NlpsMeQaMo/ROcCRU6w5QXt1wbcs/Gy6djfw0M5b7vP2l8a Cm5AAAA 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, Henrik Grimler X-Developer-Signature: v=1; a=openpgp-sha256; l=2519; i=henrik@grimler.se; h=from:subject:message-id; bh=FwS54/PYqrUZiY7LxxdxSfAFIu5FraPSc4TQ7aShN3A=; b=owEBbQGS/pANAwAIAbAHbkkLcWFrAcsmYgBlwlg0er+4/CLb0qwwpf95RB9X42yX26KC0zeOp b4BmsKT2SyJATMEAAEIAB0WIQQsfymul4kfZBmp4s2wB25JC3FhawUCZcJYNAAKCRCwB25JC3Fh a1ZVB/9gyUlCTrObtkaHhdcNuPOwchwxWirjKeoJtQBDS+IX8ly8ND2fzsCgFqPOuuQlAy7d00E GSE5+55NpE7lJwCXP7LyrxV6cYetIOnlf2fnhG0DchAxzswoPe47VcT84I1kBVCkYTldoFH32bD r3HM84ILghZndJw8dFrzCuo1ZQveliS0jBS2Gnr96CHUKh36ptt7U8Q+jfWTgz+Vf0ixsThWOB+ CCdv+MxpxPSQ0h+ZvMYCYnkOpgVf3AeW72aJ1iMnnidQQaODJVBiTlJ9oXwKDaSzIY/eQkf1ImS pSJVt5dOpv8n+z509v1VtYEu4fiNERcm9MRgRKGvHvn/OsrN X-Developer-Key: i=henrik@grimler.se; a=openpgp; fpr=2C7F29AE97891F6419A9E2CDB0076E490B71616B X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790167763898807966 X-GMAIL-MSGID: 1790167763898807966 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 --- Describe wifi node for exynos5420-chagall-wifi and exynos5420-klimt-wifi, and decrease available memory. --- Changes in v2: - Drop patch 1 and 3 (the latter was applied) - Fixup patch 2 so it applies cleanly after dropping patch 1 - Link to v1: https://lore.kernel.org/r/20240130-galaxy-tab-s-cleanup-v1-0-d4e17857241d@grimler.se --- Changes since v1: - Fix conflicts after dropping patch 1 --- .../dts/samsung/exynos5420-galaxy-tab-common.dtsi | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) --- base-commit: 9a5dbb835fd396c78da34b26ee91db6d529d096d change-id: 20231210-galaxy-tab-s-cleanup-14da98b23606 Best regards, 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 3532f1e8e902..246040967082 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 { @@ -620,6 +628,25 @@ &mmc_0 { vqmmc-supply = <&ldo3_reg>; }; +/* 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 { status = "okay"; @@ -649,6 +676,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 {