Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp911545imi; Thu, 21 Jul 2022 13:27:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uze/P2B7x2wlqWFchdELEyz8Z5X7tOaVgMtQjgAEwXndEOba9FQRyB7Pa8NALoaR0AzkaF X-Received: by 2002:a17:907:1c1f:b0:72f:1ccc:bc3f with SMTP id nc31-20020a1709071c1f00b0072f1cccbc3fmr258671ejc.281.1658435227227; Thu, 21 Jul 2022 13:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658435227; cv=none; d=google.com; s=arc-20160816; b=drdOjfBds7ZowOOsxKMyoRMCb45vArjn8BT3VV4wV1PZk8+750OSn1OL26FHLMbqVJ mh3bcb80SN2RiK7U3+n3e+7MCCY8AE2HRwXHN2T2kCMJ162M1U+LfaoHMbNaMnpUWXqO zDD+TvHgmtAzEDS9PpkST2rjVp+d8EEA88xN0r7TWusrTQk8lrBDGN5Hq595ZTWmpCI4 hRH2aaWL84jP53jM+3xmpiHgCnHyUQJH8Vca+zlvoQF/a8vKBY5xXuScKtpIv4FJKAGU EdsK0EQZ6+CQVw1NIBe9KldPIlJjWequyFHaidh5nR4C1BsJlDHIi/mA21bWVUaQDLes THNw== 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=nHZhsJvZuU8x8cSV7hJ3bwYV3pDJsGuu8QgGpzsHbKI=; b=FmdLCH8MySUFeT2inKbJAYGc+vgSHPOlZNrYdMZz364OzlnYwLKHJuHKzgoioORpQx qQTuNLl3R7RLbBQRBUdc3dcPNg1Obon83LG88h8XU8Z7OkYEftXrrg3RLGLpyJj/BF52 o5US2PLShVnNSftMHRQuf3EeGmxxH5vUH3EbI8GPIpKrbwp4P/AMILUFAHsLQtN/yTLU w9M+8dnvFNJINFJMmSiDxWcEPAHXJmCuxqmATA+jr1K08NRnOwxdkqvo13EOmdpVz9Hx 3cj08el8hTX3OzI0VDpBwiX/+weH+qcxcQd0T5/9NGQKVa8nUfT0cr9K2J4tGEMHVo/T SLSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i3M7DR7R; 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 i13-20020a1709064fcd00b0072b7b94c2c5si3740117ejw.866.2022.07.21.13.26.17; Thu, 21 Jul 2022 13:27:07 -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=i3M7DR7R; 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 S232820AbiGUUT3 (ORCPT + 99 others); Thu, 21 Jul 2022 16:19:29 -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-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" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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