Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6715046rwb; Tue, 15 Nov 2022 02:40:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5IrbQtQyA8Y6SOJ8TRCrcpESEcrPHDzpigykAmNwrpcYyF5GmU1q80Z067LtteUkldLopE X-Received: by 2002:aa7:819a:0:b0:56b:e16d:b08 with SMTP id g26-20020aa7819a000000b0056be16d0b08mr17838576pfi.70.1668508801367; Tue, 15 Nov 2022 02:40:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668508801; cv=none; d=google.com; s=arc-20160816; b=fYQWTHfhaK68BNljD0O2KZZpFaM9qJI7zNIcq+WUv35tlHWpYUPe2mCCM95TmHKsn3 g2+MDyR4YoRNehndv4cf8bzf2gbqRZ/+l4x17OzTAvd+WBx5jjMUz7QkyDTpGScWb6fT Gkm4KCLolRORF+KU3//9PUqEwjUy3tWaulz5358ldk+Xe0qJSlLI0/iBe+q+c+OlzBfm K2cOR9hMQSe4pQDP1+qwaSHq0VPfVSmBd56SidX2cV0/+PgjxAHuIWrGntEF2BrykuZD ULirPEQmzXNAPrBnfDLfLtgNXllfLKUafDHcBA8S7aTgfgGSGwTVmKtRu8E+MvobgD5W DrTA== 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 :content-language:subject:references:cc:to:user-agent:mime-version :date:message-id:dkim-signature; bh=51eyqY8UTV5ywIgQsiHkYmYRRcSexiaefC0ZpHFo2a8=; b=v0lTHGX7RYU9xfqmbsucDxtG+I9wTl/PiqKZqqCSCQErBEcTZ5JBbgFO/1L0Y8/Xfk 6aXW8ube70emB1CuXYPKWuOFmJHeIbTmZaKb/u7XUkryyU4Io/HcfdpPa9M5tix+AJos WoMatZoRszXQPplcZZ7jm5bTuPo7bK+YT9baUOoZH0OD6g1s+MCNjryllOo7hOiXmOd1 Rmf7i0tXt5GW4zzWtu1kb0AUVEX5uxwbRUJt2KZVUIpPuq/csf2Wa5W59TGAfMZ7W+T3 VpGM/ygUVFBWXTaz/XRl2A8pWBFUXrSDuGvV5AqRuITt8TdS8n4O80RSEg8JzdT3eKoI 16pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=XQhNYO7e; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a63020e000000b0045466821a09si12154666pgc.371.2022.11.15.02.39.49; Tue, 15 Nov 2022 02:40:01 -0800 (PST) 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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=XQhNYO7e; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236567AbiKOKet (ORCPT + 89 others); Tue, 15 Nov 2022 05:34:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiKOKeq (ORCPT ); Tue, 15 Nov 2022 05:34:46 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADB14AE48 for ; Tue, 15 Nov 2022 02:34:44 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id p16so9350659wmc.3 for ; Tue, 15 Nov 2022 02:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language:subject :references:cc:to:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=51eyqY8UTV5ywIgQsiHkYmYRRcSexiaefC0ZpHFo2a8=; b=XQhNYO7eEMH/ML6Ek2vWNsT1W4wWTdKTdS4A7rD21XxH+U4UZWYtW4zGE1rAekXTsw jArznlvIdrcFLoYBqFSrc3k9jBKKmtpNPd5VJEerOotNauut47I59zs4LUO9Nofqarru wIbFoP49X4eTJXGdpiwGbzfISJ9J7ng49wYdO7S+wXybs1xV/MA4HkUAM68Hb5Gp1fa5 UpMXIwaCuDUi5ZaMFSHDt9uxnEGFv2udkfScPawgxYuEqM0Ch3+qDBZt8Hxzr5n6Xsar 1zUbdldqRdKY/QyxoxCUmSlPQSQnIbn/M2lWiuobH/nmms3sAcKDQn5aO0lG0prGddnp faLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language:subject :references:cc:to:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=51eyqY8UTV5ywIgQsiHkYmYRRcSexiaefC0ZpHFo2a8=; b=GUsBV4ycCFY6Yw8+0GET3SNPS4xulhdJ8mB8NERkWj11RLaqrUv8i66KQGqI7nvpiL HRnxKKZqrFXb6OTEvE510VlUSdVjSoIx3Glsx/+BqTa3IlZa7x85ceWaJ9jtgrmkHIY7 DAwIJQUa+8eizJ17rnZHpc16TiVprp8YXyvwMVz19fKZ+F3H8DEHUj9Fv07dEmBCH+i5 yLOE1nzYZyO1BATI+1ssXCKdxNrUnRVMqt9Vx7hlNtovHww0pP4wBXyg6Boeh7JWZ9Nm JOq+z2mNSza5u7/T8TBqo7I9vRcjmqCDAH26jTu+uCnrgpXAKxqIoQVChfHgUgr6LuuH WaEQ== X-Gm-Message-State: ANoB5plF26JMRHSlPMxdPUJhs+4L13L3SN3WkO/Ktx2erv0gW7ei2S+B F4XFSJcuE3odFbh90ApkqR+3cQ== X-Received: by 2002:a1c:720f:0:b0:3cf:6f77:375 with SMTP id n15-20020a1c720f000000b003cf6f770375mr92914wmc.102.1668508483147; Tue, 15 Nov 2022 02:34:43 -0800 (PST) Received: from [192.168.1.172] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.gmail.com with ESMTPSA id p5-20020a05600c358500b003c6b9749505sm23742112wmq.30.2022.11.15.02.34.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Nov 2022 02:34:42 -0800 (PST) Message-ID: Date: Tue, 15 Nov 2022 11:34:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 To: krzysztof.kozlowski@linaro.org Cc: a.zummo@towertech.it, alexandre.belloni@bootlin.com, amergnat@baylibre.com, angelogioacchino.delregno@collabora.com, broonie@kernel.org, chen.zhong@mediatek.com, devicetree@vger.kernel.org, dmitry.torokhov@gmail.com, fabien.parent@linaro.org, fparent@baylibre.com, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rtc@vger.kernel.org, matthias.bgg@gmail.com, mkorpershoek@baylibre.com, pavel@ucw.cz, robh@kernel.org, sean.wang@mediatek.com References: <09495553-e563-e12b-056e-bed95531ab6b@linaro.org> Subject: Re: [PATCH v4 2/9] dt-bindings: rtc: mediatek: convert MT6397 rtc documentation Content-Language: en-US From: Alexandre Mergnat In-Reply-To: <09495553-e563-e12b-056e-bed95531ab6b@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Hi, thanks for your help >>>> I checked and it doesn't support it but this needs to be fixed. >>>> >>>>> What about rest of rtc.yaml schema? >>>>> >>>> >>>> wakeup-source would make sense but the driver doesn't support it yet. >>> >>> The question is about hardware - does hardware support waking up the >>> system via interrupt? This is usually a domain of PMICs which still are >>> powered on when system sleeps. >>> >> >> I'd say that it is possible that a PMIC is able to wake up the system >> with or without having an interrupt wired to the SoC so wakeup-source >> makes sense. We don't need it if it is interrupt only. > >Then I propose to reference the rtc.yaml. I think I understand my error. Actually, the RTC (HW) support the "start-year" feature, then I suggest to fix the binding like that: allOf: - $ref: "rtc.yaml#" properties:   compatible:     enum:       - mediatek,mt6323-rtc       - mediatek,mt6357-rtc       - mediatek,mt6358-rtc       - mediatek,mt6366-rtc       - mediatek,mt6397-rtc   start-year: true additionalProperties: false required:   - compatible examples: - | pmic { rtc { compatible = "mediatek,mt6397-rtc"; }; };