Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp409847rwi; Wed, 19 Oct 2022 23:46:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM77MEYk/0spsuotzL26dqOsI7sNFdVXBMgWFyrXMRM8tj9REle5CI3654K8w5cs8oW+/4Iv X-Received: by 2002:a17:902:bd98:b0:182:631b:7dd5 with SMTP id q24-20020a170902bd9800b00182631b7dd5mr12237430pls.165.1666248382713; Wed, 19 Oct 2022 23:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666248382; cv=none; d=google.com; s=arc-20160816; b=HzTaqYYYag5Nn34tviFFupilBSKQ3QRvXVCRZBLZrfmm1ui/CZuwHg6wxuzifh8gdP 8TGG1TJT/TaLh4bbu7hXuYWk2Y3EHjXiJlljORrQ45F/TXZlswCMtB3DuOQ4CnkCTw68 DR1nniU5qAv9VcsJWvLHGZMqF6qwj/D3tqC1bLu1lIchBm6gRaUtNxrPWqOcREa8o2Vn BiDJDimOzbBbGwWg5iZLE2QCTFOqtHWDMHTvO4EmW3A+IawmMD/23LLxd5i0jbcR/DBG JgXFHjP0lrNxcWpJQhvbP6r2ixnptxzIKiu+Kcrme/otigxC7dYmEewGQVDzbuNjqP2F OybQ== 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=0UYnmYoL+d89Orz6iaNY/DjHRjYVyMl063fYMgg13s8=; b=kazTvVwYsQ/DRF0LC8kE5Q0xu78xwng/5cd5X9NiNv1zuK/btdcwprASbnv5PRGPto /pNyOmqeiTQLgsclZbenncdaLto/NmenURPptZKCpO5U4ouUZwRTQr6hZcGyl3P7OT0U eKf+6NIe4jslt1dOrQT2rEmpexf8ELhf0vpTDN0br2wbW+huklhFhChFJ9u0hcB9XEdk J3HYRM0yBv2L1To58OZFRgv7owuVb+QBzKLeu5sqgF6C8JIfcJKbXqzYGFcBpAzMZwZ1 8qdqpcp+9bOz0Hs4FMVeaXkQuQvIgigEUYq64+gt2mD6WAlfJvi0DC0W77DHUNtefj0M EMAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fsIaTrsH; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r28-20020a63a55c000000b0043934d930e4si21368896pgu.297.2022.10.19.23.45.59; Wed, 19 Oct 2022 23:46:22 -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=@quicinc.com header.s=qcppdkim1 header.b=fsIaTrsH; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbiJTGdi (ORCPT + 99 others); Thu, 20 Oct 2022 02:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbiJTGdg (ORCPT ); Thu, 20 Oct 2022 02:33:36 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AAB215B303; Wed, 19 Oct 2022 23:33:34 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29K5oH7Z009106; Thu, 20 Oct 2022 06:33:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=0UYnmYoL+d89Orz6iaNY/DjHRjYVyMl063fYMgg13s8=; b=fsIaTrsH3vzcn1Zowyt/TwOq4hYJYTTHafg/yS9Ai0l/tJ/wCGSaMKVMT/KSRO4k9vCw Yg1CgIqwQpM1+WmXI7eYj2KAbgwoO5NFxCZ0mojOm15Q6z+FrTOloqy4hFbi+/eZjwTy kvSfBMPqWCYHrcD7ydKDCcDrN+1Ok28pRU+zXKeNS32saij0t1AnBgNI9jprb6HTKuLk SzFFDW4hTXIZDowsBXGiW9CL9XDqp9aTSjX5D7R17L79CDw77A/yUjkk9HCKrxum0YJh rdx458Guk/7/6aeT3Rp3fmoGuVfSVnGtjmtGyxSA0yXvQP3tkwC6nCdjYNECXSpEPOWx iA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ka6brukhj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Oct 2022 06:33:24 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29K6XMR2011139 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Oct 2022 06:33:22 GMT Received: from [10.239.155.106] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 19 Oct 2022 23:33:19 -0700 Message-ID: Date: Thu, 20 Oct 2022 14:33:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v3 2/2] dt-bindings: add bindings for QCOM flash LED Content-Language: en-US To: Krzysztof Kozlowski , , , Andy Gross , Bjorn Andersson , "Konrad Dybcio" , Pavel Machek , "Rob Herring" , Krzysztof Kozlowski , , CC: , References: <20221018014024.948731-1-quic_fenglinw@quicinc.com> <20221018014024.948731-3-quic_fenglinw@quicinc.com> From: Fenglin Wu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 5_GkBqJhkKvSeCvFarFHW0Z2lzvFH2rt X-Proofpoint-GUID: 5_GkBqJhkKvSeCvFarFHW0Z2lzvFH2rt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-20_01,2022-10-19_04,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 mlxscore=0 spamscore=0 suspectscore=0 clxscore=1015 mlxlogscore=999 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210200037 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 2022/10/19 21:36, Krzysztof Kozlowski wrote: > On 17/10/2022 21:40, Fenglin Wu wrote: >> Add binding document for flash LED module inside Qualcomm Technologies, >> Inc. PMICs. > > Use subject prefixes matching the subsystem (git log --oneline -- ...). > > This means: > 1. you miss subsystem prefix > 2. drop redundant second "bindings" > >> >> Signed-off-by: Fenglin Wu >> --- >> .../bindings/leds/qcom,spmi-flash-led.yaml | 116 ++++++++++++++++++ >> 1 file changed, 116 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml >> >> diff --git a/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml >> new file mode 100644 >> index 000000000000..d8efde02db72 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml >> @@ -0,0 +1,116 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Flash LED device inside Qualcomm Technologies, Inc. PMICs >> + >> +maintainers: >> + - Fenglin Wu >> + >> +description: | >> + Flash LED controller is present inside some Qualcomm Technologies, Inc. PMICs. >> + The flash LED module can have different number of LED channels supported >> + e.g. 3 or 4. There are some different registers between them but they can >> + both support maximum current up to 1.5 A per channel and they can also support >> + ganging 2 channels together to supply maximum current up to 2 A. The current >> + will be split symmetrically on each channel and they will be enabled and >> + disabled at the same time. >> + >> +properties: >> + compatible: >> + items: >> + - enum: >> + - qcom,pm8150c-flash-led >> + - qcom,pm8150l-flash-led >> + - qcom,pm8350c-flash-led >> + - const: qcom,spmi-flash-led > > Blank line > >> + reg: >> + description: address offset of the flash LED controller > > Drop description, it's obvious. > >> + maxItems: 1 >> + >> +patternProperties: >> + "^led-[0-3]$": >> + type: object >> + $ref: common.yaml# >> + unevaluatedProperties: false >> + description: | > > No need for | > >> + Represents the physical LED components which are connected to the >> + flash LED channels' output. >> + >> + properties: >> + led-sources: >> + description: | > > No need for | > > Rest looks good: > > Reviewed-by: Krzysztof Kozlowski > > Best regards, > Krzysztof > Thanks you Krzysztof! I will address them when pushing next patch.