From patchwork Thu Nov 9 00:43:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 743175 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD1A710F8 for ; Thu, 9 Nov 2023 00:43:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RAxkPt55" Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 422CF19A3 for ; Wed, 8 Nov 2023 16:43:16 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-409299277bbso1631985e9.2 for ; Wed, 08 Nov 2023 16:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699490594; x=1700095394; darn=vger.kernel.org; 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=nHJqLlqe6wRkJrD0GLv7Y/DjDcegCAylpgYGBIqvOCI=; b=RAxkPt55ER7DW9zvGVb+L8lWXv9xBeT/T68tuEN4RL/R1JupQZtZuINAe+KmmIwoAp b79oVmqscYX2vypU3N8V0V0cbDVo24GyNmSQZyz9hV+2hZAtpfATJPmknH9lWxe+68T9 BxhrGPwSOPLH7xL+Rr+2Se0hr29oL/SV7VrvrafGal7+R6QBl7TTl/QmKh2cI5Dlwb8v Qg2NzoXXbx6v5aA5WNM7BR0z6UaMsbmcZNT5xCti+iwmuOeXTFiXU63SFY7aup876q1N LdsJulZdXBS9yUPcbZxc/QOrnDk9iPlcTgPUcbkKUpofnQtmFBwpfs7Odtof947fhAe3 7asg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699490594; x=1700095394; 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=nHJqLlqe6wRkJrD0GLv7Y/DjDcegCAylpgYGBIqvOCI=; b=OozT1+eaA0ORU0v6XHXQ8pxQPzaU1uRJskD2CCIBtbqy4A5tHk5SHWlRFvqTYnCuCF 9CPvIb8f8gPq32T1NTx7nZTfKv71qWppne7Esb/AlwQ85rJBb9jqaXZNd8n6QwwlGAl3 uDawqCrWgAakaKkfkRBxZXCe8YLYYoVnbSepiApA2FPzZgAvq2Y9+DeRSYabskWEklGE IcHi2C3MtIQMpY9BvFqMb9rVuerfBi736hYC91BQTDZ8Imj2/72tRJbtfrCzTwbdiSrl YtBwbyGJYAM2A/aQKXwFyz4JAC76Ave9zQjWdLcXiogjKBNqATDbLe114rIgrzZWccOx 5EIw== X-Gm-Message-State: AOJu0Ywd6Da9kTCRRjdXYkFfDebXOTdY3x4xxJjWts+uj4wYc/5Gc3gG mECX5yhvLZewRmlBNqrgpyZwEw== X-Google-Smtp-Source: AGHT+IEM4OjFVNsf960irWhK3nF2VhTJmbtwy5XzCXHS5VZhubYh39HLYNITjA+ndRBFxJH3lHiC0A== X-Received: by 2002:a05:6000:4014:b0:32d:b991:1a71 with SMTP id cp20-20020a056000401400b0032db9911a71mr2756601wrb.0.1699490594797; Wed, 08 Nov 2023 16:43:14 -0800 (PST) Received: from sagittarius-a.nxsw.local ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id y18-20020a5d4ad2000000b00323287186aasm6099238wrs.32.2023.11.08.16.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 16:43:14 -0800 (PST) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, dmitry.baryshkov@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 1/1] arm64: dts: qcom: sm8250: Add wakeup-source to usb_1 and usb_2 Date: Thu, 9 Nov 2023 00:43:11 +0000 Message-ID: <20231109004311.2449566-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231109004311.2449566-1-bryan.odonoghue@linaro.org> References: <20231109004311.2449566-1-bryan.odonoghue@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 To test out a different GDSC change I wanted to have a USB keypress resume a system in suspend. Adding wakeup-source to usb_1 and usb_2 "just works" for me on rb5. Consistent with qcm2290 and sa8775p add wakeup-source to the dtsi for the SoC. Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index e43a16df4c7ec..c2d929e62c840 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3878,6 +3878,7 @@ usb_1: usb@a6f8800 { "dp_hs_phy_irq"; power-domains = <&gcc USB30_PRIM_GDSC>; + wakeup-source; resets = <&gcc GCC_USB30_PRIM_BCR>; @@ -3942,6 +3943,7 @@ usb_2: usb@a8f8800 { "dp_hs_phy_irq"; power-domains = <&gcc USB30_SEC_GDSC>; + wakeup-source; resets = <&gcc GCC_USB30_SEC_BCR>;