Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp508483iob; Wed, 18 May 2022 07:03:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtmpqssG5b7FLz5v1HIyxIV6E+HenUR7KSE/W1NpJjl/h9w3Rg6MaKAfXZl3XDeLEttsgV X-Received: by 2002:a17:902:dacd:b0:15e:a53e:3239 with SMTP id q13-20020a170902dacd00b0015ea53e3239mr27400755plx.7.1652882636315; Wed, 18 May 2022 07:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652882636; cv=none; d=google.com; s=arc-20160816; b=EIPPu1CI+b+h/w9vqIh8g8dHvgVNDlC7eagYvrHR0rTJ+Nqv8s6eVfOYtE9Q3zlvfJ Xzw1nfRbRrKq5ilEP7RTsxslPn4f61chdHX+6nDjaDZk4HRlAxP1Df+dRDf4ko/Z3IQi X0a3VEgmym34CGtb98VbsNMdzXCCBnhJ1vKnhxIPUaBFsuS62yRHIskqvfHN04CAQ2u5 l7R1blpBAoT0gQI6hOZ0VGkstq7ICnJAR8TEO7/4mK2VyT+CNlKHwdKTETsKtLsHN5Tu +72e5q48EiClRBLfpHYTwD5mTMIr0pAj/ZwE8JJRhOr1CwpXXHBZXtUlpEmzEHWsZwxk 5KCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IzOS+GlQNt2K4QiqlD0wmcPgVEFauW0EWl1uwO2WAzo=; b=t28SlswxF4mq6wDwruGSG54GpiQh2GCKam9TQikjPrGhegaAb4CW1h7E+0MKIKAR7/ 4Uncjyk7sl3Gxs271cHSbyefJcQ4DU+9bcVrTNgrVPrj2cyD91JWTwlie/amlvEGKqdV PttKJl7yP0zvtBnV7KHUtjcvixXqogPfxdtBgs1L/PuVLFNEB7lVvJhlbmzTuatGSFtn xwOreMQD99kJZCXaPFf6/qUDu3yiLKZTEU7jUFZHRQn9WmES0J4jmIm+SVoduD2J/Du4 BVRrtOCo1GDKZqUXtyQ3DWMvMmBSPGOToX/01FWqxl9XQvw9qa5X8GFEnGuRxRgpkelm Ckrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=izpDwXjE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q14-20020a170902dace00b0015e8081b740si3311851plx.39.2022.05.18.07.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 07:03:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=izpDwXjE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C9711C5FA5; Wed, 18 May 2022 07:00:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238376AbiEROAP (ORCPT + 99 others); Wed, 18 May 2022 10:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229721AbiEROAO (ORCPT ); Wed, 18 May 2022 10:00:14 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B7541B184A; Wed, 18 May 2022 07:00:13 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id h3so1660442qtn.4; Wed, 18 May 2022 07:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IzOS+GlQNt2K4QiqlD0wmcPgVEFauW0EWl1uwO2WAzo=; b=izpDwXjEmWbNrmbdx7spk/mq3rK/P72H5Acyamh8wltb1mz19T5rG6WQK2032v8IRE a75fotZLaUVHeBngtTEUUZa9J0fTi+MUrnonWxqyb3qaQXQyrxX5gV93fB569YS2rvSz CIHVoxEiRSbUdtEOlW8IGtZe7cfml4AhRlJO7gB5SIb9MKk0ZDh2MH78/K+EHQRtaVBD dWM65/VE++xHH3BCeJ3ob2sXN2vciITB4AnTnP26aZQaX27IP9vcAI4+18ve44RXeuBU tcM8qDQc3oO183uhaavsAoMDBqCMwWY6JygIAlmqTT+X8wANX/W7LsQcO7LLPUPdlesH tPqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IzOS+GlQNt2K4QiqlD0wmcPgVEFauW0EWl1uwO2WAzo=; b=Vb30fwb5IgEnOsmvMTTMe4CfUzEBjt/lmqTTR2bkRW+kJ8qFLegaHXCt3emNJfsz88 2qwo/rncw2WmirVDrlPvMNdHF4NyMdGZ0mX4s2lffWSR/nA9/QxPcAeXbhYP9EJgmTI/ d6yJGRkzI4v5QHM5nXaFWVvS8aRLG0Osh42kwUq+2nxrxnAV5EO1RGwo3APbT5r82jDd 8EASXA5Y+7xBCJTP106ThQzJjzgUgcsgdaQPAE3Ac7DbIO2+96vVLxZSF85/pF5i7njL j/vDpn1LWAgHM+iSbqQI5vVG+tmQX0bEvIyVHTh094oZi0etF2XF4wgj/RdB0la+spsK 3kag== X-Gm-Message-State: AOAM531Fj6AVrrQ6wAl/HGehV3LTO3JjMsUK//d4dF+JWdESmomWUGl7 seC7lomcgbcFmuWFfjLnsLm5+UuxIKV8sdDk/GTYKiNLbtg= X-Received: by 2002:a05:622a:606:b0:2f3:da55:bd1b with SMTP id z6-20020a05622a060600b002f3da55bd1bmr24606901qta.546.1652882411268; Wed, 18 May 2022 07:00:11 -0700 (PDT) MIME-Version: 1.0 References: <20220517205341.536587-1-robimarko@gmail.com> <2905b9ae-df66-eb12-60fd-306ea2d3d626@linaro.org> In-Reply-To: From: Robert Marko Date: Wed, 18 May 2022 16:00:00 +0200 Message-ID: Subject: Re: [PATCH v3 1/6] dt-bindings: regulator: qcom,spmi-regulator: Convert to dtschema To: Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , lgirdwood@gmail.com, broonie@kernel.org, Rob Herring , krzysztof.kozlowski+dt@linaro.org, linux-arm-msm , open list , Devicetree List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, 18 May 2022 at 15:34, Krzysztof Kozlowski wrote: > > On 18/05/2022 15:25, Robert Marko wrote: > >> I think we misunderstood each other. Old bindings indeed did not require > >> the interrupts, although if present they should be always defined. > >> Therefore here you should specify number of items and their names. > > > > Yeah, I think we are misunderstanding each other. > > > > Old text-based bindings specified the interrupts, but no naming or > > number was enforced, > > so I looked into the driver to see what is going on. > > Only pm8941 has interrupts defined in the driver and DTS, so I added > > those based on compatible > > matching, the same as with supplies. > > My logic was that it was only valid for interrupts to be described if > > PM8941 was used as describing > > interrupts for other regulator models will do nothing. > > Indeed, you're right, thanks for explanation. Your patch in such case is > correct way of conversion but allows any number of interrupts with any > names, so it's to relaxed. Maybe then better go to previous version, > where these interrupts were defined only for one variant. For other > variants they would fail on as unevaluated? Yeah, that was my intention with not having interrupts as the generic property. I will remove them as generic property and only allow them per compatible, cause I tested adding interrupts to a PMIC DTS that does not allow them and make dtbs_check will warn about those being unevaluated. Regards, Robert > > Best regards, > Krzysztof