From patchwork Thu Jan 3 01:44:37 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: 154698 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp164744ljp; Wed, 2 Jan 2019 17:45:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/XxIkpkYwOsY+qLnjxj5/6oGWWjbK4mDlSdTA6KbIVtB7/c1YBL39mvpJuuvPt9K85botdc X-Received: by 2002:a50:98c5:: with SMTP id j63mr40641317edb.273.1546479943117; Wed, 02 Jan 2019 17:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546479943; cv=none; d=google.com; s=arc-20160816; b=vfoM2BFHP2Gj315uGPrm7t5wVuFOTM6QpfEE4tkJIo3qnM5Kbv/wiGz5WjgDAa05LM ZSlCV6GT00ofW/zz5+4rfYqmXgP+cU82JRthJWT0aBsTxudXpc2rTBftvhQKwsvAf1tK txM6LT7RYq7ITKkENTcdcfszXJ5EP0ltbXhY45lwIOPnsoM/3t5lZz9vU/w+wBOIgXHh ZsSzLAzHZ8BwwIxcsLtErdt+7E6IJ+pxUJ6CUXg3nRa5hpqXFHzxStUYN/rgwjrlt1Tz w3e4zRrS/00ltb/PJDiYdz0mbkamV2+oFay5MiQCy6+bsNODq52RCuSKl21GP78Sqaz9 uqpA== 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=zjiX9I49rpSVwyTbaUR7dz8Wq5+xNAtim2RW1ewYBK8=; b=g4d/NSNSY6yaYRxalZVmqGzl/mTVksVkTVmJskfiI4nKBPil2QMNvyNWwPgk/P/vv8 WhbuSmd62Dc2ePELXphMVqXxQW6vo3cBNzil8pAuTWhQfFiTgBTycr/oIWK5OAYlGSKz Ncsrr6JG4QQm4ZTPJM00vJwFXhfwryBxf38OSpvkI2xRZ4Pwt8Dn/cjYkZPmZk01t42O i4WsKp0lTaWuY5cmZDnN0VvgA+QRIEpaSUS5ZfAWTdvd1Q4TtgxTaCMM5dUtbQO77EFt MfXvWPkvH6UBsFuE4YjLqU7yFFMapw7cHxJXTZpYv7a+v4JdnARwO5luwvUVhuLSDMeP 0NDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="iT/T6q/p"; 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 r16-v6si855337ejj.90.2019.01.02.17.45.42; Wed, 02 Jan 2019 17:45:43 -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="iT/T6q/p"; 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 AE4BCC21D4A; Thu, 3 Jan 2019 01:45:19 +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 291E4C21D9A; Thu, 3 Jan 2019 01:44:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9214FC21C2C; Thu, 3 Jan 2019 01:44:56 +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 0FEEFC21C27 for ; Thu, 3 Jan 2019 01:44:56 +0000 (UTC) Received: by mail-ed1-f65.google.com with SMTP id g22so27685329edr.7 for ; Wed, 02 Jan 2019 17:44:56 -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=RpFoxla+HdJNQbsFu0DSlNuZY8z07F78TOYYjW1Fufg=; b=iT/T6q/piTmv+CVcKbZB9tFHLpIq/KpdwVLOBY7316FcUE4ne9Z9LQ/dJNRJ17+c/7 ipdK78hzZV1Fdsy2rbrEqvWeRtwqlhvyFtEgvZcOl5dUVTp99q37d4AmkBgr/a7cbEpb Q/tbJNdnnO2c2PKOuE0Wmn3ACqZtXuxREETIQ= 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=RpFoxla+HdJNQbsFu0DSlNuZY8z07F78TOYYjW1Fufg=; b=M9o8MHuOtU6OTVwKe8ZAboC/jHXhlXuNnTpzxO6K2RLVWDpyxzr4nQnTpC4fvVQ0Ca qgtJGZU1+bmXcTRguJCVp9ebuWaegp9UxnyUoYII/UIbht2JpY8JEsetgrrtmH1oePbk GxufyS+JyM6NWO7QrxgpkuHsbwOH/Uj7OePg4HC2m2G/RwMV2qboTirR26P95SoF0479 T2HMSU+NkuVedDIAC5+0zqDNNUn2hqCLHM21CEEBO+kFBrnGG5HI/70hMmxTxdjJ1RJH +1ETd4vaJn3vzSCyXL0RpRoxYm39+gA4nfy02fDtsoGkKfNyah40JyWepKCbsInVIFCM rv8w== X-Gm-Message-State: AA+aEWYH0CvipogPgPZU5XO0BhPISBB+0JJtCfDUtXgpYth994UsnsoJ GQPqph1ekNsEbBIzjEoO0EG68iO7qKdowA== X-Received: by 2002:a50:9923:: with SMTP id k32mr41271050edb.42.1546479895212; Wed, 02 Jan 2019 17:44:55 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id g5-v6sm13036720ejm.15.2019.01.02.17.44.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 17:44:54 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Thu, 3 Jan 2019 01:44:37 +0000 Message-Id: <20190103014444.11134-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190103014444.11134-1-bryan.odonoghue@linaro.org> References: <20190103014444.11134-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 1/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. The following was dropped from the incoming kernel DTS file -&wdog1 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_wdog>; - fsl,ext-reset-output; - status = "okay"; -}; - - -&iomuxc_lpsr { - pinctrl_wdog: wdoggrp { - fsl,pins = < - MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74 - >; - }; -}; it causes a DTC compile error for me and isn't needed for u-boot in any case. Signed-off-by: Bryan O'Donoghue Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- arch/arm/dts/imx7s-warp.dts | 423 ++++++++++++++++++++++++++++++++++++ 1 file changed, 423 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..c44db20734 --- /dev/null +++ b/arch/arm/dts/imx7s-warp.dts @@ -0,0 +1,423 @@ +// 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"; +}; + +&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 + >; + }; +}; From patchwork Thu Jan 3 01:44:38 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: 154699 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp165263ljp; Wed, 2 Jan 2019 17:46:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xs4G1jevdWWgZm/sZNrylCpZ4WPj5UIQLUL6HfcsYio+qYRDkY5eC43agQRRiBJu6v9mo5 X-Received: by 2002:aa7:cdda:: with SMTP id h26mr41751804edw.248.1546479997921; Wed, 02 Jan 2019 17:46:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546479997; cv=none; d=google.com; s=arc-20160816; b=n6Ic8oP/VTG6S8fx6f6xWJECnPQzertmWud5/FYEGDhREazr1G0Ier0VUGDjfzB+xc 1Fk2beHr89umuahd4etoOGYbe9EEM1MzLmn9g+r2RuZC50c59H1BXrisbDF4y+Moovji ITBmT7rRNxGrJLNkzS/G1XwCh9gwgMFYrTMF4vLr0Goao9Tf5y0J4Tz/ZJ27ri1zXVh6 IuWou1KnrAYqnkKN7o8TdZgp9QrxckVPyo5MCeZmjZlG//7dhi1jEeYQCdZoRlNYr+NM 0swhDVQpAe9lFtLJ2BFOUezEbspIcAGIihlAVYG/+SAOZzUbWFvDwQTi/ECF6xN/iVe9 7xBw== 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=jygD+G2tXGnbNiQ5al0ph7ZDMyICXs+LS2lmqFcDhc8=; b=Z4CJ+8jybpLvkX47aQsr4C13AjvQ2lD4Ici/Dvp75iDCC0t/+vWrEe+mKuSX/VKDSs dGbRCS1aVhjbCgXYVeLrgZUeKwPS6dAI6V8/1BKIgXqszg48hbYdf/39m82zG/f/Y/CM gPMEch1MLSpkoART4QSSLeWCclpeHCQnFKOnkOINl5Z5Y40TN9W/oJIqYeQM7FIQMfpR f5wxO3cfl/QNttujy0+ol5ZoJ5Flp1Hc6N3/PLPEaH5sEAqSj+zicVnba+75fuX9ptbW iQvYelf22iZSrUGV1C26dKbq17MkbizjpfgwogNSoSNVEex97hBhsspIoTsdj7ULsHAZ UWPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VUmsWzQl; 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 s6si3741478eda.373.2019.01.02.17.46.37; Wed, 02 Jan 2019 17:46: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=VUmsWzQl; 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 660DEC21C93; Thu, 3 Jan 2019 01:45:45 +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 1AE19C21DF3; Thu, 3 Jan 2019 01:44:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 67F23C21C4A; Thu, 3 Jan 2019 01:44:57 +0000 (UTC) Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by lists.denx.de (Postfix) with ESMTPS id 1DBACC21C27 for ; Thu, 3 Jan 2019 01:44:57 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id g22so27685348edr.7 for ; Wed, 02 Jan 2019 17:44:57 -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=H7kbCz732i0WqJmoXvzSMsVjKeQQ9doDTZdeJROldN8=; b=VUmsWzQl4x1N6b9dGKwgksviLXPnW/kNTO96u8DQDzsfo3S30Erh44lRU2Uw8YDB+p Cp14SwZPSQgp7XPH5jFGsjQmcc7Rzze3qcRWx882L5Gsdc3yIhf8pPqnrBnb9RHuOJfJ qdXiiL5T6zW2s1z9vw8VNdGeDA3APFSE8L3zs= 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=H7kbCz732i0WqJmoXvzSMsVjKeQQ9doDTZdeJROldN8=; b=gN3p6Uct21fN4Fv9Sx2XTXAy9T4prjVpgZlRt1wAmmmN8/M+oC1iNwJT+sNrJemk32 ox2GkWYB7nI0DeFDiN3hUVP1JJEr3m1tHzSLAGs9x2HQoX3BpPsW6/3Ek5KLvgRLktzd NiJcbYwqvHzhDunv/Cfqe0ITihFnnYJdSdOUAY8gh3VI7AEtf9Z8AZHiTNe8FyZREoFf WK24mtKME6vVg1xLDGQFFkKkhztikyjhh+s8usEtYOnMc2GbShy6LhSfzBEEG2Fzi5j1 oyvUC3fMT6W8324NKk6xzlHQ+PY/GxQRvvJoR/dTRZ5fEy+MNVoCY7Dwvm11NQXB7ZOo YRpQ== X-Gm-Message-State: AA+aEWaZAHs7vQqDgc5qEzLq++GQTeV4dXwHxbwoI+1CAU/pWcapxXKt JKS5cU+7pYMcXpD3SF7JA+VxTC1IAmXvkg== X-Received: by 2002:a05:6402:1347:: with SMTP id y7mr40841237edw.114.1546479896425; Wed, 02 Jan 2019 17:44:56 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id g5-v6sm13036720ejm.15.2019.01.02.17.44.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 17:44:55 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Thu, 3 Jan 2019 01:44:38 +0000 Message-Id: <20190103014444.11134-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190103014444.11134-1-bryan.odonoghue@linaro.org> References: <20190103014444.11134-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 2/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 Cc: Albert Aribaud Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic Reviewed-by: Peng Fan --- 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 Thu Jan 3 01:44:39 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: 154701 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp165573ljp; Wed, 2 Jan 2019 17:47:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xrw4YGu9Dom/WTHb9GXpcG+mOUKdWwib8X6cQCbv0jxPGx03LT3FACwNU0ZQ7p3OI+qyxl X-Received: by 2002:a50:a246:: with SMTP id 64mr41372359edl.43.1546480033042; Wed, 02 Jan 2019 17:47:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546480033; cv=none; d=google.com; s=arc-20160816; b=gLdvuziMyMGPp4EteYvYl+rvwP4q4NLeRN9Fl5QAnBEWniSpOzKymDXAxVg8LtUrAc 997qfcboa+t1BZn0F68f9wEN1qtyvFdsU5byKK6qZCS2IJtsz3NttQgY6UpeSSzSJfWd qBVIajC/1ajign+D0QDQ6gpjMMl9wjpaLiV0gvFnfUcGACHeS76P7wJCy8UThvR5uGsc NczhAlIckMC1ksFqGIncmfRlFgDffdtjdO6DbsGXOv61noFTMtrVkpJPKPzKIlC5mLgI Xun9eDpQywLb/sSLp185Z0YZWp1H51m3TjIQsSyf9kUmaro2ptsRqeTVTfehIOVAe0Bs mA+Q== 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=K2CyObMc3PNdUXAHGmjaEBWBQ5UuBkvzMhZzz1eeGiU=; b=0gHX7Qxq9UAeInxkL4xQAYe6q1UyL2dK3XUWoLE2T1XfbG+akprJ84m23r0N897sCb X7ztjBDfh9HmognWEA+vioXO5zzY5dMAK2nL0sBouyD24cFzSbzC7Ex/yZ6INW7cLq0W K4b9MzNOFzPh/3oH9EUccdiNh39B5utEMcr0RRRGK4sJObighR2P1XB2nNPoXVKOLQmu qvtv2aSTElk3lYMsgjqscq6GnwgroRFdwp1lqcHndpjcNFjQZSLTcD3QabBL6lXJfqW/ vmtr9U9gLCo1aUR7U6fbosD569sG+FRuu1A76WK0azO81dKkM6tKDc1/X/IgtXZgUGIO pAOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="C2X1/xe6"; 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 f20-v6si8529690ejc.222.2019.01.02.17.47.12; Wed, 02 Jan 2019 17:47:13 -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="C2X1/xe6"; 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 A8231C21D72; Thu, 3 Jan 2019 01:46:20 +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 BEE83C21DA1; Thu, 3 Jan 2019 01:45:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 43D8CC21D83; Thu, 3 Jan 2019 01:45:02 +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 78D26C21DCA for ; Thu, 3 Jan 2019 01:44:58 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id b14so27700492edt.6 for ; Wed, 02 Jan 2019 17:44:58 -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=UhvONJDDVdL+Gyibb2+snYb+nKtFIFdW5rCJsmlEuXE=; b=C2X1/xe6wFJI/PgJM/rhJd93+/1qghnU85F19tvlhbnxLYH1P+WffsYiOFNXWLQSk+ 5XQjsjm30Au6bUt3Szx9jn8f7A+5Kz+ePFRUKN9a2DFg4No1YOcNT/L0tt3D1i7ihU1F FOfGU2IXdgWACsuMsVnpisgJL4YPPUiUC3DLU= 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=UhvONJDDVdL+Gyibb2+snYb+nKtFIFdW5rCJsmlEuXE=; b=bUtYIU8uMMT+k6WGUry3tZCk8Ov2RnYCZoVFHFCFsos/NlaRqvYlTyc23qdGGtUnLt Rime15zyt2DwExzQX4QBLhILCqQrOJNsWWWNtBkuL+o0Q1VpUXrmmXEJ82gtxwAhe75p 9m0cSveTgHN0Wg3x1s/5BXJb1IEd2+IkiTaBf6IH8jJYHE1lbKZrKykMLecFj/RHYLiM qCejVSsxLMBMk+BHl6r9xj51NycDwwXd8i2OSshM51vS2EXBDDfrLv/ZpDv127RwgZ2o C23GqS/Xb1Z5dfYwmqz+2Zpyk+VE2KVIUeVH/Um3SKDTbDtcv1vKPJcaYsaAApTqfXAl ZzrA== X-Gm-Message-State: AA+aEWbzke9gpTg/n5yrIQjJWz39CG1RlW77TTinzgpFVC215T59mIMU ua4cGYxXcPwmNdFYz2lkUfACx6oQ+WctBQ== X-Received: by 2002:a50:af21:: with SMTP id g30mr38594428edd.234.1546479897760; Wed, 02 Jan 2019 17:44:57 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id g5-v6sm13036720ejm.15.2019.01.02.17.44.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 17:44:56 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Thu, 3 Jan 2019 01:44:39 +0000 Message-Id: <20190103014444.11134-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190103014444.11134-1-bryan.odonoghue@linaro.org> References: <20190103014444.11134-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 3/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 --- arch/arm/dts/imx7s-warp.dts | 11 ----------- board/warp7/warp7.c | 34 ---------------------------------- configs/warp7_bl33_defconfig | 1 + configs/warp7_defconfig | 1 + 4 files changed, 2 insertions(+), 45 deletions(-) diff --git a/arch/arm/dts/imx7s-warp.dts b/arch/arm/dts/imx7s-warp.dts index c44db20734..615ed7ed80 100644 --- a/arch/arm/dts/imx7s-warp.dts +++ b/arch/arm/dts/imx7s-warp.dts @@ -251,17 +251,6 @@ 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>; 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 Thu Jan 3 01:44:40 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: 154706 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp167434ljp; Wed, 2 Jan 2019 17:50:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/XBn4rp1bnIeAioXDg8fvUV0PDem4PLIkb+OtThYTMh3gKTcDAJOZNg4Vef5hSoxwP9sRn6 X-Received: by 2002:a50:8f44:: with SMTP id 62mr40175370edy.264.1546480228072; Wed, 02 Jan 2019 17:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546480228; cv=none; d=google.com; s=arc-20160816; b=PgtjF+BQ3NmjmlNRk46sTYqZP4gbZ7k4AguawDB7h97KQJFqZIgbOA3znKJI/x6IiH nMNDYTuMnzGvISMGmXkDugb7MREMS77yeQxsHOXwMpZm2mLKTHWqj3mRjjxOgnTcBZka egn27ccqGzA+CPeT5vZHKszjJQCwT+r6zwfx/J9IKysCqCKVCW69CyYjQIXLJ8wt6IyN 03Qp+evze2iylTOVSD/NrTlCBH26x84XCxFQWtrIQYKCYw9F9O6vqzVak/xJiEKROkX7 T4vF4ANfcg1iStZWow4x4YMRmBHF3btwZtWsbDwmH6jjiH0uulIwfU9xajGILNgubo3R Tpcg== 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=3vMOqk4f6Ot7Ku/g2S5Ocer0A8WlTuLD8TXAodK865k=; b=Uo/Xo8Fahx2XZuVIPRUv40lkNSfbF9RdPHs8WXEFqmuKqcwomrhSDUhT0SNkRX2QOT ZF0RN/Z9yHwvMQ/5DWQGd4ITti+KdNYnoPs4fZtH7NdIXZ0yiz3vTlVc2XefSum1Q1I6 N/AAx7MxbzrKQDmGr/iFLwBWiATlG2Lttz+PdvfY3IbGiL3W1OzhsGDPE4azu9N5Dtf9 9N/4+YtDNkwM13UXVD64S3BQOppoJ2oLYJwTEn97GeQv/2J414CaSoG244CsW96Ufd75 sA8XFM28v4lwmHWwLeqrPuJUGkEezJJpMKSm7subaozGQ3jbLwfvrhn8N7jRY8+BaDoQ 1Ktg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Cv4I+loG; 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 v24-v6si3785812ejq.105.2019.01.02.17.50.27; Wed, 02 Jan 2019 17:50:28 -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=Cv4I+loG; 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 90C10C21CB6; Thu, 3 Jan 2019 01:46:54 +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 5523CC21DFD; Thu, 3 Jan 2019 01:45:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CFAA3C21D83; Thu, 3 Jan 2019 01:45:03 +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 5EDDFC21DDC for ; Thu, 3 Jan 2019 01:44:59 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id f23so27728151edb.3 for ; Wed, 02 Jan 2019 17:44:59 -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=Q6hReD4+xmO+s5j76+aZGyiVF7MH/a2Iax6DZun1aCY=; b=Cv4I+loGGUHlyeM+WTp84clImd1yvOcXQF5PKBuqUVGlOwMMBiS1/WK43y/sfrpekm vV68fmkzzKvGYQiJL9gLkrYHDnUAs6UvYLjXMYaLSaz5mES3JODoh38t0wmGuy3xjQvK Grzt/tIyrBHkSxEhMeKtw0fu8c8U79Og9d6Jg= 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=Q6hReD4+xmO+s5j76+aZGyiVF7MH/a2Iax6DZun1aCY=; b=XbapOWgX2BXNIG04KRBDaevXPAA7kTvl05WxOE4LHzTWUOU2diKUsP1+m9mGvQem/v ykGazsSaci4+RxLALWgZQ3dNW9/YcBgmf44gFZZVXKhSygVptMBW0TIwf+w8P/GfqtVQ 7ldk9/LY2dAH75mKY4wiEtK8G3nh3zcyxTtH4Kz6l2mtF6AJ7uJEe+0MI7ypTaZJ1t1K Ljved96A+uNXZ2uEuomTOJEhJI6x0L0LXs3btKiIEI7MjYPQfwyNI5oduwqhiw+JGMaE 9CLHb3gthozJDCk/Dn+kKjSYjv2dBfDOc9BYyqqbHuWsUC2Xx2F0tjbnbdJMnVmsDH7G SDHA== X-Gm-Message-State: AA+aEWaORO7t1Fdy8Q9Aaee34j7iKw5qn2t93jOQAS0+NzDNTm6JZL4n n88F9bIz98tvGyEM6Ia6qrj/RYzB35Z9BQ== X-Received: by 2002:a50:b32f:: with SMTP id q44mr41087897edd.70.1546479898796; Wed, 02 Jan 2019 17:44:58 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id g5-v6sm13036720ejm.15.2019.01.02.17.44.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 17:44:58 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Thu, 3 Jan 2019 01:44:40 +0000 Message-Id: <20190103014444.11134-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190103014444.11134-1-bryan.odonoghue@linaro.org> References: <20190103014444.11134-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 4/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 615ed7ed80..279f02ecef 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 Thu Jan 3 01:44:41 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: 154704 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp166802ljp; Wed, 2 Jan 2019 17:49:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/UNVodQHjVomkucci1e4i0pLkMx47MNAPp0+Bz6l5XH0N7BVdMSMYS6sFOczEr1gDKVWEuT X-Received: by 2002:a50:95b4:: with SMTP id w49mr40344024eda.186.1546480171911; Wed, 02 Jan 2019 17:49:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546480171; cv=none; d=google.com; s=arc-20160816; b=aa5Hij+X/BmUZMafNY8qVybb3pW6Kaobh/uiu8Ci3UkDmwEWs3jwTU8B/BqN+VA+wB FXpH0Wo+V+sSyYBc/7JZ0CJFh46yabUcY5wu+OZmySd55s3EZQg+9BRlzT5PJ00zXCbc HKakg0avUDK0+0FnRtpV9+uGSVg8S5vwthFXQJtFzOqeB3kK0efiazOu/st2wQW6/CJL 21bIvrv9sPjK9tTH8LQIElkqcmx9nUGFJE42VQZut50/MuuSxEHqhvs9adTbf5LbJOiK eLYpEnPk7p2IgtgyZZu3CcML1FTwTUDp7N1vTBZSMGhooZoTILK6iAxDU74F3s2ft5XW VSxA== 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=yeyM+uhgOiixQMv7OMa1XIde7AKwTPzAcHAobI3KFV4=; b=Q/U2HzZrcOhDUzDtfk7hgXJjvhnuf92iftifoelvyjAP14xVsvesFvi/AhtVcHVHoU I5JFIj4HPumjnNvtR4Jgb3bvJXyNk/5xvCLIy2rOd0CwN9P7qIbkW/zHynVkypKKoMzp 0W3SmbL/N0gCtepGd1hvOuk04xL5he/9t5JUU6M0/atLK+bZnLe5JuS5FC40INW8HgTD SaPZ0N+04K+L3gt1Jb4LpmfWH6ADyrsYEqSIDcJJTH+uB6FOASMmF5g169TAhNkPMCgl badGJ1y3CqyHp7i+1boU1nxC7c4u5RZ5OQFWYEIq6G+8Hye6GIdmhBfl6aN+VKOzo5sb xvbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=k0p0kC8b; 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 hk19-v6si2864315ejb.253.2019.01.02.17.49.31; Wed, 02 Jan 2019 17:49:31 -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=k0p0kC8b; 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 85AFAC21DD4; Thu, 3 Jan 2019 01:47:10 +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 5953CC21E34; Thu, 3 Jan 2019 01:45:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CFB40C21E39; Thu, 3 Jan 2019 01:45:06 +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 113E3C21E1B for ; Thu, 3 Jan 2019 01:45:01 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id h15so27711418edb.4 for ; Wed, 02 Jan 2019 17:45:01 -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=npYu1qMNJwfGs01dc4tp5fRwRcHFCSEyNHXlj2VYP7A=; b=k0p0kC8b76DsVpZhoTN6BxPRIub7z2siKfJTrEKzk92OdJx0KM7LHkGA/oqttyLOMB bB85JBZ8HLralM80LT9r8LwqDCzQPB3KBbhqn/LLDwKDOLg750EFqTSS1XOnXHAVLvzK bCE1RoW7EJykkmQ+xgCC1imuDHhZ0BtNHlv9A= 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=npYu1qMNJwfGs01dc4tp5fRwRcHFCSEyNHXlj2VYP7A=; b=sbD4IlJvC0OnvrdIr3R2uzeyLId0tfB+TwbWx9VzwJpmZn0bjuGir0kIuSFFqmthsE Zt6Q5gnFNFd55EVvD5sOtpQMkSemiW5IzvlG3pe1MB7yEZvjLIBSOHpe2jAikGvhyK5x sMjDhcZctDvApfVCRMFC8zzGVzXcsHOFBClsrcMOC7DMUTYZRiXr0Ccxn3vLq5sIKRd9 XSmWzni3zGN5Ngj+Z1T7ga/s+BN9DwdBehXEy21G93jmz3QGhBCbhDDlGS7SSCyoLvHp 5aG/d5eJBcGPKsEeZQtUm09R5U9dpEek+iSmfm69d0bh5ORwAQPRYvhWBkkSQrkFqGfd zZvQ== X-Gm-Message-State: AA+aEWbvlmYPoybb08S3ox9LJdrp28Be7oFQs0kGWJWAqbxCu/8MGpP0 LvpWDjjwAC5UZ4mmvv4s5LOaroHQF0pS/w== X-Received: by 2002:a17:906:1a49:: with SMTP id j9-v6mr34251694ejf.45.1546479900368; Wed, 02 Jan 2019 17:45:00 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id g5-v6sm13036720ejm.15.2019.01.02.17.44.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 17:44:59 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Thu, 3 Jan 2019 01:44:41 +0000 Message-Id: <20190103014444.11134-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190103014444.11134-1-bryan.odonoghue@linaro.org> References: <20190103014444.11134-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 5/8] warp7: defconfig: Switch on IMX7 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. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic Reviewed-by: Peng Fan --- configs/warp7_bl33_defconfig | 2 ++ configs/warp7_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig index b2f943c775..a2c2555315 100644 --- a/configs/warp7_bl33_defconfig +++ b/configs/warp7_bl33_defconfig @@ -41,3 +41,5 @@ 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 diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 65d801ffe2..8691d00491 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -54,3 +54,5 @@ 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 From patchwork Thu Jan 3 01:44:42 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: 154700 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp165536ljp; Wed, 2 Jan 2019 17:47:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/V3IQdR5fcC5NqHLSlitG55t9ORjy/OsucQAUCtfdMwAKo/V+MxkYEatj9122oYEwpBbxuA X-Received: by 2002:a17:906:9613:: with SMTP id s19-v6mr33553465ejx.109.1546480028204; Wed, 02 Jan 2019 17:47:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546480028; cv=none; d=google.com; s=arc-20160816; b=XuOV3Tj1fj2+7ucOjABJqyTbVd4RRZyYNXpF8Q+eTAJ0dwuvbXkuo8/6xZKcA4lyT/ m3nDfCMhzu9U1LXQvNyx/TjhSzcXBxKjfodpoXWWL389tfq+hkVDMgq4sMWCJsjBYN96 fG0VRyNDswWNNeZm2CuKzt6lYf2RPj8jJ+NPBRzvZok+EG9fkin1Ir7uuT6/7uEt8lMN +1wXcejphBCsr3NwTpyDxQhu3/dmH/AVabZ/PHJTDuB2GoKYfTjZDJi9koPMLRGeGYkf ZdL5vRAKOl8xZUmElZNq4qrq691F7Pb4kcfsUhwOGMwHQBA+r69GPGCd3jiTX3zHCz2J zpdQ== 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=Y+3ESGmdNt6R9IBhrR1wl9crow9h9BbvLHZfeTYTcOk=; b=bMaAerEblu14X0YFUJUuSyXbNp/FF3MqBhXkH13lIgobO4XU1l14d6ZuiGI7wt24Ec LsOGjs4IN5dPPXVFkMxJR2oSbogjmuEAKpptbBhX7jGxhq3jGNg9eCYpnbJr5mZNDQSf eLM2ZQGmAYm12P5+MOpx8uUF8HtQl+iBRHeb6JD7s0M6TtbW3szmr8mOcvplqnzCW3fv AOb0wNmVi7FhCkaAVkrhMaXluoS3BePmrWnFcI0LeTWPdZhh5WV8weagoSgqjkcyok3x mMJfVvwIwdxVYVMusJFlxhcfRnHU5Gbk9fJ/F7KM8DFJCdrTngzkQu9EEmFahRxILWmQ /xRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Za7bpm0H; 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 g51si1098459edg.7.2019.01.02.17.47.07; Wed, 02 Jan 2019 17:47:08 -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=Za7bpm0H; 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 C7FE1C21C27; Thu, 3 Jan 2019 01:46:38 +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 8D10CC21E26; Thu, 3 Jan 2019 01:45:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 55E58C21DED; Thu, 3 Jan 2019 01:45:06 +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 0D1BEC21D72 for ; Thu, 3 Jan 2019 01:45:02 +0000 (UTC) Received: by mail-ed1-f65.google.com with SMTP id x30so27756652edx.2 for ; Wed, 02 Jan 2019 17:45:02 -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=Oi1tF/JNK8ZUurPgRwXJnnbql/gSBOTmS3m7QBY6jkU=; b=Za7bpm0HKD5kRnjasXb1II0pZhFCSuftaa90usxpl7145H0A4KLHbUROCRKUcNNelA lpE0B8J2SMix2iW5Jebjg+Bq+p6RTvefB26cJ9Ka+n8TtyXaXWByZlGrZv45DXbcGFl5 LIq5ERGdnf8fVc+yOb7pAG6vZYff9j2Q1jDzc= 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=Oi1tF/JNK8ZUurPgRwXJnnbql/gSBOTmS3m7QBY6jkU=; b=HOueoYBm1hftMxhTQGz8nWQfIIQhjzNGFpUvOZyonDcWhPsZ1FAakNntquCbG7tyX4 7FhjVvRap17ndwLeFcsPwoP3XYxNxhVMj7xftfNiItTXudNTz6CyQ3SzYj7Rt07fm8/W BrjIAtvAz01ShjP/R15rwDu9HbTnGLzgImAjRI+1m8HGHvKX1phmXIW5TnnW55N1mG6p oDLTc2OsrXnQwWcfcSKNzc80SVuzmboUw3SeaoF6Lq2URrPztfhkrfgEI3jeEooFCoWz KZKW0qbc/7VkjGTXVmEEJmspWxzoIfeSIO5Sh82Ievh2TYRxo9SUwkUvObPhmrg0QE8r 1diA== X-Gm-Message-State: AA+aEWZ0ujIf95nNgfLQ4p7RXVjHHL35ZX+Za9UPARvm8d+2BrNB1+tU MEok5/zkPGRhJNOWoQApzf14V4l3lzJgKg== X-Received: by 2002:a50:ba5c:: with SMTP id 28mr40244225eds.91.1546479901375; Wed, 02 Jan 2019 17:45:01 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id g5-v6sm13036720ejm.15.2019.01.02.17.45.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 17:45:00 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Thu, 3 Jan 2019 01:44:42 +0000 Message-Id: <20190103014444.11134-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190103014444.11134-1-bryan.odonoghue@linaro.org> References: <20190103014444.11134-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 6/8] warp7: defconfig: Switch on DM GPIO for both warp7 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" This patch switches on DM_GPIO for both WaRP7 ports. Signed-off-by: Bryan O'Donoghue Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic --- configs/warp7_bl33_defconfig | 1 + configs/warp7_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig index a2c2555315..7f21bb4f53 100644 --- a/configs/warp7_bl33_defconfig +++ b/configs/warp7_bl33_defconfig @@ -43,3 +43,4 @@ 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 8691d00491..2d3171e42a 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -56,3 +56,4 @@ CONFIG_BOOTM_OPTEE=y CONFIG_DEFAULT_DEVICE_TREE="imx7s-warp" CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX7=y +CONFIG_DM_GPIO=y From patchwork Thu Jan 3 01:44:43 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: 154703 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp165821ljp; Wed, 2 Jan 2019 17:47:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/WRryeKEnJKS2kE3L8EhMMa/uXmiKVw4nUIp2lcMNryCg1++DE6wJFHsKY5fz9UEDKMBFoe X-Received: by 2002:a17:906:1d5:: with SMTP id 21-v6mr33554722ejj.206.1546480058646; Wed, 02 Jan 2019 17:47:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546480058; cv=none; d=google.com; s=arc-20160816; b=UeUBHhusb0Owvf4OE1Vb8gIk06XhrbMbe6hku86794zMOmd6x5qYkBI0cDX2vvlFO2 plmde8Wr5hDsAKvXz8gsFKo4o2HIcadEXE16D5j/o8HqgbE0q5tsyilEluO/UM22GV9Z vab/ziF7X8jCNQ8JOp+6GFBF6kNhk6zvRVX9JtTtVQoEkBYm/aZo74504+Q56d9dIxM2 s8JiIIyxBrf0gO6h08m8H/vd2Ijm9ZIfaeXBVRJ3JdYfrpfZ7XFE1OchrbGyb3rA0GMA Odc+w3vWNi84Lb/2phexu88Vl2rqHDCQTEhV+YIOEjSrMFTRk1EoMFjYtcBVnKUFlxSh +/kw== 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=z55P80fxmg62xer84XBHtZbgCHevVPK7of3TyY8H/PQ=; b=GAfLyDFb3nsCvVVu7P+h8o+no7ovgK5KSfQr1H6zPfkCYW6HTMkrdujGDIVKs+6qQA RQjurejwyRILf7juJfd6zkh1hqQA1/kF+CP+RmPXcEiJfb86QvZRUzkD4HdiZ56WD3zQ Xsk6hF4lnBgc+GCimu/qiwiYg0yQPh6KJFQf926BSYbLs6U1TkoZyUZPq1v6Mo9vKM1f r6ibn7amhrsM8urfe13HtIUzcwgqVXA1qu3L82zAjC6Tk9ofewiz4hege97B33RbC6+m mGnhGWWZ45R4zDur2iEg4VuuyQdLLB5jOPtBQ44Ej9MwqcmjLgIc3bSB4RCNPWX2OtvO VB4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kxRncEvH; 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 u19-v6si3528532ejm.190.2019.01.02.17.47.38; Wed, 02 Jan 2019 17:47:38 -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=kxRncEvH; 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 1A23FC21D9A; Thu, 3 Jan 2019 01:46:02 +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 0943AC21E15; Thu, 3 Jan 2019 01:45:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0EFE2C21D4A; Thu, 3 Jan 2019 01:45:06 +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 3491FC21E3B for ; Thu, 3 Jan 2019 01:45:03 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id p6so27771699eds.0 for ; Wed, 02 Jan 2019 17:45:03 -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=N8DcLaIMQCEvskifdmv54W5ie5tkO5IVw/M3d4826zc=; b=kxRncEvHN9MTdxv6ZxOJ0+emL6qJfgPImMBCsaHC9LmqoRND0ksne3hF9tS2rTqYq3 VMxP5Em9yGCoQ63gfL/EoRLXlNi8n4NOCl115IwExiN0q5au+NNL1aLH0wU8T5VQP6cW sgu/SlJxEAaCJUfrmwW1z8olkC+gCNBRZw+H4= 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=N8DcLaIMQCEvskifdmv54W5ie5tkO5IVw/M3d4826zc=; b=fidLG1IVaYwHKfN1FnXaNHWxsS/c13RbiDAI0e1hNN+hdCsEPOPsKwKN29Fe8IZs2p WO/HH7Idxp7F55W8BwLOTtZ+pfVAbgvM/WH8RV8d7ccqNbDH2eIM0y0vIzAfTmvyiA+4 U5CWoo8aVqQW6RSThVFriX+/aap1fJpY3LG4zLrH1HDGsU7zPRR3VaIjpPGBXHfw2Ak/ 96qNbeuk5shnDU6FUaQNVMKKFx63YWs1qgeF2ZGSedPcqTV/XzWNujbCSg4pw1sD98mI CfKYSGzHVbIHDKUf5n4ZmBCh4So4qLInoBQPtfR1WjdeOKBg4V2sAtWks696tqK2zxat w+jg== X-Gm-Message-State: AA+aEWYVssFX1KPneXo3Rt6YpbfWtjAMgimG745RdOgac0gCHPkaV/u2 B7fTTi6gzxCKAgXskzUgCjCO/uZqrBQv8g== X-Received: by 2002:a17:906:6dcb:: with SMTP id j11-v6mr34354146ejt.162.1546479902457; Wed, 02 Jan 2019 17:45:02 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id g5-v6sm13036720ejm.15.2019.01.02.17.45.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 17:45:01 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Thu, 3 Jan 2019 01:44:43 +0000 Message-Id: <20190103014444.11134-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190103014444.11134-1-bryan.odonoghue@linaro.org> References: <20190103014444.11134-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 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 Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic Reviewed-by: Peng Fan --- 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 Thu Jan 3 01:44:44 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: 154705 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp167305ljp; Wed, 2 Jan 2019 17:50:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/XrLUaRdVgAhUHOfeeQsZJI87qycBqbnJ+rQnRjBDeCflqwbb0ZloCXW98+4oIBjRu5VWkD X-Received: by 2002:a50:9784:: with SMTP id e4mr40823757edb.165.1546480216926; Wed, 02 Jan 2019 17:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546480216; cv=none; d=google.com; s=arc-20160816; b=fP7/dTOELZwCfMpd7tXZnq4B1UOipIR//WocZQcWKhXMC1SVvJecMgvfBjTv5f0ube UOnh/Ib6F6XUP7VuWMpTj8oSKdZcxn0NXVpHnTwFFpjZAjXKNWA3NKnNEtICNdbtCJcz ZSzad/W4AXnFPKpZmm+ATGpUTX2TrjyZTievYs29iDK2feGyN4y5XuGFABjH4u4GXXwq b1g3ktbS5Yo9J1GO+ZEs9We79WQyaWZ1RxUWBELBpqGSQQ16qJs3Yr/hW+piWpfU3ZNT Sj8tU9QmTvkYJk8FuAUR6IIIR0UQJp2YHV0ixGJSqlXeeLjcN+ZQbCMv64deqrEXFAxo bu6w== 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=C43zxckgxg7F7+s8lcQZj8FZMPyaYJ41vZcIAcv1cLM=; b=xcNDpgMoatLZ4Awno/rUl0R+9jHohPPylb6be2QFuLLp7ro72Jz+MI1nClRukDFEaK UY4zX4yQrcH6NDS9nwA6PqYv8PESPnrXHtRPEPelf3eXQdGpSqUbZ3vHbNEgr9EJ3yzJ ZjfBVwabjVOLCThkc8l0FuPul9Zf5aTey1S6AlKRebOgXtzHSNqY6BrSUMFsDDiZAviO BFoR+9wQIwzaHR34/+xunWTnyQmuhv3eHMb6/3+Vv4DFyxvtDTIXg1+qUnJfD5CpBVlc JTnEL2TDXE3z4WyadX/jmzbR1+wfrFOcD9ZDTVOT3ZmR5QVb/7O8vUsTpDiX0Fk8zfBO bIoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JJNGJ48c; 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 k10-v6si12212788ejh.260.2019.01.02.17.50.16; Wed, 02 Jan 2019 17:50:16 -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=JJNGJ48c; 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 866ACC21DFB; Thu, 3 Jan 2019 01:47: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 4E96EC21DB5; Thu, 3 Jan 2019 01:45:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E43CEC21E0B; Thu, 3 Jan 2019 01:45:07 +0000 (UTC) Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by lists.denx.de (Postfix) with ESMTPS id 38F68C21DFF for ; Thu, 3 Jan 2019 01:45:04 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id d39so27682792edb.12 for ; Wed, 02 Jan 2019 17:45:04 -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=Qg78QmrKPW/gXXeHPbR//d8zHcQoBDh7cp2fUK4WluM=; b=JJNGJ48cxkQkQps9TMCUOu8EJK7pGCaOuz8AcIHojbV3WmWIYz3s40sIIO/lxRWkyp KmRHTxuK6Pbst79y4D9X0F6qFY5QLS72q5hsahAztVB9gte55DILwh9N74x62+aKbEwI mmWsIcSapn4HkYjCsiNfVJwPuS3TbencRhfic= 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=Qg78QmrKPW/gXXeHPbR//d8zHcQoBDh7cp2fUK4WluM=; b=nOKeidfnXB9vPlw/MWjphXISA3I78F8PsnYlL+VJ4k9XN0lNDltSG7Rhd8FoU15sbN UI/W3jviSsROnLkQ2Iwh/7cX8tibueJG11va1ssYLOTOCKUOMGspnvFXLaVOjyXFu1NU 9nSCnkzkoTF3odFWoM1HgA587Xazz4pXFiRf5LZjJb5+25xBptutV/wH3tJS52RxSpMG C0+NGkqosl2ZjAalA0/nSowQ/IIzefay3+ewvDn7gUoF+FDdScZVbKjBtF7Wee4kEr9j 78cqRSEyDiqPOrNHGnr3n4HbXZ9jHm9MPIIuJYf1JaqZjq3h7wqS/voqOGVAR0k/Mtx3 5qEw== X-Gm-Message-State: AA+aEWY2KvtsCX+W1PGr5x9jVppso7x8uCRxGkLl0eZYnjHuDen7mF+8 EMZ6w9KbMonhv+S8swniv6Zt+FQBOxSKyg== X-Received: by 2002:a50:87a7:: with SMTP id a36mr41279300eda.96.1546479903522; Wed, 02 Jan 2019 17:45:03 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id g5-v6sm13036720ejm.15.2019.01.02.17.45.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 17:45:02 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Thu, 3 Jan 2019 01:44:44 +0000 Message-Id: <20190103014444.11134-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190103014444.11134-1-bryan.odonoghue@linaro.org> References: <20190103014444.11134-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 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 Cc: Peng Fan Cc: Fabio Estevam Cc: Stefano Babic Reviewed-by: Peng Fan --- 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