From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E72AAC433EF for ; Thu, 21 Jul 2022 20:19:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233060AbiGUUTa (ORCPT ); Thu, 21 Jul 2022 16:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232122AbiGUUTY (ORCPT ); Thu, 21 Jul 2022 16:19:24 -0400 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 511EB8EEE8 for ; Thu, 21 Jul 2022 13:19:22 -0700 (PDT) Received: by mail-qv1-xf36.google.com with SMTP id i7so2080177qvr.8 for ; Thu, 21 Jul 2022 13:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nHZhsJvZuU8x8cSV7hJ3bwYV3pDJsGuu8QgGpzsHbKI=; b=i3M7DR7R/92yls/0qJasv9Mdrw0PUg60oMhsu7k2wXs0clqJcf4XZSIidylzk7XvNm Kj/G/ydgomlXntOBztn/Xdn11KSc5WdAoY0Y98B9SjtG7qXeu8Ai66pmjl5aLDea1jH6 0pqUs7UHObk7IUP2TZ+CUM0aGIEq8wMAd5Kpw9F57ezZuApAFUyLG7o+As22AxiOcu8/ RRZp2gGNATKlUqyJ8xiQ20dmkbLmWUg5jXtCtg9l7Tw6Pq6TnQL6nB3X0+sBh+J8xaSE 4X08lxqqGKlXulgEKo7uuexd/DISTQ7DXsnKkWnk3TmdZ0FjvxAqL8V0io6NMRXUEc96 sFTw== 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=nHZhsJvZuU8x8cSV7hJ3bwYV3pDJsGuu8QgGpzsHbKI=; b=NzKIhQ3+wYmVSCnKjFmZ2y5BWhVeqa4LMyQSOLPIrWjuaeqkTd5fuUevltWO21539Z +EkHzVytYkGFtdbG2fHO4hBrnHi/1LhQMBUY5HC1c0jecFqfzVMUz6btgQSzFmQLMnCo 1PvUIAkI1/Gb1cs3pIVqFNCDsBibfDueFVXKK54gNPRxbco2pa3XZzORhH7G5fAJ23Xe s21Sk6XYOy2ma63VF6QCOOAqTePIZa7duEs7j2hFtV7+/g6NHRHV5hU05zIr7nJKsmGt pPIw3JtpjqchyG5wWxeY5wH5z/90W6WizAAYLqISk0ZpnQcl80Gq5tmajxbwK4E4gMx2 8Jfw== X-Gm-Message-State: AJIora+iW+1WlQW4Z9zlHc2KP4XpTfjuBUteUhg8kL/3oxcY/sKJQug5 OnIIvCZVDxaSUflntj9bmHpgsc+vL555SQ309Lfi9Q== X-Google-Smtp-Source: AGRyM1tmIb9QZW3GuI3H9geW6F1Yo2ZDUH8ndpTeEDQeOHPdXB96hnQnvYJMducw/HqOnVQWQTotOyM59G4sVGFAdbY= X-Received: by 2002:a05:6214:d03:b0:473:7764:2ab with SMTP id 3-20020a0562140d0300b00473776402abmr247073qvh.119.1658434761411; Thu, 21 Jul 2022 13:19:21 -0700 (PDT) MIME-Version: 1.0 References: <20220721195502.1525214-1-bhupesh.sharma@linaro.org> In-Reply-To: <20220721195502.1525214-1-bhupesh.sharma@linaro.org> From: Dmitry Baryshkov Date: Thu, 21 Jul 2022 23:19:10 +0300 Message-ID: Subject: Re: [PATCH] dt-bindings: leds: Describe optional 'reg' property used for Qualcomm LPG nodes To: Bhupesh Sharma Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, robh@kernel.org, pavel@ucw.cz Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Jul 2022 at 22:55, Bhupesh Sharma wrote: > > As Bjorn noted in [1], it is useful to describe the optional > 'reg' property for Qualcomm LPG nodes as it is used in > some Qualcomm dts files. I don't think this is correct. LPG block maps to several regions, so using just one of them in reg doesn't look correct. > This fixes the following 'make dtbs_check' error reported for > pm8350c & sc8280xp pwm nodes: > > arch/arm64/boot/dts/qcom/sc7280-herobrine-herobrine-r1.dtb: > pwm@e800: 'reg' does not match any of the regexes: > '^led@[0-9a-f]$', 'pinctrl-[0-9]+' I'd prefer to follow the existing schema and to drop the region from those files. > > [1]. https://lore.kernel.org/linux-arm-msm/Ytg3tIaL5h5b9ewH@builder.lan/ > > Cc: Bjorn Andersson > Cc: robh@kernel.org > Cc: pavel@ucw.cz > Signed-off-by: Bhupesh Sharma > --- > Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml > index fe336fa16518..f394ab7a757b 100644 > --- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml > +++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml > @@ -27,6 +27,9 @@ properties: > - qcom,pmi8994-lpg > - qcom,pmi8998-lpg > > + reg: > + maxItems: 1 > + > "#pwm-cells": > const: 2 > > -- > 2.35.3 > -- With best wishes Dmitry