Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2943683imm; Thu, 24 May 2018 19:35:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrXIT7zbb1okKMKD13QPPJuO5Tv5MQkFifZd2P9ebPltlerEMZChpbeTcIuUQxmB0ChoCJb X-Received: by 2002:a62:a89:: with SMTP id 9-v6mr581346pfk.112.1527215724810; Thu, 24 May 2018 19:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215724; cv=none; d=google.com; s=arc-20160816; b=tp1rO6M8mnx/RXV5Ok2uzGUfOrg5FA2p8ApgunaZ4j9EeKEEQl4vtY+xd3y2vg/nrd A4EQ39k54CE3C5gpSJyuvXrIbJ1Ud7DeNrzCr8faz24/x53+gWKJEnB4Wc7J4CaJV1p6 MEwO4te5WF+oe4CG/BUyNzXqxYuhtvHfvsYh5nc7OQ6887pSspePsW3958oBLteWMb+h FZSj01mgWzruSelZChoMYTbLDqKSSSij6fqWKO532Ps+19ZmeEdak5XSLTcWEIITY011 GjqkCxNn1sGJCL/O13qBX0hVLxWA0+J7VikpMhgB4OmUU3+YLC+nEyW3QOpeqoCPBY8t AetA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=iDhqagysjPhf3H4MoQyK5eMT6ayo8cvO33L1bphEYfU=; b=i32+z5ytyeCX86+rnzyRyh5N9VtEZnl7dxPm6QJcr7qXwMkvg6ZwgEtFtw18aHkm7Y qvc6c1xl0zROfFmIZMpK5ftaEoDU7qM+a0qBz+3fc9phVvEbC7lBqVUwh3Z+kz4ZBCJE RlEdoiqgDYAXq+KQDd+fkIWuuAsWlzFDZp1IESDGmu5FcIQ3Xtde0tEHg1/aktUemj4b 2bAd1FJgwpE5E1iNovzle1DBlpT+R4ktK18GZTh2wYhXNN/WRrNVUGAbzZ5iBo/5dh0o 1WtelnMCNdEcXi4g58wTGWic4UfT2lo2U1bSG/N9bcAVR444yT2O3KpGy5YWxMwrFvJ7 ++8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t128-v6si17962984pgt.368.2018.05.24.19.35.10; Thu, 24 May 2018 19:35:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031014AbeEXRqP convert rfc822-to-8bit (ORCPT + 99 others); Thu, 24 May 2018 13:46:15 -0400 Received: from mailgate1.rohmeurope.com ([178.15.145.194]:64418 "EHLO mailgate1.rohmeurope.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030941AbeEXRqC (ORCPT ); Thu, 24 May 2018 13:46:02 -0400 X-Greylist: delayed 901 seconds by postgrey-1.27 at vger.kernel.org; Thu, 24 May 2018 13:46:01 EDT X-AuditID: c0a8fbf4-fe7ff70000000f28-d5-5b06f6d1673e Received: from smtp.reu.rohmeu.com (will-cas001.reu.rohmeu.com [192.168.251.177]) by mailgate1.rohmeurope.com (Symantec Messaging Gateway) with SMTP id 8A.B3.03880.1D6F60B5; Thu, 24 May 2018 19:30:58 +0200 (CEST) Received: from WILL-MAIL002.REu.RohmEu.com ([fe80::e0c3:e88c:5f22:d174]) by WILL-CAS001.REu.RohmEu.com ([fe80::d57e:33d0:7a5d:f0a6%16]) with mapi id 14.03.0382.000; Thu, 24 May 2018 19:30:57 +0200 From: "Vaittinen, Matti" To: Mark Brown CC: "mturquette@baylibre.com" , "sboyd@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "lee.jones@linaro.org" , "lgirdwood@gmail.com" , "mazziesaccount@gmail.com" , "linux-clk@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Mutanen, Mikko" , "Haikola, Heikki" Subject: RE: [PATCH 4/9] regulator: bd71837: Devicetree bindings for BD71837 regulators Thread-Topic: [PATCH 4/9] regulator: bd71837: Devicetree bindings for BD71837 regulators Thread-Index: AQHT82ez5186Arb5LUSGxLz4W0eXMqQ/HO9p Date: Thu, 24 May 2018 17:30:57 +0000 Message-ID: <042F8805D2046347BB8420BEAE397A4016C06B47@WILL-MAIL002.REu.RohmEu.com> References: <20180524055752.GE4249@localhost.localdomain>,<20180524140118.GS4828@sirena.org.uk> In-Reply-To: <20180524140118.GS4828@sirena.org.uk> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [213.216.252.121] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgk+LIzCtJLcpLzFFi42I5sOL3Rt1L39iiDU73MllMffiEzWL+kXOs Fve/HmW0+Halg8niY889VovLu+awWSy9fpHJYs7SEywWF0+5WrTuPcJu8e/aRhYHbo8189Yw ery/0crusXPWXXaPTas62TzuXNvD5vF5k1wAWxS3TVJiSVlwZnqevl0Cd8adFQsYC7oFKrp+ XGVvYGzm7WLk4JAQMJFY9sq+i5GLQ0jgGqPEv8Z5TBDOCUaJ/4cXsIEUsQnYSHTdZO9i5OQQ EVCWuPp9LwtIDbPALxaJLRtugSWEBSIlzvecZ4MoipJ4fPEsE4RtJPG+s4UZxGYRUJVYtPYf I8hMXoEgiVU9TiBhIYF4iQkd/YwgNidQ+cX7bWDljAKyEp0N78DGMAuIS9x6Mh/MlhAQkFiy 5zwzhC0q8fLxP1YIW1lizamdbBD1OhILdn+CsrUlli18DVbPKyAocXLmE5YJjKKzkIydhaRl FpKWWUhaFjCyrGKUyE3MzElPLEk11CtKLdUrys/IBVLJ+bmbGCGx+mUH4/9DnocYBTgYlXh4 276wRQuxJpYVV+YeYpTkYFIS5WV4BRTiS8pPqcxILM6ILyrNSS0+xCjBwawkwrsgCSjHm5JY WZValA+TkuZgURLnjTr/K0pIAGRzdmpqQWoRTFaGg0NJgvfSV6BGwaLU9NSKtMycEoQ0Ewcn yHAuKZHi1LyU1KLE0pKMeFCqiC8GJguQFA/Q3rUgZ/IWFyTmAkUhWk8xSkqJ83aBzBUASWSU 5sGNfcUoDvSdMO91kCwPMFnDdb0CGsgENPDicmaQgSWJCCmpBsY+h98mhfHTjrw8MP34r2nX Lxy8wm16e/OuH/zaj5tUbz5vF7q3aJ5Femzggjkz+c/JBjln80/5tMT9ssqGBqMIo0lXUkxv RWe9Wbtpi9Yx7k69ws2vL0q1vd71OstB6Bb/G3lR0apMyWsuWsmCP+VXLxZVrkvaelJ36u/w B3MmMgvLdqdt7O9VYinOSDTUYi4qTgQAPuMmE5MDAAA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Mark, First of all, thank you for taking your time to check the patches. I do appreciate it. I find reading patches hard myself. > From: Mark Brown [broonie@kernel.org] > Sent: Thursday, May 24, 2018 5:01 PM > > > On Thu, May 24, 2018 at 08:57:52AM +0300, Matti Vaittinen wrote: > > > +Required properties: > > + - compatible: should be "rohm,bd71837-pmic". > > + - regulator-name: should be "buck1", ..., "buck8" and "ldo1", ..., "ldo7" > > The MFD is for a single device, there should be no need for compatibles > on subfunctions. I will check this. I must admit I am not sure what is the de-facto mechanism for assigning the correct device-tree nodes to sub devices if compatibles are not used? I think I saw device-tree node name being used for regulators but how is it done for example with clk? I would be grateful if anyone could point me to right direction with this. Also, another thing I was wondering is how supply regulators should be handled? In this case the LDO5 is supplied by BUCK6 and LDO6 by BUCK7. From generic regulator bindings /Documentation/devicetree/bindings/regulator/regulator.txt I found statement: > - -supply: phandle to the parent supply/regulator node and > Regulator Consumers: > Consumer nodes can reference one or more of its supplies/ > regulators using the below bindings. > > - -supply: phandle to the regulator node > > These are the same bindings that a regulator in the above > example used to reference its own supply, in which case > ts just seen as a special case of a regulator being a > consumer itself. but I did not find handling for the supply properties from regulator core. Thus I ended up hard coding the supply relation in driver. This means that buck6 name must be fixed. Br, Matti Vaittinen