Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3094394pxb; Mon, 4 Apr 2022 07:40:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNLp4+2lLPJqE1lBUc2Bytd7Xe80sbg9LLjvsNz031PypwpONYZu4uRPFJDfKsOkBoBvHd X-Received: by 2002:a05:6402:34d6:b0:419:4dc2:91c5 with SMTP id w22-20020a05640234d600b004194dc291c5mr380876edc.329.1649083238778; Mon, 04 Apr 2022 07:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649083238; cv=none; d=google.com; s=arc-20160816; b=nUVBb6RtvwV5czCnUKVNWWCnQdi5yeW0YWoW4zwno/c5BziUjMpwFOMA250OzjBUBp xanfOxcAgVn/Zftg1MgRG0sEY0kpMXr3Cr2MGuJMJ5/NmshYQUijz6w23P4LoSE/aVr6 FEhL27M9gx6pPOGDVxjgj1K4pTLUJkWFM9xn50NnU3HNdbEHmU9KQfrhf20hhjHQ6mXy EL6ASpV8K05A7RQGqVp/iCqwcMWdB3bVmFge0M9GvuWVRMtiThXNWnyuHLyjLT12c4dt /WtkT4gFC9jpw79qux5X3YW7QhLqjyDmQ8agdwon4KEn6OCEE5Du/elvWHYQxNpDklYj if0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iYOSYhZyZIBQLp1UBX/AcUZuU6Qi+woR07oj0XKgFQw=; b=gxU+yoyVcl64/wLPCtlteHM6JKQBNm1EtBd/8Z3LfGteUqsmjZ77hCjE8w+U1h5iEW u1rh0s0PG63JhdfoPDdwDbJl8Sq2TznkXDddIzWoyjUiOjQr6ZSlwnObTDUxOuGblI0A D22JQgAVyQWFs7Ba9MAWlMf9Uup0Zv8qT9o6WEfknyrWBrmWg0n9rJAUZblFkI3A7QoS OyRXRvgbfYvzwcqp4HpmYFMZQlRlCfKQdOf+DfPYIpMSSDX5yoJzSgxIw1H06gEvHtx0 piLxCDacIS9L+m6BRRmed3yr57gfC7gCxxlPCsIHefjOJe9i7Z+9U2MpCavTOHaMdHoo UTuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K1mjKxx5; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js23-20020a170906ca9700b006e7f9092543si1213765ejb.93.2022.04.04.07.40.11; Mon, 04 Apr 2022 07:40:38 -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=@gmail.com header.s=20210112 header.b=K1mjKxx5; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358885AbiDCNdZ (ORCPT + 99 others); Sun, 3 Apr 2022 09:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243404AbiDCNdX (ORCPT ); Sun, 3 Apr 2022 09:33:23 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 148A033E37; Sun, 3 Apr 2022 06:31:30 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id x14so3125532pjf.2; Sun, 03 Apr 2022 06:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=iYOSYhZyZIBQLp1UBX/AcUZuU6Qi+woR07oj0XKgFQw=; b=K1mjKxx51Aa/MI1Xhljs2Pkx6j5hZi/6WPP6vp50KwApqAZqv81zZzV9X1I183uUgY b9hvxSCPR4XqZl4yBVwNszIxyyucibQ0dUUWHWh3y8A0nZGBSsNww5MBkmfc3HWS60IK k8SFTXLJUZOGy9SRt+dD18CBHtAZCPMOZ1Yu60nbSshOBwJQkqOTCAZDjRBEfkfSbB6y LNCxY6RojeTu918Ju5KCnUjULXHLk+sTBZE0vnJbegIahl0szjONhc2oV49hADyifVAn X081llrh6vtR8xNBzqtSkiudHvuK9LQ5TzK0M0hHfsVWF8xJawxCa63Q0YXNO9PyALQS Rdcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=iYOSYhZyZIBQLp1UBX/AcUZuU6Qi+woR07oj0XKgFQw=; b=Jql18lnQSG9s87BmLRa9oUeG9mkcakxF/59F0dyKu8SVaPaR6+BTIVb5F6KbxqDIL4 kvVVB0fBlAHHUsD29A0wuL/EPeiUVO1Ai2zCEgE+S4cvfMsiLU7hyjkGHI1EdJsFm8ZO aNRogcSlZGr1FdDUf8SF6fMi6WhsMfscrI40msSVX3q2nYEyTzP6H7eE7aHS+FTvTEx5 VMDYoFQ2A5//IiwkN3BJ9ePUVbrfE288B86h/8K894bk7oJ47u9n2TIzgjHjHohKzjBt 7PsMghKACu1XeEVTyQ3FqEI3PPuE5ZK4n0kINMaBDfVt31LAoELN/sj5RTIPkz8Qfnhq Ey0g== X-Gm-Message-State: AOAM5302T5suTZUUc6yZDnw4SL7BwUlW0hYl6DzcFLV3XwSMknMYgYRy oBrg71tbdAYx4xj3sr3VYl/gk6dy75cYVw== X-Received: by 2002:a17:902:6b0a:b0:154:6527:8ddf with SMTP id o10-20020a1709026b0a00b0015465278ddfmr19120740plk.154.1648992689487; Sun, 03 Apr 2022 06:31:29 -0700 (PDT) Received: from 9a2d8922b8f1 ([122.161.51.18]) by smtp.gmail.com with ESMTPSA id bv8-20020a056a00414800b004fafb37f293sm8351692pfb.209.2022.04.03.06.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Apr 2022 06:31:29 -0700 (PDT) Date: Sun, 3 Apr 2022 19:01:22 +0530 From: Kuldeep Singh To: Krzysztof Kozlowski Cc: Caleb Connolly , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Amit Pundir , Sumit Semwal Subject: Re: [PATCH 6/6] dt-bindings: power: supply: qcom,smb2: add bindings for smb2 driver Message-ID: <20220403133122.GA49428@9a2d8922b8f1> References: <20220401202643.877609-1-caleb.connolly@linaro.org> <20220401202643.877609-7-caleb.connolly@linaro.org> <20220403071426.GA49153@9a2d8922b8f1> <798f0244-95dd-cf2d-7bc5-02c72c7fa327@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <798f0244-95dd-cf2d-7bc5-02c72c7fa327@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Sun, Apr 03, 2022 at 09:56:25AM +0200, Krzysztof Kozlowski wrote: > On 03/04/2022 09:14, Kuldeep Singh wrote: > > On Fri, Apr 01, 2022 at 09:26:43PM +0100, Caleb Connolly wrote: > >> Add devicetree bindings for the Qualcomm PMI8998/PM660 SMB2 charger > >> drivers. > >> > > (...) > > > > >> + pmic { > >> + #address-cells = <1>; > >> + #size-cells = <0>; > >> + #interrupt-cells = <4>; > >> + > >> + smb2@1000 { > >> + compatible = "qcom,pmi8998-smb2"; > >> + reg = <0x1000>; > >> + > >> + interrupts = <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>; > >> + interrupt-names = "usb-plugin"; > >> + > > > > In-between new lines may not be required. > > And DTs use tabs instead of 2 spaces, we can follow that here also. > > The DT examples in bindings use spaces. Either two (like YAML) or four > (for easier reading). ok, since example snippet is taken from DT that's why I said four spaces(tab) as it will be closest to actual env. > > > > >> + io-channels = <&pmi8998_rradc 3>, > >> + <&pmi8998_rradc 4>; > >> + io-channel-names = "usbin_i", > >> + "usbin_v"; > > > > Channel-names can be written in one line. > > They match the format of io-channels, so this is quite readable. io-channels doesn't exceed max characters in line(i.e 75) even after being clubbed. Won't be better if kept in one line? This might be personal perspective but I thought it's worth mentioning.