From patchwork Wed Dec 1 18:21:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 12694377 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 8A701C433EF for ; Wed, 1 Dec 2021 18:24:51 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=15sL81XZ6XhEPYM7ybNVTZ0m3yDIV2mdyKxay/9hIyo=; b=3scodgj8TlIo0x Uhxf8rncXRSivmqmdFUVf4ExOnOYmZv+cJGU81P7mSBc21WW+KpQ6bP/5X42mQTSxbuSetm/mD8Ff zuH8rtQ8Rprt88B3Xu1IXiAmAYY7K8r6VXpGDnoqc5eaWpmEpYMPexdTkvR9w7PkNu5ThFAlwKz2y KMiayyatUIh4W0SCUJcjsmjUsx/t811tLRY2F/v7DwxCQHogAbhlpxQ05ZeKLsEC4cCWJ3QNjUw9v 8JDLLagM37BFkcnOBfza8vi0mviayYnKyM3aDeMLxpUwle6AgB9VRKTT92WIw9pfu/1rc70764Fz/ E/LD95NnUH03siKj96qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msUGI-009kWs-3c; Wed, 01 Dec 2021 18:23:22 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msUEo-009juD-8Y for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 18:21:51 +0000 Received: by mail-wm1-x331.google.com with SMTP id 137so21162088wma.1 for ; Wed, 01 Dec 2021 10:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gfaLjrdMaBtEBA6gW3vzSiLmG5RGlxbWPlwFCA3b58U=; b=hjXRECTmt3QwxBwLLnhgBiEI0L5akGhC0tr7krj/gFDT22AYR2ULra1IoJgQMtMz7X YI331nOul8a+jDq0lt3YzzjizQQJ0IiB1XBfoewkHiqFbgtM8WIHhl1PNo7OnWhqvGrr yYbLWhx9KF8uESHrks2xTAQuq/r0oV+5OzcKGyuNpWorxB4QEqQaXIOmyPg7zB7euhBC 6ZUSa0VyjBunzlnTxnnjetsAqOU1mF8KJAG4ZMPssfbO8xlKCBNPSXYUc2KaL4tQiCtM kt2TdIEE7Yu9oRbNWncLFwbksICPqb8R/K1AETHggO/Kgm+SDDy0vhfSZff2T5pBpBWG Ne1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gfaLjrdMaBtEBA6gW3vzSiLmG5RGlxbWPlwFCA3b58U=; b=o7Pmkp+lJYgelRrts/JbSLs0aNw4KxDCkEEM1VcTjQ5jRjOUVKoPXzvXEC/7NKqjCP QEWhZnvJBEELRqR3P3EHDtsXM6s5uHeQk8dfMcY39HU9Nz0mPdFFk+ikF5QBlZ4ai2JF 1c8/E9Puc4gEPfGre7hAm0srFkhdg2ZQQzDwbJ7HR4XaopyhhVA4xMJ67KbwMvcOqV/I 9J8kkbLQcTeqWSFl8sHSaFFeA2aA+4g1lhELs+sznWcRtwLkqPdEsQlLXRyjfrm482vA u94YjgBmwdURcrKObfFWUqkEXnHosypEM+8j2c3pmiLDZNkQf0pP0aKq0KCqEVup+WjB p3YQ== X-Gm-Message-State: AOAM530LJn3a+nCJt8gYVO8Q6quIepudJFkvGq7uWd+2wmxAyZoGWmj2 qhkiYrw8QwdoMbYkIe+v85A= X-Google-Smtp-Source: ABdhPJwHMXO+np1LQE1gqerHfoqcLb/cmi07fe92xjTe0mj3fR0IGiphnTzvbOkCTqi1e0kQCZqATw== X-Received: by 2002:a7b:c097:: with SMTP id r23mr8796600wmh.193.1638382908605; Wed, 01 Dec 2021 10:21:48 -0800 (PST) Received: from kista.localdomain (cpe-86-58-29-253.static.triera.net. [86.58.29.253]) by smtp.gmail.com with ESMTPSA id f7sm604705wri.74.2021.12.01.10.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 10:21:48 -0800 (PST) From: Jernej Skrabec To: mripard@kernel.org, wens@csie.org Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH 4/5] arm64: dts: allwinner: h6: tanix: Add MMC1 node Date: Wed, 1 Dec 2021 19:21:17 +0100 Message-Id: <20211201182118.1213806-5-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211201182118.1213806-1-jernej.skrabec@gmail.com> References: <20211201182118.1213806-1-jernej.skrabec@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_102150_332009_3FAF9DD1 X-CRM114-Status: GOOD ( 11.68 ) 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 Both, Tanix TX6 and Tanix TX6 mini, have SDIO wifi module, albeit different. However, driver can be autoprobed via SDIO ID. Add MMC1 node, so kernel can discover wifi module and load driver for it. Signed-off-by: Jernej Skrabec --- .../boot/dts/allwinner/sun50i-h6-tanix.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi index 166b6a7a586c..edb71e4a0304 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi @@ -75,6 +75,13 @@ spdif_out: spdif-out { #sound-dai-cells = <0>; compatible = "linux,spdif-dit"; }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rtc 1>; + clock-names = "ext_clock"; + reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */ + }; }; &cpu0 { @@ -121,6 +128,15 @@ &mmc0 { status = "okay"; }; +&mmc1 { + vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc1v8>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; +}; + &mmc2 { vmmc-supply = <®_vcc3v3>; vqmmc-supply = <®_vcc1v8>;