From patchwork Wed Dec 20 23:54:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Hasemeyer X-Patchwork-Id: 181915 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp84911dyi; Wed, 20 Dec 2023 15:59:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IH++ecxql7wvZ3ALwF57iR7bniCDNQ+LwrYXP8mL4KMKI1GI4G5jKvUHXUXw5v28emWyezH X-Received: by 2002:a05:600c:68c8:b0:40d:28ce:e6d0 with SMTP id jd8-20020a05600c68c800b0040d28cee6d0mr113067wmb.335.1703116785446; Wed, 20 Dec 2023 15:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703116785; cv=none; d=google.com; s=arc-20160816; b=jGbX2v1r5Rk1A0gPIZZgC5H2k3gzUKsPLNde/vl4xBM0OZ4uVqm6fPJ1fVrLG+T3F4 sxkFfh9ekvxiUpkfWqey1TVvlHC77Tan10O7pRAvLYC7jdGqWqI+hZYafGinJxPKpmkN 85vN55km5hTquBekGPM6G4wSqpQsrCeAf2BxlT2TwtGLKHp+ae+K/0MBnXn5sjB8nc6v nURg9xZxHiV/sX17aUtjlf/ED58JyIpcaxCpu5ssv8yZq/ul1t579/Q9HjIPr2J+Mljo PLSJplSmRn6J4pd3M0PmV5rYiydIfGEQxT+Xw6SlH/xnswr3JnuieGnWSX/DxOhpej1n pSCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bZuPqRxkPW8qurxjYx07gjm1CYO7d9uELmdtkiZRYco=; fh=DoMYUhl5tOTLVRet2nx3vQSkG+qPk5uG7MWTiNxxD1k=; b=Bo1GYt8veIC6Be4YuYst6kauu8bJA58TC0kjUbvA69A7N2VN6ZmsEfxNzsoFQ78AWv TQbOU4DtJMRHPK/0JAU5Q4AIZFDYxaMgdlk7pZ5OuOCdeO7Vkyct5Zcwusvfr20NlD7o EGhHeZRxlfYTMyBysp1moWoR7q5Tj5jkVVHU0lDCvATk8OsCAnsG5aRMk2kp03/TrCog j9sd6J+8LxihcGYBSl//WexHI11WV3SZcBSctMFn18zrt2JPHNXN5Eb5VS6BAKb8wc+5 d5fTb2o4WyHUGaj52ZtqFSkScjXzuBXkiDsXWR2JtjVR/fk8ynqxtJf8qOCJJIINud1I J8EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MnbpjDzK; spf=pass (google.com: domain of linux-kernel+bounces-7667-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7667-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a14-20020a1709065f8e00b00a235a6089d3si287340eju.885.2023.12.20.15.59.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 15:59:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7667-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MnbpjDzK; spf=pass (google.com: domain of linux-kernel+bounces-7667-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7667-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 165171F211DD for ; Wed, 20 Dec 2023 23:59:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A644B4F8AA; Wed, 20 Dec 2023 23:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="MnbpjDzK" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7F104C3D6 for ; Wed, 20 Dec 2023 23:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-7b7fe0ae57bso9904539f.0 for ; Wed, 20 Dec 2023 15:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1703116521; x=1703721321; 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=bZuPqRxkPW8qurxjYx07gjm1CYO7d9uELmdtkiZRYco=; b=MnbpjDzKOaN/BhBdGaCtMaiJ3xpNomM8j7iiMCSYgNHNCA14g3C3/pl1vTx3i/Xd4G O0n5Z+HAjQLECf/wNCBpzhNbPUts/tkrVXgKOiO2xfev8yiZtEGP/iAJVY1OnK5pYN1t PTvB3j+nNoIZIY4R4v2vFaCHx4LXB0tt65sd8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703116521; x=1703721321; 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=bZuPqRxkPW8qurxjYx07gjm1CYO7d9uELmdtkiZRYco=; b=OaHY5S6IC8Qka2kGTuo4Zp4FClObGMu9uij+ibLxoND6xBWqUfax9NXDERfDl6ym00 u97BQl3V8GWWaVm+6rC8imyGN4JPm3WQf4ZiAbQYxkqlgTVQgC2px5KDAejj+tsK7bhz uvlXPto9eeHdGYHzn2V3IAvfj5VYpUW8qYvlUWvYJTpbYJiLBqi1trObvC32qIuAfKbI /VS/pS89zbl2VNP/AzLpHMbGnNMFHK4JO6KYb0DGLLOfwsm8onR4vywg7WMVJSeKngci Zyi3lynAxhpb3blXXzKrqKv3Z060bNDQECTCCOyGErgcCSOQ829xMTerJSxlq7oqMU3l Tosg== X-Gm-Message-State: AOJu0Yzyu5BHaSxLER6tj7/JTbuQqE5ixttriA5Xm+mQVRhc2r40XdPB fMiPSJOLfYQKZLEi91w92UKVpljFTkNC+ogIviU= X-Received: by 2002:a05:6e02:1ba3:b0:35f:c678:9509 with SMTP id n3-20020a056e021ba300b0035fc6789509mr3542419ili.48.1703116520994; Wed, 20 Dec 2023 15:55:20 -0800 (PST) Received: from markhas1.lan (71-218-50-136.hlrn.qwest.net. [71.218.50.136]) by smtp.gmail.com with ESMTPSA id bp22-20020a056638441600b0046b39a6f404sm177805jab.17.2023.12.20.15.55.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 15:55:20 -0800 (PST) From: Mark Hasemeyer To: LKML Cc: AngeloGioacchino Del Regno , Krzysztof Kozlowski , Tzung-Bi Shih , Raul Rangel , Konrad Dybcio , Andy Shevchenko , Rob Herring , Sudeep Holla , Mark Hasemeyer , Bjorn Andersson , Conor Dooley , Krzysztof Kozlowski , Rob Herring , cros-qcom-dts-watchers@chromium.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 14/22] arm64: dts: qcom: sc7280: Enable cros-ec-spi as wake source Date: Wed, 20 Dec 2023 16:54:28 -0700 Message-ID: <20231220165423.v2.14.I7ea3f53272c9b7cd77633adfd18058ba443eed96@changeid> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231220235459.2965548-1-markhas@chromium.org> References: <20231220235459.2965548-1-markhas@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785847386107998711 X-GMAIL-MSGID: 1785847386107998711 The cros_ec driver currently assumes that cros-ec-spi compatible device nodes are a wakeup-source even though the wakeup-source property is not defined. Add the wakeup-source property to all cros-ec-spi compatible device nodes to match expected behavior. Signed-off-by: Mark Hasemeyer Reviewed-by: Douglas Anderson --- Changes in v2: -Split by arch/soc arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 1 + arch/arm64/boot/dts/qcom/sc7280-idp-ec-h1.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi index 9ea6636125ad9..2ba4ea60cb147 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi @@ -548,6 +548,7 @@ cros_ec: ec@0 { pinctrl-names = "default"; pinctrl-0 = <&ap_ec_int_l>; spi-max-frequency = <3000000>; + wakeup-source; cros_ec_pwm: pwm { compatible = "google,cros-ec-pwm"; diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp-ec-h1.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp-ec-h1.dtsi index ebae545c587c4..fbfac7534d3c6 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp-ec-h1.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp-ec-h1.dtsi @@ -19,6 +19,7 @@ cros_ec: ec@0 { pinctrl-names = "default"; pinctrl-0 = <&ap_ec_int_l>; spi-max-frequency = <3000000>; + wakeup-source; cros_ec_pwm: pwm { compatible = "google,cros-ec-pwm";