From patchwork Fri Apr 7 16:53:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13205066 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48E98C77B6F for ; Fri, 7 Apr 2023 16:54:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229942AbjDGQy1 (ORCPT ); Fri, 7 Apr 2023 12:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjDGQy0 (ORCPT ); Fri, 7 Apr 2023 12:54:26 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8326A47; Fri, 7 Apr 2023 09:54:24 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id br6so55130031lfb.11; Fri, 07 Apr 2023 09:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680886463; x=1683478463; 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=jvOzKISy1I9WEd0b/cwK5YdYQf47Pm9gMWrSeGmbKNk=; b=fCR8DXz31svvgeT9RtWbEdGpNub9rRc1Rqy/GdwDzyaRehDPvVBbPtzySvWAxKtat8 h95DJvdGqCqVk1k2uSovXsw6xc6GK39B6rts+l8TIXStq+9xe72Exl8qgJ3wEg6M08Wc xX/3WMFKFhh8PfnkNTR0y5pngqt8MSH0iQaanaRklsaDuN7wL6gyC3UhTA/rB5uzJMxM CDlxXQkAbEMGiBEXeOm76SPo4arRxlMIE/LzteXsAnJtpeKOWbEZ4EB1FPPUJ5Fy3ndn juzRXIdXsn5HJLhepxbmXDROtopCISwi3d3g6nX9JZa6jcaG/dxxPBrFpJ5D2Ku3taGb zzUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680886463; x=1683478463; 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=jvOzKISy1I9WEd0b/cwK5YdYQf47Pm9gMWrSeGmbKNk=; b=ln9r8BXGoWoB6LLL8q+LIxNiVg3kUPAk9eJWH8R715sScxAQPxOK2relQ8/UavdisF 8DVbrARjB7wYBdpyKybtfu/tJBaPKvwrXNBaHwEVRFhJqvfqPw5kl1B0OpXpOtR+SqjP i/s6uYGlWBtMlXPcZNMHBu3qq/5sKNbfFkaRKIc0RCb5gLOX/BlKhDncCGPXA7OtyKxW bOy/Ts0jEfteAwNjbB80wiMN5ftnlMZj1fqKSyINVr7b/nK2VNODhqB1DLmsv4PMd+Ht 1+bEDAm3ZR5ZbcrOrGyIYJLdQiJhZCSDDwJb4FWeR3qboVbBbIhDA7hRgTtefDHkLDfi 7pfQ== X-Gm-Message-State: AAQBX9e4X1HstF/RqAOBFM9Anpq652cJhcDwOxVSM8y5rYdseja9vWEw 6hfhIt5hoBBzPo0K1r5xzz1v/qEuFP7S8w== X-Google-Smtp-Source: AKy350bA7EXU9XKR7fumJ2mB3G4RRhiHbXK6aVBXkgj8MagCz9x37MQMyyG8HXUMD0Xv8FK5aiHlVg== X-Received: by 2002:ac2:5982:0:b0:4e8:4abf:f19d with SMTP id w2-20020ac25982000000b004e84abff19dmr989558lfn.15.1680886462738; Fri, 07 Apr 2023 09:54:22 -0700 (PDT) Received: from localhost.localdomain (byy157.neoplus.adsl.tpnet.pl. [83.30.44.157]) by smtp.gmail.com with ESMTPSA id c3-20020ac25303000000b004db297957e8sm781712lfh.305.2023.04.07.09.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 09:54:22 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: MSM8953: Add wcnss nodes Date: Fri, 7 Apr 2023 18:53:42 +0200 Message-Id: <20230407165345.42800-2-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230407165345.42800-1-a39.skl@gmail.com> References: <20230407165345.42800-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add nodes for remoteproc, smp2p and smsm to make it possible to use wifi/bt functionality on this platform. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 130 ++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 684668170353..df40584aafcf 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -326,6 +326,31 @@ rpmpd_opp_turbo: opp9 { }; }; + smp2p-wcnss { + compatible = "qcom,smp2p"; + qcom,smem = <451>, <431>; + + interrupts = ; + + qcom,ipc = <&apcs 8 18>; + + qcom,local-pid = <0>; + qcom,remote-pid = <4>; + + smp2p_wcnss_out: master-kernel { + qcom,entry-name = "master-kernel"; + + #qcom,smem-state-cells = <1>; + }; + + smp2p_wcnss_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + smsm { compatible = "qcom,smsm"; @@ -340,6 +365,14 @@ apps_smsm: apps@0 { #qcom,smem-state-cells = <1>; }; + + wcnss_smsm: wcnss@6 { + reg = <6>; + interrupts = ; + + interrupt-controller; + #interrupt-cells = <2>; + }; }; soc: soc@0 { @@ -630,6 +663,37 @@ i2c_8_sleep: i2c-8-sleep-state { drive-strength = <2>; bias-disable; }; + + wcnss_pin_a: wcnss-active-state { + + wcss-wlan2-pins { + pins = "gpio76"; + function = "wcss_wlan2"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss-wlan1-pins { + pins = "gpio77"; + function = "wcss_wlan1"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss-wlan0-pins { + pins = "gpio78"; + function = "wcss_wlan0"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss-wlan-pins { + pins = "gpio79", "gpio80"; + function = "wcss_wlan"; + drive-strength = <6>; + bias-pull-up; + }; + }; }; gcc: clock-controller@1800000 { @@ -1245,6 +1309,72 @@ i2c_8: i2c@7af8000 { status = "disabled"; }; + wcnss: remoteproc@a21b000 { + compatible = "qcom,pronto-v3-pil", "qcom,pronto"; + reg = <0x0a204000 0x2000>, <0x0a202000 0x1000>, <0x0a21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu"; + + memory-region = <&wcnss_fw_mem>; + + interrupts-extended = <&intc GIC_SPI 149 IRQ_TYPE_EDGE_RISING>, + <&smp2p_wcnss_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_wcnss_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_wcnss_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_wcnss_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + power-domains = <&rpmpd MSM8953_VDDCX>, + <&rpmpd MSM8953_VDDMX>; + power-domain-names = "cx", "mx"; + + qcom,smem-states = <&smp2p_wcnss_out 0>; + qcom,smem-state-names = "stop"; + + pinctrl-names = "default"; + pinctrl-0 = <&wcnss_pin_a>; + + 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"; interrupt-controller; From patchwork Fri Apr 7 16:53:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13205067 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BACAC77B6F for ; Fri, 7 Apr 2023 16:54:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230013AbjDGQyc (ORCPT ); Fri, 7 Apr 2023 12:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbjDGQy3 (ORCPT ); Fri, 7 Apr 2023 12:54:29 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DC0EBBA1; Fri, 7 Apr 2023 09:54:27 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id br6so55130153lfb.11; Fri, 07 Apr 2023 09:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680886465; x=1683478465; 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=x+s0yjmHm/hGhH/bvVigSoqlYkWv8Px0RKb0A33OxUY=; b=jmIOYXfw3RHGbeEx6b8iF8yx0HdBtSX+DkSJUX+WFFNhOI8XolMQqSr1ps/FTtAUty 5Iyx66BwGuc/xVFjEgaVd7JHgKTNHDZyllnq0Gt3XPrQS8OkXxa2YirQQvTKi2wWOm/q TQNSZy0O0e/tOEiIOI0ZpOS5XyvhQssYWngFClpWvmxPEIDYaXG9DUPHttcoRBEyA76r T3OsYajSaz8//IYyeT9J+RD9gOC24Zgp6hWXnKFkI9DuMtVrxkBVLjfchsFYaKft2Dwq LuLIOGdSuqx1r748s/8DeeH6sa/iFX6hOL/5oD6VYQUOitz8CycENJjLNh/NkRIwM1Ra D41w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680886465; x=1683478465; 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=x+s0yjmHm/hGhH/bvVigSoqlYkWv8Px0RKb0A33OxUY=; b=3/iif9rXa/AnNx9f+HtTa4o7YeT/UvWcOfWpU/uwmRaFcuehv4Ueu/WPI6rKY0b89s 4vdVOx75yEKiYVR6pmC1slkOvPd4xcv/op8lSTjGnbF+JOfcfE1AT7vgHDFXpWeMuNcB AdIG2mozBDTSkvG4s1wGs7GcI1IsUfmsJq//CWn//WxFNFLrer4fFg90mmwDgd8VhD65 5uSnYrXm6nr3owxI+qSRvKLjyfbT+eG6ihrCyP7fOWpg51VwyGJrbjR+J/S1eiKaRv1I fw/vLh83x5ZkCp2p2s+Y8bRnrSfo4HjD2xbeJznm4j1lfHEUEsSoBRxwGkAni1DzEXb4 feng== X-Gm-Message-State: AAQBX9fk+/pCcHfa5Ir4Sg0xhBdX0aSwzs4WWdrIgU2NOc3k7p47kert ot44Gs69vDKHfZxjiJhVqRi5qcMt0PuWDA== X-Google-Smtp-Source: AKy350Y76P/yiyStbAkHH2DSjohSDDbWvT2R+fniqe66PQKppZXbgPaReu6KKQyGkmjmtrefg1Y71w== X-Received: by 2002:a05:6512:2191:b0:4e9:8994:49bd with SMTP id b17-20020a056512219100b004e9899449bdmr1051862lft.3.1680886465648; Fri, 07 Apr 2023 09:54:25 -0700 (PDT) Received: from localhost.localdomain (byy157.neoplus.adsl.tpnet.pl. [83.30.44.157]) by smtp.gmail.com with ESMTPSA id c3-20020ac25303000000b004db297957e8sm781712lfh.305.2023.04.07.09.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 09:54:25 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: MSM8953: Add mpss nodes Date: Fri, 7 Apr 2023 18:53:43 +0200 Message-Id: <20230407165345.42800-3-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230407165345.42800-1-a39.skl@gmail.com> References: <20230407165345.42800-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add nodes for remoteproc, smp2p and smsm to make it possible to use modem functionality on this platform. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 87 +++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index df40584aafcf..257b1946372c 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -326,6 +326,31 @@ rpmpd_opp_turbo: opp9 { }; }; + smp2p-modem { + compatible = "qcom,smp2p"; + qcom,smem = <435>, <428>; + + interrupts = ; + + qcom,ipc = <&apcs 8 14>; + + qcom,local-pid = <0>; + qcom,remote-pid = <1>; + + smp2p_modem_out: master-kernel { + qcom,entry-name = "master-kernel"; + + #qcom,smem-state-cells = <1>; + }; + + smp2p_modem_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + smp2p-wcnss { compatible = "qcom,smp2p"; qcom,smem = <451>, <431>; @@ -366,6 +391,14 @@ apps_smsm: apps@0 { #qcom,smem-state-cells = <1>; }; + modem_smsm: modem@1 { + reg = <1>; + interrupts = ; + + interrupt-controller; + #interrupt-cells = <2>; + }; + wcnss_smsm: wcnss@6 { reg = <6>; interrupts = ; @@ -995,6 +1028,60 @@ spmi_bus: spmi@200f000 { #size-cells = <0>; }; + mpss: remoteproc@4080000 { + compatible = "qcom,msm8953-mss-pil"; + reg = <0x04080000 0x100>, + <0x04020000 0x040>; + reg-names = "qdsp6", "rmb"; + + interrupts-extended = <&intc GIC_SPI 24 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_modem_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + power-domains = <&rpmpd MSM8953_VDDCX>, + <&rpmpd MSM8953_VDDMX>, + <&rpmpd MSM8953_VDDMD>; + power-domain-names = "cx", "mx","mss"; + + clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_MSS_Q6_BIMC_AXI_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", "bus", "mem", "xo"; + + qcom,smem-states = <&smp2p_modem_out 0>; + qcom,smem-state-names = "stop"; + + resets = <&gcc GCC_MSS_BCR>; + reset-names = "mss_restart"; + + qcom,halt-regs = <&tcsr 0x18000 0x19000 0x1a000>; + + status = "disabled"; + + mba { + memory-region = <&mba_mem>; + }; + + mpss { + memory-region = <&mpss_mem>; + }; + + smd-edge { + interrupts = ; + + qcom,smd-edge = <0>; + qcom,ipc = <&apcs 8 12>; + qcom,remote-pid = <1>; + + label = "modem"; + }; + }; + usb3: usb@70f8800 { compatible = "qcom,msm8953-dwc3", "qcom,dwc3"; reg = <0x070f8800 0x400>; From patchwork Fri Apr 7 16:53:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13205068 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AE32C6FD1D for ; Fri, 7 Apr 2023 16:54:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbjDGQym (ORCPT ); Fri, 7 Apr 2023 12:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjDGQye (ORCPT ); Fri, 7 Apr 2023 12:54:34 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BB2DC144; Fri, 7 Apr 2023 09:54:31 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id q16so55132785lfe.10; Fri, 07 Apr 2023 09:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680886470; x=1683478470; 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=ktJMg05n6GOaL8XM13kdY9cBe1CBvoQ4/ZC5LzH85fg=; b=f0TrzevfBLxSt7EtNx1NswbcVI+uXpO+wx857eRHxEghtlgrIPS0QIcDfCls53NBmt kgPgq3IH3wbq2LNoBNAD6xPhVeAl6lk8npvjMvsJhJ76JOlpENcTAf9zbGDNSUgC3VZu 2rztPrkoopcmgT8dVLwUbVJJC5gaFIoYNfG+6Uy7nNU2yZ1gm1S8q9d7SsPa3S3B3m4v Q0LKT4t+e/IYYW+EvWus0VCcLLwxz/wNuJGLGUZOCdmDV/EybBlVRqEMF86QeCErJ7/0 LuX1fh5gQHqtfz2EmF2UcriJhaxj7mP2C6lkR/4doXw3jJ6ZQbuTKb2rXNPe7Mx9pIfY jkEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680886470; x=1683478470; 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=ktJMg05n6GOaL8XM13kdY9cBe1CBvoQ4/ZC5LzH85fg=; b=JxcH421rZJIvLaf/KEKwYA+pgwGTC3lDNJNGlHQSA0iV3q/EjxZdfvSEF7KU3U4iX4 OzpuTPZE/ySxxObvZgEEnVtbF7AUQQwxP/U0V3S6HD40I1//DZOM4VWAPSTibWpVs0Xg 18EK/ygOBezOzkEqCnVQAy3z1nN4hx5QnYY2nw8nvl0Y7RqH+VxtxyqQC5jQJ7BUxW2x O1SGcFtUxG4nShjFr/5dHytyLgvO3XJmgj2wX15jkEA7RggVfky+tTxzBCBY3iLjCaTQ xmRN/0W+pICRru/1ux/L5r0x/jZSg6PZfzTAtwqVYxZTo2vYflRiFOE/kdnYB89vIkO7 /5SA== X-Gm-Message-State: AAQBX9eKYu1mXNexKOapbGQ8SrFaiG4p6pLtpV+GVCpAzgMtazQG9Nn+ SzHqqoQ/kqXSLOwTjob3NCBep/G3BUJAdQ== X-Google-Smtp-Source: AKy350ZGRmKJUxe3n4Dx2SocA+O69ZU6/K6EwbwWEmZlz2dKGLV0EMlhlxtX2TtHoiyEuF0H+uvk8w== X-Received: by 2002:ac2:50c3:0:b0:4eb:1048:1285 with SMTP id h3-20020ac250c3000000b004eb10481285mr910839lfm.47.1680886469664; Fri, 07 Apr 2023 09:54:29 -0700 (PDT) Received: from localhost.localdomain (byy157.neoplus.adsl.tpnet.pl. [83.30.44.157]) by smtp.gmail.com with ESMTPSA id c3-20020ac25303000000b004db297957e8sm781712lfh.305.2023.04.07.09.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 09:54:29 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: MSM8953: Add lpass nodes Date: Fri, 7 Apr 2023 18:53:44 +0200 Message-Id: <20230407165345.42800-4-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230407165345.42800-1-a39.skl@gmail.com> References: <20230407165345.42800-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add nodes for remoteproc, smp2p and smsm in preparation for audio support on this platform. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 141 ++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 257b1946372c..855595cbb09b 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -6,6 +6,9 @@ #include #include #include +#include +#include +#include #include / { @@ -326,6 +329,30 @@ rpmpd_opp_turbo: opp9 { }; }; + smp2p-adsp { + compatible = "qcom,smp2p"; + qcom,smem = <443>, <429>; + + interrupts = ; + + mboxes = <&apcs 10>; + + qcom,local-pid = <0>; + qcom,remote-pid = <2>; + + smp2p_adsp_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_adsp_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + smp2p-modem { compatible = "qcom,smp2p"; qcom,smem = <435>, <428>; @@ -1532,6 +1559,120 @@ frame@b128000 { status = "disabled"; }; }; + + lpass: remoteproc@c200000 { + compatible = "qcom,msm8953-adsp-pil"; + reg = <0x0c200000 0x100>; + + interrupts-extended = <&intc 0 293 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "xo"; + + power-domains = <&rpmpd MSM8953_VDDCX>; + power-domain-names = "cx"; + + memory-region = <&adsp_fw_mem>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + smd-edge { + interrupts = ; + + label = "lpass"; + mboxes = <&apcs 8>; + qcom,smd-edge = <1>; + qcom,remote-pid = <2>; + + apr { + compatible = "qcom,apr-v2"; + qcom,smd-channels = "apr_audio_svc"; + qcom,apr-domain = ; + #address-cells = <1>; + #size-cells = <0>; + + q6core: service@3 { + reg = ; + compatible = "qcom,q6core"; + }; + + q6afe: service@4 { + compatible = "qcom,q6afe"; + reg = ; + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@16 { + reg = ; + qcom,sd-lines = <0 1>; + }; + dai@20 { + reg = ; + qcom,sd-lines = <0 1>; + }; + dai@127 { + reg = ; + qcom,sd-lines = <0>; + }; + }; + + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: service@7 { + compatible = "qcom,q6asm"; + reg = ; + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + dai@0 { + reg = <0>; + direction = ; + }; + dai@1 { + reg = <1>; + direction = ; + }; + dai@2 { + reg = <2>; + direction = ; + }; + dai@3 { + reg = <3>; + direction = ; + is-compress-dai; + }; + }; + }; + + q6adm: service@8 { + compatible = "qcom,q6adm"; + reg = ; + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + }; + }; }; thermal-zones {