From patchwork Wed Jan 4 19:37:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 39073 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5321815wrt; Wed, 4 Jan 2023 11:43:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXvcOx1uKFB5iNJV1iX2ViF2uBdjMIIF2uAZb+0LAAT0ZqHscV+rjCYKbmjvk8Ra05WmFHi0 X-Received: by 2002:a17:903:2149:b0:189:e16f:c268 with SMTP id s9-20020a170903214900b00189e16fc268mr39372900ple.20.1672861380170; Wed, 04 Jan 2023 11:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672861380; cv=none; d=google.com; s=arc-20160816; b=M0UPWH3fGLwzSdeBFszF/l8JO2COUZ1puKdgLVkDA4UXICpAjzZrNDl6HXqUljKYPt 0UXkq1Z4AmrX3svyx5wDsMEDv5doTDGW2Weye5nGXbgu+E0f2dSTaS8mimRsqkLowVYt YIX7+NGdPgaFxRVwlijFVFguxKI3UD0e7P5dxiXOiilE3OeBixBQCnexHphKxwKhDdxx MXtqI/oD7TtCo/e5qRHeo10HEdGy/mHvnskVcnDGj7XVCy6MXqu+SvJ5r+A85Qf97u+K 8Hm7kRpVy+5/eJeJrobNM6RN3FX8r3/g2ce+CXPi+VdhwL2woOsRxCYl4AzIlDgUixGZ 1tSw== 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=udCwkO8StA61yER1zDj2O8kMSYGesvjzVzZN5NG0PbI=; b=tNBvP81ZXeg9lA52D3P+qTY1K7RJwLTlPsz5xlrga5/j2B5qAprBkrBOWZ+CKDD3iL rDoW4IrlZbtDqVEu3iXHJQs5nTrMitEYbiLUgHFJ/T45h8m8uyG1fkXx1M+T99pZuSJV PUmU4Dy+XjDQBrYdXIl90xWKomyRGKkM+imLkTq4LtBdVecksYZERfEPDfAK/EjiNOkR RLLObPR+jLv59RpAUYZFLcd3wz3UaU5k2mJWs7k9zEfmQezrG7eDa5KR6eLjBGhcJBg6 dV94qDlOtHz2JR9USbwbuDlGl5uUOVukW7QSprEcIhkwKCjtLFijPwo7k8ieB9sIe38D 3xWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qtz6OjE0; 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 c19-20020a170902f31300b00190f525cdcesi31826043ple.622.2023.01.04.11.42.47; Wed, 04 Jan 2023 11:43:00 -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=Qtz6OjE0; 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 S239591AbjADTi2 (ORCPT + 99 others); Wed, 4 Jan 2023 14:38:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240250AbjADTiE (ORCPT ); Wed, 4 Jan 2023 14:38:04 -0500 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E9060DF for ; Wed, 4 Jan 2023 11:38:03 -0800 (PST) Received: by mail-io1-xd33.google.com with SMTP id e129so10004068iof.3 for ; Wed, 04 Jan 2023 11:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=udCwkO8StA61yER1zDj2O8kMSYGesvjzVzZN5NG0PbI=; b=Qtz6OjE0+Ue98DAChw8egdd+LgPk2N3iw9NFXaVAfc1AKrLBrMPDdMFiVHR6zjsSph rLj7lbvLo3xuOL+M/LI5YZrR3EVt9zg2FAjexYMQoY9qvWzpAPNBy1Kzl4RtGI5UEEYa 7EchOJSBZSZSVGqmLUDNiCvh0Xq8uxnMur20GI7ju2cSQqXnlSI0Ib17YWdT2AhIDecl AfXvPP72rrGmzhlZcJqp7R+oO8ZGx2b2F9Da/HxIJ5mvXlAIRyOHvZtlrMvs6ern/Cck iGas00OgdicHcnlGu+FXItyhiaKVWSZqTwBtQ0innThXvUdhkwFfyzay4gI1SUOfYYVm m2Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=udCwkO8StA61yER1zDj2O8kMSYGesvjzVzZN5NG0PbI=; b=Gnt85xykZl53aGSPIyg3Exj0C+Uyo8b5RyOk57Vf715HvdFVOLJ4Wx6MhQ+dfpEoTP K8AOP/SdPt43OanWBw+U7C77fA8bPUm0jnUeF60UWIkffaKk8L7fAvShGfsnqtGSURlM DKnoqyVPK/86/8C8xPHAQkGSXMLF6hpY9MBDYjRWqdesZxLJU/xYLq2jUcwsVAUtSIUt nPeoKXVixZSQM5QajYAHTr2R1k0u/v08gRSzWQhNsmm743wrlDfgZ1ZYzZ7uyhG+dLrF FqhdkPQHEjSMhyo6nbDxNOkqosUD97Fhhsc/Ls9J/YqtTlhmzLhDArVzvDs/TsoOB4gA m8lg== X-Gm-Message-State: AFqh2krDpgkFmLiljPYQzqTaGt3kQD9Lq+QFIabKZIC3t9xYdlq1PNT+ YtzZwfGkpDVBQgQxVnOQ2DIBmA== X-Received: by 2002:a6b:b4d1:0:b0:6ed:308f:f807 with SMTP id d200-20020a6bb4d1000000b006ed308ff807mr35432843iof.21.1672861082915; Wed, 04 Jan 2023 11:38:02 -0800 (PST) Received: from presto.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id h13-20020a056602130d00b006cab79c4214sm6972498iov.46.2023.01.04.11.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 11:38:02 -0800 (PST) From: Alex Elder To: andersson@kernel.org, konrad.dybcio@linaro.org, agross@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: Luca Weiss , caleb.connolly@linaro.org, mka@chromium.org, evgreen@chromium.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: qcom: sm6350: add IPA node Date: Wed, 4 Jan 2023 13:37:58 -0600 Message-Id: <20230104193759.3286014-2-elder@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230104193759.3286014-1-elder@linaro.org> References: <20230104193759.3286014-1-elder@linaro.org> MIME-Version: 1.0 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=ham 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?1754122294759958092?= X-GMAIL-MSGID: =?utf-8?q?1754122294759958092?= From: Luca Weiss IPA is used for mobile data. Add a node describing it. Signed-off-by: Luca Weiss Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 43324bf291c30..f622d870bc827 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -432,7 +432,17 @@ modem_smp2p_out: master-kernel { modem_smp2p_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>; }; @@ -847,6 +857,43 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + ipa: ipa@1e40000 { + compatible = "qcom,sm6350-ipa"; + + iommus = <&apps_smmu 0x440 0x0>, + <&apps_smmu 0x442 0x0>; + reg = <0 0x01e40000 0 0x8000>, + <0 0x01e50000 0 0x3000>, + <0 0x01e04000 0 0x23000>; + reg-names = "ipa-reg", + "ipa-shared", + "gsi"; + + interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>, + <&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>, + <&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "ipa", + "gsi", + "ipa-clock-query", + "ipa-setup-ready"; + + clocks = <&rpmhcc RPMH_IPA_CLK>; + clock-names = "core"; + + interconnects = <&aggre2_noc MASTER_IPA 0 &clk_virt SLAVE_EBI_CH0 0>, + <&aggre2_noc MASTER_IPA 0 &system_noc SLAVE_OCIMEM 0>, + <&gem_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_IPA_CFG 0>; + interconnect-names = "memory", "imem", "config"; + + qcom,smem-states = <&ipa_smp2p_out 0>, + <&ipa_smp2p_out 1>; + qcom,smem-state-names = "ipa-clock-enabled-valid", + "ipa-clock-enabled"; + + status = "disabled"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>; From patchwork Wed Jan 4 19:37:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 39072 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5321751wrt; Wed, 4 Jan 2023 11:42:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXt4Dd/YEEku0gYabk71uB2xXd/EUn3jxtNZqS5VBEnqA4tob8mkhhe5FgRIvrOPxV2aDc6Q X-Received: by 2002:a62:148f:0:b0:582:46a4:87f6 with SMTP id 137-20020a62148f000000b0058246a487f6mr13918618pfu.22.1672861371152; Wed, 04 Jan 2023 11:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672861371; cv=none; d=google.com; s=arc-20160816; b=XeccJqTqw2/ONrrBTvm0Sg4gMDCRtNUYFchR10QHGD1N31F2mgYA75tGcyCVI/O3xo w1/1XD6a1/fUOK/cyrhDMgFZXxRGsOJ13aietKxWKWTM24aaA5042fI63fPsHNNb1oGn QYymzA6bmPagyoCunbRKBYrb3dLjA85u7pXfZTbok4Ooij/+bsP+1R+agl+VD7Wd+Iaf yQhMJAR3CFAWqLkC07CnV0323n1kXlNYRUqt8wz4cO9tH/oaswp5XSPzy4FpVbfX3ijg Lh+G/92I6wq3QI880iT95cgdQL/KzLAegcctzyNV6+/UW5MFs0OrZnPbd6X+joV7f78f 2sOg== 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=/MPPt/dyVshtWf52UcUhQEVxijzuMl9HV7p2elEFMTA=; b=opJurQ8t06AWGVjtcFfL/S8F99vXuWeA4+G76BFaLLkHMA91ewDO4dEADQzZM6QdNY pzTy0ACj40Gf6t2vjsgOe65sWmrHOeRKEfeHozXJAtOF1B9BGIQQaZlR/CI8r9gRSUFA 6iAazLFb1xsxFw0s9oaX6lY58wByDqcuh60W0x8NpgTkHw2TlBllcCvWelCTzIHBIvmM lza2162HN8O+OnQ+Eur7vS/o17hOp5dtj0lNefjuiG49DEECRp+/fwliGcpaYj6Y3nUS r2GW4m8QzX4PNkws8ghyQx9yLqzB7BWW1IG0XIjZclrInZWOesT2C1Yo5vEtzcP0aZ+f H6QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eqyxZvYH; 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 z8-20020a056a00240800b005726e8b1cedsi35943952pfh.345.2023.01.04.11.42.38; Wed, 04 Jan 2023 11:42:51 -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=eqyxZvYH; 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 S239423AbjADTiY (ORCPT + 99 others); Wed, 4 Jan 2023 14:38:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240255AbjADTiF (ORCPT ); Wed, 4 Jan 2023 14:38:05 -0500 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C935BF6 for ; Wed, 4 Jan 2023 11:38:04 -0800 (PST) Received: by mail-io1-xd2c.google.com with SMTP id d123so18536154iof.6 for ; Wed, 04 Jan 2023 11:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=/MPPt/dyVshtWf52UcUhQEVxijzuMl9HV7p2elEFMTA=; b=eqyxZvYHjCwXvkgKa7v/M2xonvPpGUy+2+iDHMfQ0Vd/SGkzHa/FjfzGzMOXjw1oaI UV2uXLgoEScquxsx4YSoTmgeU6uvwCkI8vX0xcG2JXHLe3561OIVYkTnmVaGCKg7Nlwf U1I5zSGA6GMaLJ34l0NGLsrS2LuhmV54zIIwqgQURKPPstnQJBWkgYTXCxMcB9UA4QUD ZI5+rWRDs679zytNwskCX96BDlwd35q4kt9PTYaLLOxLac9IfO44tCDDSRUa0pCsK7oB +OKQgZCb4v4ZSjfet/AxTyp/Wpc3JqUpfPGvAqK9dgIMMKD2GD6vgr9ZPFzzqjmw6kfF YRNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=/MPPt/dyVshtWf52UcUhQEVxijzuMl9HV7p2elEFMTA=; b=2oeiOpn0+h/GKLh7jtD6BNXvy+kd9u0wUTNkD9ink9r5j4xp8JK58TAbvcLd7phfos ByiDgkFRYYOpDlvx/wvjV4QVKtnc9dIuPHE/Uqf0TC/+MsQmKgSIKpDrT/xRGVUSL1U5 dl5CaddGXg2wTfEPmW2QW2BO3i+U+yfDLWMMFoPiNs8JMey8AqrPLEE+NejjkWlHyH3Y aMXQQ/HL4jZVhNjWnPhXrb+NYN2W9uQa7p9ZXn5EP43D08NH8vz6vhnEKj20vOk2I0XK v87v+xX3a+XScj6eSTEl9SxV4QSzhjDJ+LPRJHO8iBW3AyhryAEL5+Z2FVGKEx5OquHU 6jxw== X-Gm-Message-State: AFqh2kqi93a4W759LQLFVmCJ70hiovPFcCQjWNgVZlgNpw3i4QtDSTbj kmEE2ODQtZEqd3SjEDF14voubA== X-Received: by 2002:a6b:6d15:0:b0:6df:5a5d:5e8b with SMTP id a21-20020a6b6d15000000b006df5a5d5e8bmr38148629iod.9.1672861084157; Wed, 04 Jan 2023 11:38:04 -0800 (PST) Received: from presto.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id h13-20020a056602130d00b006cab79c4214sm6972498iov.46.2023.01.04.11.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 11:38:03 -0800 (PST) From: Alex Elder To: andersson@kernel.org, konrad.dybcio@linaro.org, agross@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: Luca Weiss , caleb.connolly@linaro.org, mka@chromium.org, evgreen@chromium.org, quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com, quic_jponduru@quicinc.com, quic_subashab@quicinc.com, elder@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable IPA Date: Wed, 4 Jan 2023 13:37:59 -0600 Message-Id: <20230104193759.3286014-3-elder@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230104193759.3286014-1-elder@linaro.org> References: <20230104193759.3286014-1-elder@linaro.org> MIME-Version: 1.0 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?1754122285232680645?= X-GMAIL-MSGID: =?utf-8?q?1754122285232680645?= From: Luca Weiss IPA is used for mobile data. Enable it. Signed-off-by: Luca Weiss Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index c456e9594ea5b..6f9e59bf43a00 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -362,6 +362,13 @@ haptics@5a { }; }; +&ipa { + qcom,gsi-loader = "self"; + memory-region = <&pil_ipa_fw_mem>; + firmware-name = "qcom/sm7225/fairphone4/ipa_fws.mdt"; + status = "okay"; +}; + &mpss { status = "okay"; firmware-name = "qcom/sm7225/fairphone4/modem.mdt";