From patchwork Sat Jan 22 16:29:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 534125 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 E4CC1C433FE for ; Sat, 22 Jan 2022 16:32:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234410AbiAVQco (ORCPT ); Sat, 22 Jan 2022 11:32:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234417AbiAVQcn (ORCPT ); Sat, 22 Jan 2022 11:32:43 -0500 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 900E8C061401 for ; Sat, 22 Jan 2022 08:32:43 -0800 (PST) Received: by mail-qt1-x830.google.com with SMTP id h15so13913185qtx.0 for ; Sat, 22 Jan 2022 08:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yytaQK4pyBTgcORVSfAC8IIQ7r3FKCldXSAlA4X5ZAc=; b=JbODOxkureyDd6BlMa3c9+Zvr0tWVR2dLa0xPFtlm3jlLmewmc6VQZARSWrYOYy+c7 Ykbx2hPeA11vv8E/ThZVvcoO8nKOnSVdhtCVzsBYJOGCA+tfUukZ17TvDP+k1BqSobHe livmTr86Xj2BjB23/lY/6O5P8K4xKMoC3Tu/wKrJUYBK30Eyu95zZeA2ugmBXBZpk7/f vjJ6GQOwPj/SEWZoz/70af9vbIz78r+QLvKQn0DIIleS4PKZSFx9M+L/BuA7mpPJHcRo z9UZu/c4asQrg1OwcKWjhZkUTitfCMyH5GswFBNXibUgABFfroAX+XApsQ4uTVsPq0VS Ri1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yytaQK4pyBTgcORVSfAC8IIQ7r3FKCldXSAlA4X5ZAc=; b=jNIr0sQrdD87hszC6IZOwMkIU7dgo3w8/Ey4nifZN/d7aN/Ymw/PGu8g7ucLhlAqM8 0i7ZY9lDkW/8Qka5xG3GhBQQgH/fJGnPhdo0kj4bsALgIsouOGhiWM+aJtZ2gN+VdoTM EchPp2Y35zqUAcY7m2xlX1cyMMSaIOFRWAwirnxpuXj/JWLQeSfB6ch9jsQzkm/wTGA7 xakoZsNNKBYCSeWu92NlvZmHg/aXuP9YdMDJulKFUipjZNoE18lxfySTBUQDSQYb2g3C amc/EBOmNrGS6JHMCfCGOy1ChqE6JgqectMcHgEhU9BkmAhIzX/ryagakmi+O9DBXwvz CMKA== X-Gm-Message-State: AOAM5320UaS7hB+7Le47eu4330Snm28T9Bh8I/V88vlXgbyMt+RExGwp G8S4VLow7HvOEwW7uNP5cp/zA7U9ApU96t3U X-Google-Smtp-Source: ABdhPJz1yADdbnA+8ufV2Vm2c5iiVuYvtpZS7GWHdU6WKMSEtlso9IJNFoBmAlKi9I5GJh2E3y/EZw== X-Received: by 2002:a05:622a:1cb:: with SMTP id t11mr5526136qtw.200.1642869162462; Sat, 22 Jan 2022 08:32:42 -0800 (PST) Received: from localhost.localdomain (modemcable134.222-177-173.mc.videotron.ca. [173.177.222.134]) by smtp.gmail.com with ESMTPSA id b140sm4806440qkg.108.2022.01.22.08.32.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jan 2022 08:32:41 -0800 (PST) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Rob Herring , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] arm64: dts: qcom: sm8450: enable GCC_USB3_0_CLKREF_EN for usb Date: Sat, 22 Jan 2022 11:29:31 -0500 Message-Id: <20220122162932.7686-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org USB doesn't work at all without this clock enabled. This fixes USB when not using clk_ignore_unused. Fixes: 19fd04fb9247 ("arm64: dts: qcom: sm8450: Add usb nodes") Signed-off-by: Jonathan Marek Reviewed-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 7611ceaa918af..5a98f2aad7099 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1442,9 +1442,10 @@ usb_1: usb@a6f8800 { <&gcc GCC_USB30_PRIM_MASTER_CLK>, <&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>, <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, - <&gcc GCC_USB30_PRIM_SLEEP_CLK>; + <&gcc GCC_USB30_PRIM_SLEEP_CLK>, + <&gcc GCC_USB3_0_CLKREF_EN>; clock-names = "cfg_noc", "core", "iface", "mock_utmi", - "sleep"; + "sleep", "xo"; assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, <&gcc GCC_USB30_PRIM_MASTER_CLK>; From patchwork Sat Jan 22 16:29:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 534288 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 6160CC433F5 for ; Sat, 22 Jan 2022 16:32:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234451AbiAVQcv (ORCPT ); Sat, 22 Jan 2022 11:32:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234480AbiAVQcr (ORCPT ); Sat, 22 Jan 2022 11:32:47 -0500 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5B73C061744 for ; Sat, 22 Jan 2022 08:32:46 -0800 (PST) Received: by mail-qv1-xf2d.google.com with SMTP id 15so14427552qvp.12 for ; Sat, 22 Jan 2022 08:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xi6Epe+O63qC2bPYwLhP+7XAxexroUTZOcN3RjcdwYc=; b=zZiWJkEJj7gkgpFfiL8+Qcq3iYCvUKc4tQa1qAYdIa4FzHEprH5jH3QbvhRB9OV0H3 NYvDLa3z02FmjRs/pdWWyPtMolo32YfSQztd1ETs7yydgO+HAKRdvPlUM58iRk1VQGjQ 9H0iiIoGR1EQm2nuOIhswXYyj8FFD90Slnvk5nRbXkOiRlm5gVlzD1phJXKRf0der5WK w7TgmoYFlG2etXShrW3MnokTMiCOmIXWUHOmGZmUN1/9KQBzCM6vAJah7MMVTcnLtUDi r6IHTISIhhAX8iYe44o8VklWfb3Y0/ILg4mLgu3xo4gSip4E96tPgGgoDuqMHHWITKxr tdjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xi6Epe+O63qC2bPYwLhP+7XAxexroUTZOcN3RjcdwYc=; b=YJKv1H8JdwN+y90RCywzNekTV2xK6u6X+ZbrcE+K/4L1CgYfE9w/nT1B3JZ/eJ6u9e ba8R6WXr7TyHTNRRiRFteLkLnfHn19xUtiUllU8qpr2cVHrqcvmWHBdOV04O4fD2S0+l fAOqaw2E7FXKsr6nEg0FAIkhmeuoAX4EPv6edE+OfZf8jpMvNb8WNihwYdIY4lNd7LAc DXCG4xEHJ+iYLm9O62evOIdDZ5o7lNGCc0gd1F+4ZIoQ01eiYjr/HdYfgKz/XByMFZB3 AoqlOqBR37c+o5qQ7KqEXHL5of3S3mOZeyT5LC/fTaj3vaqcLY7i0JjkfCOY14s01+sh PUDw== X-Gm-Message-State: AOAM531uuQEVcXCAdQ7k/6U7sex8X/pb9g3JkU9OJQ0B7YJZzd83dVts GcKLvdmo7mhbgOKfZoXt0EqsPC1AAhGJULuS X-Google-Smtp-Source: ABdhPJwb/Jm99YoLQ3/xxKudwqDLeXqNgcKFveEo5sXqa3tcV0J1phIo5ww72GLZhP9AFEiuthcbKA== X-Received: by 2002:a05:6214:4008:: with SMTP id kd8mr8123868qvb.5.1642869165665; Sat, 22 Jan 2022 08:32:45 -0800 (PST) Received: from localhost.localdomain (modemcable134.222-177-173.mc.videotron.ca. [173.177.222.134]) by smtp.gmail.com with ESMTPSA id b140sm4806440qkg.108.2022.01.22.08.32.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jan 2022 08:32:45 -0800 (PST) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Rob Herring , Konrad Dybcio , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] arm64: dts: qcom: sm8450: fix apps_smmu interrupts Date: Sat, 22 Jan 2022 11:29:32 -0500 Message-Id: <20220122162932.7686-2-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20220122162932.7686-1-jonathan@marek.ca> References: <20220122162932.7686-1-jonathan@marek.ca> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Update interrupts in apps_smmu to match downstream. This is fixes apps_smmu failing to probe when running at EL2 (expects 96 context interrupts) Fixes: 892d5395396d ("arm64: dts: qcom: sm8450: add smmu nodes") Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 5a98f2aad7099..aef8b6814cda0 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1076,7 +1076,7 @@ apps_smmu: iommu@15000000 { compatible = "qcom,sm8450-smmu-500", "arm,mmu-500"; reg = <0 0x15000000 0 0x100000>; #iommu-cells = <2>; - #global-interrupts = <2>; + #global-interrupts = <1>; interrupts = , , , @@ -1163,6 +1163,7 @@ apps_smmu: iommu@15000000 { , , , + , , , ,