Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4634271iob; Sun, 8 May 2022 20:01:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz78wRSOARtwSgkYnIAFSRyWe63nElwP4lj0lxC9NhBlk7sdgyWQXCemdszB5tvfy/5g8eA X-Received: by 2002:a17:90b:4d11:b0:1dc:ec4f:a19c with SMTP id mw17-20020a17090b4d1100b001dcec4fa19cmr11076184pjb.117.1652065314925; Sun, 08 May 2022 20:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652065314; cv=none; d=google.com; s=arc-20160816; b=H84YyDXFwNwiczSIc7PVnXaCz16kKjnKcHTy7eU/ZSU7MTsmgu+6um+YVn7MnynQSX ZzoWZ0q72MGgUHrofT9AyE+SoWEr6/V6pLG6ZqwmY1oimdj4DTWjoxsEYVFcPILIUxsj 8kJs0VP06zDn9F3Lhd28mvMmKdyaxeEVWRis7w0CYDYWoxBqkDvwhLmUHOluJyLJmQE5 gKREicdWt3NYjaLg1afonZfJoMUuxUobxA/kLagCYodNZ1w+yEBai5ysc4l20/vR6l9b TXuy92iBwM96EDtRO2l/3G0vjpgX6nh41y5ErlXxMpgBWsM1fGeZOruLzXN8fULdDcro bLug== 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=cBgrBctusl2KdU51JeeQGLmL27dGU5bCAkAXZtAGtio=; b=s3Eki+j6la9ZBTNOdQNAdkfaCBpE+aopYOnwPOJD6rY84vlWEXu+yXUplGPHHU/9xj LonfZDUKdTsruRc7FSbwNbyRKb/X3aVg0xBpkPaNDf2JWfbIOkYWHu7rFbPuP2MfwZoX 33S0oH0DTStfMWx2PegHKtkHoIVK68yjnaIBRUYTrR7dGOqHT7xA1wJjvY8KvlijWumC BaVke0nBZLswxVVr7QvO9MFlagLEt3/oJAa8SFBT2OH5HAJChaqWsOiIJT4R/MMQ89NZ ckX7/HpFQe5ftTbIwyjCVyVxNByEG35z3DF1N9XPywKD7f7LHzGyF99DMOctFrzjsdjf J8uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=hoar1WXa; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bd34-20020a056a0027a200b004fa3a8dffd5si10654998pfb.140.2022.05.08.20.01.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:01:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=hoar1WXa; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D89A827CC9; Sun, 8 May 2022 20:00:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442648AbiEGTee (ORCPT + 99 others); Sat, 7 May 2022 15:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231754AbiEGTec (ORCPT ); Sat, 7 May 2022 15:34:32 -0400 Received: from ixit.cz (ip-94-112-206-30.net.upcbroadband.cz [94.112.206.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E5D317ABD; Sat, 7 May 2022 12:30:40 -0700 (PDT) Received: from [10.0.0.209] (_gateway [10.0.0.1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id E139C2007F; Sat, 7 May 2022 21:30:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1651951836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cBgrBctusl2KdU51JeeQGLmL27dGU5bCAkAXZtAGtio=; b=hoar1WXaOQHm22+HDxJCebarFpAAnJbBuJsZsiibHs03bj+RCs6LGoSivs1iuoC/SjkQfw 4RRSH2f3f0ca7eeZzmFXua2ytpzj8b3OnQ5Y88lJOQ3ceRbDhqm+rljcnhrVtmVDW/R4m+ jDiHdtsq2Pp3judabrORYHSGsvM3b4A= Message-ID: Date: Sat, 7 May 2022 21:30:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2] dt-bindings: watchdog: improve QCOM compatible parsing for modern chips Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Prakash Ranjan Cc: ~okias/devicetree@lists.sr.ht, Rob Herring , linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220111212310.97566-1-david@ixit.cz> <9bcdec7e-2b09-56ac-f798-1c3971a87f46@linaro.org> From: David Heidelberg In-Reply-To: <9bcdec7e-2b09-56ac-f798-1c3971a87f46@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/05/2022 19:22, Krzysztof Kozlowski wrote: > On 11/01/2022 22:23, David Heidelberg wrote: >> Parse compatible as expected for modern QCOMs. >> >> Fixes warnings as: >> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: ['qcom,apss-wdt-sdm845', 'qcom,kpss-wdt'] is too long >> From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml >> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: Additional items are not allowed ('qcom,kpss-wdt' was unexpected) >> From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml >> >> Reviewed-by: Bjorn Andersson >> Reviewed-by: Rob Herring >> Signed-off-by: David Heidelberg >> --- >> v2: >> - updated compatible list as two compatibles has been added upstream >> -> resolve merge conflict >> --- >> .../bindings/watchdog/qcom-wdt.yaml | 37 +++++++++++-------- >> 1 file changed, 21 insertions(+), 16 deletions(-) > It seems this patch received three reviews but was not picked up. David, > do you plan to work on this? > >> diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml >> index 16c6f82a13ca..4ff8c59c59ab 100644 >> --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml >> +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml >> @@ -14,22 +14,27 @@ allOf: >> >> properties: >> compatible: >> - enum: >> - - qcom,apss-wdt-qcs404 >> - - qcom,apss-wdt-sc7180 >> - - qcom,apss-wdt-sc7280 >> - - qcom,apss-wdt-sdm845 >> - - qcom,apss-wdt-sdx55 >> - - qcom,apss-wdt-sm6350 >> - - qcom,apss-wdt-sm8150 >> - - qcom,apss-wdt-sm8250 >> - - qcom,kpss-timer >> - - qcom,kpss-wdt >> - - qcom,kpss-wdt-apq8064 >> - - qcom,kpss-wdt-ipq4019 >> - - qcom,kpss-wdt-ipq8064 >> - - qcom,kpss-wdt-msm8960 >> - - qcom,scss-timer >> + oneOf: >> + - items: >> + - enum: >> + - qcom,apss-wdt-qcs404 >> + - qcom,apss-wdt-sc7180 >> + - qcom,apss-wdt-sc7280 >> + - qcom,apss-wdt-sdm845 >> + - qcom,apss-wdt-sdx55 >> + - qcom,apss-wdt-sm6350 >> + - qcom,apss-wdt-sm8150 >> + - qcom,apss-wdt-sm8250 >> + - const: qcom,kpss-wdt >> + - items: >> + - enum: >> + - qcom,kpss-wdt >> + - qcom,kpss-timer >> + - qcom,kpss-wdt-apq8064 >> + - qcom,kpss-wdt-ipq4019 >> + - qcom,kpss-wdt-ipq8064 >> + - qcom,kpss-wdt-msm8960 > These do not look correct without appropriate fallback. Yes the situation there isn't optimal and I'm afraid I cannot solve it in scope of this change. Previously I was thinking about also merging MSM timer into this binding, which shares the compatible, but uses different driver. Sadly, currently don't have a time for it (have some WIP patch locally, if anyone interested to take a look). I'm (re-)sending v3 with another S-off, but it solves only warnings described in commit message. David > >> + - qcom,scss-timer >> >> reg: >> maxItems: 1 > > Best regards, > Krzysztof -- David Heidelberg Consultant Software Engineer Matrix: @okias:matrix.org