From patchwork Mon Jun 5 11:17:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 9766065 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 CAA5A602BF for ; Mon, 5 Jun 2017 11:18:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC4F127F8E for ; Mon, 5 Jun 2017 11:18:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0D24281B7; Mon, 5 Jun 2017 11:18:33 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham 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 3370B27F8E for ; Mon, 5 Jun 2017 11:18:33 +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: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:In-Reply-To: References:List-Owner; bh=9LKG4Nqv3Q4CLCcPoTjw2XS27NpNRwTRJeZ39kfovKA=; b=DLr m+vnquqkYqHgwcYMQtszYnANztiZlqN1teEHiBRqXDoNuZyN1VKBqE9prtovYUd/IwKzxcs2HWaam FsKgY3ylfjK6w8NUOiOZGOt1iRK+w+K6uZIucLxcWHsiMsgccZk7G78goRUqVUvSlXTWhUcQRkfhV b3K5X3nujU14EpWUHGPnGRL+m7EknznpDrLp2UHQ2OtlNc5AYYNVsNN0FYnOsLS4jNDeKLUD0oepz AlvW5WL0s/NBbS0Rx0d9+XXVTXgRh6ZbBZ4ORkmrrz2qfRYFb8nTLMLGf/t6LPuBrZSlWBDIfN9Cp DUSrUk+7qktQGKq0wYtPJNna0HT105Q==; 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 1dHq1o-0007Ek-9r; Mon, 05 Jun 2017 11:18:32 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dHq1k-0007DM-Cy for linux-arm-kernel@lists.infradead.org; Mon, 05 Jun 2017 11:18:29 +0000 Received: by mail-qt0-x242.google.com with SMTP id w1so14874066qtg.0 for ; Mon, 05 Jun 2017 04:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=2IWUhqbdUuRoXR5lDRHoLBNcQ0PvyM59bEVX55TOGzI=; b=gNWk8gCrSzIwYt684JPenqFrZgOD3eJ8o5D6A9xtjkFZBscChxXfzyHTVvoZy0n/oH Gst62e2G0UPndBIKyTbha0uFmg8PecZ7l6zFl7jL1A3ry4Curm0DS+QENRcot6CqebJ9 Y9PiKRY9P14XTu/kWyGhbcjimXUeVxD7c/kMu4HYUWpzHr4dR1D+RwlO3u6CLJIdSPQy sZ5WoPzs1IfzIxeg+df4ciOlNLUU6yL35h/frLYJn/zTI94H7/xuB0GOJ16VUFjwqs1n dVO5tKzRCSTRW9ztfBQQiaKUmk85a+LS5KrxBlVTrnkZDT6khs1hdhB6iJZ8XeNau+GX UGNg== 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; bh=2IWUhqbdUuRoXR5lDRHoLBNcQ0PvyM59bEVX55TOGzI=; b=WftmyCG80Ng2R+BkKQeugmhJmdMroF6JfSqS/rjXGmOs+fRcffAKFDjpQqZtlMXUu2 hYizMWlQLAamvXrsIzWewkrPzFgmjy19ofRv7l0t6jnrfGjEdtMCnYaMMQfrzWzYoNy9 kYONKzS/xxqs3BHC+upQ2iOBrHjB8PzGYQQQDL6KAztP4R4eNJhe8SAq9gPFIEZfQNhp JlyTn9BN04hiZw+ZfhqObpr0QIsCL0A0awDK10QQbW5rOY31KEYHbIzHbJkCRpRixN9u VwsxEfDm49mcs3mBwHhziqje+ym/qdU+4tUHy8iZ0e4qdkql90QLZwo87Xw7IE3Nz/kn xDeQ== X-Gm-Message-State: AODbwcC7JlIK6N5QpoaKLuJ4JXq2KeNnd8rMugiNd8vYwyJzALCxsQF+ oJ8mf/BbVKaOIw== X-Received: by 10.200.3.162 with SMTP id t34mr17763795qtg.232.1496661486825; Mon, 05 Jun 2017 04:18:06 -0700 (PDT) Received: from localhost.localdomain ([187.180.180.180]) by smtp.gmail.com with ESMTPSA id o49sm5816904qta.34.2017.06.05.04.18.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Jun 2017 04:18:06 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH v2 1/3] ARM: dts: imx7d-sdb: Adjust the regulator nodes Date: Mon, 5 Jun 2017 08:17:47 -0300 Message-Id: <1496661469-15735-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170605_041828_516731_7E016804 X-CRM114-Status: GOOD ( 11.27 ) 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: Fabio Estevam , linux-arm-kernel@lists.infradead.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: Fabio Estevam It is not recommended to place the regulator nodes inside 'simple-bus', so adjust them accordingly. The motivation for rearranging this is to make it easier to add new regulator nodes in the future. Signed-off-by: Fabio Estevam --- Changes since v1: - None arch/arm/boot/dts/imx7d-sdb.dts | 66 +++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 38 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 77c400f..38944ca 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -73,47 +73,37 @@ }; }; - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; - - reg_usb_otg1_vbus: regulator@0 { - compatible = "regulator-fixed"; - reg = <0>; - regulator-name = "usb_otg1_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; + reg_usb_otg1_vbus: regulator-usb-otg1-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; - reg_usb_otg2_vbus: regulator@1 { - compatible = "regulator-fixed"; - reg = <1>; - regulator-name = "usb_otg2_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - gpio = <&gpio4 7 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; + reg_usb_otg2_vbus: regulator-usb-otg1-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg2_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 7 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; - reg_can2_3v3: regulator@2 { - compatible = "regulator-fixed"; - reg = <2>; - regulator-name = "can2-3v3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - gpio = <&gpio1 7 GPIO_ACTIVE_LOW>; - }; + reg_can2_3v3: regulator-can2-3v3 { + compatible = "regulator-fixed"; + regulator-name = "can2-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; - reg_vref_1v8: regulator@3 { - compatible = "regulator-fixed"; - reg = <3>; - regulator-name = "vref-1v8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; + reg_vref_1v8: regulator-vref-1v8 { + compatible = "regulator-fixed"; + regulator-name = "vref-1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; }; };