Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp252889imn; Wed, 27 Jul 2022 05:25:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uZIPvEQiWG911TBComRn8vUHc5/0qE+hco3DWKjsfbM057/3y8skalTs0dNzd4gBotS/F1 X-Received: by 2002:a05:6402:3293:b0:43b:c82a:1a45 with SMTP id f19-20020a056402329300b0043bc82a1a45mr23115521eda.349.1658924746306; Wed, 27 Jul 2022 05:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658924746; cv=none; d=google.com; s=arc-20160816; b=L3Q4piYaUEZD+hj5/RlR1xWlgjFvLTRf82OTk5yJBTcdazC66W3VlaRQe6L3SX79x8 WLfOLIlzqqQrObfc73Qh9O4Q3h1bHQXlJrMxleZJS/zPwdn4Xlu51nqg9VpqHKt37lCy wxglhClJLEkBRmkFWN12FMnMAxGu4s4I48tw77l9UMStegG+YfuWZzJb3/UVEyG5aRAW Wmx4ZRQOO/eiok2YFCZh72J6FGte4Qj0RJyTpb8a9wl7AFfu0HmQNY/q47d2/8S4uYiM FH+l0C15ogG10JYyd/rJNB/EXb/dREL4hqakLfeBqv0n2Us0Prnu7trh1shxMLVkOvv9 vnWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=P+2FHV1UyVrnsYNntWHopzv4+MXcff3Of4ioJzVnCGI=; b=bUkzchqBpA5ORmIQPIZGcw6ZgJNyVL+XQto82rp585l6cyfA7gwTR4iYHcKSNCvFhR PCj7AR10DgGC5M4mTr+GqOhAWSfaKcRF+ifYRTuFdusMzRSSXzWg3PgvARE4YuglDC5T zATaD1tc2gOhy3Czxm95bNpsrv6Ru35hty7KviH1hYTqqgXa7C/MfRmn/0deEmza1myG oudge/fTO3j3f6nPH789VkTOxN4ofgqNWsWfPdXj55ayckCd0vErg86Jwkcbtis4leCw WDx9z3o6Zc8H8S425/9YD0jzF4d6TF/6CgP0gZRjIRLck0KoI13xGitmauNzAUntqVXY ptZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AnjWDI8t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr16-20020a1709073f9000b007262ad8839esi21086273ejc.16.2022.07.27.05.25.21; Wed, 27 Jul 2022 05:25:46 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=AnjWDI8t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232206AbiG0MH4 (ORCPT + 99 others); Wed, 27 Jul 2022 08:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232623AbiG0MHz (ORCPT ); Wed, 27 Jul 2022 08:07:55 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D0C4B489 for ; Wed, 27 Jul 2022 05:07:53 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id w18so8510007lje.1 for ; Wed, 27 Jul 2022 05:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=P+2FHV1UyVrnsYNntWHopzv4+MXcff3Of4ioJzVnCGI=; b=AnjWDI8tr9bmZBYUFMj9WPOl3m53p4x/SYpzv83Z2ehj6b2z5tMohFMPs66mns4vtc F/SNUthfL0SBnMR6A5PHNawbqprmZHCGM8GPGB15ac2wkhyNqIl1KNLdyBx61K+BAUNL jocFxnN7BpnKnJ6SSfKw6fW/CS1mnG4kGf3tr9tXRV49p8zNvIPdzlwfffMHUsqkw5jR vUEDwdjzBSf7aCCkIaQBkGOMv6Hh3n6kPErwGpbNTbtC015ZZXyQLxlpQDEWD0bnXXNz y30vudbTCmTfC10TrgUQx+B9RbsZ6WMfh6Ukm66KrPi9H8m7J2ALrcwfnlnV1kDfRvY8 lKbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=P+2FHV1UyVrnsYNntWHopzv4+MXcff3Of4ioJzVnCGI=; b=w2PRi28RuLl91Ow7OFRh4ZPlA3xWjX97TSIhrrmzQ2p5Szg4uOXLbMOI9MvKS3b9l/ Q50CVLH7KtBqyYi9OmuNZJPz5f4VUkNuscBpzy30r1Z4cJGzxbz24iMdzzFnWLBc3fPv mxT6CM1UthX5p9AtPB1jvXdt56st+EYRMcku/tO95dQHeKmIIk1Couv5PGYNYHTtYJGf AhRp6JwoYP7goi1IH+9ZhLX9q4yGIdnM7b8K5ywbJWok1w+LQczle261N6vDafQc3vbf PX5zPIsyvTtkii7oBOas3ldAMWoKnOAbYaqe5PJ7jhh7rQuDZLWalCdeKBrmwaOYnLiP BXjQ== X-Gm-Message-State: AJIora+F6mz7vl9tIgS6fldNuX4/N462IYc8rOvMFObyWRoV/SiA50A4 t80i2sEGz0kMu06ISGk17K3sUg== X-Received: by 2002:a2e:8898:0:b0:25d:fc17:5efe with SMTP id k24-20020a2e8898000000b0025dfc175efemr7083795lji.132.1658923672053; Wed, 27 Jul 2022 05:07:52 -0700 (PDT) Received: from [192.168.3.197] (78-26-46-173.network.trollfjord.no. [78.26.46.173]) by smtp.gmail.com with ESMTPSA id b14-20020a2eb90e000000b0025dda2c8013sm3912287ljb.28.2022.07.27.05.07.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jul 2022 05:07:51 -0700 (PDT) Message-ID: <372e37bf-ac90-c371-ad9e-b9c18e1cc059@linaro.org> Date: Wed, 27 Jul 2022 14:07:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2 1/2] dt-bindings: riscv: Add optional DT property riscv,timer-can-wake-cpu Content-Language: en-US To: Anup Patel , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Daniel Lezcano , Thomas Gleixner Cc: Andrew Jones , Atish Patra , Samuel Holland , Anup Patel , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220727114302.302201-1-apatel@ventanamicro.com> <20220727114302.302201-2-apatel@ventanamicro.com> From: Krzysztof Kozlowski In-Reply-To: <20220727114302.302201-2-apatel@ventanamicro.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 27/07/2022 13:43, Anup Patel wrote: > We add an optional DT property riscv,timer-can-wake-cpu which if present > in CPU DT node then CPU timer is always powered-on and never loses context. > > Signed-off-by: Anup Patel > --- > Documentation/devicetree/bindings/riscv/cpus.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml > index d632ac76532e..b60b64b4113a 100644 > --- a/Documentation/devicetree/bindings/riscv/cpus.yaml > +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml > @@ -78,6 +78,12 @@ properties: > - rv64imac > - rv64imafdc > > + riscv,timer-can-wake-cpu: > + type: boolean > + description: > + If present, the timer interrupt can wake up the CPU from > + suspend/idle state. Isn't this a property of a timer, not CPU? IOW, your timer node should have "wakeup-source" property. Now that's actual problem: why the RISC-V timer is bound to "riscv" compatible, not to dedicated timer node? How is it related to actual CPU (not SoC)? Best regards, Krzysztof