From patchwork Fri Dec 1 06:38:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: venkataravi.e@techveda.org X-Patchwork-Id: 10086373 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A48260327 for ; Fri, 1 Dec 2017 06:44:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47DCB2A4C5 for ; Fri, 1 Dec 2017 06:44:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BC672A4C9; Fri, 1 Dec 2017 06:44:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A0F962A4C5 for ; Fri, 1 Dec 2017 06:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=X1to/yxAEx7VqM9NPvJejwV8otdN3l8ssePeAR0gNP0=; b=ntMKFuucTr5ND9sGOO4qOGXJp0 rh4jGs5DyCKFgUSUCBu6pbvIsMWt54rapA2188sfAF1mSXPfhSFiiYMit90/1V63osABkiLE9n4PK fw3Yj+UNgo6a+0gVBJ18HjJG2AhGCys+gxoazrqkT3vcL0Kc6Drf0s2eTeqsTwT+ue1pe6KwJmglb RdpiOWgw3Zd2MnUw/4m7+6FFsnK816rNUM64LW1b+6+15Ta/gf7z0izVcw2AD3hqsSwISJUMYfPNM ZFx/vzxb3ButDEo1fCnMhgcp2jAjmXkewPVgQMXxyc5DxhitkzC37iVuZo7mVQMq4dqw9XC3+OPya ldIiuUpg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eKf3u-0007C4-MF; Fri, 01 Dec 2017 06:44:38 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKeyg-0004NO-Ig for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2017 06:39:24 +0000 Received: by mail-pg0-x242.google.com with SMTP id j9so4093620pgc.11 for ; Thu, 30 Nov 2017 22:38:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=techveda-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AoG1n29C3hiVwW68PZVYaWZgWz1ng7VFOEBqygBtm4E=; b=LTR9sAx8f73rBJZEgB1q7jIcuf+GLb/qvgaVFWuTcuwZAUa3VXd+iKq9fGNdHRbjDq pozEznkaEOGMZA/ypAkKkdIDFvwpTt1i2Py3dnJtxrvSImC+mHzkQTz8khauiTbSjnJd gRvzHian79XbEgST7lQphG3+TUWfpUJy7D8S7OgSrF2c5kCigAXPgVAKpAI035OJfZxI dUikzN2Jif6I0EZU7+SPRgUGXJlca32hilDg4IGqKVUx4v0NeArYBlc7eOIi5IqGWIPD df9oW+LYe2+CLMgGE5OXXyHwqrxdI9t5teHl9i7DAW+Sl1uXGH0wxby0n8nOjZpJOTi1 z/hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AoG1n29C3hiVwW68PZVYaWZgWz1ng7VFOEBqygBtm4E=; b=syllPWRP7uR7eqQsbxiH4dTOfyUL2NTvfrmmnJBfvExlZThQjX4QFOc0qGQlEPBKml OeYpV10XaA4SBpm/1JtrCNDl6pF3h5V4YwmDpkxjAFc1UlebgGLuQvSuIZs4Aj8S/db6 6eLGSqGzGOtH59sWW9KUaUeD4zGTZBmlXYEZj/FonvaYWUxJvhPhklY1D4Jkw+4Ucr6M r6MHG3rWMqyqw/L5c8bGpeTsKLtaP4Pc2t5s5IKYrWL5VvLZGdj6TA7D60RCK+Qc8TSM uM/NjvSFeD6GOwHjBmsUm8cnbZutYrNB4Mpf75sLHF0t1Y7Jtiua7NyN5a0gAi0FCMYh leNA== X-Gm-Message-State: AJaThX6X044DpN8rYPgvCpDMOyKoHN2oDB2kFdcpk3vxQI7IqPo99rX5 JNWnv2DcEMwwURqgNSawncwA9iw9yC4= X-Google-Smtp-Source: AGs4zMYGkg9p2xiXdGyUqzl3IWMr7T5KjWS/Ru9so8LaeahchROO16eW7CowRGlY3gFMv+bdxETrcQ== X-Received: by 10.98.78.204 with SMTP id c195mr9375525pfb.51.1512110333666; Thu, 30 Nov 2017 22:38:53 -0800 (PST) Received: from localhost.localdomain ([124.123.42.5]) by smtp.gmail.com with ESMTPSA id f79sm10782366pfd.45.2017.11.30.22.38.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Nov 2017 22:38:53 -0800 (PST) From: venkataravi.e@techveda.org To: shawnguo@kernel.org, kernel@pengutronix.de, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk Subject: [PATCH 3/4] arm: dts: imx28: Rearrange nodes for better readability Date: Fri, 1 Dec 2017 12:08:30 +0530 Message-Id: <1512110311-15788-4-git-send-email-venkataravi.e@techveda.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1512110311-15788-1-git-send-email-venkataravi.e@techveda.org> References: <1512110311-15788-1-git-send-email-venkataravi.e@techveda.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171130_223915_409832_90558305 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, karthik@techveda.org, linux-kernel@vger.kernel.org, Ravi Eluri , fabio.estevam@nxp.com, Suniel Mahesh , linux-arm-kernel@lists.infradead.org, shrikant.maurya@techveda.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ravi Eluri Moved regulator, sound, leds, backlight nodes to the top of the device tree, cleaned up for better readability. Signed-off-by: Ravi Eluri Signed-off-by: Suniel Mahesh --- Note: - This is the third patch of the four patch series. - Patch was compile tested and built(ARCH=arm, imx28) on linux-next (latest). - No build issues reported. - Please discard this changeset, if this is not making any better. --- arch/arm/boot/dts/imx28-evk.dts | 203 ++++++++++++++++++++-------------------- 1 file changed, 101 insertions(+), 102 deletions(-) diff --git a/arch/arm/boot/dts/imx28-evk.dts b/arch/arm/boot/dts/imx28-evk.dts index 28564864..9d74486 100644 --- a/arch/arm/boot/dts/imx28-evk.dts +++ b/arch/arm/boot/dts/imx28-evk.dts @@ -20,6 +20,107 @@ reg = <0x40000000 0x08000000>; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_3p3v: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + reg_vddio_sd0: regulator@1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "vddio-sd0"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio3 28 0>; + }; + + reg_fec_3v3: regulator@2 { + compatible = "regulator-fixed"; + reg = <2>; + regulator-name = "fec-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio2 15 0>; + }; + + reg_usb0_vbus: regulator@3 { + compatible = "regulator-fixed"; + reg = <3>; + regulator-name = "usb0_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 9 0>; + enable-active-high; + }; + + reg_usb1_vbus: regulator@4 { + compatible = "regulator-fixed"; + reg = <4>; + regulator-name = "usb1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 8 0>; + enable-active-high; + }; + + reg_lcd_3v3: regulator@5 { + compatible = "regulator-fixed"; + reg = <5>; + regulator-name = "lcd-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio3 30 0>; + enable-active-high; + }; + + reg_can_3v3: regulator@6 { + compatible = "regulator-fixed"; + reg = <6>; + regulator-name = "can-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio2 13 0>; + enable-active-high; + }; + }; + + sound { + compatible = "fsl,imx28-evk-sgtl5000", + "fsl,mxs-audio-sgtl5000"; + model = "imx28-evk-sgtl5000"; + saif-controllers = <&saif0 &saif1>; + audio-codec = <&sgtl5000>; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pin_gpio3_5>; + + user { + label = "Heartbeat"; + gpios = <&gpio3 5 0>; + linux,default-trigger = "heartbeat"; + }; + }; + + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 2 5000000>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + }; +}; + &gpmi { pinctrl-names = "default"; pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg @@ -266,105 +367,3 @@ pinctrl-0 = <&mac1_pins_a>; status = "okay"; }; - - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - reg_3p3v: regulator@0 { - compatible = "regulator-fixed"; - reg = <0>; - regulator-name = "3P3V"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; - - reg_vddio_sd0: regulator@1 { - compatible = "regulator-fixed"; - reg = <1>; - regulator-name = "vddio-sd0"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - gpio = <&gpio3 28 0>; - }; - - reg_fec_3v3: regulator@2 { - compatible = "regulator-fixed"; - reg = <2>; - regulator-name = "fec-3v3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - gpio = <&gpio2 15 0>; - }; - - reg_usb0_vbus: regulator@3 { - compatible = "regulator-fixed"; - reg = <3>; - regulator-name = "usb0_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - gpio = <&gpio3 9 0>; - enable-active-high; - }; - - reg_usb1_vbus: regulator@4 { - compatible = "regulator-fixed"; - reg = <4>; - regulator-name = "usb1_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - gpio = <&gpio3 8 0>; - enable-active-high; - }; - - reg_lcd_3v3: regulator@5 { - compatible = "regulator-fixed"; - reg = <5>; - regulator-name = "lcd-3v3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - gpio = <&gpio3 30 0>; - enable-active-high; - }; - - reg_can_3v3: regulator@6 { - compatible = "regulator-fixed"; - reg = <6>; - regulator-name = "can-3v3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - gpio = <&gpio2 13 0>; - enable-active-high; - }; - - }; - - sound { - compatible = "fsl,imx28-evk-sgtl5000", - "fsl,mxs-audio-sgtl5000"; - model = "imx28-evk-sgtl5000"; - saif-controllers = <&saif0 &saif1>; - audio-codec = <&sgtl5000>; - }; - - leds { - compatible = "gpio-leds"; - pinctrl-names = "default"; - pinctrl-0 = <&led_pin_gpio3_5>; - - user { - label = "Heartbeat"; - gpios = <&gpio3 5 0>; - linux,default-trigger = "heartbeat"; - }; - }; - - backlight { - compatible = "pwm-backlight"; - pwms = <&pwm 2 5000000>; - brightness-levels = <0 4 8 16 32 64 128 255>; - default-brightness-level = <6>; - }; -};