Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4592699iob; Sun, 8 May 2022 18:32:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2gHlGmvMH+EryLKjnJjPhf1A9EFi2L6ICgXqPkmpWEWbCcvGedat/r6KtCSZSa1uOTjCn X-Received: by 2002:a17:902:db05:b0:15e:89c9:e805 with SMTP id m5-20020a170902db0500b0015e89c9e805mr13767791plx.107.1652059931720; Sun, 08 May 2022 18:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652059931; cv=none; d=google.com; s=arc-20160816; b=k/JrHYyE/FA94WYpm8OlqdtAgqjELW9f0SkbW2J7PrEXhdOULdrbpFJnvUvI5q+eVM GkU5zuZhdocKm6j2MdBomucLSPRPRIh9csQxBahcrMaxpeqmmdtvhJNAQfU1+Z5WIQHZ cSeyeApx86bLjiqrviQjOaCTYTrSNi4m5RkKqTqA//fhu024BjTf/A/GrRDW6oFDNTcH /vglsRtgnwPdsAps99VuPj+Fe13CmBraEj59q6xAjqqYgVyQHUALD7uL28WJCKS2rHug OywJiVLOwR8ZT2nWGU/nwu+sPNtDbo5br6FbJmjwbDXH45fMzVhiF2ozZ6vi++PMidBG cGcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ByMIm1nLYKNcNdgYWN5+uwQOhA72yOxJlRqdDGWVAag=; b=pdJJdytlrT00hr0jZ3G0wXcKQ8xn8bnOlhzCc+eb0TJZDsLiSLjWaBgmd19An2pZbh 11fhrbrN63W64rU6DBQIwpOh0l/5T/3Kp+Hefl5w8D8tRWzHU3dJUt4tEVj3wiKffKt3 1qcKVdlzm0aBT6QaX6UmihJrvw189NVyLe57HXkPf18xUgM4xpJi7n1e98AlZA2ReiTs FcQfxERZngKmnZcUT0QOBOfTABz058mXI1MW2qzOBI5hz1aqYHI2bnHxmCcVPxS9y9O9 ikBNiIR71LaPK01ZXuG7mixi7RXbpUaSCWInDuSIIQue/Js0DskouRfJRSJj0hWPo+rT RAKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eOVPVi70; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d18-20020a056a0024d200b004fa843103dbsi13863251pfv.193.2022.05.08.18.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 18:32:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eOVPVi70; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 320111D0E8; Sun, 8 May 2022 18:31:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385520AbiEETvF (ORCPT + 99 others); Thu, 5 May 2022 15:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238792AbiEETuk (ORCPT ); Thu, 5 May 2022 15:50:40 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B6D15E75B; Thu, 5 May 2022 12:46:56 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 51B7B1F45CD4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651780014; bh=xzUy2wIyZXyHws5Sfef8bUOIhBVmWMeAQk76VcEPaRI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eOVPVi70rUmGojFG3yEu34VRcLCOrYmReCGhcDWvQJ2s4HSOPhs4Gj+1janAdE+w+ UyXPLWUsJhooEqMvJ1dzcg2vuUnJeIvGe5zXkG8yxz3Gi7jS6Waa7FWzlkVZpF3BPd 8SJ12uM12ezZyu7YLHdTKy7QPFNBl/stxL34IXZiJG6CNpcvugBCGEFShYe0iCCK0W AMISaWJ0IBoxLmhmE7mZtHtgVBUlB2aysdQXLpi7sHmiw6oFXet2pJr2SmPML89+8O +6DOPUKVQY/dO2aCqIug8a5AGYxnq44atGQlD8CCO/2voZJXbfUuqXbi/o2Gfoz64C 6xeQciBOFYGFw== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 14/16] arm64: dts: mediatek: asurada: Enable PCIe and add WiFi Date: Thu, 5 May 2022 15:45:48 -0400 Message-Id: <20220505194550.3094656-15-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220505194550.3094656-1-nfraprado@collabora.com> References: <20220505194550.3094656-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable MT8192's PCIe controller and add support for the MT7921e WiFi card that is present on that bus for the Asurada platform. Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- Changes in v2: - Added this patch .../boot/dts/mediatek/mt8192-asurada.dtsi | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index 4f9a9ec046b0..87a9a6b1eabc 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -66,6 +66,19 @@ pp3300_u: pp3300-u { vin-supply = <&pp3300_g>; }; + pp3300_wlan: pp3300-wlan { + compatible = "regulator-fixed"; + regulator-name = "pp3300_wlan"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + pinctrl-names = "default"; + pinctrl-0 = <&pp3300_wlan_pins>; + enable-active-high; + gpio = <&pio 143 GPIO_ACTIVE_HIGH>; + }; + /* system wide switching 5.0V power rail */ pp5000_a: pp5000-a { compatible = "regulator-fixed"; @@ -84,6 +97,17 @@ ppvar_sys: ppvar-sys { regulator-always-on; regulator-boot-on; }; + + reserved_memory: reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + wifi_restricted_dma_region: wifi@c0000000 { + compatible = "restricted-dma-pool"; + reg = <0 0xc0000000 0 0x4000000>; + }; + }; }; &i2c0 { @@ -144,6 +168,28 @@ &i2c7 { pinctrl-0 = <&i2c7_pins>; }; +&pcie { + pinctrl-names = "default"; + pinctrl-0 = <&pcie_pins>; + + pcie0: pcie@0,0 { + device_type = "pci"; + reg = <0x0000 0 0 0 0>; + num-lanes = <1>; + bus-range = <0x1 0x1>; + + #address-cells = <3>; + #size-cells = <2>; + ranges; + + wifi: wifi@0,0 { + reg = <0x10000 0 0 0 0x100000>, + <0x10000 0 0x100000 0 0x100000>; + memory-region = <&wifi_restricted_dma_region>; + }; + }; +}; + &pio { /* 220 lines */ gpio-line-names = "I2S_DP_LRCK", @@ -434,6 +480,34 @@ pins-bus { }; }; + pcie_pins: pcie-default-pins { + pins-pcie-wake { + pinmux = ; + bias-pull-up; + }; + + pins-pcie-pereset { + pinmux = ; + }; + + pins-pcie-clkreq { + pinmux = ; + bias-pull-up; + }; + + pins-wifi-kill { + pinmux = ; /* WIFI_KILL_L */ + output-high; + }; + }; + + pp3300_wlan_pins: pp3300-wlan-pins { + pins-pcie-en-pp3300-wlan { + pinmux = ; + output-high; + }; + }; + spi1_pins: spi1-default-pins { pins-cs-mosi-clk { pinmux = , -- 2.36.0