From patchwork Wed Jan 9 16:42:26 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: 155073 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp909683jaa; Wed, 9 Jan 2019 08:42:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN7sl86BofKkNyLCVF0xKkWq3xXlj6fMewkgzAqLI4KdYwcK9s3J70SGa/3rfHP2rrCv+HXm X-Received: by 2002:a17:906:4bd7:: with SMTP id x23-v6mr6067009ejv.105.1547052167527; Wed, 09 Jan 2019 08:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052167; cv=none; d=google.com; s=arc-20160816; b=ZFfeIaaiMrI8uLk8SvdNKMTyWgpaZe+Tcj59DApH5hDdVHhrUDMYvcWDuvVJ0+tjKM arYMdBLA3ysTPzw8tOUd9OqJa+zIGyW4lnNcjTCIB89PKLfkacX47UJOrYnaB/wCfbMO zqo3O13jI/Pnbvxz6diugtpgMy+XYqUBsT9yUModzpngiqZv8sAdjOw1O5qfbJMyuS1N dZjSvqSDyqOv2mO7kZHZuSO/jW/zD7bp+2Xq80OgY6Cnbt4Ub6E4C4pCjnAedvpGjSy6 3cckqkT8G9y7tZLPHeKoQnKD99ujrce9Xfv19G+IasJoBsSXpx+iXq++eVdZRL1tx93Q iPPQ== 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:message-id:date:to:from:dkim-signature; bh=SbuSOHTIyvQAG48IVyc44ucz0/N7f8xRUm/yQWEnp+E=; b=w0xh+LUnxk+LJPm/DNmh+pWt5YKRMByvBRsId9zbY6GsU/A6dKRL+FvbtmGphGQWpM t4vFHEgiok72OhA8T4AMLEBvJFMdbZvgIwKlthG25T9cdKBm6sdAxZWlb/o5ySdtHU6A 6zQAQ+TK1Ykae+CKWmtlFgS3mH7fDSD7T00xT+/SXW7n3mkStFTotz85e1fP7wlMJtH+ 7GbZzh/Fh1zxgKyoKyu7xPZu+Cye2w8xJqWbq2EctWI1880kRpfP/UlLjg3RkODdq//E bxqSxskVtcku6ZZvodpiLtuS42q/xLEIV2rfk0YzO767t+iAWpTvuL3sVtaw/bXMIh8P eyiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="YGh/SfIj"; 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 b3si1736124ede.42.2019.01.09.08.42.47; Wed, 09 Jan 2019 08:42:47 -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="YGh/SfIj"; 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 0D481C21FC0; Wed, 9 Jan 2019 16:42:43 +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 CD556C21F59; Wed, 9 Jan 2019 16:42:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7B2C3C21F21; Wed, 9 Jan 2019 16:42:39 +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 2103FC21EFC for ; Wed, 9 Jan 2019 16:42:39 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id h50so7846479ede.5 for ; Wed, 09 Jan 2019 08:42:39 -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:mime-version :content-transfer-encoding; bh=OLruAdHr78vYT2y6WR1KCkYsPsira0Z9O1kN0lOomQo=; b=YGh/SfIjPZqfktAOxMMv7mUURf2wkPtkXR2n9cP3Qrwj5EHEOt3ZO/8ixmTnK9UNt6 E5oocAsmM10lutP2+tbScosTZ2R1MAjUe03BTxgBsO4HmW49I9xtKdEscnvh4O3aenTz 2EJabpD9DDr/GAa6JMh0Vn6WSVGehcgBYfLHo= 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:mime-version :content-transfer-encoding; bh=OLruAdHr78vYT2y6WR1KCkYsPsira0Z9O1kN0lOomQo=; b=CM44oCNHF4ex/BAO3obAO36BnyyG009cFfsL54oZ4Q9cY0evFycwbgkJKhJ/cnXbcw x0hGpRPxhc2sA9ZVmb4zrhKkWHSeQUmAUnW2bHfgBgbPEyAn8mQFNQfCkafkUA/kFs7B OfWP1/OT0KLvAPe60Mqm4KWs+6JSJkbPUvd0guYdT1WUhc0+2oVcjgNyaCRh0hL8sH/o bVh7YMVWIWoC79P5C1ogihg8w9C5Z2kuOpeC8QawuCU71tcSNI8Z8uvZMWH9nSFGWEfV w+rX7pZ9vHchLuypudafS5g5ckcv22Rqz47giyB7ecSS8zsCkFztTqzMFjYNkCwb1v/g s0ZQ== X-Gm-Message-State: AJcUukcMwFsxUCfEoW78b7rRo/awnu4ScwOEq+6CCwNAG28yny4HYgNC FNtazkjUZFL88bPc5AhBhEUFZQlWGbY= X-Received: by 2002:a50:8907:: with SMTP id e7mr6727002ede.252.1547052158355; Wed, 09 Jan 2019 08:42:38 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id i24sm1081665edq.0.2019.01.09.08.42.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:42:37 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:42:26 +0000 Message-Id: <20190109164233.22297-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v2 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: Auer Lukas --- 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:42: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: 155074 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp910646jaa; Wed, 9 Jan 2019 08:43:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN756/XSMIypV4aeRC+TbxfRID0FTioBT20U+qBJ5AB5ARAyG2hjQGU9iPZTavejkSWczQFn X-Received: by 2002:a50:82c7:: with SMTP id 65mr6710596edg.94.1547052234232; Wed, 09 Jan 2019 08:43:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052234; cv=none; d=google.com; s=arc-20160816; b=nbsCh66keTWTpLW/bv4vGxLI7svwhkH1lmklqEvwhfYcMzCawxfoHaAT8QSMkXSjRv rp23E60L2n5/FBkHmARtlU5A+T5sxPOXOa+jzDZwh/5b9mqH6znVBL9ISVC6cM1TKNAv 0AlhKbXlNe38IIGM7BbXxSElbbitsprrds2j/SFQ6v0yRMvr/Wi5oO6LaETdMV+LSwJJ 1Nz00WUscnG3bfdXOrwfcH/8jyESVKa7e2e93kKunhpjd2KGJkY/2xiyqqTEujCr/Xk+ TmGZX3n3RXuZ8kxenxgKC5RB7ZTy9zhvjfQNOPHlzM2Q60izDVC2GegBysXUerTFVncs PAeg== 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=O6hoZHo/AnG6XlWMc9qEhwRxqNZN5zYJawwO4aLssk/PMQb914+8tFNtGek0WkImsp Pa/7NbxwYiYpvkIu+bpEAc3O9Xkyn8yrKpRvb66dp7WYmmgCMLaHv/8yaGxdjV68SAek hP+b/Leu0fk8o78ohyBa5T1OZV/781qwdaigR+baDOapXphCNAfy71T8B9OU3EF/MWbi y+1P1vAB+4Otjk8Yn0Dlq0f9VvgsAr8nVc4zpVe7Dh8b2HKMfDtmPaK66kNgRiD7uIp1 6cYIcuxqq4iMvVD7va6/NXarMJeB2ESmPzUalFWap0xcIEwR/wZVz4TnCndp3gRR60i1 cJEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FsAmdIBg; 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 h88si1530671edc.299.2019.01.09.08.43.53; Wed, 09 Jan 2019 08:43: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=FsAmdIBg; 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 C362FC22008; Wed, 9 Jan 2019 16:43:04 +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 903B7C21FC6; Wed, 9 Jan 2019 16:42:42 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E97A4C21EFC; Wed, 9 Jan 2019 16:42:40 +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 60597C21EFC for ; Wed, 9 Jan 2019 16:42:40 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id f9so7820812eds.10 for ; Wed, 09 Jan 2019 08:42:40 -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=FsAmdIBg/a5uMoIijriha00yPXxvyR+/gkb47Sxx7ZRL7ZPeSsmbYrP9txijvfEJVm DjRH5kVaGFPQWneygmnURSUqcpawpKKl28ZI+X2xwlPAIwBKfAiY4HKSTV9WZ8IKG14O tmwXsKqtFCv+YYvdRkrnSrjSHR7+FSxOoDMmE= 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=GIq2sOT4uewpVSlGueZL0rW2zdZbKAivwq1ofQX7s3H51MTNBOVT8NAE7nP6r9QT00 ZoyNVlKFqZzQiF/7LvtTrE5dIez/KmKiOyBMrtz+HdyVRcamAGJhBDmQKaPfIqiITO68 w/Qks9zKWo2EkPG7nPlJmGHaQ6xLE9unwfk7q/6eHkumH2pEe+oiJ8zp3MzoasYuvI9y E5tM4YTMqUpkShh1cb5TbSZm0I6+DHF+omrF4HcH4qhdAwAt/kJwhmUHAio7+IFMbCrj eflwl1YHivR/kXhjZHGXY3AEjaeUKYYQ5hAalqXpDWqDbMQyLzxLTwBg0pgwD8muv9+0 /alA== X-Gm-Message-State: AJcUukevaDSG3c3eP7ssbI1+mdyAqFmFQ5pO23fZWq2ZW3hcRHL1IghO Q/hxR2aKoEXmZHEefGEFy1uHFSZTkVg= X-Received: by 2002:a17:906:3c5b:: with SMTP id i27-v6mr2917244ejg.96.1547052159578; Wed, 09 Jan 2019 08:42:39 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id i24sm1081665edq.0.2019.01.09.08.42.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:42:38 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:42:27 +0000 Message-Id: <20190109164233.22297-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164233.22297-1-bryan.odonoghue@linaro.org> References: <20190109164233.22297-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v2 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:42: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: 155075 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp911334jaa; Wed, 9 Jan 2019 08:44:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN50ew8C7qNRd4/8bwzjgBbcfBytxY14XsT3YeruWkYM2gZnPWanBibIYuRKNT7t8HaGpJPF X-Received: by 2002:a17:906:5343:: with SMTP id j3-v6mr5886696ejo.186.1547052279234; Wed, 09 Jan 2019 08:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052279; cv=none; d=google.com; s=arc-20160816; b=jSdM1VdXiinofOu2uOyrTA8zCkJHPdhypVue0/Ih99mLN9krFm5tHUQnu9SQv6G5hJ mEAZcDxS/U5kcO7hi5aj8hghTjGu55GR1uW+hzbIU/wBBd51Juk9JjWVEHwjMxK6b91g lD3XwundS3brMZ9ZnSUkb0Q/p3MIHscEgIuzDuep4MwD5BuWYgWzg/+qc4c3QOE1FTcG QhBRN0X8tRKH2cajRlaCtloFBvULXN9ikaqTKiOmHLlHu8Olii3HXAPSjmTZOySgMO+d oz46WdncK5//NeCM16QHgC3uPMjLe3rprPWZYQ8EoB6B4YDEpQN6pFTjV6tG/T0/pVop ob1w== 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=PD6yf1TeGzqgkKPci+J/LvDjsFlyvmjmpyfUp48IDk90/1MajQm0nhBkcJ7keHz86z EYRH2GT6twejwIl0Enu/rcD1IvixFiDUEI3N9Ccrc1cTLwmywqJc3J9YiNAaMhGYP5Hg Bz+xGqM9oA/XRvZaKMrcegh4wJsOCYe4mDwbnz8qx60+HfIXbVhWzWqt9HIrCZUif8VS sZzxYHZONKophEEcIktWuRg6cOXXgjq+P/f0tqc2ZYcphyUKUnGU2eq97V9wqoz3sNxM eYGcaQ1prxf5P1zIVTcRr3bABIGU5g4+M9LJQm+kAI9agCwAO5tTp+rYqDYM5ZAKJQ53 YTRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lc3qCvwy; 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 p25-v6si1401998ejg.328.2019.01.09.08.44.38; Wed, 09 Jan 2019 08:44:39 -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=Lc3qCvwy; 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 B5A81C21F84; Wed, 9 Jan 2019 16:43:49 +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 54693C21F88; Wed, 9 Jan 2019 16:42:53 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C2C5EC21F84; Wed, 9 Jan 2019 16:42:45 +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 E198BC21FB0 for ; Wed, 9 Jan 2019 16:42:41 +0000 (UTC) Received: by mail-ed1-f65.google.com with SMTP id f9so7820870eds.10 for ; Wed, 09 Jan 2019 08:42:41 -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=Lc3qCvwyYUStkB+RBlmn7LWHp8EwEJW70Ya5L+RBw8YNjCA8LxyLWeTzA4uJ5k8mTR muY8kJVI2vvBosiRcL/zfP8eq42pmZ6tuMgfIQZ8YlMC4I0QtoJz7Bs2+7HRcwqGZvlG zA+GzvbNv3sCg75ifqXct83qOTPUdi7nLxlj0= 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=WIh/iCKFzQU57bJV5LhrbmublY3FAXJYMDtS9ZzUD81yNo051/T1Fnoqni2uHtnF4P SpB11EWUE61S60EZFg3YvllD7KkK8JkO7F0HFGeH7zWXrk63j+ILNmi0/0Pl4pKzVfLe Ao8evqUJpd25ix8e7DTjwheGbLrQNABO3R3cEP6tareRboWLJjt8JHL4yBfZAsUv9vgG LlYDjogqQWyRj/YPKYsUoZDbXAZAPQtKi2m2vf2anSUJSua+1LFfkZNMyS2wA1mveSPn 4RVbwM3rHi90oqQtySmHgg1fubx7AHV9CarrANodwz4a8bsqDJ0vH8xYthkboKN2vCQL C1Yw== X-Gm-Message-State: AJcUukcu+keUMIYZnzYzbM/EpCAx2G7+3zIuPEDuN4M+dAkNCIFdIiuq ySdKbIkGwL3sN5LnK6iFjoRuLD8NjAM= X-Received: by 2002:a50:b721:: with SMTP id g30mr6479132ede.155.1547052161240; Wed, 09 Jan 2019 08:42:41 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id i24sm1081665edq.0.2019.01.09.08.42.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:42:40 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:42:28 +0000 Message-Id: <20190109164233.22297-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164233.22297-1-bryan.odonoghue@linaro.org> References: <20190109164233.22297-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v2 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:42: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: 155076 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp911717jaa; Wed, 9 Jan 2019 08:45:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN4PPmSlArG9cfe8v82rSlGfYzDM5Hi8ER790ZhevdxliBxWduaqmZ6XQCYGqvc/rjasO1EL X-Received: by 2002:aa7:c1d9:: with SMTP id d25mr6612587edp.283.1547052303795; Wed, 09 Jan 2019 08:45:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052303; cv=none; d=google.com; s=arc-20160816; b=Cbo0xX3NPgVWteFeGTRqzg6ohvs/nEUoq7ADROz4+z4KkIldmHIVdj9x76N597Cmqg m4lfMI0IAD3w9chay0DdZnaJaE70WWnTc3S4RPchcXWhDIgYS+vtQvt8CWYM0S0N3PA0 xqtC8nrAO/eXLrsWiNWknmuOTAvnSGdkUpOT/fPkHXSEn5/xaGPNTkg8Iu77O+3eo5Kz W7SbxrobDWF48QEjCHry0raHXrkbVOpWGzREZxaf13WhSvoUSjhTc/7utpx0SNsPlNue a5H7Bu6Ki+Prvu4dQc0fjzQ81VAZn1IREEOmus2KXlHl3ud0upfsUf8RN5baAtVJROVR xWIg== 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=pPgXHm6DyqC9sVEuoZOcA9uecxQqPBQljz6zsz6b2nW4YSPZzimA+bx5TeW2R9xEDe ZUHqQmKYU+7zcs27PGOeu5TNxrmNLAM08zreBvaPTtjTDEWzwFSehyeRyBrO3OE4YbJA WAtS172cv07VH9bVHNH3setAnfuuEnU6jISQZelNzTnooVWcnkzBmMPreaUgq5RAnp9V 2iQwEEJPpFOeZzaMni1GlPFEJ+TQVQusq6dK+VRz4nVRCyTZEJWH295cP7eXeArphkX2 gCTjqUaPSTYYWvvRFr+Cyg6QbILVvq7kfCghJb1oBc7d3yDUo9FphPqJOOyFAuljP7yu 2aag== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=POoLIjOf; 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 a12si1716080edk.106.2019.01.09.08.45.03; Wed, 09 Jan 2019 08:45:03 -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=POoLIjOf; 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 44896C21FC6; Wed, 9 Jan 2019 16:44: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 C1271C21FFA; Wed, 9 Jan 2019 16:42:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6121FC22003; Wed, 9 Jan 2019 16:42:47 +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 51B01C21FDD for ; Wed, 9 Jan 2019 16:42:43 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id h15so7856981edb.4 for ; Wed, 09 Jan 2019 08:42: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=Xuw69l2NZmlhWut3b0kZtSp+D8LO/IdkttK/+BbS7yg=; b=POoLIjOf0s8s3f6D/DskJ4uXqiCEEd9M5m8S9DVGmsIf/UN0Z7MHR/dMwermpEJoe4 I8emvazcFT3andwnu4YN2YGsJYt73flM5kja2Z5PIipUfn9s1/JuxysD2wEDmWz6ftdp 5B2cSK0X99leXV4p/jk4+UrPwaWLThYijgW08= 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=dvRrae4D9mEu9xtfWmTKql44NNGHKz/R3XxNzNKTHZ4lABFyNhqf2btTuOXzTre1oM C49EGnogo7Nk3Vxjdf6Rhl9j0w1vEj1RLvUFY1eyaJXvvYsmqNVxBNfbBC7qlVgSygHq Ng3g24Jw9shutJeLB9BWZyUE0/d1/enlOXfHjBbZUWkVs5BDdb405vjiCTglAFluSf+7 iWJyarAOyOI+2NkYmMxkIwF8Z5oVwYt+6E4G0sBircKkuL0GYnV2iRAJzL01w3bOrhLm ynetCstVxrYxa+NqyCzTCgd/+K6kA0mer6HsqWdC3ztsjvXv5PWHRWmkSnbJzRrQXqMp 6KRQ== X-Gm-Message-State: AJcUukfE2R3LZ+qotgC1W9KcY02Ae91WFQ1wuOaN9QxJOiMzjCqBQNii fwekxmOC4CUMHmtziZ8rXdbZ47iJ524= X-Received: by 2002:a50:9dc1:: with SMTP id l1mr6650743edk.272.1547052162525; Wed, 09 Jan 2019 08:42:42 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id i24sm1081665edq.0.2019.01.09.08.42.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:42:41 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:42:29 +0000 Message-Id: <20190109164233.22297-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164233.22297-1-bryan.odonoghue@linaro.org> References: <20190109164233.22297-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v2 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:42: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: 155077 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp912536jaa; Wed, 9 Jan 2019 08:45:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Oqa1ir2VPSKfo1WBsH4DJwJaFqIj5qEIMeKQaCXfOC9bzInyepKfUiLGy3aKxpOvWE8Me X-Received: by 2002:aa7:c0d0:: with SMTP id j16mr6487344edp.173.1547052354168; Wed, 09 Jan 2019 08:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052354; cv=none; d=google.com; s=arc-20160816; b=MkL/EW7GJK2RPt+cKR2Up7sICRdP0qWi0Sr3gdzWLtt2vqT0nzE1Drh97wfusIq+We 4LN8dRDGga5BtF3CIUNO0Yw4HU5ZraBp6jMVgd6M9qIkd3WFWzkD72he+zPbQv0Egdhu kVAHfEWdU+BObbgIR0MFLNw7Tf91uXJuGYtvUzF7ijk7ox77nOjoOkIa8+jUq96Lxv04 STgongjqB3JVMVPFluh/nmjziT+qxOybye/JWJYRlrHi3vSCg6mhBUBEOhc0wbTth7gE rvgWjhwfutsCvKxawkGSJSQVZUC0PqySpcQ2loArchp67Sbp+GcxmrlaV+nXQ90C4mOb GooQ== 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=IVXEKsbiaRk9bYP6HaNFfpVH/tAk/LZGhz8Aw902t+/TIHladjaTQrX+AH7uwjFBFn IZGhQJnUYC/acm1kQlHyF1bag4kWIRgZD66FRe9xeM3oIb/QeJX/bL4Gle6Nr6so89DG v5ecogQAGURTHLbID3kyi4JtrOSDS+lh2vhogRvlxcD6nDBpu7PTbNXLjtxFDCkW1CEA tnBlmGsnieZr0axqucdX9IygyB8TdZn4DaeI+yx4NCbZOaIzHBXVqLNWNXRu0TdYkdLE HUEYscZ4dLNOaqxCVUqZWehTqIC/bACU0YkELQ3A1HJnHD6UhvI4FDuLyJJ7RCN27A1f H9Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QJvxOIlJ; 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 h11-v6si1483463ejs.311.2019.01.09.08.45.53; Wed, 09 Jan 2019 08:45: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=QJvxOIlJ; 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 AD2FBC2200C; Wed, 9 Jan 2019 16:43:31 +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 739B5C21F84; Wed, 9 Jan 2019 16:42:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9AD95C21FFB; Wed, 9 Jan 2019 16:42:48 +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 82656C21FFD for ; Wed, 9 Jan 2019 16:42:44 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id d39so7807525edb.12 for ; Wed, 09 Jan 2019 08:42: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=dCRxIInhwBfp2i0pZ4FyA6NyHfcFkbJmBIY0VgiPRQI=; b=QJvxOIlJH9Ec0+VtLX3XkwIRuJyWbWmgG6B4f7hV3DTQxQPCvZyRnMRRbcJfz3TUOO NYFLnVI7G6c7M58XmG2omOo5qGi0NOWi5szI8OjvWx3itXuJV5hGzk7rC7DvnhFjK+TZ tAujVcV7YtIdSTD0gfBqelCO5KM21uPV3BzMU= 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=e1vudhF2KApY1GvHtaDflpdiCwn9XZCW1phpYJRygRg5EfEyUSJLiM215fVycKQyEd eW+T/llWQmsvFXwu+3OuU1/zon81DYVKaDgwPle1ugMSZCfryJ0hJTQO0Y4+QLWxI/94 BPkpd9nYaqkZlJHYJxWeRbNa8ty+oQAniv8fpsZ05N+KsMRj7qZrj+X/i8VkzBdv8KIn 6iNfboAxwX31/5kYno2e0M20D3UvmN24z0ZmV0E2m2sNFiDYPRgS0moxlrdNXyPbkxgz 09VpYjCYv1smcdDQQJgSPrVfcHWK+/C4RCsGWxF5wZRvIvdhi+0uTmH7gARcN1GApPUu axiA== X-Gm-Message-State: AJcUukeVx6vHhZlvbCdyse8LI4TSLvSmbYBj7y1NteKZYFCWEzJgZwpQ mMspO6xsRRqXX1o64NXqdIt5fFH6p0U= X-Received: by 2002:a17:906:4684:: with SMTP id a4-v6mr5916585ejr.24.1547052163887; Wed, 09 Jan 2019 08:42:43 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id i24sm1081665edq.0.2019.01.09.08.42.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:42:43 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:42:30 +0000 Message-Id: <20190109164233.22297-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164233.22297-1-bryan.odonoghue@linaro.org> References: <20190109164233.22297-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v2 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:42: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: 155079 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp913583jaa; Wed, 9 Jan 2019 08:47:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN7YYjmLyRbrlWf5Mb0xnecy6WFIF/xHm01q1YCf1NqrFfjXNwkuC0UiK8ChB9zNbnwy8kOG X-Received: by 2002:a50:a5e2:: with SMTP id b31mr6486485edc.5.1547052422486; Wed, 09 Jan 2019 08:47:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052422; cv=none; d=google.com; s=arc-20160816; b=iVhpDdlCZn9X2hjQjlw5MEEVu3Z1yfJfufKOPHdtVCHZOJSZS1+e5T3VQSMeJoIGJ5 vHFYae4+dhtra3MVYVlio68UKSb6ZEZXWKj1JltTgWzaUaFMdVGglQvTAR9cwqkRCCZs J5DlFowt8JcEVEl1kQgpevf2Ja+TaaNZX4RKIbVXkF+0k/wk7h+u3J6uhTH5bwHFkurz /geJEMqJ9LXFCu6rILxwDcsk9BL/H45B/U5eV7xlHAKnPH6yXGeHijerik5A2xmA59C3 2SIkSn5w9z9nN2IBsuvUH4PK8S+ECppxvRnmOndxNQ3fNnUUXa4Wn8d9d4BzyJztHOCc 9D2A== 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=UcPG8RtNFuN0AOe2rsHhXbaSj2JYohLBaLEA1chaso403iA7gvRWfXTbqHXQvjudif vuKLIBhJO17j7IUUWy9t8d0MyD58MtDI2RjlzFFGvRq6uFMvOz8nsX9//yrBlR0udI+L At5n+QwXd6TbXw4K9gLIS1hApiIC1JSFcdgacX5g4t9CDiXTZYELonnbdJs+eGEaNRNn cqgq9fS6AVYa6cQaVgPvI1MRb3nX+sycbH6pYjU+zuqB9uQCHmq0g8SQfO4alv7+s5Xw ADMjZuCDrnWHGqhaI26WckzyM6Fysw/NO7QyS5N2PORM/BG5Is0nC7wCXJ3zrazU0eql lRFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Bz1H8vrq; 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 w10si1590826edq.75.2019.01.09.08.47.02; Wed, 09 Jan 2019 08:47:02 -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=Bz1H8vrq; 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 E849FC21FAB; Wed, 9 Jan 2019 16:44:40 +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 32EEAC2200D; Wed, 9 Jan 2019 16:43:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2FB40C22004; Wed, 9 Jan 2019 16:42:49 +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 B1913C21FF4 for ; Wed, 9 Jan 2019 16:42:45 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id y56so7827759edd.11 for ; Wed, 09 Jan 2019 08:42: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=uWa4pt1qGk3GZw2QN3d3PX4Qs1bDC5wFMhBUgJ2mCoE=; b=Bz1H8vrqpIHpDY8xvFlPu9IFPKo9k8eFVHPiEpBtPWkrd5SU9L2gjmHtHH+2fSUtZ0 Y/+DVkFaLTWUjaiZaWNCvV5kA6S/dEn5lDFp9u98OEAHWRom2AmBMIU8GFek1IesbLne YecdR/3jPlBXcLf9NaUpdYJBxOzmqZ7t/jPl4= 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=VkudEsK7BIPXOPOQgQK47aJbMvh0TkT+SusUs09iXTp4pLQneO5A+rw8/oP53W9fZ4 oAwBA1rXZWtjTOqE5Up6sQI7HTkMgD3lpx3vNAkftMqo/XasI8Bs6mTnSMwJ7m3OtUu7 i2E006JD8EUWi7LAiZS8OF3zXSO/FN7K+YmRPsefNtQXQglo498JUiRtKR4scFvnh70W Tkuxs+FCmVH6zgRjP7lnYaHEL+BinasBzvJWIQBRI6Mz7tsZMGRBoTsvnix7Z5bTtN8M eqRdUNJDNqQwLTkjw4WlCNzB/45tdLMt115MoSwm5o037qoW1BG1TURA2z3mgh/HkMN4 slfA== X-Gm-Message-State: AJcUukfp3CyiL4OegTEupeSdrZuDGGBSBKz2MpBeFFYEEJmCKP/v7wWu cqci7riBZ2MWSa+/JWTNYKf1eHqOP2o= X-Received: by 2002:a17:906:a455:: with SMTP id cb21-v6mr5894084ejb.185.1547052165097; Wed, 09 Jan 2019 08:42:45 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id i24sm1081665edq.0.2019.01.09.08.42.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:42:44 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:42:31 +0000 Message-Id: <20190109164233.22297-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164233.22297-1-bryan.odonoghue@linaro.org> References: <20190109164233.22297-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v2 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:42: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: 155078 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp913376jaa; Wed, 9 Jan 2019 08:46:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Hl77MCeirRgjrdi37nDCNM6ts4/jcGAEJhRwW35FTdU4UsuH3s7bf4Gpyqbi5KDn92wEE X-Received: by 2002:a17:906:f04:: with SMTP id z4-v6mr5907427eji.106.1547052408709; Wed, 09 Jan 2019 08:46:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052408; cv=none; d=google.com; s=arc-20160816; b=Y31Ov/zuBKrhWa6oN4BApraM2QrmKVFUwKGDpc1nTv0f4WpR7ItpojJonvdTkwO5SD GmJhiw6FwiJbbYo+FNgosOLUjXhbSU1o+2OQFqOM4Tg2COHMpi7lctFIU7j91eTp19Fw UsfHMw//Bri/hPZWR7meNReuEA650bdW5KL19grUe3zFvG6peALNQIRqBP1KzCP7jTOG PG9wSOBeBho0m4jCBCuUsCNyFj0Mf7jbnZtYxZAk/VP5ZX4KRjbG9RFRC9VLtmuzeoJi 25OdCNm9zEgJk+/pB/0AiEBmcei/MKRwfB38Bj7cdCu2igK6WNv1WGNTyCMUW+pQeZmN kiOA== 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=Gano6UHX75x6hPCA7JomA1+jqW5jYv/t+xHXocz9tr1wHUqfSxDL9wbLsutmjjnfjZ NyZ7kcrawr78cUigvSzZ7NCTuqq2AWnhL6ZYIAUG06/FfxHoyui5tauQt3THcbHtK9qy F7IfdIXrBK546FUgJXfbDwmysoIwsB460iIHrzHbiGCsZWIzCb48HTnhP97lEiAOKcZa JYi+NLFZSwGSLigIkEz3Wr+N6wMcBOkWxfT9uJkRYcEBRoGLNJPBRGrkxFZRzaveu17e SEb1noel/g1iBTsH7Pq/qpkVrfNGVuFeh3c9Y1tY/Ig0YMoQKOgosvpuTQW/O2DCnrfg Ivsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Eq+W5xLC; 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 r17si1544154edq.40.2019.01.09.08.46.48; Wed, 09 Jan 2019 08:46: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=Eq+W5xLC; 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 38342C21FDD; Wed, 9 Jan 2019 16:44:24 +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 01678C22009; Wed, 9 Jan 2019 16:43:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 69993C22000; Wed, 9 Jan 2019 16:42:50 +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 14E63C21FC2 for ; Wed, 9 Jan 2019 16:42:47 +0000 (UTC) Received: by mail-ed1-f65.google.com with SMTP id g22so7831125edr.7 for ; Wed, 09 Jan 2019 08:42: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=pFUoFSMMP0zynGJg+HQl6+cRsZDkQqPSHcp+Nd0D7aU=; b=Eq+W5xLCpEJp+XOQG8ktYAsp1kJajoa6+eT/i6QuWyYG60t6+5NNinJLMH7jRu9o+D KCGRajQB3RuCBiDpzLvCqKh7z4MD9TqaykQTBTn5l422P3noqJoB8lZVEjc4Wjs1NMQC Pn4xB8+6ZyOhL36ROoolGa/FKW+sjjuRz0DLo= 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=pCgmvKuqwk9SC9x5nG5fpZZ9Z4GedEwrNE8JPvXnVMUmKf6+EKIHNMLvj3K75IKzZk CkWARKOh72qVnkyNRLJkKn+eRKSoY3rGyqqGqtagCdRP6wp0K62fe98ZLHFqts8m9yFi TXrXOJVfoqwnjgcFUjMyEGS+xsrCpnW3+gfjsIKhymTZdD5nlClamZoUuvT0TWEVRpA9 faCGgB1/uTn9Gp/3YLC1L6BywNyLCr+LS3751/3J4ZzDcAuwMYHI58sqvBWYOZYmGANa i5FBzqkrvV1pHdxqJN4JSHbOKLFjQ9f/YLXGaPvtJAowZO4ohnASHukmBAJa0+mHSUB0 axLA== X-Gm-Message-State: AJcUukeeOUc0YbEfKqGKeeuLG/rBmWG1e5DqD+iHGELZ2qJNPUcwouTR JO7qLiNW+kFMFxyLvo5C9Bz8WB4Bs3k= X-Received: by 2002:a17:906:e9b:: with SMTP id p27-v6mr5839000ejf.29.1547052166339; Wed, 09 Jan 2019 08:42:46 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id i24sm1081665edq.0.2019.01.09.08.42.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:42:45 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:42:32 +0000 Message-Id: <20190109164233.22297-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164233.22297-1-bryan.odonoghue@linaro.org> References: <20190109164233.22297-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v2 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:42: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: 155080 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp913730jaa; Wed, 9 Jan 2019 08:47:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN4FUEDTohQlGzHWWlU9pFw+CSEwpKJIQYc5YcQ+ES1b1sopeoRyH56H1SleG7wiCrC58mx9 X-Received: by 2002:a17:906:d0c6:: with SMTP id bq6-v6mr5592319ejb.99.1547052432230; Wed, 09 Jan 2019 08:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052432; cv=none; d=google.com; s=arc-20160816; b=rVSkM92WUqleQkqN+eIf9ZEkAGIRNvFDxmRhsb5xKmSPdbkgBtDTwAmICqL694kXzh KlHZauck82p2yGp0fAbgIjo3LhpDbjeUU404qxOrYK5FobCBoDCy6+j5tAsh7xYxuZGK fsMgH9Rel5yua1Kwha/L9eZd4Q5ZIeXauGG5lxl8uKuR+SNq8JwvpUY6idAOTIT5jH5h e6JOUogal7aM4H7ltOSbQ8KN78hBRECurou02uuuQG2RIzoQ/elhdFmKVX9k2RKBWKxZ ZhF1B/8CaYACEmXdQlliTOyu5BzLwFzVM2OSw7rbmX1RMG/sV7L5hH0amSpQOmzlT6MU OfOg== 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=pPH+E37LUDtuDYrY5y5B239RVTPk5jMipqNsKwjcbzxGZkv913NsxMRBay0cgKLX6O T+tW6SXV4q0htKGXDkJItnsNImbiMBEuaLgV0mXBwKo4FfpRCPXzDp2XkWzjKTtCwMQx XbkiDWJkkEV1RXAIp8LhvdfwgE5OhYfPOyM8inT28vxUZo8PI83AiYzDcl8OrsMEhgqf l+VIJ4JHWdNpq0T/0QdYeOh9F4cI2i5uzcKX1KdkLEWKYFSDMpu2yWIFYeGXgcMzKFap vUU20QKLd4YJaSr2ZlvyPDz3AK+C2jJytfIs2DOxQfQLhSlCOyVh5Hd9eN8jVeZyEjYm Wl4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=My+iRaDT; 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 u9-v6si1521412ejh.47.2019.01.09.08.47.11; Wed, 09 Jan 2019 08:47: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=My+iRaDT; 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 D0209C21FFB; Wed, 9 Jan 2019 16:44: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 093A8C22016; Wed, 9 Jan 2019 16:43:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DA41BC21FA3; Wed, 9 Jan 2019 16:42:51 +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 2F4DDC21FC3 for ; Wed, 9 Jan 2019 16:42:48 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id f9so7821131eds.10 for ; Wed, 09 Jan 2019 08:42: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=GdiSyuEjim5+vzDESRUhTEZSwbHbH+4ac/+7RxnoLhE=; b=My+iRaDTSrkozGeZmz81UlM7FTUjeBfXSyvIMF0NIMyjwhiORxGXfIKWrq9GYbhHHr 3s3JxTEPed8W8TryoRP05/W8GOayd/p9TVL+ZstMbzyc1WUontXP/47irsioRzTJ0+R1 F5hnW1q58vEl4ItjpCsMUlss2FHnfompopa3Y= 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=r5OagtKnS7CBYi9T3QMOZCokh/pX+fNeJ17MiGmUQIe+SlYluTMIkr2hdeO7TiTeGL ndsERvUnIOjgF00t78NmCbilXE15Yrwf55nqibDYcGeiAQ7myYhJOkELMX8BWCaCDEq4 rRmo6O1QKRhtv4uMVlTXB6BU3JvaiRuEnYw4P+TMEBMSeYjC1C35tFh44gZHs5uI5Cg2 gUetRuK7EVHHfVzR33HNklAMljyX18pyixzx1udxSDWd30nbRaZ5/32aMhifBXbP2V9L U6/CRWNrMP6LA3AZppRjRBEqp1sLqEMnI/ebh3aHN/jDQ4Bz46533gxW5cJUEd1uspmL ab2g== X-Gm-Message-State: AJcUukc5BsW4rqG09pPUoFRIHgKisnhBrZsHXd5WOnHJDbDIsKrEzUk6 Fm6PvPJtttBoycnQZ5pdrnk5eCXTcI0= X-Received: by 2002:a17:906:a384:: with SMTP id k4-v6mr5911697ejz.243.1547052167465; Wed, 09 Jan 2019 08:42:47 -0800 (PST) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id i24sm1081665edq.0.2019.01.09.08.42.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 08:42:46 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 9 Jan 2019 16:42:33 +0000 Message-Id: <20190109164233.22297-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190109164233.22297-1-bryan.odonoghue@linaro.org> References: <20190109164233.22297-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH v2 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