From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [PATCH 5/5] ARM: dts: add Qualcomm APQ8060-based Dragonboard Date: Tue, 14 Jun 2016 12:11:54 -0700 Message-ID: <20160614191154.GK28218@codeaurora.org> References: <1465918259-11138-1-git-send-email-linus.walleij@linaro.org> <1465918259-11138-6-git-send-email-linus.walleij@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:56348 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752710AbcFNTL4 (ORCPT ); Tue, 14 Jun 2016 15:11:56 -0400 Content-Disposition: inline In-Reply-To: <1465918259-11138-6-git-send-email-linus.walleij@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Andy Gross , Bjorn Andersson , David Brown On 06/14, Linus Walleij wrote: > +/ { > + model = "Qualcomm APQ8060 Dragonboard"; > + compatible = "qcom,apq8060-dragonboard", "qcom,msm8660"; > + > + aliases { > + serial0 = &gsbi12_serial; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + regulators { > + compatible = "simple-bus"; > + /* Main power of the board: 3.7V */ > + vph: regulator-fixed@1 { > + compatible = "regulator-fixed"; > + regulator-min-microvolt = <3700000>; > + regulator-max-microvolt = <3700000>; > + regulator-name = "VPH"; > + regulator-type = "voltage"; > + regulator-always-on; > + regulator-boot-on; > + }; > + }; > + > + /* This is a levelshifter for SDCC5 */ > + dragon_vio_txb: txb0104rgyr { > + compatible = "regulator-fixed"; > + regulator-name = "Dragon SDCC levelshifter"; > + vin-supply = <&pm8058_l14>; > + regulator-always-on; > + }; Why not put this under regulators node as well? > + > + soc { > + gsbi@19c00000 { > + status = "ok"; > + pinctrl-names = "default"; > + pinctrl-0 = <&dragon_serial0_pins>; > + qcom,mode = ; > + serial@19c40000 { > + status = "ok"; > + }; > + }; > + }; > +}; > + > +/* Intenal 3.69 GiB eMMC */ > +&sdcc1 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&dragon_sdcc1_pins>; > + vmmc-supply = <&pm8901_l5>; > + vqmmc-supply = <&pm8901_lvs0>; > +}; I think we're following a non-phandle approach to filling out board dts files. We didn't follow it that well on 8660 surf, probably because it was so basic, but it would be nice to follow that style here as well and populate board properties in nodes like how gsbi@19c00000 has been done. I'll leave this up to Andy though as he's the maintainer here. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project