Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp401777rwi; Wed, 2 Nov 2022 13:20:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4jpjvWTtoBjD3vgcYzOZ5GAE89fdeOLNhJGCQkyB60LKhL8I125DQESuaUuV3RDDjKMI28 X-Received: by 2002:a17:90a:1150:b0:213:a42b:a734 with SMTP id d16-20020a17090a115000b00213a42ba734mr27828300pje.163.1667420403910; Wed, 02 Nov 2022 13:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667420403; cv=none; d=google.com; s=arc-20160816; b=b0q9VF6kriyoNo2V5E8MUAO815bYuCjHq4YrL1ji+PWiTLtWxB8d5cnzEjoLflDFLd 5XLYbe54/qtuRAyAxAprRvC8gqdUTn2yQj9RY5L0MTnZULsizWnoi2vGdZl43Kmg46N4 k581kqzeQNqYRAlCgUwblIRRv/D+CLet3mE0jItA8KCp7AvHBFqj9A+bNbVSU8LiV82z RhWv2PO28pHwxnZEA1k0ShcFs+6DsmpFTi7z3XW4gQV29enZy0b1+HdpU6LdznTudtRp QGeJwIMmc1QKiw0YqZ7F3PFiOrdLr7wOANf9D3cwIAhJ5cHTRdsDCIIlTAUJsy9pOJt6 NIpw== 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=Yw7xr6XGV942HI1J/P1VOnNmIWz05zkG8h6oceBNmc0=; b=p0g2b14VyUvFLiZGkHlBevqdSmLX7uoLYqXhbagZUIgAxe2uwrdVWOYwKGX5fm0U/V qsY9T00drgOGtRRQY1S2mnVwQOhh+93kmQDusK3rS1xdp8Jrr6E//dz087i1VeBQ7PS/ sXqYBM6/7i41sGXZ5wx3/g+xj3lnU2P3eW0fikzUI24OAQ8tQeEIFI7rUWdShn+0lrV3 cXXjRff+zYLbn0XX9iphjUUNxadVDaBeWo89TuTu7xfP0Jd7GL+ncBtUf7EClNNkYPI4 O7A49b2YKiosft+MrMVHJjN6nGJ90TKOmjiNx/P2NffGjrp9RWqSaWY2QZpZ1I2CQm0A jSKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JngsSnSx; 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 126-20020a630284000000b0046086f8f5cfsi16546561pgc.383.2022.11.02.13.19.41; Wed, 02 Nov 2022 13:20:03 -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=JngsSnSx; 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 S229561AbiKBUGX (ORCPT + 99 others); Wed, 2 Nov 2022 16:06:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbiKBUGU (ORCPT ); Wed, 2 Nov 2022 16:06:20 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6573E2AB for ; Wed, 2 Nov 2022 13:06:19 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id x15so1511qtv.9 for ; Wed, 02 Nov 2022 13:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Yw7xr6XGV942HI1J/P1VOnNmIWz05zkG8h6oceBNmc0=; b=JngsSnSxIC/YekEx4ZEBTJJvvioI6sOwWqXosLVCPfzfJQJZbPdJT8WaV7IUGbK9oR NFHvbiH5pzKLr7oMbroMX59jkFL0/5rP72YNqUxBMO3nSSO0aTelRRy/0Uxtiadatmuf LTlBmThoAkSI6t9uRgg5CD5eHaIZmS7ZqO0gkLP26JzZQa86J/p9ZWhcvm9tKnXnGCKg FScv2c/55CMaj/PanRz6MWIDZAqOtkUg/ikbrCyrh4k5/DdbZkdb0iLGvUfD2m5IU3RU 0EKDZrEPUOb2bTemJuP4TlzEEHrVyJO3ycfR+zZGW3NNsGqfP1E/jaBiipIqFKrCKafU jqOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Yw7xr6XGV942HI1J/P1VOnNmIWz05zkG8h6oceBNmc0=; b=lQ1ZTvQ1MPUhj4S6K3REAfCYXNrZkH0LHj4YOwGGNxPMFz+a2bJuX7j6Ko5tUuSAFU EGBPveME00hfQ+fKXM9F4AfvlXpDsaBeLm3bC5uHcvpQU7js1MfAosD7Y/TN/fJVWKXq tcmelcYIteBDBYxPXh3yc500WXd1yE83kw8aowsPMTDpiijd3rfjJ7VZ9Q2gvTV9d0Po rOEaWGrr+YuFlLvS2+JAPhcZf3JCm//U8OkK1YvimMMfKWd6MVHkUO59VF/YZVtNBGnC Goqc5O2GYE/gCLK1JxPM8018MFv5IQYu9ranL6JS1jLU0v2m/W3ObCxblASK2lZkh9bO w55w== X-Gm-Message-State: ACrzQf3CzuCm+2iSmb+WWaem6dF5u84GiyFndwgPe2qOaVYlPVdYWpLH HSFI96MPrD5Fb0STCNybt4Kmsg== X-Received: by 2002:a05:622a:407:b0:39a:836:acfe with SMTP id n7-20020a05622a040700b0039a0836acfemr21162494qtx.133.1667419578577; Wed, 02 Nov 2022 13:06:18 -0700 (PDT) Received: from ?IPV6:2601:586:5000:570:28d9:4790:bc16:cc93? ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id n17-20020a05620a295100b006ce2c3c48ebsm9267702qkp.77.2022.11.02.13.06.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Nov 2022 13:06:18 -0700 (PDT) Message-ID: <86314819-6842-cfea-73d8-c991109742df@linaro.org> Date: Wed, 2 Nov 2022 16:06:17 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v2 01/12] dt-bindings: iio: qcom: adc7-pm8350: Allow specifying SID for channels Content-Language: en-US To: Manivannan Sadhasivam , andersson@kernel.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> <20221029051449.30678-2-manivannan.sadhasivam@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <20221029051449.30678-2-manivannan.sadhasivam@linaro.org> 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 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 29/10/2022 01:14, Manivannan Sadhasivam wrote: > As per the new ADC7 architecture used by the Qualcomm PMICs, each PMIC > has the static Slave ID (SID) assigned by default. The primary PMIC > PMK8350 is responsible for collecting the temperature/voltage data from > the slave PMICs and exposing them via it's registers. > > For getting the measurements from the slave PMICs, PMK8350 uses the > channel ID encoded with the SID of the relevant PMIC. So far, the > dt-binding for the slave PMIC PM8350 assumed that there will be only > one PM8350 in a system. So it harcoded SID 1 with channel IDs. > > But this got changed in platforms such as Lenovo X13s where there are a > couple of PM8350 PMICs available. So to address multiple PM8350s, change > the binding to accept the SID specified by the user and use it for > encoding the channel ID. > > It should be noted that, even though the SID is static it is not > globally unique. Only the primary PMIC has the unique SID id 0. > > Signed-off-by: Manivannan Sadhasivam Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof