Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2200798rdb; Sun, 21 Jan 2024 11:47:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWhfKKz2hz71Tyvn4SsR+DB6xxxSbfGU7BySbjkXV2QdSNg48OJ9SX1J4u7HZEVN3GPD1a X-Received: by 2002:a05:620a:45a6:b0:783:9dc9:9a63 with SMTP id bp38-20020a05620a45a600b007839dc99a63mr1187701qkb.31.1705866423382; Sun, 21 Jan 2024 11:47:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705866423; cv=pass; d=google.com; s=arc-20160816; b=DC3GGgILbhZ4kRw1WRa20dviAnvuYvCbEDrGQZyiuqW16xn8YJu+yArctdd16iDl/J RB3G1FSlBGRK5PtWnSf6MeojO759JfQzjSUs2tN4FMm4bogImlKyKrSaH0CEhS8SFZDe Olyl2YGJO1g9uNNBZgi8icGntxvvDPBNj3TQa8MT7vVLYWO3oXT8i9yOvAO40xsaaCpv w38e7s6UY5mo3FfHCyU+gwE87ay/LB7XIbQAtwajrXA3zSwIWpiQ+Hu1V0Ef0h7OcuOr b8FLYpgQO8FElRlPW1eQzguCA0dwe+eVg15rOePGzHxmPdtaG2ODvq84s+8x36tSqG4x fgLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=VIbwgBu5HG4I26IeAw1uHQMEc/j1tlj9MtLw6eJ7dsE=; fh=iQ+c+SllObe2nukKjVVyqcjftKnOdO8TEMu9hNdEpio=; b=KZQXAT/kWartdNDs4sS/fmavBFaVhVv40Ag2a6u4m8om9XOwFcQtJeNdNToId5FXHw UdAtAtpNbX+Rbkp2lvHnfCU9FR59AXiYSB7yOlEL//1doSMZOa23cddxVtf4gxQS+sG/ /rSIiBp5xdBIN6h4LiYgBVKQ9E9kwax5cyuVCpBJwP9TEIQX/e+wu2tz6nr2G8w8WY+J hCPnJ8OdaqSCqvq6PZUGUGqeYXv7c6HR+tBAWqePx3iaxLBK9nE0boathjNL520kwioA ggObZEdpLul/gUa/2Az+C1tMoE5/ssMCv3KNROhK2YSRyfiUGVxyfcN+ZeZNjoVEwevs uT2Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lCAkknDc; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-32166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id op3-20020a05620a534300b007837581deb2si3928128qkn.379.2024.01.21.11.47.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 11:47:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lCAkknDc; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-32166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 183DF1C20492 for ; Sun, 21 Jan 2024 19:47:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2BD9383B9; Sun, 21 Jan 2024 19:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lCAkknDc" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 665943839C; Sun, 21 Jan 2024 19:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705866375; cv=none; b=d2aF7IkVSAGD8PUeEbqp7U+G/+cG8uY30772vywZ+g/F0W1/fI/OMyxq31xn1zbuxOF2g0rrh4GcSHtYjDm3oMouEUYGXPJAVnsg0C4sdhm6m/t79eA2ay0S3bnquoSK1LYb+Xoo92ZDpP5QPBoX74O+2Obf73lgf3RSj/cfS+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705866375; c=relaxed/simple; bh=mY0yEkT4eOoaKnUzvRZoUQaqOeo6owK2//1DcB/Gzy0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=i0Q2yKL8Cxt1yZ9NuDCLAUgRhHrF1ifYbhYifWMBIzbN7GUegQP6lhfe3E5BF9G4WjAfYx8sLh4lnEuTNLIb/3uXjJ1Q/OJEF2KHos989IH5Qlm1gm9e6jmIQHcYVBcsBXKnhkkkoxXHh2gKcWbRpN93N5kyaEHfg3BScTKNiYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lCAkknDc; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a29c4bbb2f4so227006566b.1; Sun, 21 Jan 2024 11:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705866371; x=1706471171; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VIbwgBu5HG4I26IeAw1uHQMEc/j1tlj9MtLw6eJ7dsE=; b=lCAkknDcEzqGPcslQSFyv12hMRkfWOI+pnikHdM2SAfDpPrDw176ID4sY/7CaCvgsw 3gH4mhZZWEkJ17F/fT05QklUfsnH9dokeARnHHBiwHxdt4rsUqiWjye2iRYGSXELO9uv bSoxS9LwSEjQzaxN0ssZs2pYBdCmHb0cqtKC9EH+53xJBhOAiUC595+1ZoClZzzsrI1L S5GdKcuZzmA9xRF2JEW8idtiN4O0ai+r6tt2wZ6lYlbWz8O1DQJvLi945tVLGWIrTvuR BHtNg12bCMN4suMv2l3ItN6S164hmWReneVoPhC8/7k32OmA4KpAwh6C1VNGBmVqvjN5 6gmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705866371; x=1706471171; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VIbwgBu5HG4I26IeAw1uHQMEc/j1tlj9MtLw6eJ7dsE=; b=PDqXMOQjIRDj9ROwxzkmcGIg1B/lABBv1q2WQbd63ABsHHaRzNHHR8Krmah6Dr/nd/ GGoovzq6arag8fV1lx1aJ6fxrM/8s6uTNSIvhFEzBMmZ7/6cirtN9HGHoESAaoixMgew M5wEW1U4c0KGgU70AdIUMfAlRUdTv7RQ6yBGhvyjMCJYnPQW2P/0dA9I7x/dHVpV+BAl eZir55UNGMlDq8HSprOoKF7j/D8u2GiHAvBuqPgoAShqK7JfcuB9HBAnalIhxyefSJSY TELPEHERgrfIcTBNCksxQMs2TK8kQmJs5NZsM8fjr343pcJbutlhzoE1QokaI21xVZcO 6Qog== X-Gm-Message-State: AOJu0YzI5+t9B1yYwSf5wVvWSuxCCyWLQ2nXF5ZcQww+skNtee1yWqBT ccoLIMKXQEGKqo/Aa9ro1TZiK79WAlgu7YQ6RU2TelBqfZPi8g7JHUVdH2PXGrI= X-Received: by 2002:a17:906:b88c:b0:a2c:cdd7:bdee with SMTP id hb12-20020a170906b88c00b00a2ccdd7bdeemr1569221ejb.132.1705866371577; Sun, 21 Jan 2024 11:46:11 -0800 (PST) Received: from localhost.localdomain (byv51.neoplus.adsl.tpnet.pl. [83.30.41.51]) by smtp.gmail.com with ESMTPSA id k6-20020a170906128600b00a2b0b0fc80esm12547134ejb.193.2024.01.21.11.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 11:46:11 -0800 (PST) From: Adam Skladowski To: Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krishna Manikandan , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] arm64: dts: qcom: msm8976: Add WCNSS node Date: Sun, 21 Jan 2024 20:41:06 +0100 Message-Id: <20240121194221.13513-9-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240121194221.13513-1-a39.skl@gmail.com> References: <20240121194221.13513-1-a39.skl@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add node describing wireless connectivity subsystem. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 96 +++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index 5a7be93a0115..73ddfaecd3ad 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -861,6 +861,36 @@ data-pins { bias-pull-up; }; }; + + wcss_wlan_default: wcss-wlan-default-state { + wcss_wlan2-pins { + pins = "gpio40"; + function = "wcss_wlan2"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan1-pins { + pins = "gpio41"; + function = "wcss_wlan1"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan0-pins { + pins = "gpio42"; + function = "wcss_wlan0"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan-pins { + pins = "gpio43", "gpio44"; + function = "wcss_wlan"; + drive-strength = <6>; + bias-pull-up; + }; + }; }; gcc: clock-controller@1800000 { @@ -1540,6 +1570,72 @@ blsp2_i2c4: i2c@7af8000 { status = "disabled"; }; + wcnss: remoteproc@a204000 { + compatible = "qcom,pronto-v3-pil", "qcom,pronto"; + reg = <0xa204000 0x2000>, <0xa202000 0x1000>, <0xa21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu"; + + memory-region = <&wcnss_fw_mem>; + + interrupts-extended = <&intc GIC_SPI 149 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + power-domains = <&rpmpd MSM8976_VDDCX>, + <&rpmpd MSM8976_VDDMX>; + power-domain-names = "cx", "mx"; + + qcom,smem-states = <&wcnss_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + pinctrl-names = "default"; + pinctrl-0 = <&wcss_wlan_default>; + + status = "disabled"; + + wcnss_iris: iris { + /* Separate chip, compatible is board-specific */ + clocks = <&rpmcc RPM_SMD_RF_CLK2>; + clock-names = "xo"; + }; + + smd-edge { + interrupts = ; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss_ctrl: wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&wcnss>; + + wcnss_bt: bluetooth { + compatible = "qcom,wcnss-bt"; + }; + + wcnss_wifi: wifi { + compatible = "qcom,wcnss-wlan"; + + interrupts = , + ; + interrupt-names = "tx", "rx"; + + qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-state-names = "tx-enable", + "tx-rings-empty"; + }; + }; + }; + }; + intc: interrupt-controller@b000000 { compatible = "qcom,msm-qgic2"; reg = <0x0b000000 0x1000>, <0x0b002000 0x1000>; -- 2.43.0