From patchwork Thu Dec 22 19:32:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 35928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp128732wrn; Thu, 22 Dec 2022 11:35:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXu4wHzwBLQp9bKWj7ItMgXUY6vCMPZ0MxiBOsyXzkAarYomzGp72EhyVzI0jqTo4oDjJB9p X-Received: by 2002:a17:902:c193:b0:189:e545:7254 with SMTP id d19-20020a170902c19300b00189e5457254mr8162548pld.23.1671737729632; Thu, 22 Dec 2022 11:35:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671737729; cv=none; d=google.com; s=arc-20160816; b=0uaFYD0YV8rnT9NJkXhN0dnUdkYS/3f84lNMO4HXaJzXVpj8uWnmklvrzgk4Smc0Dg UAEZKx9DzIleSzUCSjOkrU+7zgHdzfszmgOVDAkCwP8vMPYFDvzKCG8zxDeal7ijN4hy 7tyNR+yeLh5m0iK4r2gt3QTaGHTVmKe7MfxiW0ecOMi7/a2xIgtdcNmuw9zI3PWU6sf3 HRJfXNpee83tGMyju45vUZDLEGvdVi+2vfRsakECw4Fw0iU0coru/tOOJ3KL/CC1zTEB CZMIdJJ70/Bvx6fx8C92LfHruPkSpY5CwdgVG+L8NRH6yZsieySDhaIApN2p6TWT1Vhy eskw== 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; bh=ip2EHlY2LMgILURB2RZunjWg4orc/mn6rAItdYmR480=; b=Pg7bi/YMqqnXgCLkjAnqrK5owI8OXh358Dgrr5qgKEkMdNzDcQ3glBSf+PBBIOX/2l D3q1OuFRqPbbv6gqg6uiii5WrcVm7IbplnE01nfZZ3CunMJZTGEWF72XnbNO3HFpkIY9 5gMyOPM2GNSrYumRFK9JTMUN2P1YgjD6w5ZJUqiGPC4/T50xDlG+0jmx0N28zDvxFeBw ICprEACSfpzAIBdxk4P8aapiZoavNWFrc6iMo3StIi3m5xezVdyS9Akt1h5WX54p+dcU U0PmNIjNkXwUZb3E6u6zd+eiPwV0fGF8loVxnZf5fuIwdFrNZihaDAWnqtA1aejcBC+j 2PZA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a170902e3cc00b0018745a8a351si1191382ple.517.2022.12.22.11.35.17; Thu, 22 Dec 2022 11:35:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235543AbiLVTdg (ORCPT + 99 others); Thu, 22 Dec 2022 14:33:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235680AbiLVTd2 (ORCPT ); Thu, 22 Dec 2022 14:33:28 -0500 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [IPv6:2001:4b7a:2000:18::163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83D8118397; Thu, 22 Dec 2022 11:33:26 -0800 (PST) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 45D8620176; Thu, 22 Dec 2022 20:33:24 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org, Will Deacon , Joerg Roedel , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Lux Aliaga , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Dmitry Baryshkov , Thierry Reding , Melody Olvera , Bhupesh Sharma , Douglas Anderson , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v5 1/4] dt-bindings: arm-smmu: Document smmu-500 binding for SM6125 Date: Thu, 22 Dec 2022 20:32:51 +0100 Message-Id: <20221222193254.126925-2-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221222193254.126925-1-marijn.suijten@somainline.org> References: <20221222193254.126925-1-marijn.suijten@somainline.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1752944061817283458?= X-GMAIL-MSGID: =?utf-8?q?1752944061817283458?= From: Martin Botka Document smmu-500 compatibility with the SM6125 SoC. Signed-off-by: Martin Botka [Marijn: Move compatible to the new, generic, qcom,smmu-500 list] Signed-off-by: Marijn Suijten Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml index 124253e84c02..9b4520aff92a 100644 --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml @@ -43,6 +43,7 @@ properties: - qcom,sdm670-smmu-500 - qcom,sdm845-smmu-500 - qcom,sm6115-smmu-500 + - qcom,sm6125-smmu-500 - qcom,sm6350-smmu-500 - qcom,sm6375-smmu-500 - qcom,sm8150-smmu-500 @@ -334,6 +335,7 @@ allOf: - qcom,sdx55-smmu-500 - qcom,sdx65-smmu-500 - qcom,sm6115-smmu-500 + - qcom,sm6125-smmu-500 - qcom,sm6350-smmu-500 - qcom,sm6375-smmu-500 - qcom,sm8350-smmu-500 From patchwork Thu Dec 22 19:32:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 35929 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp129049wrn; Thu, 22 Dec 2022 11:36:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXtnF+p78U4sYyG/47Jii+bAJ6+QKOVGKoOqT6CGzUhEOtv99iD9dysg2xFXAb46qDYg+3pj X-Received: by 2002:a17:902:da86:b0:189:d0c9:f7d0 with SMTP id j6-20020a170902da8600b00189d0c9f7d0mr8907320plx.27.1671737782814; Thu, 22 Dec 2022 11:36:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671737782; cv=none; d=google.com; s=arc-20160816; b=STQncUeBn5czNGLhz9vFVwcxxr0z6XmZp5Fe2TPd3XKUVnCvnBA1oWE3O7ngOIzU3m Qc55+sA6UntL32c4Xf1yGCz3jBCM3XtbyE/vA9iETLZ6S2oAxh0TaBWEGAS9sIG7t3MT /qQ8IkLrrrjulQHy6mY2beFGZsFn/DZdMTm6J7vLq4M9NmUZwwlsJygHucosKO57iYSC i83P2NzO41GqPIOMjT1rHPne1TbP+/DWV1DqSNYu0yMuQ3JZkA9V273+ySKF19GNvvWA BhtmYMddEeVrB9rTC39ccYb0+Et32NTGdfq2uWUe7n9TkSG2rp76h7npeQHx7OaUv9+V qSzQ== 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; bh=6xqAohMaaVIOPxRNigk0nbH8f3az/9f9mGpALaeaCKE=; b=0g30MuxRsKpg7HX6U8a3xeZ7oPDxUqkDJJG6/5tLNROMWzMeCEAPGsUEbkkUYOqBcR qjnBYWO41Kgncz7oL4MIKc5F2+Fe1YkM5Pyj8EiJA9Oumzm3WsYGNQToiIrMOXOdry9u 88L13Jei1hcE462asIc4iF5jHg7xQ3u8BLwaZkmqec8XPIg1QNMj/c8wv5GaTdn2Wb6U m/XyxkHJxVPitM3Jv+6WpnC1Sa1FAIDxkvG7VF9/bmvtosT3FpLiPLO9MPnUaCQKtZy3 mwQy09XV5t7JLgDZ5ygPeRhFdkJCzFgikNVcZKXZZQ4ejgwpngBXwFQciEyT+3O6KL4K Sbhw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d17-20020a170902ced100b00189d56098b3si1567088plg.113.2022.12.22.11.36.10; Thu, 22 Dec 2022 11:36:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235711AbiLVTdt (ORCPT + 99 others); Thu, 22 Dec 2022 14:33:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235692AbiLVTd3 (ORCPT ); Thu, 22 Dec 2022 14:33:29 -0500 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [IPv6:2001:4b7a:2000:18::164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED94713CE5; Thu, 22 Dec 2022 11:33:27 -0800 (PST) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 4A421201A2; Thu, 22 Dec 2022 20:33:25 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org, Will Deacon , Joerg Roedel , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Lux Aliaga , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Dmitry Baryshkov , Thierry Reding , Melody Olvera , Bhupesh Sharma , Douglas Anderson , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v5 2/4] arm64: dts: qcom: sm6125: Configure APPS SMMU Date: Thu, 22 Dec 2022 20:32:52 +0100 Message-Id: <20221222193254.126925-3-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221222193254.126925-1-marijn.suijten@somainline.org> References: <20221222193254.126925-1-marijn.suijten@somainline.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UPPERCASE_50_75 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752944117419325705?= X-GMAIL-MSGID: =?utf-8?q?1752944117419325705?= From: Martin Botka Add a node for the APPS SMMU, to which various devices such as USB and storage nodes are connected. Signed-off-by: Martin Botka [Marijn: add the new, generic, "qcom,smmu-500" compatible, add patch description, reorder # properties] Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6125.dtsi | 73 ++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi index bf9e8d45ee44..347665c2067c 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -573,6 +573,79 @@ spmi_bus: spmi@1c40000 { cell-index = <0>; }; + apps_smmu: iommu@c600000 { + compatible = "qcom,sm6125-smmu-500", "qcom,smmu-500", "arm,mmu-500"; + reg = <0xc600000 0x80000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + #global-interrupts = <1>; + #iommu-cells = <2>; + }; + apcs_glb: mailbox@f111000 { compatible = "qcom,sm6125-apcs-hmss-global"; reg = <0x0f111000 0x1000>; From patchwork Thu Dec 22 19:32:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 35932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp133088wrn; Thu, 22 Dec 2022 11:47:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXuhHfKl2ugishDjjsXQFb3OLZUyPJzER2dBHyLaP/8DYPA7Q9+LhMPKhkN2qpQ/aho8VfwO X-Received: by 2002:a17:903:2793:b0:189:8f64:deac with SMTP id jw19-20020a170903279300b001898f64deacmr6551233plb.2.1671738468206; Thu, 22 Dec 2022 11:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671738468; cv=none; d=google.com; s=arc-20160816; b=T7shwWauslNCH3HXje7M0gmbMK4smd0cnxJW0E6U6KloUJ9peB5TwRKIDnJrTFOnlY NJ9y54feT4GffkQAPAiRQ0MpuCoYn1tU+VJMBc3o/GPkTeqRvQxCuEvR03TES/9MEk/i 6N1mTAbH1MUI7hV+5E2kFRgXztCGY74ymFXAIO2WI9kCp/k509L7Ti1UEo1QkdYyAvzF zEslq3fsKlDB4fWJ//u7w70aTsfzSiVERKkjNS6UT207xx/rzpJeOe0uicK37D/d9mS/ cuOFcurf5jAQcM9ViqUcMljRMqJp2JRXpuYpp8KXMsHE6HxuqzjkVSYLoqt+8msQ/H1Y /Pyw== 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; bh=SdjdjIvTaLyRQQpvmjlU3YcYmPRAjdlTGj/2CXlwHnI=; b=SxoPsM0wxr7qERiwWicMTc4zVyw9iQb50lnCB7wqC3ejen/ert1aAwNwyG6xgZkyI/ cMunNp4edWhJ3XYztjyzHqswKKd2lYbSa8ryQoJu4Y4HZ/asxjcb3kRZr8LiY9mdU9rw h/1aROVV5tYUV3Ah3/Nsq/xWehBWs9BqvZkWQpyjkdwzR0HwOMYOrshI1ZloJj4H4xIh gBK/Tzlfexc4jVAyIpDmTLuraydnsPqAiiDzE4kgKXGXSGu3KxWy9RnH9Yb4g5rUtszS dIXXT4iUZNK8zVf13p5P40pAQKiPsOkHlkF/GBzSwqLAjS9XNCkBikAnLsyaCRxRQClO 7sOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a170902c94300b001892d820a1fsi1444110pla.571.2022.12.22.11.47.35; Thu, 22 Dec 2022 11:47:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235755AbiLVTdw (ORCPT + 99 others); Thu, 22 Dec 2022 14:33:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235709AbiLVTdc (ORCPT ); Thu, 22 Dec 2022 14:33:32 -0500 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8928EEE1C for ; Thu, 22 Dec 2022 11:33:28 -0800 (PST) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 4C0642021C; Thu, 22 Dec 2022 20:33:26 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org, Will Deacon , Joerg Roedel , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Lux Aliaga , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Dmitry Baryshkov , Thierry Reding , Melody Olvera , Bhupesh Sharma , Douglas Anderson , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v5 3/4] arm64: dts: qcom: sm6125: Add apps_smmu with streamID to SDHCI 1/2 nodes Date: Thu, 22 Dec 2022 20:32:53 +0100 Message-Id: <20221222193254.126925-4-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221222193254.126925-1-marijn.suijten@somainline.org> References: <20221222193254.126925-1-marijn.suijten@somainline.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1752944836187148786?= X-GMAIL-MSGID: =?utf-8?q?1752944836187148786?= When enabling the APPS SMMU the mainline driver reconfigures the SMMU from its bootloader configuration, losing the stream mapping for (among which) the SDHCI hardware and breaking its ADMA feature. This feature can be disabled with: sdhci.debug_quirks=0x40 But it is of course desired to have this feature enabled and working through the SMMU. Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: Martin Botka --- arch/arm64/boot/dts/qcom/sm6125.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi index 347665c2067c..32dd172ea104 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -468,6 +468,7 @@ sdhc_1: mmc@4744000 { <&gcc GCC_SDCC1_APPS_CLK>, <&xo_board>; clock-names = "iface", "core", "xo"; + iommus = <&apps_smmu 0x160 0x0>; power-domains = <&rpmpd SM6125_VDDCX>; @@ -494,6 +495,7 @@ sdhc_2: mmc@4784000 { <&gcc GCC_SDCC2_APPS_CLK>, <&xo_board>; clock-names = "iface", "core", "xo"; + iommus = <&apps_smmu 0x180 0x0>; pinctrl-0 = <&sdc2_on_state>; pinctrl-1 = <&sdc2_off_state>; From patchwork Thu Dec 22 19:32:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 35931 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp132384wrn; Thu, 22 Dec 2022 11:45:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXvVdLUcbyigdEL7Fg/pKs42P/fuN+YPlqlmqt2ecAeD4gKZFAw5QPqKwfpxeI+RLrpZ1CE9 X-Received: by 2002:a17:902:bc45:b0:191:3c3d:86fd with SMTP id t5-20020a170902bc4500b001913c3d86fdmr7634495plz.48.1671738358918; Thu, 22 Dec 2022 11:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671738358; cv=none; d=google.com; s=arc-20160816; b=LgmGLL4MySOXoRhNH6UYPXDRQuRRX6cNGYT56CiSKHQVoWY6Dsdyk6uV3Ijf5Ch5o2 ii/84HKCupN/nkpmqYKYnXUtgFgXbMOrIiPT2cdYuNHisbxkPsG+2VSkvSOe5lTV1oc7 xQ8Ah127HhGzMn3+2jO5onta5msGej0vbjaPN4vicKJHApw7OpxlIjgGZBblEyNllZ4p vvAhoDnenrufpJiH2NSAkuSTSaV95kC+Ty5r7wk879ZrWcw+79ifLmus+9oJAo8JnvP1 wr9+hnxYmBlKw7bGHaUI5e2xSy3Y5vAFpIXoUnEt0fZHumANaJOqmT+1Mm+c/8+po4gn 5LNg== 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; bh=opHsEwjQ9MZiSNjntpHjuJqem8S2fiR/g+msNaNM/E4=; b=MLBecE0LpQ4DuLeuEcTlcfe2V4sevvfOlL1azi3ofAH1lLlbywP6HbjSn1KPQITt0L 11Ig4/9ohXWphu/45euRTt1J1aY/hl/GGuELIKsM7iz3hC3NpOThpoa9E8SACwzM07ro H3NRuHOfRysWVzwzlQMPWcTneWzefTzsuIsPMWzy7xUHe02hvQg1fac6MkTaK5u2CxDR 65cYi+YFOxpjAi8+IClooCzrJVoHtUH1TRUVWNnenYI/ZYW5K8zz4wtRY8ynbZx1Jxj3 AYghQJWaAROAt/q7UVMP8CCrOp6urvEKcf1pikvpwVF2Kb+98vvg68ktLdmht5G/vYif ohYg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja10-20020a170902efca00b00176d5b20ebesi1240657plb.355.2022.12.22.11.45.46; Thu, 22 Dec 2022 11:45:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235843AbiLVTd5 (ORCPT + 99 others); Thu, 22 Dec 2022 14:33:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235178AbiLVTdm (ORCPT ); Thu, 22 Dec 2022 14:33:42 -0500 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [5.144.164.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C06118E25 for ; Thu, 22 Dec 2022 11:33:29 -0800 (PST) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 47C382021E; Thu, 22 Dec 2022 20:33:27 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org, Will Deacon , Joerg Roedel , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Lux Aliaga , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Dmitry Baryshkov , Thierry Reding , Melody Olvera , Bhupesh Sharma , Douglas Anderson , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v5 4/4] arm64: dts: qcom: sm6125: Add IOMMU context to DWC3 Date: Thu, 22 Dec 2022 20:32:54 +0100 Message-Id: <20221222193254.126925-5-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221222193254.126925-1-marijn.suijten@somainline.org> References: <20221222193254.126925-1-marijn.suijten@somainline.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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?1752944721638139438?= X-GMAIL-MSGID: =?utf-8?q?1752944721638139438?= From: AngeloGioacchino Del Regno Add an IOMMU context to the USB DWC3 controller, required to get USB functionality upon enablement of apps_smmu. Signed-off-by: AngeloGioacchino Del Regno Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: Martin Botka --- arch/arm64/boot/dts/qcom/sm6125.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi index 32dd172ea104..7c326368e30d 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -542,6 +542,7 @@ usb3_dwc3: usb@4e00000 { compatible = "snps,dwc3"; reg = <0x04e00000 0xcd00>; interrupts = ; + iommus = <&apps_smmu 0x100 0x0>; phys = <&hsusb_phy1>; phy-names = "usb2-phy"; snps,dis_u2_susphy_quirk;