Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5592899rwb; Tue, 9 Aug 2022 00:05:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR50SuVENXAosp/Fs2+Cey7Gc45k8IXo6FzgtYv3DbWBMHEWzw2PrlFmQFZ3P/idpNoKeWBH X-Received: by 2002:a17:906:8a44:b0:730:9d18:17b5 with SMTP id gx4-20020a1709068a4400b007309d1817b5mr15816108ejc.378.1660028724558; Tue, 09 Aug 2022 00:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660028724; cv=none; d=google.com; s=arc-20160816; b=eWOz5plFX0o0ZegH/Z+ijOmmmqozDfzpVLSUqBZOvslrkc/mDnbhijF03xYw2WlllT nQc/IAVzaAnrEYQIK5H2+tryLhHcAivjUigYq0aHtYTsPhfcipBgr7jX90oZVZBK2aaW lnoHrUh0EwuMRvWaTS582N7RieCpTssAVJevb+aRnRjHhFvFDP40zD5NussK7XxPeN1Q PhEORe3gBpGxj3zHLM2u5ChmjBu/40lAdJmvFK2J39GZXOL7yhmswJo6YZrUgzJInH0T 9srRfGmaG5Vimi0NL94n7RiwzwaxheljaeTf1/44vB0H5bAhqRyQ56ewGJBKjSM4KeQB F2BA== 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=YKNZDEH28vo2hOp+yO+5ohq8JvJ2Azq963eWNXEueng=; b=z3HGNiLlTUFLkpHgJtCjw1IF7SlkiJPPjRBud/W0uLeKlnDC3GYWkejDlv5RTFQwBD 6HQ8MIjCY1mXsSmzQr7crTlsNBMUpjR6EBb9MfsWB3r/P4+hvcxQCi0Z3TKDym2H9Gjv R7b/sZ5Wcsq6QdfvSa6mAoMoMewwLfi0v6HjokrfDID9d4ywytwqy3J9JhBi6sUhrWT7 DtsMDP0HRIKqc4nN/a/PFCnHVa2lkFbkJ2r/7ai9rQewFidDKJBlNGiBeBBCxJ6uAhgP C+vFod9G6Re8g8nasKq2JwyMETnAVBH29sfhIYnXdqnouJMC2Cg0k65bhyEWRbTKjzF8 BHDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YPnO3aOs; 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 nc23-20020a1709071c1700b0072b1224ebf2si1603706ejc.285.2022.08.09.00.04.50; Tue, 09 Aug 2022 00:05:24 -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=YPnO3aOs; 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 S238994AbiHIGwS (ORCPT + 99 others); Tue, 9 Aug 2022 02:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239063AbiHIGwH (ORCPT ); Tue, 9 Aug 2022 02:52:07 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD9C20BFD for ; Mon, 8 Aug 2022 23:51:58 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id r17so15701943lfm.11 for ; Mon, 08 Aug 2022 23:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=YKNZDEH28vo2hOp+yO+5ohq8JvJ2Azq963eWNXEueng=; b=YPnO3aOsjoKfoky+lJWcp8X+Ot6taMNcOMdzc20QiXMA0XVsHV1mF8SfHypERbMgvP VLvqaGFDuOXjroTO4Hx9SOM085qQ/9ApiXpvQPfFym/MYjpM6pkGvsVF3P4eNl6x2RCV 2ahSiq+69pCAiV7nHTCTi3JCjFVsIAbm35PlGTw58/e6sqlHCKPsLce5yPlNeVh/2N/2 oycRIeUbS9c+iuD7xVdk9eZyFxtpRNuch3gWt00CIF9BnyKKBQrcuO+SGS5HbSfFrht6 satS+5Yclxa/Ni7BmrC5osAGmGdykqzgU2zr9yfxwRS+9dlJ2c401Eih5kyHfgNZV+yA snBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=YKNZDEH28vo2hOp+yO+5ohq8JvJ2Azq963eWNXEueng=; b=DLjvdgQLgRGXY4z1HtmBxPqHy8mnLZdhFdvagYHWh/8iKOtnQIIEdn4CXnPcXxmMze o7At2vXM6NVf+xr1tdx12C38/4cUKXwacS/A+SX1ZZKwbd6Xn9b1P0P7VzqjlDeZjBiy A8mf6BRtvlTsjycKnUcKILHO9w96ti3uAOSvWpCqpxf5uFE0Hi0KRYWU0pemwTy5mfU1 wb/RifDdhqPCK2krkdVesMs9fuzml73lRsc4DlpzKRELk8b1Q0TqGw86sx9JQ3pjMX+V 4zW7IUkRTSZGaNG6+HBBfxtN6udZySxu4IBBAxoSQh0iOXggKxJCbe/FfgJ4xhhXaeGk MhdQ== X-Gm-Message-State: ACgBeo369GgCLIWBkWEo4UBMrjROW9/EfNQ47T4eLnAnpT3MMXrLKSTF jtWRrWGJjLCrcrJ01GFi03ioKg== X-Received: by 2002:a05:6512:3fa0:b0:48a:c45:275f with SMTP id x32-20020a0565123fa000b0048a0c45275fmr7180583lfa.566.1660027917050; Mon, 08 Aug 2022 23:51:57 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id j16-20020ac25510000000b0048af3154456sm1653751lfk.146.2022.08.08.23.51.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Aug 2022 23:51:56 -0700 (PDT) Message-ID: Date: Tue, 9 Aug 2022 09:51:54 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] dt-bindings: leds: Describe optional 'reg' property used for Qualcomm LPG nodes Content-Language: en-US To: Bjorn Andersson , Dmitry Baryshkov Cc: Bhupesh Sharma , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, robh@kernel.org, pavel@ucw.cz, devicetree@vger.kernel.org, Krzysztof Kozlowski References: <20220721195502.1525214-1-bhupesh.sharma@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 08/08/2022 21:44, Bjorn Andersson wrote: > On Thu 21 Jul 13:19 PDT 2022, Dmitry Baryshkov wrote: > >> 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. >> > > I agree, but I also like the uniformity of having unit addresses for the > devices on the spmi buses. regulators also do not have reg, so I guess consistency is already gone. I vote here to reflect the real hardware/device which means: 1. IIUC, the design of entire SPMI bindings and its implementation is around parent device sitting on SPMI bus and children using its regmap/io space. 2. The children are not really re-usable for different cases/devices (e.g. standalone WLED or LPG, outside of PMIC). 3. This means entire design is tightly coupled and LPG (or wled, regulators) bindings describe the piece of PMIC, thus I find appropriate skipping "reg". 4. If we want to keep the "reg", then it should rather reflect reality, so if Dmitry said - multiple items for separate IO address ranges. > >>> 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. >> > > I'm fine either way, but we have more of these nodes, so I would like to > hear from the DT maintainers on the direction to take. All nodes on the > spmi bus has an (at least one) address, so it would be accurate to state > this in the node. > > It does however not seem like devicetree@, nor Krzysztof is Cc'ed on > this patch, so I've added them... > Anyway this patch has to be resent to properly reach DT patchwork. Bhupesh, Please use scripts/get_maintainer.pl to Cc relevant folks and mailing lists. While resending, add appropriate device prefix to subject, so: dt-bindings: leds: qcom-lpg: Best regards, Krzysztof