From patchwork Fri Mar 3 21:58:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64108 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp684696wrd; Fri, 3 Mar 2023 15:51:38 -0800 (PST) X-Google-Smtp-Source: AK7set9aOnKs1pvqjazxheaASUHnQCvYh+ybpFhzOo8KNmzUQRvESwUSiONyrzyr8yzK+5pDUdbl X-Received: by 2002:a62:65c1:0:b0:5cd:d766:8a2b with SMTP id z184-20020a6265c1000000b005cdd7668a2bmr3392842pfb.6.1677887498103; Fri, 03 Mar 2023 15:51:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677887498; cv=none; d=google.com; s=arc-20160816; b=kLSaYVLDi729lwq30gCqRl7yhLqS0vu6l0/RqesWvbCACO+zBhDnKvCtTarPOKVSTb 3jDEt3gi9foJigNDk2zVtcxXMy3sr0jcuGPxNYi8FzSFC2NnmWgZ2LmdJhDhHMO2b1/3 tjVukpZOyHs7u4VcIs5W2QaJY5JMaJTyizzvtlmmhC0CGbh+m0zir81VS3MDVeW3btvj LyLqjhXfdxRT9HEFih0whISJmVVkcOyaJ0ja3RKhjInE2oTSsJqkXiRvplGxKauC6b/Q nt+PBDdv6ebyIXSgiKpn/RgA7Ny+e8KFvpsPNPNWrAA1a6ATCOvLPtkN3xMObnPqGoFa vC0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=dIy97MlLq0rj6R7WBk66We2Y8cheU7mrKCO9U6h0C2I=; b=0s+vfOX9Ftvpm6onNxn0LRhwGFwAjjXi1qoMcR+XF5pNWbRVcymJH4u4YSFaQ9mwY1 JVi2+N2lBWKWTFXM51R2lxDcVv5Un7Kyu9vseq4oSlTBeXTY1iilfY5rHW1EkHycFpQo dHnCzv2GmQry0Lm7GbadVV4sgF3a2SDOlB+XCAWncfeCJT7kAHQC7Pqh86IzIouu6LWH lFIw8E96v5Qf8LcaqFlSVaqLusZWrA7Omr4T/W6/YSuk3e5OWnWeyUPmfvkI1clA7LyX bQH6YCr27NXj9bzIE+MvkjfguVpmJ5Vs2O/eGHjgjuRzNJUazIAjyPU7rvDQTPV4dNLJ 1eTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n3KJYv2q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a630e4e000000b0050017d1b7c6si2653622pgo.767.2023.03.03.15.51.24; Fri, 03 Mar 2023 15:51:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n3KJYv2q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233469AbjCCWhX (ORCPT + 99 others); Fri, 3 Mar 2023 17:37:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231616AbjCCWhB (ORCPT ); Fri, 3 Mar 2023 17:37:01 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A015717CE9 for ; Fri, 3 Mar 2023 14:34:49 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id da10so16215644edb.3 for ; Fri, 03 Mar 2023 14:34:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677882829; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dIy97MlLq0rj6R7WBk66We2Y8cheU7mrKCO9U6h0C2I=; b=n3KJYv2q6qJZtODp68aUWb0cvfAfxdcZTZStuTIJQttKwHVEGWUFBX2k8jpBDDBs2s bwKiaFSjm3/5gN4skb7BeEj5splzZj9hA8sCtlfFZ82GiNIjp6nnJr8Yoja/dWwPMEiv kol3YYaZsfLcKHVQvDwj++ogAbUYerPCbiMlKZijGdDbknIrpyGwqEDjBfgHlohvOwi3 MwTXan+dIWsU3DZraAXN4lrMxW4DN8EZ88yVclsTbEDRiFDYFhJZjx1WDWzpCotXDIVc tgzqJ2ecYfIWQUGTHniOLKTrCgCdSl6PEKKtvB+4Uw68/glH78P754Lqd1mYRhtoUdS8 zVoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677882829; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dIy97MlLq0rj6R7WBk66We2Y8cheU7mrKCO9U6h0C2I=; b=my4eUV64FaIhdKndYDTQVwYv//CYUwYvA06w77FZFZbWG/Br1CVuFTRmzDWo6W+5IF Ud42bP1+K+wmKWzFgE84/7uWT/Go3DbG3yzrs3bKlbQ37dA7WdHYZgOKQMpGZLgo8PGS z1XgEpvmgXZXjsKUYwSbQ/RgwLKcxv60P5Sn+28a8VBYZb+e82JjnnffH5/zAOo5nlk5 +iMXC/8OAtKwv9rrYlhYAoB/8G1j1bxoGzVv+WX5pp4CIikjRRF0UDXvjN30/WAeeeID yFOfMuRQO6y5hI1CA4BkI3DPXLEAnrpBy1Dc1ttL6edjqKMM6nYQ+v6CRIR5ZKHoGtaX E/ig== X-Gm-Message-State: AO0yUKUq2AU3cdQbvcfMlDd9R54Lrg+QPMXDmhPHXT7mpuKGI9pTQOIy eiTjUgIXjL3mzBers+wqTwyHqkaNfi0hL8IjDW4= X-Received: by 2002:a19:7614:0:b0:4e0:ce21:b92 with SMTP id c20-20020a197614000000b004e0ce210b92mr1051356lff.16.1677880703035; Fri, 03 Mar 2023 13:58:23 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id e27-20020ac2547b000000b004cafa01ebbfsm552670lfn.101.2023.03.03.13.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 13:58:22 -0800 (PST) From: Konrad Dybcio Date: Fri, 03 Mar 2023 22:58:08 +0100 Subject: [PATCH 08/15] arm64: dts: qcom: sm6375: Add modem nodes MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v1-8-8c8d94fba6f0@linaro.org> References: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-0-8c8d94fba6f0@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677880689; l=2988; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=93tjFAm3KE3wlOIxpjBJdVGBzNUVK9fKZaM4nNn4KS8=; b=pwKO0/M2FqeHx3dB2gg68oBMUOr1ydRxxOUnKx+GLZ7BadpXYciYEIVO21+lwdaSQeWOSG5KPcpW zOXO+Mw7DSHYDHIz3+KwnDZsnDxRgGEvxkIh5ROVTi2OfdkMVjY2 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759392560975338305?= X-GMAIL-MSGID: =?utf-8?q?1759392560975338305?= Add required nodes to make the embedded 5G modem boot up on SM6375. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index e473a90f3dea..90f18754a63b 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -565,6 +565,47 @@ smp2p_cdsp_in: slave-kernel { }; }; + smp2p-modem { + compatible = "qcom,smp2p"; + qcom,smem = <435>, <428>; + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_SMP2P + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_SMP2P>; + + 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>; + }; + + ipa_smp2p_out: ipa-ap-to-modem { + qcom,entry-name = "ipa"; + #qcom,smem-state-cells = <1>; + }; + + ipa_smp2p_in: ipa-modem-to-ap { + qcom,entry-name = "ipa"; + interrupt-controller; + #interrupt-cells = <2>; + }; + + wlan_smp2p_in: wlan-wpss-to-ap { + qcom,entry-name = "wlan"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + soc: soc@0 { #address-cells = <2>; #size-cells = <2>; @@ -1170,6 +1211,47 @@ usb_1_dwc3: usb@4e00000 { }; }; + remoteproc_mss: remoteproc@6000000 { + compatible = "qcom,sm6375-mpss-pas"; + reg = <0 0x06000000 0 0x4040>; + + interrupts-extended = <&intc GIC_SPI 307 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>, + <&smp2p_modem_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack", + "shutdown-ack"; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "xo"; + + power-domains = <&rpmpd SM6375_VDDCX>; + power-domain-names = "cx"; + + memory-region = <&pil_mpss_wlan_mem>; + + qcom,smem-states = <&smp2p_modem_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_MPSS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + label = "modem"; + qcom,remote-pid = <1>; + }; + }; + remoteproc_adsp: remoteproc@a400000 { compatible = "qcom,sm6375-adsp-pas"; reg = <0 0x0a400000 0 0x100>;