From patchwork Wed Jan 9 16:47:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 155082 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp915899jaa; Wed, 9 Jan 2019 08:49:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN6mBemVgu4P7tVp5sa3VU8SZXl5usSrJsz3INllhYVIBFlO1TqWldP9QydDVfTRwOlVyssN X-Received: by 2002:a17:906:198b:: with SMTP id g11-v6mr5790763ejd.166.1547052577423; Wed, 09 Jan 2019 08:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052577; cv=none; d=google.com; s=arc-20160816; b=DAnVa31KXVml63t4Ddxk8XFBEIYAXcv93IFnplTlCSGAbti3Y7cEq8uUQFj/kFyC+u Revz6TyeJLAaVIYDtVinYU2OxC0ncaqmjSYHYqc0Lf7TaqM7Qvz1Si08OGU6ov0BxiaY D66NZ5EEr7KUDlisTDWZLetDIDIy4eDp16eJhH0CqSwsKm360IvbqHRtz1K3CjyiaYoG aZnOvk9+1L2nctenBqEHyV+taCJJK+MEsFkzr0nCb+47TJsbeNEvVhJI3iSpxsRzDlBh Xf0U+mESU6FudGi6Q3pAeOXXLUHaj7aMD6eHwWA8eT48XswKk1WNmfZReCF6bCrMpd5q hdDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=4MTMMUaiHdEuM5Egl1MORldCZrDgzwzxG1fPSGAFAxo=; b=WJNHXg8VfOnpRVCv8BLp5eMkTw8QKoQyul++MRkmMGw33W1GDKEsDVX+G3W0xDqLqz xfjQywl0RmYtdVDo+aC5Kmn1hs4S7aSWOMS0jdsNMfmWj8gxJB2BCmyOQhvAqPU3dXue XATFSRNbyoF8jEsIicCkNGlWeEyItmGzkZi127SbmY3fLBD8ZjXYkmRJ39/O30cOzYAu K+DJ/VWqZR3eoCS+2YiLTVcYi7NM54/e2P15EdkJXDv8qtplpqgpLHjT4tKV1Doe+q+c t1OJu6GPEsizSnh7hghSgJbx08Ps6c4634lKZG/BUmxpPdCeYymq9yxNeYkpF9wxBj/B Vhew== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U3Wc7T5y; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id w11si883410eda.242.2019.01.09.08.49.37; Wed, 09 Jan 2019 08:49:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U3Wc7T5y; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id EBCB5C22014; Wed, 9 Jan 2019 16:48:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id DC50BC21FC0; Wed, 9 Jan 2019 16:47:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BAF5AC21F84; Wed, 9 Jan 2019 16:47:43 +0000 (UTC) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by lists.denx.de (Postfix) with ESMTPS id 5DA94C21FC0 for ; Wed, 9 Jan 2019 16:47:43 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id f9so7833679eds.10 for ; Wed, 09 Jan 2019 08:47:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A3CFT3SRTKn6TIZ4LQ95o4O72kjTvOqLNOMyAEHSITs=; b=U3Wc7T5y4sp+W09tbaBJQdCOgha6QmVsXZKetYfPi9gTREOcVTk6R0RAZI2gw7rN6f b11KAW1wTKDg8EXvuOEsvujrrqKU7M+cVKn+8uJvfEIEMFm7/4kB4vAg3D7YXJ96Snn1 dKXgBfEG4cbXqBNgoRFOxlsczBevm3CaObwvA= 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:mime-version:content-transfer-encoding; bh=A3CFT3SRTKn6TIZ4LQ95o4O72kjTvOqLNOMyAEHSITs=; b=eFFSfj+CTxxaEuYSZVySALw0Jhm+iEDtfiOxG9LMw421/dzdkTDGMy2kDK1lysQzqY sQeEW5tG970Fmbisp5zEZGvW6uFHvwrn8avp7KwJKyNnJsRPuhJxiLA6Eoz4nnOVSBY7 A2KWyyrZjpovr2DQ4BEPvPpoRdR0b7giK/lscPsB3gCqixykuGhoKw5B0CdDVckrF+ai olGjRMvUyOnukdTAgPdgUooFJLh/sxXSUe1pKTBeB5+3WTgA8MAbRgjZo0p4RapCjmbu lS5Rx2lYv+KjwWOETNq6SdtUJjlkDmsG4kCSKlN1JUtMo3rI2x5O5ZVAT4SrhUUnfAtB xVjQ== X-Gm-Message-State: AJcUuke+dgXub0Sg88fetFsM5sI+tPoxeEZCJnCbe8/x81DERlj7+6Y4 roGI/ADM9uPUC6ZTfrksOGqQVcDiG5w= X-Received: by 2002:a17:906:81cc:: with SMTP id e12-v6mr5854637ejx.138.1547052462559; Wed, 09 Jan 2019 08:47:42 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b14sm1081499edt.6.2019.01.09.08.47.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:47:41 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:47:27 +0000 Message-Id: <20190109164734.22598-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164734.22598-1-bryan.odonoghue@linaro.org> References: <20190109164734.22598-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v3 1/8] arm: dts: imx7: Correct spelling mistake in GPIO name X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" As pointed out by Lucas WDOD1_WDOG_ANY should be WDOG1_WDOG_ANY. Once corrected we can import the latest kernel DTS unmodified. Signed-off-by: Bryan O'Donoghue Reported-by: Lukas Auer --- arch/arm/dts/imx7d-pinfunc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/imx7d-pinfunc.h b/arch/arm/dts/imx7d-pinfunc.h index f6f7e78f88..f2493bc63d 100644 --- a/arch/arm/dts/imx7d-pinfunc.h +++ b/arch/arm/dts/imx7d-pinfunc.h @@ -17,9 +17,9 @@ #define MX7D_PAD_LPSR_GPIO1_IO00__GPIO1_IO0 0x0000 0x0030 0x0000 0x0 0x0 #define MX7D_PAD_LPSR_GPIO1_IO00__PWM4_OUT 0x0000 0x0030 0x0000 0x1 0x0 -#define MX7D_PAD_LPSR_GPIO1_IO00__WDOD1_WDOG_ANY 0x0000 0x0030 0x0000 0x2 0x0 -#define MX7D_PAD_LPSR_GPIO1_IO00__WDOD1_WDOG_B 0x0000 0x0030 0x0000 0x3 0x0 -#define MX7D_PAD_LPSR_GPIO1_IO00__WDOD1_WDOG__RST_B_DEB 0x0000 0x0030 0x0000 0x4 0x0 +#define MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_ANY 0x0000 0x0030 0x0000 0x2 0x0 +#define MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x0000 0x0030 0x0000 0x3 0x0 +#define MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG__RST_B_DEB 0x0000 0x0030 0x0000 0x4 0x0 #define MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x0004 0x0034 0x0000 0x0 0x0 #define MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT 0x0004 0x0034 0x0000 0x1 0x0 #define MX7D_PAD_LPSR_GPIO1_IO01__CCM_ENET_REF_CLK3 0x0004 0x0034 0x0000 0x2 0x0 From patchwork Wed Jan 9 16:47:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 155083 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp916216jaa; Wed, 9 Jan 2019 08:49:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN4jTDJluRy2nmrmI2U7Zh+Zge1my0uJfpevztke8t/SP58/gBh1NOLLVR9VtMzV5kVoDNtX X-Received: by 2002:a50:9315:: with SMTP id m21mr6513962eda.58.1547052594726; Wed, 09 Jan 2019 08:49:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052594; cv=none; d=google.com; s=arc-20160816; b=clL2z2+Bx2RpxWJV+C2VYyHnISxwIVUc/HUbpxGEjz8noUP6pNIdBsPXAkPdw3/Pyx izIXxW+YuCr8nA9ENqw7Ifihmi5vHPX/bHzI7E3oKmBlBQcqwavuBmsCtxZFVxdZNd6Q GFgW8emP8jnYWuKlI6yCj7hgUsoYkL99+4HNztABBU2G+pPo6umT/IFcRod8vK6cQjEF Renxe33KaqbkzNIo5QOfBq/8AM8nEpe5uwSV77B57JjVlimQQ+kVEsc1hBrb3yOP2teS zLw/nwg/AmDqGtR2FHatJHFQZ1DXrd8pg6na8Zo1FRGYmszMsMhweUzZvp0cl6AarcAu +3eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=bIYJIVfDSjI7cMn7v29dZi3/b3pRBIXpaHlBV6A75qg=; b=zp6RerXb9ksGUWYJD3FZfS/n8QajapzqdP76Ei+ixZRP82NBldqx8tYGvnUsR8XEwR 2e36BcnFnSdjvd2J9vYz4ufdGtvuOEE+AYn3wjQMOPV6eNkA7JjGwQ74G8pAoasG922D dItL4FCjh5vrktqcnpy3uoNHtUYZMw68mevDlZxCj7Zw8sYR+dOIp7b8lFmXgYxzaEJh 6xpzMufVkPUkAAUvDfFMKs9zME37qX+npedD1f3CgJIlRj3CmZIURvz5BS3EkFCIwsmV KD9xUtFzQnbTP76KiAP3E/OnwSGZVVBmp+YTNXBRj+yzI+YKO/GPcKQbWSla6rzCnblz +Rhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VCZY9hy4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 91si10917edy.438.2019.01.09.08.49.54; Wed, 09 Jan 2019 08:49:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VCZY9hy4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 46452C21FCC; Wed, 9 Jan 2019 16:48:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 75E6BC22010; Wed, 9 Jan 2019 16:48:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 41F8EC21FEF; Wed, 9 Jan 2019 16:47:48 +0000 (UTC) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by lists.denx.de (Postfix) with ESMTPS id 91575C21FC2 for ; Wed, 9 Jan 2019 16:47:44 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id x30so7897837edx.2 for ; Wed, 09 Jan 2019 08:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5HSOrrMCsMMjY7fy31jnTyLcdo3cjBlZOqadX4vWpdQ=; b=VCZY9hy4zqL8VTLsesunERN7L/VlM8dm87XJ5vIhdB56cNoL2vVdvGLPdH2dcx8cL6 /6KlTjgtJV6wNoC/nfo0QnUHXsg+/zLyS09uP6oYMGMdrNx7m0/ieGguyPFNDL7eOLHC M6lIN8HbQP9CS0pJDQ8uz+Fx2sVAsnvfSZCQQ= 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:mime-version:content-transfer-encoding; bh=5HSOrrMCsMMjY7fy31jnTyLcdo3cjBlZOqadX4vWpdQ=; b=KlYmkbRKqsariypU0D4BPGTz6XNfQ78KELEYZJ1HudZyCK0yBy/5x/bBiV5yazlXC+ mppUXubMmd1niTWd4WSqOxrJKSoSPRYU3moRJSqVAknL4AjkYoPPdkJd0YJAEJ6Vjh8v WcZJ5SJ/9jD5ckluYOvECVTt7bUMX33NgqbhFc+wuulYwFUgD99arEd0SK+xtE1paNgf csXgchiUWx2tMy2OdX1aQhG0PJPp1k9tWKN+loNuREFT4caXlye466BYhCRe3iLBBOG6 bNVR73zOaL9HZ8zBulbvN1WmrB3E2DX1jBplX+PagH5B+4q8aGrsIeXQo93zYqYRQv0F M4Tw== X-Gm-Message-State: AJcUukfeo6W8h6acSVz0UX6gJVL+64fW0aBSGHxiQJUHsis3V4E8l70n RWWqYtieLXKfwJkK6qQFlUa81Sz4OTA= X-Received: by 2002:a50:8d8c:: with SMTP id r12mr6497206edh.105.1547052463764; Wed, 09 Jan 2019 08:47:43 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b14sm1081499edt.6.2019.01.09.08.47.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:47:43 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:47:28 +0000 Message-Id: <20190109164734.22598-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164734.22598-1-bryan.odonoghue@linaro.org> References: <20190109164734.22598-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v3 2/8] arm: dts: imx7s-warp: Import Linux warp7 dts X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch imports the Linux kernel warp7 dts as at upstream kernel commit cf76c364a1e1. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 438 ++++++++++++++++++++++++++++++++++++ 1 file changed, 438 insertions(+) create mode 100644 arch/arm/dts/imx7s-warp.dts diff --git a/arch/arm/dts/imx7s-warp.dts b/arch/arm/dts/imx7s-warp.dts new file mode 100644 index 0000000000..f7ba2c0a24 --- /dev/null +++ b/arch/arm/dts/imx7s-warp.dts @@ -0,0 +1,438 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2016 NXP Semiconductors. + * Author: Fabio Estevam + */ + +/dts-v1/; + +#include +#include "imx7s.dtsi" + +/ { + model = "Warp i.MX7 Board"; + compatible = "warp,imx7s-warp", "fsl,imx7s"; + + memory@80000000 { + reg = <0x80000000 0x20000000>; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&pinctrl_gpio>; + autorepeat; + + back { + label = "Back"; + gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; + linux,code = ; + wakeup-source; + }; + }; + + reg_brcm: regulator-brcm { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_brcm_reg>; + regulator-name = "brcm_reg"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <200000>; + }; + + reg_bt: regulator-bt { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_bt_reg>; + enable-active-high; + gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>; + regulator-name = "bt_reg"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "imx7-sgtl5000"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,frame-master = <&dailink_master>; + simple-audio-card,cpu { + sound-dai = <&sai1>; + }; + + dailink_master: simple-audio-card,codec { + sound-dai = <&codec>; + clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; + }; + }; +}; + +&clks { + assigned-clocks = <&clks IMX7D_PLL_AUDIO_POST_DIV>; + assigned-clock-rates = <884736000>; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + pmic: pfuze3000@8 { + compatible = "fsl,pfuze3000"; + reg = <0x08>; + + regulators { + sw1a_reg: sw1a { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1475000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <6250>; + }; + + /* use sw1c_reg to align with pfuze100/pfuze200 */ + sw1c_reg: sw1b { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1475000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <6250>; + }; + + sw2_reg: sw2 { + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1850000>; + regulator-boot-on; + regulator-always-on; + }; + + sw3a_reg: sw3 { + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1650000>; + regulator-boot-on; + regulator-always-on; + }; + + swbst_reg: swbst { + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5150000>; + }; + + snvs_reg: vsnvs { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + regulator-always-on; + }; + + vref_reg: vrefddr { + regulator-boot-on; + regulator-always-on; + }; + + vgen1_reg: vldo1 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vgen2_reg: vldo2 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1550000>; + }; + + vgen3_reg: vccsd { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vgen4_reg: v33 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vgen5_reg: vldo3 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vgen6_reg: vldo4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + }; +}; + +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; +}; + +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; +}; + +&i2c4 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4>; + status = "okay"; + + codec: sgtl5000@a { + #sound-dai-cells = <0>; + reg = <0x0a>; + compatible = "fsl,sgtl5000"; + clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai1_mclk>; + VDDA-supply = <&vgen4_reg>; + VDDIO-supply = <&vgen4_reg>; + VDDD-supply = <&vgen2_reg>; + }; + + mpl3115@60 { + compatible = "fsl,mpl3115"; + reg = <0x60>; + }; +}; + +&sai1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai1>; + assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>, + <&clks IMX7D_SAI1_ROOT_CLK>; + assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>; + assigned-clock-rates = <0>, <36864000>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1>; + assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>; + assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>; + status = "okay"; +}; + +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart3>; + assigned-clocks = <&clks IMX7D_UART3_ROOT_SRC>; + assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>; + uart-has-rtscts; + status = "okay"; +}; + +&uart6 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart6>; + assigned-clocks = <&clks IMX7D_UART6_ROOT_SRC>; + assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>; + fsl,dte-mode; + status = "okay"; +}; + +&usbotg1 { + dr_mode = "peripheral"; + status = "okay"; +}; + +&usdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc1>; + bus-width = <4>; + keep-power-in-suspend; + no-1-8-v; + non-removable; + vmmc-supply = <®_brcm>; + status = "okay"; +}; + +&usdhc3 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc3>; + pinctrl-1 = <&pinctrl_usdhc3_100mhz>; + pinctrl-2 = <&pinctrl_usdhc3_200mhz>; + assigned-clocks = <&clks IMX7D_USDHC3_ROOT_CLK>; + assigned-clock-rates = <400000000>; + bus-width = <8>; + no-1-8-v; + fsl,tuning-step = <2>; + non-removable; + status = "okay"; +}; + +&wdog1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; + status = "okay"; +}; + +&iomuxc { + pinctrl_brcm_reg: brcmreggrp { + fsl,pins = < + MX7D_PAD_SD2_WP__GPIO5_IO10 0x14 /* WL_REG_ON */ + >; + }; + + pinctrl_bt_reg: btreggrp { + fsl,pins = < + MX7D_PAD_SD2_DATA3__GPIO5_IO17 0x14 /* BT_REG_ON */ + >; + }; + + pinctrl_gpio: gpiogrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1 0x14 + >; + }; + + pinctrl_i2c1: i2c1grp { + fsl,pins = < + MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f + MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f + >; + }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f + MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f + >; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f + MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f + >; + }; + + pinctrl_i2c4: i2c4grp { + fsl,pins = < + MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007f + MX7D_PAD_I2C4_SDA__I2C4_SDA 0x4000007f + >; + }; + + pinctrl_sai1: sai1grp { + fsl,pins = < + MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0 0x1f + MX7D_PAD_SAI1_TX_BCLK__SAI1_TX_BCLK 0x1f + MX7D_PAD_SAI1_TX_SYNC__SAI1_TX_SYNC 0x1f + MX7D_PAD_SAI1_TX_DATA__SAI1_TX_DATA0 0x30 + >; + }; + + pinctrl_sai1_mclk: sai1mclkgrp { + fsl,pins = < + MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x1f + >; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = < + MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79 + MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX 0x79 + >; + }; + + pinctrl_uart3: uart3grp { + fsl,pins = < + MX7D_PAD_UART3_TX_DATA__UART3_DCE_TX 0x79 + MX7D_PAD_UART3_RX_DATA__UART3_DCE_RX 0x79 + MX7D_PAD_UART3_CTS_B__UART3_DCE_CTS 0x79 + MX7D_PAD_UART3_RTS_B__UART3_DCE_RTS 0x79 + >; + }; + + pinctrl_uart6: uart6grp { + fsl,pins = < + MX7D_PAD_ECSPI1_MOSI__UART6_DTE_RX 0x79 + MX7D_PAD_ECSPI1_SCLK__UART6_DTE_TX 0x79 + >; + }; + + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX7D_PAD_SD1_CMD__SD1_CMD 0x59 + MX7D_PAD_SD1_CLK__SD1_CLK 0x19 + MX7D_PAD_SD1_DATA0__SD1_DATA0 0x59 + MX7D_PAD_SD1_DATA1__SD1_DATA1 0x59 + MX7D_PAD_SD1_DATA2__SD1_DATA2 0x59 + MX7D_PAD_SD1_DATA3__SD1_DATA3 0x59 + MX7D_PAD_SD2_RESET_B__GPIO5_IO11 0x14 /* WL_HOST_WAKE */ + >; + }; + + pinctrl_usdhc3: usdhc3grp { + fsl,pins = < + MX7D_PAD_SD3_CMD__SD3_CMD 0x59 + MX7D_PAD_SD3_CLK__SD3_CLK 0x19 + MX7D_PAD_SD3_DATA0__SD3_DATA0 0x59 + MX7D_PAD_SD3_DATA1__SD3_DATA1 0x59 + MX7D_PAD_SD3_DATA2__SD3_DATA2 0x59 + MX7D_PAD_SD3_DATA3__SD3_DATA3 0x59 + MX7D_PAD_SD3_DATA4__SD3_DATA4 0x59 + MX7D_PAD_SD3_DATA5__SD3_DATA5 0x59 + MX7D_PAD_SD3_DATA6__SD3_DATA6 0x59 + MX7D_PAD_SD3_DATA7__SD3_DATA7 0x59 + MX7D_PAD_SD3_RESET_B__SD3_RESET_B 0x19 + >; + }; + + pinctrl_usdhc3_100mhz: usdhc3grp_100mhz { + fsl,pins = < + MX7D_PAD_SD3_CMD__SD3_CMD 0x5a + MX7D_PAD_SD3_CLK__SD3_CLK 0x1a + MX7D_PAD_SD3_DATA0__SD3_DATA0 0x5a + MX7D_PAD_SD3_DATA1__SD3_DATA1 0x5a + MX7D_PAD_SD3_DATA2__SD3_DATA2 0x5a + MX7D_PAD_SD3_DATA3__SD3_DATA3 0x5a + MX7D_PAD_SD3_DATA4__SD3_DATA4 0x5a + MX7D_PAD_SD3_DATA5__SD3_DATA5 0x5a + MX7D_PAD_SD3_DATA6__SD3_DATA6 0x5a + MX7D_PAD_SD3_DATA7__SD3_DATA7 0x5a + MX7D_PAD_SD3_RESET_B__SD3_RESET_B 0x1a + >; + }; + + pinctrl_usdhc3_200mhz: usdhc3grp_200mhz { + fsl,pins = < + MX7D_PAD_SD3_CMD__SD3_CMD 0x5b + MX7D_PAD_SD3_CLK__SD3_CLK 0x1b + MX7D_PAD_SD3_DATA0__SD3_DATA0 0x5b + MX7D_PAD_SD3_DATA1__SD3_DATA1 0x5b + MX7D_PAD_SD3_DATA2__SD3_DATA2 0x5b + MX7D_PAD_SD3_DATA3__SD3_DATA3 0x5b + MX7D_PAD_SD3_DATA4__SD3_DATA4 0x5b + MX7D_PAD_SD3_DATA5__SD3_DATA5 0x5b + MX7D_PAD_SD3_DATA6__SD3_DATA6 0x5b + MX7D_PAD_SD3_DATA7__SD3_DATA7 0x5b + MX7D_PAD_SD3_RESET_B__SD3_RESET_B 0x1b + >; + }; +}; + +&iomuxc_lpsr { + pinctrl_wdog: wdoggrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74 + >; + }; +}; From patchwork Wed Jan 9 16:47:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 155084 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp916553jaa; Wed, 9 Jan 2019 08:50:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Ei130bVuYe6nQs7WXXifMzLdXFtYs+97MbwBlGWk5wZmxiJKC+czn5qdkt04862PFVCT3 X-Received: by 2002:a17:906:77c1:: with SMTP id m1-v6mr5607849ejn.233.1547052612406; Wed, 09 Jan 2019 08:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052612; cv=none; d=google.com; s=arc-20160816; b=ky/EAVN1A8+O1dXvmI9YvO//JHuvHPA/dInLzL5xuYZVSJW7gaqY5OVIywAaJfI6dA LlfiL72eZFYlK1KJ7ZmAUnf0MnMj+w7xov/4yg4g+pgei9+CueE+5nj/bdXP+c2UATZ2 jPT7a+I1lyeRVtIGWn+egEUQakN8Q4TDr+9/X3t6iO82Mt5H0sinKUn3Yv7lCdZ94VO7 vOhjRjCI8dNNJ9ULtjJbrh9w1dOv2MaF2XeTG2cz9aa12sPDjpjVsXRokZMro3Me4vzQ /X0OftEWBumBXSdRH0/wmOF7vai8IirBVA6PDiKJSEhdcWgr4U8fvios3W6v9amHay64 7bjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=F2i/yFi12UeZ+rccdwWK4rH35ZfNCBqJu0drC1deork=; b=nGy7wR3UHnYQnBlCbhBQLHQuX5HG0EtPDFzTzpfm0rtVCc7CcAhGt9q0f6W4DQsc7Z kxRLvY/Hs6jHSpPRIqraxWF6LPgSS/tPV/Jwx1qnaYa2BXTbMGXLX5tW/EtkzIfQiORl 91jgou6F8udkue7hpogrwYsT/Q7X7y86KiqInLyEqTLRu6CpcQVhoaLOJNlLmYgdJZ1Y M76kMrNKaC02tECLehccKLqMqN7NBeK8aT8EtZZ7gJBvyC5m0q2iH+v7EbDf0/P89NK9 0srfe7guPJzMZeHYrsGG2dpBC7NVmYBqWHfMq/i/GpbG944WEPsxA8diPrNEJigrKdm/ 6P6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e5RVouit; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id u2-v6si105108eji.21.2019.01.09.08.50.12; Wed, 09 Jan 2019 08:50:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e5RVouit; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id EA3EFC22006; Wed, 9 Jan 2019 16:48:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 0F209C21FF6; Wed, 9 Jan 2019 16:48:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 621E6C21FF6; Wed, 9 Jan 2019 16:47:49 +0000 (UTC) Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) by lists.denx.de (Postfix) with ESMTPS id C601AC22003 for ; Wed, 9 Jan 2019 16:47:45 +0000 (UTC) Received: by mail-ed1-f65.google.com with SMTP id o10so7821494edt.13 for ; Wed, 09 Jan 2019 08:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y4qx9643gwxpY+5UiHWTDDEwaVCJvP94NgF+r8ygYU8=; b=e5RVouituqMy2o/CGopx7xmiAP/8SMJofqN/2/Hc5yVh+jbbXdHc/KP3maTGgvE+vO Jd/LSYxJtM+KtLkALfJLTHE62+/D3aQZcYADU4nAXZ0EUSIZ17sVT01zSmb3CkuqR9kY 3O+OIXiPesF6UFhFv84zF3FM9uitn0ngpNBfg= 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:mime-version:content-transfer-encoding; bh=Y4qx9643gwxpY+5UiHWTDDEwaVCJvP94NgF+r8ygYU8=; b=D+p89sg4mMRGJ0uvaDe7lpHHleTU2rPOA4RGOmZGjQKCt9A1fOInjaHp2UchtsQi4Y SANjWhoyOhe2ympHaBFFpwBRievdc0b0VgA39SA9mUe9Mrk4zjB1pUU57u2yjPcGda6X rGAG7hrRuaPpZJZQ7WXn70XoDq1IjNEbIRXdlwOdGNgDpXgbmMQIrlRV9jHw8zWbee16 pmTna+kn/G5WEvNbtx88iSR1jFN7ywSFE3Jn/61QCo0QuFq+t2cN77VGvPux8nxw/shC ylAjp9OpuwLoFVWGXU7qx8AU9EFVx+iyJDdTzJSfIezfUHYNzPC1Ej6PyQghUXvVUKcB OCcg== X-Gm-Message-State: AJcUukdZRNoJM3h1vyOTAyXe7fB90r+kXvFNBT0KVDYCnRTMB/svcNoC xgr8X5MFEUb+I+hjbrXG0gV+YOMPL9Y= X-Received: by 2002:a17:906:6308:: with SMTP id p8-v6mr5959831ejk.100.1547052465142; Wed, 09 Jan 2019 08:47:45 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b14sm1081499edt.6.2019.01.09.08.47.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:47:44 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:47:29 +0000 Message-Id: <20190109164734.22598-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164734.22598-1-bryan.odonoghue@linaro.org> References: <20190109164734.22598-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v3 3/8] arm: imx7s-warp: Add DT file hooks X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch adds DT file hooks for imx7s-warp.dtb to the warp7 and warp7_bl33 builds. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/Makefile | 3 ++- configs/warp7_bl33_defconfig | 3 ++- configs/warp7_defconfig | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index dda4e59491..4fe7e90902 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -460,7 +460,8 @@ dtb-$(CONFIG_MX6ULL) += imx6ull-14x14-evk.dtb dtb-$(CONFIG_MX7) += imx7-colibri.dtb \ imx7d-sdb.dtb \ - imx7d-sdb-qspi.dtb + imx7d-sdb-qspi.dtb \ + imx7s-warp.dtb dtb-$(CONFIG_ARCH_MX7ULP) += imx7ulp-evk.dtb diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig index a568c6d10e..12141fedd3 100644 --- a/configs/warp7_bl33_defconfig +++ b/configs/warp7_bl33_defconfig @@ -20,6 +20,7 @@ CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y +CONFIG_OF_CONTROL=y CONFIG_CMD_FS_GENERIC=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DFU_MMC=y @@ -37,5 +38,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_ETHER=y CONFIG_USB_ETH_CDC=y CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00" -CONFIG_OF_LIBFDT=y CONFIG_OPTEE_TZDRAM_SIZE=0x2000000 +CONFIG_DEFAULT_DEVICE_TREE="imx7s-warp" diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 4d443295ba..fee98dfbbe 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_EXT2=y CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y +CONFIG_OF_CONTROL=y CONFIG_CMD_FS_GENERIC=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DFU_MMC=y @@ -47,8 +48,8 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_ETHER=y CONFIG_USB_ETH_CDC=y CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00" -CONFIG_OF_LIBFDT=y CONFIG_OPTEE_LOAD_ADDR=0x84000000 CONFIG_OPTEE_TZDRAM_SIZE=0x3000000 CONFIG_OPTEE_TZDRAM_BASE=0x9d000000 CONFIG_BOOTM_OPTEE=y +CONFIG_DEFAULT_DEVICE_TREE="imx7s-warp" From patchwork Wed Jan 9 16:47:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 155087 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp917710jaa; Wed, 9 Jan 2019 08:51:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN5XgifACf8ujx96p+PV1TQmmJ9Gtk4hS+tvKMUcFPC7Tt9fyLYUA/OUKdhaw25M8I9Ha+G2 X-Received: by 2002:a17:906:7751:: with SMTP id o17-v6mr6035955ejn.15.1547052685072; Wed, 09 Jan 2019 08:51:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052685; cv=none; d=google.com; s=arc-20160816; b=f7M+H6c5BMA6w87PcDPmvQ5HdN0O3y+knZ/h7QxlSCTGnQ/W+Jy220UR4/UyDoStok mJjTnz3Xkvv+C+WFYPq7Z+DtpinQo+LkJhBYdOUEg2++Zqbs8dt+UGi/ZlUDKbECytGF BiIWVZzZhSGewuqQSPqdbUkgXduUUFvGQtYCrO9G6HFcoTpW3fDzU4GF1EWPJyAS5vxT s++TE58DE05hqXCQ+Yj2T3wt7vHI26aTl89DNDS+436nZhohNrI0DVBf845DVgwi73r3 KL7kKyhT6by03yE8IdOicEeu3q0KbPjZ+YaS5Gmnf/ExQkf7YdJirvo5TJWCQK1t+VBF fkUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=RPdJV8FrKxMvnWYumvu2iq3gYP1tSbFZfC3M0kCWJOU=; b=0CBlteB6NKldQw6YYehOWPW/HT1+BEDOzr7DGTzp/PiEdcF9uMXVXQQ/jqgDsDindi ztP8w3ZApppuiSvCuppwxQGPdOPHIawsz75zzCM6i8qsrmadS+m6OwVc1FMDCioG3W8s 15ISsG0IOkmk2GF8RZnS/Gn53D+dHYvRAsMGLTSGWkuS/6xxEGi45NiSKMc3HcQi7KNg p463ShObbmyqHp2gdSc6IaH9dA2IkJXynRVGe3BWJpApKYlgsT3IvXyy20U5A6U/tz6r OeW0M+G7PyHYvHmLROZo4u/PrJYwV9YlYAn5tLlZU4RR0gy/9khJW8xRj/F2Jk+3il9f 0aBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ws2z+TuA; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id r53si230352eda.218.2019.01.09.08.51.24; Wed, 09 Jan 2019 08:51:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ws2z+TuA; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 8F0EAC22000; Wed, 9 Jan 2019 16:49:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id EA22EC22018; Wed, 9 Jan 2019 16:48:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D1F0EC21FF1; Wed, 9 Jan 2019 16:47:51 +0000 (UTC) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by lists.denx.de (Postfix) with ESMTPS id 6339CC22018 for ; Wed, 9 Jan 2019 16:47:47 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id h50so7860178ede.5 for ; Wed, 09 Jan 2019 08:47:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Xuw69l2NZmlhWut3b0kZtSp+D8LO/IdkttK/+BbS7yg=; b=Ws2z+TuAQoyG417sGl1kF6aSdhYRKhdo1a43H9Xsrrw9uAd+dWVkmkYOD01aIOGi03 aO3YyuBNsOH4bZYSIQG8kGrfTJwF6bRRhrLukBD5d/VWhtUW6VHCariS8Icw3Yxz0lfm STUU+ppHi/W5esdhAxkbdFSXyOVI4E6rmi7DQ= 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:mime-version:content-transfer-encoding; bh=Xuw69l2NZmlhWut3b0kZtSp+D8LO/IdkttK/+BbS7yg=; b=mi+dYrWUH41yFH3QrNz91nDhmTIBGmjvoz8DzQAIQRZb2SMUHJ2/HdyaUbPXhVygOb Zw2nK84ppQFl8zMgk/5ommpF3mDi4Kr2vZFJlZntBXlwUsG8qPgT5e7o2V8y4Db2PRBx mvfgI6aIiTqwpg4bJdDTZHgIe0a9zIDoJW41TTi7r5PXWCmXHwujdUM3vz/N6cMhfnL2 JOwlT3J6IJrSHgBqmpP7S0a6001o0jmQ4iIrifjCJvP8Mxs00rR722yNg9gKkTvJMB3c 0yXs/MTpphYFTVmLcNHEGVNv8aEGwTee7yNANvUenY4HEsI8zntv5R8LNAjJKwoT/FXP jevg== X-Gm-Message-State: AJcUukeE5Rl2JmJiJ+KYGLq9Fqic0nXWnT4DUBpCpwulQTWk26u9PBX1 N55lOhH2fHGdg0DA3QJLW7EDcWSA/98= X-Received: by 2002:a17:906:49c2:: with SMTP id w2-v6mr5914271ejv.117.1547052466657; Wed, 09 Jan 2019 08:47:46 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b14sm1081499edt.6.2019.01.09.08.47.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:47:45 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:47:30 +0000 Message-Id: <20190109164734.22598-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164734.22598-1-bryan.odonoghue@linaro.org> References: <20190109164734.22598-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v3 4/8] arm: imx7s-warp: Convert to DM MMC initialization X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Converts from fixed initialization of MMC to DM initialization of MMC. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 34 ---------------------------------- configs/warp7_bl33_defconfig | 1 + configs/warp7_defconfig | 1 + 3 files changed, 2 insertions(+), 34 deletions(-) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 3d32b3eb52..146d722b15 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -30,8 +30,6 @@ DECLARE_GLOBAL_DATA_PTR; #define UART_PAD_CTRL (PAD_CTL_DSE_3P3V_49OHM | PAD_CTL_PUS_PU100KOHM | \ PAD_CTL_HYS) -#define USDHC_PAD_CTRL (PAD_CTL_DSE_3P3V_32OHM | PAD_CTL_SRE_SLOW | \ - PAD_CTL_HYS | PAD_CTL_PUE | PAD_CTL_PUS_PU47KOHM) #define I2C_PAD_CTRL (PAD_CTL_DSE_3P3V_32OHM | PAD_CTL_SRE_SLOW | \ PAD_CTL_HYS | PAD_CTL_PUE | PAD_CTL_PUS_PU100KOHM) @@ -74,43 +72,11 @@ static iomux_v3_cfg_t const uart1_pads[] = { MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL), }; -static iomux_v3_cfg_t const usdhc3_pads[] = { - MX7D_PAD_SD3_CLK__SD3_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_CMD__SD3_CMD | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_DATA0__SD3_DATA0 | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_DATA1__SD3_DATA1 | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_DATA2__SD3_DATA2 | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_DATA3__SD3_DATA3 | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_DATA4__SD3_DATA4 | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_DATA5__SD3_DATA5 | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_DATA6__SD3_DATA6 | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_DATA7__SD3_DATA7 | MUX_PAD_CTRL(USDHC_PAD_CTRL), - MX7D_PAD_SD3_RESET_B__SD3_RESET_B | MUX_PAD_CTRL(USDHC_PAD_CTRL), -}; - static void setup_iomux_uart(void) { imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads)); }; -static struct fsl_esdhc_cfg usdhc_cfg[1] = { - {USDHC3_BASE_ADDR}, -}; - -int board_mmc_getcd(struct mmc *mmc) -{ - /* Assume uSDHC3 emmc is always present */ - return 1; -} - -int board_mmc_init(bd_t *bis) -{ - imx_iomux_v3_setup_multiple_pads(usdhc3_pads, ARRAY_SIZE(usdhc3_pads)); - usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC3_CLK); - - return fsl_esdhc_initialize(bis, &usdhc_cfg[0]); -} - int board_early_init_f(void) { setup_iomux_uart(); diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig index 12141fedd3..b2f943c775 100644 --- a/configs/warp7_bl33_defconfig +++ b/configs/warp7_bl33_defconfig @@ -24,6 +24,7 @@ CONFIG_OF_CONTROL=y CONFIG_CMD_FS_GENERIC=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DFU_MMC=y +CONFIG_DM_MMC=y CONFIG_FSL_ESDHC=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index fee98dfbbe..65d801ffe2 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -33,6 +33,7 @@ CONFIG_OF_CONTROL=y CONFIG_CMD_FS_GENERIC=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DFU_MMC=y +CONFIG_DM_MMC=y CONFIG_FSL_ESDHC=y CONFIG_OPTEE=y CONFIG_USB=y From patchwork Wed Jan 9 16:47:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 155088 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp918078jaa; Wed, 9 Jan 2019 08:51:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN6VWCE+fPIlzh7D1xCFx8Xj6qT/kkO7GzixUB/Lvhvj8aSBDfxI0PUGbQ9bectYOTUEeX5A X-Received: by 2002:a05:6402:121a:: with SMTP id c26mr6466471edw.104.1547052708689; Wed, 09 Jan 2019 08:51:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052708; cv=none; d=google.com; s=arc-20160816; b=WhtwWRph/Vqiz/CaHOTREImYJZfgrxIW0VZsP2Wt9u2St6YNDWA+5AMFbBMVYR0P9H MAVojcGCNuhBgul0jYDq0rJpP8Vj9UNYiAcLEyeTEKyYj64eByie2a2xldslQP7Sq52C Ygz3IxNaSlhheab7Y5+e5+TiL4oXuIl/ss8dUoCyDKqpHtg4rbqSsm6RfpKhaX8vvtLS nGW3AxahUyWdFHM3sIUaaxqJZM8HczB9P1MqwIvLK/TpFGucF6N+S3FBvH+JQx/r2dGl MsTI5Db/54F5PMPbc84G5PB6ONx5Q3FF0eGz0ccCLqCeTMHeBEmiJiGgH2NOK+hBOPOE 3z1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=WPYX5bXWvai1PH5uLeACPIPpu37Ss/CZh4PVJ1qAieo=; b=hSeSJJLnBfxfcXEty9J9ANh7RGJPA310LUcAuYsnh5ejLm225sNxtxcl/sXKmCkLcQ 7ROaCJIq9E1XlxxQJbaDGIJhQVy65L+VB5Gcttg/JwSp2vKl84W7rRZk9jBp/UZhbzjN S7YIEES4fXS+G8wD0NhMunBiqAJUjqVd0ttBVODIExWuDIfBflYv5UV3Fui7tpY97uGV rgynjm0QWyP7pmSdwNUSuPAyUXkt2gdgxoqtSOS829vZJgRAbb94T9Kjks5zg2bwHgxS VieTKItZS/HyfURGVyO/cRABL/OYDQ/cUO2mjaSN0oVORgkV+Tq/591XsnooMdiTGszj gIMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ETrpYLrT; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id d8-v6si1517657ejp.161.2019.01.09.08.51.48; Wed, 09 Jan 2019 08:51:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ETrpYLrT; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 344E0C22016; Wed, 9 Jan 2019 16:49:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 9F656C22003; Wed, 9 Jan 2019 16:48:07 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F3621C2200C; Wed, 9 Jan 2019 16:47:52 +0000 (UTC) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by lists.denx.de (Postfix) with ESMTPS id ECBD1C22009 for ; Wed, 9 Jan 2019 16:47:48 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id b3so7918292ede.1 for ; Wed, 09 Jan 2019 08:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dCRxIInhwBfp2i0pZ4FyA6NyHfcFkbJmBIY0VgiPRQI=; b=ETrpYLrTdJ8MvNTm/YWIrAHa4TqsaFfsm7hajWERneCUaNwN0709BNoAkQb12nJT/c gwDQITBLjjhAGnqoT8XnRtxeeTJZlUBJnr1/iyVpebRxYFZBMiqG+wGSuaHfBNi7lOES skDbrwsi1RsF6pxjjrSc1x8FSny6wcq/4l28U= 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:mime-version:content-transfer-encoding; bh=dCRxIInhwBfp2i0pZ4FyA6NyHfcFkbJmBIY0VgiPRQI=; b=ic3K02qSNLjk3k7VxS7n9Bpw8D7ZtmgbbMNAgep66C0j34YzSpMG8Dktgeyiqj2jiw 0pOJwVeOfm8ohCxetWbIyokh0sAXmWjtu3o0Mo7J3jQmRBEGdr3j3NjPRJpLHoYmok1C 93DVsqr7t+1qZvdF3xV/Y5resSoNsNDZa8B5vgzLEhZw0W4hhQohwjmHze98YjdvI6Do JBH2iLhs9NEGJpJr9T6Y2V6tZaJjk9VPDJOWqrnNkReqLRemrlS2TkejfAOvpaPjbCSi VkF0hyqgvKRvS7IPhRPDut5rmOgIVBrGO/wcZ66qdZ3nIv2xz2DXHpgf248TjbFbz/Wt hE1A== X-Gm-Message-State: AJcUukcvyOh3sEa6ZTE5XXzTg5tvcR7IjMd7iaxDOlew8163opMBCKKL 1p7bW2pVewAPCQRYTz2unYCFjRmcp3s= X-Received: by 2002:a17:906:6298:: with SMTP id t24-v6mr6079252ejk.58.1547052468241; Wed, 09 Jan 2019 08:47:48 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b14sm1081499edt.6.2019.01.09.08.47.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:47:47 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:47:31 +0000 Message-Id: <20190109164734.22598-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164734.22598-1-bryan.odonoghue@linaro.org> References: <20190109164734.22598-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v3 5/8] arm: dts: imx7s-warp: Create alias for mmc0 to &usdhc3 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch sets up an alias for mmc0 to usdhc3. Before the DM conversion only usdhc3 was enabled and therefore it appeared as MMC 0 to u-boot. After enabling MMC DM though usdhc3 defaults to MMC 2, which left unattended would drive changes to existing warp7 bootscripts and environment variables that rely on mmc 0. Setup the alias of mmc0 and usdhc3 so that existing warp7 boot code will work unmodified. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx7s-warp.dts b/arch/arm/dts/imx7s-warp.dts index f7ba2c0a24..d28b7ec715 100644 --- a/arch/arm/dts/imx7s-warp.dts +++ b/arch/arm/dts/imx7s-warp.dts @@ -17,6 +17,10 @@ reg = <0x80000000 0x20000000>; }; + aliases { + mmc0 = &usdhc3; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-0 = <&pinctrl_gpio>; From patchwork Wed Jan 9 16:47:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 155085 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp917195jaa; Wed, 9 Jan 2019 08:50:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Yo2qxzn2qC7JRd31t8RhMrxZSexHoZfxlFfHbnHuUuC5X8q90thOAtQEv+n1LS1jbn8am X-Received: by 2002:a50:852b:: with SMTP id 40mr6503858edr.166.1547052653096; Wed, 09 Jan 2019 08:50:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052653; cv=none; d=google.com; s=arc-20160816; b=p2+ma+fyVAO/iendnsZgjPYjxGCmQqlAxVVABUIBple21J5Y4m4ktyxlE+hMmNhXut 6T2WfCLmhGvFOe0ankkOSm+Pu697v9SAC8LcUbXwyAZ/LSm1JyizYr32gPwzeMyeGE+c Eu48MhOOZq540AyzWy7SqaApg0szgehgACXXIIhA2E1aMfme7+x3oco6l/RM/0E4Oo66 ErsuJBoWg6eYsfWdVtThdF5EWJ8rogJo5xh3ks0YwkPadp5TscE08Z/jfnBXZ8FCtRj6 UpnchD0yv2HNf8woMiL8MWw2W3mVbSnUVs6TzV3XXm8po912RwYzEyhSPM0zOsCqJGMO 8AMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=K+KnM2Q2SOpMgnm/rQ8VRDjBZ4A/Q6p1wFROcgtwxn4=; b=sWmtqsqBzAm0uQX1k0G+fALCP9GWUg7NOEJDXsbfyZ5O/MMfS6Dm8cveQNG4oI9edW dziV1LwPBXJy5I14klLQjgQ2leAbKVYwC0WsTm0y7TqXAuAR6N6xG3iUUbDTD9hqQbBI cLxQkqurgYQFk+WVH4RFfnf4D9Bqs/LJq4Da8uLBieB4/9KX+9CAnB6KaWHLbT4ZOgi8 CeELxr9RGkkToMBW2/cO0FTKnylhAzyICOofcE8t6jyD7NVXtYoBadzIBsBNqlbXnt7H OeMKuravVUkYbrRUnD81wPje/Vw1bHfEuv4nI6zQqsUPGEsgd3ifAQO9aqsaXwlDBBTM J3GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Wxy/5gkB"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id j22si1520334edq.39.2019.01.09.08.50.52; Wed, 09 Jan 2019 08:50:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Wxy/5gkB"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 9F05BC21F67; Wed, 9 Jan 2019 16:50:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 258BCC21FC3; Wed, 9 Jan 2019 16:48:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B80EFC22009; Wed, 9 Jan 2019 16:47:53 +0000 (UTC) Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) by lists.denx.de (Postfix) with ESMTPS id 566F2C22014 for ; Wed, 9 Jan 2019 16:47:50 +0000 (UTC) Received: by mail-ed1-f65.google.com with SMTP id b14so7864214edt.6 for ; Wed, 09 Jan 2019 08:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uWa4pt1qGk3GZw2QN3d3PX4Qs1bDC5wFMhBUgJ2mCoE=; b=Wxy/5gkBpvmdvu4scV+UejnAf3gh4BVGpnCfA6vdPnocA8pHwImAB1Q94UYXk65cxh W3ieMD3++I3NcnDuZRYyUXiQdKAopnjiicpRRudbPSezqkOeOtNvxYiLICoh9M7UqjWA vtq1TkfhX16e/uVx4a3IIod959L3iivCmZiPM= 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:mime-version:content-transfer-encoding; bh=uWa4pt1qGk3GZw2QN3d3PX4Qs1bDC5wFMhBUgJ2mCoE=; b=sL2WAhsarLcV79ZneEDFsEQJdhAZhZOKcqZfDlsQM3D5l5qZHG118VzjZ6FXu5QKt1 F3vqFAIjI7qMN5a/P+AKz0FkhBNm+66r+AWA8b+1bbLaVxjdannytKHKk/129CeZG7Xi fIsLEOlbl7VN+90wDOKNg+Rb3IRWLthsCWf3kYva2a1GeMnVVgoJd4GsglwDfZwsYj4M Whcf7AuvDsyDFE/h7dsd/HZXfEXjRAUtDE9Fzyxl7ui/QaQFdJcKR/+TSgsYcEiBDBcu JZo7PkTytJHW6G+GlPZd7g+xII//TeYVx+8HrUC7ZDo0d/TgLEAGoBcUGkU0ZaTzKICV BGQQ== X-Gm-Message-State: AJcUukf2hMGvO0iDanZuHG1QsvsFKm7D72P4rkrlQ98ayQ2CdWQlr6UQ EOsmVtx23iFnTDSuSg/pJUALSjkel0s= X-Received: by 2002:a17:906:359b:: with SMTP id o27-v6mr6031019ejb.14.1547052469636; Wed, 09 Jan 2019 08:47:49 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b14sm1081499edt.6.2019.01.09.08.47.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:47:48 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:47:32 +0000 Message-Id: <20190109164734.22598-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164734.22598-1-bryan.odonoghue@linaro.org> References: <20190109164734.22598-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v3 6/8] warp7: defconfig: Switch on IMX7 GPIO/pinctrl for both ports X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Switches on the IMX7 pinctrl driver for the warp7 and warp7_bl33 ports, necessary to convert over to DM for this board. It is necessary to switch on pinctrl and GPIO in one go. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp7_bl33_defconfig | 3 +++ configs/warp7_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig index b2f943c775..7f21bb4f53 100644 --- a/configs/warp7_bl33_defconfig +++ b/configs/warp7_bl33_defconfig @@ -41,3 +41,6 @@ CONFIG_USB_ETH_CDC=y CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00" CONFIG_OPTEE_TZDRAM_SIZE=0x2000000 CONFIG_DEFAULT_DEVICE_TREE="imx7s-warp" +CONFIG_PINCTRL=y +CONFIG_PINCTRL_IMX7=y +CONFIG_DM_GPIO=y diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 65d801ffe2..2d3171e42a 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -54,3 +54,6 @@ CONFIG_OPTEE_TZDRAM_SIZE=0x3000000 CONFIG_OPTEE_TZDRAM_BASE=0x9d000000 CONFIG_BOOTM_OPTEE=y CONFIG_DEFAULT_DEVICE_TREE="imx7s-warp" +CONFIG_PINCTRL=y +CONFIG_PINCTRL_IMX7=y +CONFIG_DM_GPIO=y From patchwork Wed Jan 9 16:47:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 155089 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp920119jaa; Wed, 9 Jan 2019 08:53:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN7XnQ0Y1YwyovR6t5h6AQAXY/vGazCVfZLkOd3H2Q6XOPvlgzpiekxT0pcAFs+OU8vuEEEl X-Received: by 2002:a17:906:1102:: with SMTP id h2-v6mr5865828eja.18.1547052829353; Wed, 09 Jan 2019 08:53:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052829; cv=none; d=google.com; s=arc-20160816; b=SqYg5u8q7f90KPE9v/9x6jWMtwRhQTqDug+FAa9l0zox3TaFoWGM235USMizxjWF8I xwHlvlBWaUWDcDiK/OUa351nghecaDN1Vl8ktAYr8JqVez/VDJeZS5GWzRu+gT/6IFHr UmtG95C9IYXaPQd511k+8xd5kkAHnrbwAcs8/3lYCkg5JWzWqP3+nxdpfpMZL5FAr7uX Qrc9MJe7DFwbaNWM+qyPA9aJM9D6gpeulSmO/BIWE8kcYef7jQ9x3T904Hfs1pzvMDEd 5chw60wja4FfJkDHwcdak44W4gmkjOufzt7eYfQeunCbie8YcFoXmB8NJqhoinkk5yz0 s2og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=5wRWjWV5+ARPMws/eqqA4vjXSnuOTWAlb+NG7mro7pY=; b=WwZ1/frbN+QSP0sZBANY43RqwrB+gAIVRiKviwOhDnUF1uISGffCvgWmeMwsGMfGGm JqcmuooPhLMKaXpRpAW396ARcykss58E9mWL8bUYcjvnLpQ9UjdxCLTRPbnCly3O3Q7f Ky9sABVWP2hGb0Fc0fuatxkjE7yqwOxeuJY9sQk1FJei+MYe2zZy4y1FtXuvbfSDvTx2 rxdWD44quB6sqQeNc46kOPdq5APamXYavTeKftis6hvec3QJnYgcXoby6g8AIgrrheWj 3pYZcMO3y/zn125H931BF9Fbv5swIwDoeH7bhqVsnlR0zaRIKQRZEgfqbqtXqgABkPey A8Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Xu0kPWjj; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id f14-v6si385078ejr.83.2019.01.09.08.53.49; Wed, 09 Jan 2019 08:53:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Xu0kPWjj; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id DF72CC2202E; Wed, 9 Jan 2019 16:49:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4EBB6C2201D; Wed, 9 Jan 2019 16:48:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6EAC7C22018; Wed, 9 Jan 2019 16:47:55 +0000 (UTC) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by lists.denx.de (Postfix) with ESMTPS id BABC4C22003 for ; Wed, 9 Jan 2019 16:47:51 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id a20so7851591edc.8 for ; Wed, 09 Jan 2019 08:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pFUoFSMMP0zynGJg+HQl6+cRsZDkQqPSHcp+Nd0D7aU=; b=Xu0kPWjjQhIE5zDAetL8jX7s39F5uzVfXFkBz0D4eGglZC/WS2gdUvKfoKzvgJ6lwl 9tP8UOCT15j85VRFT/iQxLfov7rDb9EkjIInEz1dopC8L/cNFVLJdS43O4qFZMisOgKX YRBZLbDoU77DTKG0ZxTh9zS+39fL61wB/jhMQ= 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:mime-version:content-transfer-encoding; bh=pFUoFSMMP0zynGJg+HQl6+cRsZDkQqPSHcp+Nd0D7aU=; b=QhbavO0XnlZQGsJIxumnGMs7zI0K6vi/sqHGZR/XIL4TT9yEjqh3snwHrH7QX3j5Eh 2iUcJhHbb8jenbMxM94bqaYlzjaryHkBJqMt/BuHcPHT3bynNOjPMU9eJodm6NkoPRyg 2tb14cgWZgCdRFSXzmGQZdlTZy5XGKWaeC33XzCaqINT5s0UA62v9x9568cVaGYxTQ67 Lt2oDlO9URP8pglvuklBJnmrkm6G86hSBfWl1Rzqdy5W/Dm4n1lYxxpMtVi3tbh7QXNs taPHBwt1ETP4pbjQX6drhJ69wFFDPg9oAagiwNiZKaPbBhSD/pVe7v73+Ydo+9TQvgxz nIhw== X-Gm-Message-State: AJcUukfA9Eedd42meoAuqjZ08jIh5b9IAAuYbyi0iyvw+0P12JyaGqIf yXKs0wAmc71dXkNbxmnV20QoEfvsOBA= X-Received: by 2002:a17:906:48c2:: with SMTP id d2-v6mr5953472ejt.244.1547052471121; Wed, 09 Jan 2019 08:47:51 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b14sm1081499edt.6.2019.01.09.08.47.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:47:50 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:47:33 +0000 Message-Id: <20190109164734.22598-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164734.22598-1-bryan.odonoghue@linaro.org> References: <20190109164734.22598-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v3 7/8] warp7: defconfig: Switch to DM for I2C X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This commit switches to DM I2C for warp7 and warp7_bl33 defconfigs. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 24 ------------------------ configs/warp7_bl33_defconfig | 1 + configs/warp7_defconfig | 1 + include/configs/warp7.h | 2 -- 4 files changed, 2 insertions(+), 26 deletions(-) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 146d722b15..19f0df4d09 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -31,26 +31,6 @@ DECLARE_GLOBAL_DATA_PTR; #define UART_PAD_CTRL (PAD_CTL_DSE_3P3V_49OHM | PAD_CTL_PUS_PU100KOHM | \ PAD_CTL_HYS) -#define I2C_PAD_CTRL (PAD_CTL_DSE_3P3V_32OHM | PAD_CTL_SRE_SLOW | \ - PAD_CTL_HYS | PAD_CTL_PUE | PAD_CTL_PUS_PU100KOHM) - -#ifdef CONFIG_SYS_I2C_MXC -#define PC MUX_PAD_CTRL(I2C_PAD_CTRL) -/* I2C1 for PMIC */ -static struct i2c_pads_info i2c_pad_info1 = { - .scl = { - .i2c_mode = MX7D_PAD_I2C1_SCL__I2C1_SCL | PC, - .gpio_mode = MX7D_PAD_I2C1_SCL__GPIO4_IO8 | PC, - .gp = IMX_GPIO_NR(4, 8), - }, - .sda = { - .i2c_mode = MX7D_PAD_I2C1_SDA__I2C1_SDA | PC, - .gpio_mode = MX7D_PAD_I2C1_SDA__GPIO4_IO9 | PC, - .gp = IMX_GPIO_NR(4, 9), - }, -}; -#endif - int dram_init(void) { gd->ram_size = PHYS_SDRAM_SIZE; @@ -130,10 +110,6 @@ int board_init(void) /* address of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; - #ifdef CONFIG_SYS_I2C_MXC - setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); - #endif - return 0; } diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig index 7f21bb4f53..2e80011cbc 100644 --- a/configs/warp7_bl33_defconfig +++ b/configs/warp7_bl33_defconfig @@ -44,3 +44,4 @@ CONFIG_DEFAULT_DEVICE_TREE="imx7s-warp" CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX7=y CONFIG_DM_GPIO=y +CONFIG_DM_I2C=y diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 2d3171e42a..9f7dc73a11 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -57,3 +57,4 @@ CONFIG_DEFAULT_DEVICE_TREE="imx7s-warp" CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX7=y CONFIG_DM_GPIO=y +CONFIG_DM_I2C=y diff --git a/include/configs/warp7.h b/include/configs/warp7.h index a391dfb5c1..41eb8d7e1d 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -126,9 +126,7 @@ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) /* I2C configs */ -#define CONFIG_SYS_I2C #define CONFIG_SYS_I2C_MXC -#define CONFIG_SYS_I2C_MXC_I2C1 #define CONFIG_SYS_I2C_SPEED 100000 /* PMIC */ From patchwork Wed Jan 9 16:47:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 155086 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp917314jaa; Wed, 9 Jan 2019 08:51:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN7yfyulnjCdDcVY+RimsuS5afMO3a2kVdBaw9mZRy/rheYzMoGMrvxYvb635wCebDRLm8Fh X-Received: by 2002:a50:9106:: with SMTP id e6mr6344081eda.148.1547052661597; Wed, 09 Jan 2019 08:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052661; cv=none; d=google.com; s=arc-20160816; b=Ebu66Ue4wkk3j8Du+V6cV9bqcQy1wVqypJ21jPvcCrePlhDJQCIo//BYpN89Xf4lJl NDHR3r+gYmV60flJU8IxiEpVDa43aT+GP5HuIxBN+GdXfSy7sBd/DsSiILcZCMGBGz2K B0mY4fzArg0f6gHpZ30uLpdqEH8mjrERw/3N/OLjpS7C+k+/JlQI6B0waYIGMrYpvcyY 8sOzLShXrrnsrjI0uPQ9ET4BPC5akH+UgrEvAzh0HtcQ4zI9O3pq+XM3aLO4q0o/kGIc X364Z9mtrOVzAZTC723YPvWxsCU43x9F3z0xsWM5x7lOJV4AxZp/IcpPCOBJJN6hETbI K+rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=daWq9xVXvOvStk4LUNjHMrfM8xtBtAhWN5S6Lsnps0U=; b=WixN5MKnzW7NhSfwhYh5AfaTa/eWu8Nf5urfgNkJfPdocGAiTI9aaSGuv4LJpX4LMk 8wusb9yMVpN7j6goDKaZmEI4wmRmsjqBuHUsO86QCJZ1ue6IglKiYMCas5eBCL2rn+DH 1WtUeN+fSto8vr6FXaiMqpOyDSewzVRb3xcxVbt0ixviTgaPlviEAXCTjm8iGvZMFUuU t1L4aYuiHkPLQDE+xqrh8RDgNslITpNgrNccjZksdR5jlgF6NRsg5RSlGjA9LxeQrC66 K+oR8ZZdrYBbbtZi5YG7URjPQBVyH8bM6EaUI55tdYouIGreNYralglBPHCQTE8BNmoS 1vTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bGaw77FW; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id gr7-v6si627955ejb.241.2019.01.09.08.51.01; Wed, 09 Jan 2019 08:51:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bGaw77FW; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 3093FC22009; Wed, 9 Jan 2019 16:50:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3921BC21FF4; Wed, 9 Jan 2019 16:48:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 838EBC22009; Wed, 9 Jan 2019 16:47:57 +0000 (UTC) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by lists.denx.de (Postfix) with ESMTPS id 1BCF0C21FC2 for ; Wed, 9 Jan 2019 16:47:53 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id y20so7840281edw.9 for ; Wed, 09 Jan 2019 08:47:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GdiSyuEjim5+vzDESRUhTEZSwbHbH+4ac/+7RxnoLhE=; b=bGaw77FW87eAFRLzaJ6g0gZTRKiBFjwE27u0ksIpN/VMxigoM8Ra+24h3eNtxZk6b9 /Pd5Jkk7OkrRClxXaMG2HUwd/I15Z0OXJDbW9kZ0Gb8ozznMintJxyNRwAQDwHnTp6wE zxUy/aM4nWGofvNZe0keIuMBvGWyPIDyI5Ol4= 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:mime-version:content-transfer-encoding; bh=GdiSyuEjim5+vzDESRUhTEZSwbHbH+4ac/+7RxnoLhE=; b=OyvnUZ50geMiFRtbX3oe76V9eqdGjDg0tFccRdxx+ZaqKCg86CC1mQGsuTz3Aj7dM0 YhU/4HxxqL/GpXYY6s+qWrMsXMUOAeVxaxX9JZOd7eVwpJyG95DRen/iO8MLPDl4v5Mh tjNYstpJvedcgyxcYPJEE2A+P93VIkRy7gDt+3m5TqPH1XQLcLlM5Rao3kqwUPNpo/F5 if/KMnQ7/KVKiUD5weEFz6/UX8lcRzt9uB9QwVX5YWB36qOtYq4KhHXEQXGXxJ7vvZUq LJYylCZVpvfYUkLkqfPs35rXph9A0p0+oMQP52g3gmeGZReqfH7zLC/YTtw+jXDOCXmt gf9A== X-Gm-Message-State: AJcUukdtL5W39uEfIeoVvLuyOI/WBYVsP3tlydB/lJCWsi0NdcOTtKTJ 6K9SsrqKG/NZ9HBO5qoevxuGAoGtM9s= X-Received: by 2002:a17:906:1d01:: with SMTP id n1-v6mr5976465ejh.61.1547052472446; Wed, 09 Jan 2019 08:47:52 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id b14sm1081499edt.6.2019.01.09.08.47.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:47:51 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:47:34 +0000 Message-Id: <20190109164734.22598-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164734.22598-1-bryan.odonoghue@linaro.org> References: <20190109164734.22598-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v3 8/8] arm: imx7s-warp: Convert to DM PMIC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch converts the warp7 and warp7_bl33 board ports over to using the DM PMIC model. Signed-off-by: Bryan O'Donoghue Reviewed-by: Peng Fan Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- board/warp7/warp7.c | 27 +++++++++++---------------- configs/warp7_bl33_defconfig | 6 ++++++ configs/warp7_defconfig | 6 ++++++ include/configs/warp7.h | 6 ------ 4 files changed, 23 insertions(+), 22 deletions(-) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 19f0df4d09..6ebeb08e33 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -64,29 +64,24 @@ int board_early_init_f(void) return 0; } -#ifdef CONFIG_POWER -#define I2C_PMIC 0 -static struct pmic *pfuze; +#ifdef CONFIG_DM_PMIC int power_init_board(void) { - int ret; - unsigned int reg, rev_id; + struct udevice *dev; + int ret, dev_id, rev_id; - ret = power_pfuze3000_init(I2C_PMIC); - if (ret) + ret = pmic_get("pfuze3000", &dev); + if (ret == -ENODEV) + return 0; + if (ret != 0) return ret; - pfuze = pmic_get("PFUZE3000"); - ret = pmic_probe(pfuze); - if (ret) - return ret; - - pmic_reg_read(pfuze, PFUZE3000_DEVICEID, ®); - pmic_reg_read(pfuze, PFUZE3000_REVID, &rev_id); - printf("PMIC: PFUZE3000 DEV_ID=0x%x REV_ID=0x%x\n", reg, rev_id); + dev_id = pmic_reg_read(dev, PFUZE3000_DEVICEID); + rev_id = pmic_reg_read(dev, PFUZE3000_REVID); + printf("PMIC: PFUZE3000 DEV_ID=0x%x REV_ID=0x%x\n", dev_id, rev_id); /* disable Low Power Mode during standby mode */ - pmic_reg_write(pfuze, PFUZE3000_LDOGCTL, 0x1); + pmic_clrsetbits(dev, PFUZE3000_LDOGCTL, 0, 1); return 0; } diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig index 2e80011cbc..7b40bfbd6d 100644 --- a/configs/warp7_bl33_defconfig +++ b/configs/warp7_bl33_defconfig @@ -45,3 +45,9 @@ CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX7=y CONFIG_DM_GPIO=y CONFIG_DM_I2C=y +CONFIG_DM_PMIC=y +CONFIG_DM_PMIC_PFUZE100=y +CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_PFUZE100=y +CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_GPIO=y diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 9f7dc73a11..d1c8e403a7 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -58,3 +58,9 @@ CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX7=y CONFIG_DM_GPIO=y CONFIG_DM_I2C=y +CONFIG_DM_PMIC=y +CONFIG_DM_PMIC_PFUZE100=y +CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_PFUZE100=y +CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_GPIO=y diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 41eb8d7e1d..043f2861b6 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -129,12 +129,6 @@ #define CONFIG_SYS_I2C_MXC #define CONFIG_SYS_I2C_SPEED 100000 -/* PMIC */ -#define CONFIG_POWER -#define CONFIG_POWER_I2C -#define CONFIG_POWER_PFUZE3000 -#define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08 - /* environment organization */ #define CONFIG_ENV_SIZE SZ_8K