From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762619AbcALOat (ORCPT ); Tue, 12 Jan 2016 09:30:49 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36229 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762465AbcALOar (ORCPT ); Tue, 12 Jan 2016 09:30:47 -0500 Message-ID: <56950E0A.2000005@linaro.org> Date: Tue, 12 Jan 2016 14:30:34 +0000 From: Srinivas Kandagatla User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Arnd Bergmann CC: andy.gross@linaro.org, linux-arm-msm@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] arm64: dts: apq8016-sbc: add regulators support References: <1452606358-24569-1-git-send-email-srinivas.kandagatla@linaro.org> <1452606392-24614-1-git-send-email-srinivas.kandagatla@linaro.org> <7998607.BblzgPxGPW@wuerfel> In-Reply-To: <7998607.BblzgPxGPW@wuerfel> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/01/16 13:59, Arnd Bergmann wrote: > On Tuesday 12 January 2016 13:46:32 Srinivas Kandagatla wrote: >> }; >> >> + smd { >> + rpm { >> + rpm-requests { >> + pm8916-regulators { >> + >> + vdd_l1_l2_l3-supply = <&pm8916_s3>; >> + vdd_l5-supply = <&pm8916_s3>; >> + vdd_l4_l5_l6-supply = <&pm8916_s4>; >> + vdd_l7-supply = <&pm8916_s4>; >> + >> > > If you're nested this deeply, you should consider using labels, e.g. > Labels are good and works for me. Stephen/Andy are you ok to use labels for such deeply nested nodes in board dts? > / { > ... > > smd { > rpm { > rpm-requests { > regulators: pm8916-regulators { > > }; > }; > }; > }; > > ... > }; > > > ®ulators { > vdd_l1_l2_l3-supply = <&pm8916_s3>; > vdd_l5-supply = <&pm8916_s3>; > vdd_l4_l5_l6-supply = <&pm8916_s4>; > vdd_l7-supply = <&pm8916_s4>; > > s1 { > regulator-min-microvolt = <375000>; > regulator-max-microvolt = <1562000>; > }; > > s3 { > regulator-min-microvolt = <375000>; > regulator-max-microvolt = <1562000>; > }; > > ... > }; > > btw, it seems odd to me that all those nodes under 'smd' > have names but no addresses. These regulators are identified by the node names, and have no addresses associated with it as control goes over SMD based IPC to the rpm. https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.txt?id=refs/tags/next-20160112 --srini > > Arnd >