From patchwork Sun Sep 1 12:21:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 13786411 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 E0A27CA101E for ; Sun, 1 Sep 2024 12:33:36 +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: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:In-Reply-To:References:List-Owner; bh=S3QqO1DNWoq6azA2+M6iG5kCR4SnEiL6Nm4BqEihvJE=; b=UYr4u9DUepXd5nyyTVcxCfafVV rP+RVOm/SV6Y20bJ3a3OENEgT3vfU1LYu1lr1XXPK/TI6iXL8AVfU1eoCTl6wsZngpoIIj3hnMZuC uE2pYXEvxPUQkd1/6g2cItmUkOgctAZfh01SPuRGLp4tJMI8qzXFR3Z4Pw5zedQitTGpHjDkNw9fV yfmLiJmDa2P79ytNG+GSp/MpRsMWnP23KyzZxVpM49NRQaJhvwWDiDE10RTKGPdwcf2GlPwTh7JfA V9NamGFcvXNjB7dC+fEzi6WZWfFUs7Aa/sIdX/BOcr2vqlHzf2IDKXkp1RIs0xFsvBJ0R2rdYyKbd veMK3FIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skjlo-0000000Bd3g-2iF5; Sun, 01 Sep 2024 12:33:28 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skjaO-0000000BYdE-2eTe for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 12:21:43 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42bac9469e8so27734835e9.3 for ; Sun, 01 Sep 2024 05:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725193298; x=1725798098; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=S3QqO1DNWoq6azA2+M6iG5kCR4SnEiL6Nm4BqEihvJE=; b=DFUD0zHqF8MSdKKpH1bcUU7AFDEMdKPJnEokN9tGzEml8wUgD8g0bDUljlyNM9xq6X OsbGrAD/X6aErGXCBuZHguckx8XV/aPhjvi2vUHQK7kb37VDV9x03axYPXNGXz6S63tL S86d1n5uH84VV4EoD+wTy/0sgOqgmZuCkou27EGVdStv3D301pWpKczSRFetLEzno/WF qIiQXz7Sp0F2RWmIAwe6uP4Q8CWE3xRYH7UY1FU2FMg9Bw0InSFkOdP6Tx3np3+tF3vu jYPClYSyzSyz1JXyi2k7WzobmTvYI9g2jtITzUFSdUgwIN/EIs8VUoCEBwsftRRNZHCE U/hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725193298; x=1725798098; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S3QqO1DNWoq6azA2+M6iG5kCR4SnEiL6Nm4BqEihvJE=; b=Potfj+oqXQlQpBxGqnX14NTVgmhuYhz9jkZz+9fJHKxIcHrLsKW73Spp7kRSXqsPg0 wLPDQSD9+soRBiX5B3fWPt0jWmg0wuJnKFjT/Ydn41khX3gH8/1cZmr9e62+/WEU+BvF nWCIzPklgdK8xaT/zUTzTmHUeuxVvducNlB+ushEDAHkHVu5hCPU6UC2FwIjIS1s8RX3 HjXt6FlilNJgNHr4QVt0myNp2Tl1inMQeIU3n/+8SfvriQNKc7XS6Q7RfkySGdflD+Eb XlyoAs5ug4uuCDLRmcaUOokXmLpWAoCkeQbuuGh239uTs45Q6PjYGkmGahHq7DfsHsny GIpQ== X-Forwarded-Encrypted: i=1; AJvYcCWrFmO5CaibEiCH8ao4nB9ZhGIIT1NqrKq8Oe0imhqcjbQiG726LeYnED8NpEDjvRBvqVxwJQd6sWk41V5jSlqV@lists.infradead.org X-Gm-Message-State: AOJu0YwX6vyuK6OoVbOTZAqNN77JBbPsU5AuUV5Dy+dBcqC1UasCQYHB nCo5Ab9X/fc53naP4mPzOiMn6NGhvXVCyvkl8V2waWGU9OzUCNbT X-Google-Smtp-Source: AGHT+IHrFigHK4m4sNfpXR7aEdiOm4KSC59yNn0eiFWD1Uc+I8s/Uk57fGk+MERhoR/1tLQHxgz+tQ== X-Received: by 2002:a05:600c:1c91:b0:426:5440:854a with SMTP id 5b1f17b1804b1-42c82f4844emr5021875e9.1.1725193297737; Sun, 01 Sep 2024 05:21:37 -0700 (PDT) Received: from morpheus.home.roving-it.com.com (8.c.1.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::1c8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42baf1b0c18sm121363695e9.37.2024.09.01.05.21.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Sep 2024 05:21:37 -0700 (PDT) From: Peter Robinson To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Cc: Peter Robinson Subject: [PATCH 1/3] arm64: dts: allwinner: a64: Add WiFi/BT header on Pine64 Date: Sun, 1 Sep 2024 13:21:29 +0100 Message-ID: <20240901122135.1389702-1-pbrobinson@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_052140_695034_BFA7668A X-CRM114-Status: GOOD ( 12.73 ) 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 This adds all the pin mappings on the WiFi/BT header on the original Pine64. They're disabled by default as the modules don't ship by default. This includes, where they haven't been already, UART1 for BT and mmc1 for WiFi. Signed-off-by: Peter Robinson --- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index 09e71fd60785..f04f0f1badc4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -35,6 +35,11 @@ hdmi_con_in: endpoint { }; }; }; + + wifi_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &codec { @@ -124,6 +129,17 @@ &mmc0 { status = "okay"; }; +/* On Wifi/BT connector */ +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_dldo4>; + vqmmc-supply = <®_eldo1>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; +}; + &ohci0 { status = "okay"; }; @@ -286,6 +302,7 @@ &uart0 { &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; status = "disabled"; };