Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2354549rdb; Mon, 20 Nov 2023 08:44:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEB+PjpzjlP+yosmcXRfWYAw5PPN1T7N1bbfYdWCIBgYdlfkQLf1T9sBC3QIfV77Z6+usn6 X-Received: by 2002:a05:6a00:3687:b0:6be:b7c:f703 with SMTP id dw7-20020a056a00368700b006be0b7cf703mr7341515pfb.5.1700498651334; Mon, 20 Nov 2023 08:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700498651; cv=none; d=google.com; s=arc-20160816; b=G7RieTzpKZoRbIeUQf7xAbnOZpmf+4/OZGf2UvMTsFzkHkFL94svk9mg/tL2sLmZRu bJ3h5Wu58vuuP/41TtS1g0U/5i/QH7ynzeOUXhdymrmoa46n5oSabjrGX5cgjIZXi+8I SZ7e4O6l7zqKK3aBKqVNGrIhRgT1OUaA9oUsYi24iV6Wode2nWCaxS//ulQL7yVl7E+/ e5HVkMOIVZlVn4DZnCQihDgUQ6YnHap9EAiE+qRlwSbmfu5ja5jqJaJ+cxVpPmXJEXQ3 F5i67FCZRkioRSV4cuIoB6L//N2BlmXw1yvu28wl8KwN+Bve2jM5kY3c4mPX+Zx/d/65 kXcg== 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=7eygnY5inIN9Qp86tZ8h6bmnZhXxY0mvGcMZlWj5qoM=; fh=ZYNFq65wL8hH7GNJ8n6Erkd05RSa1ktC5ei4g8Ycpw0=; b=gLWG8WsuXuZ6JE6kcxBigqNT181Bfkwm3R8HzQQ/EPgVDSHgZm06gV2ytWBxbNzZus u3vYNN4GYmWJSY609mRSHA0t+znyWhweQwIZ7RqEmhOCPXDLSHkXlf0JrmlL/0yo3hoC JSw2t7p5FTXBtgOWAy1q7t0JsaFFcbR9g7e6WykDPOqPfrsk1QQKXXxax+M6nr52S0p5 BVBH4hTxot9pOMhfuEPpI7zjEnO4fmTNJp3x5mfeQJShzdeZ3TgXxc0azqkM+CcNpmWs prARbqOzdkCf7wZ4IHyWo8jZh4UqKRDzl0W/6FBhKs0y36uguDQTWWhpfybyV/g9r4Zs nFbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dj24ZU5u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id k69-20020a638448000000b005c1b59032b5si7951837pgd.453.2023.11.20.08.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 08:44:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dj24ZU5u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BD88480310C2; Mon, 20 Nov 2023 08:44:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232085AbjKTQnu (ORCPT + 99 others); Mon, 20 Nov 2023 11:43:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbjKTQnm (ORCPT ); Mon, 20 Nov 2023 11:43:42 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD55A11A for ; Mon, 20 Nov 2023 08:43:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51C40C433C9; Mon, 20 Nov 2023 16:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700498618; bh=+Ar1REc9iSNSsQKI6onbihtH4tiiceO/IqivJRYfeYE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dj24ZU5uMdnb7es8St9ebJIndn2fhSD1MflPpSEoNCQBh2QUcAqKGFqU7A9VLO1hh 9LFiUnVL8oxNqoI0M5Xw91IPFll/L4sVfdXJywev1WgpbtfrOavICoOqiyCoNFwTT5 8MWOiETAKZU7m+iBuCfjI7ngMLJknpeks6aykD6jGPa4Pzl0D98t85+DQJfbsgO1Pe s50Il6Lfwas7VAcZINC262F8R4WevXnH9HURyOXj1IJGxy9l4Cj8mm5lWcLBYQWDK0 XuJWG5FxCyFrzVWi6GQqWf0sm4atJfrMzcmJGNp5hoP2yXMc//KZmk7U/7jV8+kZDx zWgV/u2RKWq7g== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r57NE-00027V-0E; Mon, 20 Nov 2023 17:43:48 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Shazad Hussain Subject: [PATCH 02/11] arm64: dts: qcom: sa8775p: fix USB wakeup interrupt types Date: Mon, 20 Nov 2023 17:43:22 +0100 Message-ID: <20231120164331.8116-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231120164331.8116-1-johan+linaro@kernel.org> References: <20231120164331.8116-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 08:44:00 -0800 (PST) The DP/DM wakeup interrupts are edge triggered and which edge to trigger on depends on use-case and whether a Low speed or Full/High speed device is connected. Note that only triggering on rising edges can be used to detect resume events but not disconnect events. Fixes: de1001525c1a ("arm64: dts: qcom: sa8775p: add USB nodes") Cc: Shazad Hussain Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index b6a93b11cbbd..4b42a329460c 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -1610,8 +1610,8 @@ usb_0: usb@a6f8800 { assigned-clock-rates = <19200000>, <200000000>; interrupts-extended = <&intc GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>, - <&pdc 14 IRQ_TYPE_EDGE_RISING>, - <&pdc 15 IRQ_TYPE_EDGE_RISING>, + <&pdc 14 IRQ_TYPE_EDGE_BOTH>, + <&pdc 15 IRQ_TYPE_EDGE_BOTH>, <&pdc 12 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "pwr_event", "dp_hs_phy_irq", @@ -1697,8 +1697,8 @@ usb_1: usb@a8f8800 { assigned-clock-rates = <19200000>, <200000000>; interrupts-extended = <&intc GIC_SPI 352 IRQ_TYPE_LEVEL_HIGH>, - <&pdc 8 IRQ_TYPE_EDGE_RISING>, - <&pdc 7 IRQ_TYPE_EDGE_RISING>, + <&pdc 8 IRQ_TYPE_EDGE_BOTH>, + <&pdc 7 IRQ_TYPE_EDGE_BOTH>, <&pdc 13 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "pwr_event", "dp_hs_phy_irq", @@ -1760,8 +1760,8 @@ usb_2: usb@a4f8800 { assigned-clock-rates = <19200000>, <200000000>; interrupts-extended = <&intc GIC_SPI 444 IRQ_TYPE_LEVEL_HIGH>, - <&pdc 10 IRQ_TYPE_EDGE_RISING>, - <&pdc 9 IRQ_TYPE_EDGE_RISING>; + <&pdc 10 IRQ_TYPE_EDGE_BOTH>, + <&pdc 9 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "pwr_event", "dp_hs_phy_irq", "dm_hs_phy_irq"; -- 2.41.0