From patchwork Fri Feb 15 18:07:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 10815661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BFCA4139A for ; Fri, 15 Feb 2019 18:07:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD7A32F824 for ; Fri, 15 Feb 2019 18:07:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E9422F92F; Fri, 15 Feb 2019 18:07:53 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 294112F824 for ; Fri, 15 Feb 2019 18:07:53 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: 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=Ey1bPrfmH94KtBZZgHemKzgoHQbcDCCPFEFly19uy74=; b=b3/CxQLR1kza1/ AGIOsX311PcMuEz1oeG5C2GRLwYManmdvX8SgTk4+RRen3lOAfNmLkEju0v9IcfdDDC6HEdLgpj54 GclvgBArXCZApfyavgghYfug80VTr953Jy100S/5/dykarWwrWBxQ6Ff27uxKrryKbrhM9oNj4LwP w0GMjk+Pf411xzun6bX4zGCzdrA4kY3gsEHz6nLWjc76Kp8nALz3PxIwPIOJRkKnga/vrzAes9T0T P6N2nozZm2n1LtphT6zJJQv6qMF0Jaot2swnOvyeRihE+u0XPdmp1W1QPoRcaqLVJoyC1VtNLXXMt zkrIQjEUHtRcV36Jfh7A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhtv-0002LL-4F; Fri, 15 Feb 2019 18:07:51 +0000 Received: from mail-eopbgr50056.outbound.protection.outlook.com ([40.107.5.56] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhta-0001sN-U7 for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 18:07:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jsLwe/ux5qHYYcijSKkda3JKbWuNB0QqRFnikmhCpBM=; b=hLF4A4JbR+IT2MxW4E5ls2bEPsSS86ZERPIqQCadd2f9HtBeVBQQZ26k261UYC/xhjbUoga3x/I8StMr9Au5s9Eu1L9HcO6LYwQHOdyV2eUf+y2yPyuodyqKti/cdh8KALPgEm8v08kC8DcBTUcnq4/1bd/Efpt2nvX9r52+FS8= Received: from AM0PR04MB5779.eurprd04.prod.outlook.com (20.178.202.151) by AM0PR04MB4385.eurprd04.prod.outlook.com (52.135.149.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Fri, 15 Feb 2019 18:07:23 +0000 Received: from AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c]) by AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c%3]) with mapi id 15.20.1601.023; Fri, 15 Feb 2019 18:07:23 +0000 From: Abel Vesa To: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Lucas Stach , Angus Ainslie Subject: [PATCH v2 2/3] arm64: dts: imx8mq: Add the buck vdd_arm regulator Thread-Topic: [PATCH v2 2/3] arm64: dts: imx8mq: Add the buck vdd_arm regulator Thread-Index: AQHUxVlMid01fUo1802jjVCZ5QXkdg== Date: Fri, 15 Feb 2019 18:07:23 +0000 Message-ID: <1550254032-16451-3-git-send-email-abel.vesa@nxp.com> References: <1550254032-16451-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1550254032-16451-1-git-send-email-abel.vesa@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6PR0502CA0043.eurprd05.prod.outlook.com (2603:10a6:20b:56::20) To AM0PR04MB5779.eurprd04.prod.outlook.com (2603:10a6:208:131::23) x-originating-ip: [95.76.156.53] authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8ae8c690-eaf9-43fa-d425-08d693706f1b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4385; x-ms-traffictypediagnostic: AM0PR04MB4385: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM0PR04MB4385; 23:EIobiVJ462uZUm61og3MaNDh8ggkUCJBR4iMKe/?= =?iso-8859-1?q?vBLEQiUmPrg432a?= =?iso-8859-1?q?c91WjATpbwXhe7Ohbfr85iDIzAMaFAd7wdwjsO520hThojeyvZ0pLF/uK9K7?= =?iso-8859-1?q?jvlvKwVs88GnkYCNGG5xwfp6voYf29IXVBgwz0Ylq7pR/GiIdMwePbijtRWo?= =?iso-8859-1?q?R+kUk8Gsi84sOI0mUpI1P7droYjHN2gT+ppyXCJIIGrh2FwqEHa7h030CdGK?= =?iso-8859-1?q?Ft9KgH1FZ4RFecMNSEa1Dy2Qc2T5nqzrsv7WhO9hycGTujVfKsIfZAKVDtAg?= =?iso-8859-1?q?3MwcA5F27UTrBgrUfN60+OnsgVyEUExUVm+dMWvxTRa1dio3mtpVSsfRWSS5?= =?iso-8859-1?q?R8XM+Z2La8gG9pcog0L9RPM0xjlvjK/eMVEx37Tg1KuzL5YHFFSFc05k2mfP?= =?iso-8859-1?q?F+D/0CKZCMf2Vl7tRje/oy1oACTQqvmHasn3WVsCm+ujq9FLBH7ycPPPPyS0?= =?iso-8859-1?q?AbvZTursjvbOINnb5KowQAAkf6bvN5jSDou2ZG7lAO+ttHo9Al19jgibuqgG?= =?iso-8859-1?q?TiudsiP8BCa443gikIGPvpy4wE1MJpWnVrTKfl4ha56W+HuEUeilduOdLmQC?= =?iso-8859-1?q?SO4TGitT9DaBtepw74QXhDl97ksLZs83DmmRXGnjWequ+XeSdvxtdQD74dAa?= =?iso-8859-1?q?NGpZ7L14OAF//nwN2C7slyHFP/Y6wfbQRgtm7/ScnVV9O8TXuiasAxxDOu6A?= =?iso-8859-1?q?X3R3Z+f4dGTqX1SEOUAcbBGXkx1PBL46ftHhmgj0rQZq66n4c5S2xmdOLYEa?= =?iso-8859-1?q?OpKr4Id6TZca/LMSFwxarhWFy//7qHKRvGsSBGw1W0WVMo5/o/bRdXkl6b4a?= =?iso-8859-1?q?oJh9An4385y19XvxXKIsS2XQJRxROH6tVZY6XxU1reriib03bc91nEcuWaQ9?= =?iso-8859-1?q?r6xIYKjPLBIPvHjxN9NxQzaWMhy8Se6fxojFnjJjHb5t79MAr/GG2quyG5s9?= =?iso-8859-1?q?jvo1LiwSxG0+lX9f8GGGUp+8LLZiGxRt2r/c7Kk1CR0pmpaEwjCsC+GsLI0p?= =?iso-8859-1?q?nwR0XAfh0vPept5Zjn+V6SPy8KMhL2ryFpJs9tizsFYY/sRHSgLx0DZrVWO6?= =?iso-8859-1?q?DFMK1d5rw/IVZ38j8sLLrzpz6HlcoG0axQxIrVRNHs+jbeEUygFjdY/TGPVm?= =?iso-8859-1?q?FDbaE0dZ5xm/HXnP2dVHNfix6wzSDX5lS2rn1KurBTg+Q9RsPcAtDDU6Boxu?= =?iso-8859-1?q?7U8Gjg2uEliFjECct4n9sbEAMb4a2gfZpPQtIiHuVWIzZhdRnvYDGw+V35f6?= =?iso-8859-1?q?fvTRA=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09497C15EB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(376002)(136003)(39860400002)(366004)(189003)(199004)(305945005)(86362001)(97736004)(71200400001)(71190400001)(446003)(102836004)(14454004)(66066001)(478600001)(6506007)(6436002)(386003)(2906002)(7736002)(106356001)(105586002)(44832011)(8676002)(6116002)(81166006)(36756003)(81156014)(3846002)(476003)(486006)(99286004)(52116002)(2616005)(8936002)(110136005)(76176011)(256004)(54906003)(316002)(26005)(53936002)(11346002)(25786009)(6486002)(4326008)(6512007)(68736007)(186003)(50226002)(32563001)(414714003)(473944003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4385; H:AM0PR04MB5779.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 5CEGOCCBFjxYa4MS8DUA+L6xQdQSP0k5vdHf3J8pDh42UPdnTsQf3bvee3V1oJ7xdf8h6QthLr0o5ujN5TsDhgXlfDObA+TZ2MyxcU28shqNvFTwyqOQpy2v9HBHIrFuo6abZLICOyff6lZy1bOVbY5UO5jyUq80ifiKIwdF2XfbipRLAbN70L/1L/bxw+vGDCvZx/+468hVDfDTNNiVjOTxtnXdDq0fg8WJ6hcC9z0rmjJfdXrIeikBELT+d5l2XvG/aUUVbc1BbgtcA85Xko3ZrpiWdSrVBPsvenvQVB30zuqBHWNpvmO25guCymrXbuyy0U2sKTAzV7WLSoVhfttVNDx8T8Gs8gAD/uBuExjXRd6GhPOIisczbVmuOCB71mNIPJC7Q203bYVpBp7aEf/5aFaQFjD01dLg4BPIKRQ= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ae8c690-eaf9-43fa-d425-08d693706f1b X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2019 18:07:22.2994 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4385 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_100731_170905_D0812BF6 X-CRM114-Status: GOOD ( 11.86 ) 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" , Abel Vesa , Anson Huang , Linux Kernel Mailing List , dl-linux-imx , Fabio Estevam , "linux-arm-kernel@lists.infradead.org" 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 According to the schematics, this is a MP2147 switch converter which is controlled by GPIO1_IO13. When set the gpio is set to high the regulator output is set to 0.9V. When the gpio is set to low the regulator output is set to 1V. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index 54737bf..e5da3dd 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -31,6 +31,35 @@ gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + buck2_reg: buck2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_buck2>; + compatible = "regulator-gpio"; + regulator-name = "vdd_arm"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1000000>; + gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; + states = <1000000 0x0 + 900000 0x1>; + enable-active-high; + }; +}; + +&A53_0 { + cpu-supply = <&buck2_reg>; +}; + +&A53_1 { + cpu-supply = <&buck2_reg>; +}; + +&A53_2 { + cpu-supply = <&buck2_reg>; +}; + +&A53_3 { + cpu-supply = <&buck2_reg>; }; &fec1 { @@ -203,6 +232,13 @@ }; &iomuxc { + pinctrl_buck2: vddarmgrp { + fsl,pins = < + MX8MQ_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x19 + >; + + }; + pinctrl_fec1: fec1grp { fsl,pins = < MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC 0x3