From patchwork Fri Jan 31 08:36:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359465 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 92195112B for ; Fri, 31 Jan 2020 08:42:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 53A56214D8 for ; Fri, 31 Jan 2020 08:42:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="p3iiYca4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 53A56214D8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=e3I8+uxj2M4yu+KbTe+O+YgFiJMHRfPlsJ5QnmTCRko=; b=p3iiYca4pjdC+S 1RYAWR7o8Iw1M6OZme/gDnMFMfDs4Wh87mD0J6aBc/03VHPpTxhCV+3dTfZpt0yeJI+ZZ/Ytsekd7 kqqOqTUTHLHAT0i8Ww4MebqftKekCIggVnoPG3V8GoAhQkVmHufLoDNTm/4tbuqh3psJQdNZqak0Z F0/o/WliIXel5/D+28lbuzA6sYK2UCNtzq3zFMJnL0GtavLVJthqtMT20fMqqJDE/+F4yAqQsTBpW s0kDvtkZAYKFV3JsGAajHlG1Fc3max7Gmf7hcwxUdc/gQc3H6+WsCXBvzW+YCh7Lwr/npycz0HawL F2ucmNtM1bGiaQpx6ZyQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsC-0006eb-Rs; Fri, 31 Jan 2020 08:41:56 +0000 Received: from mail-wm1-f67.google.com ([209.85.128.67]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRs9-0006co-Ti for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:41:55 +0000 Received: by mail-wm1-f67.google.com with SMTP id p9so6944892wmc.2 for ; Fri, 31 Jan 2020 00:41:52 -0800 (PST) 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=2EkrQbHmytM/4HBLq09Tk0mO3BlMQ43f4QPGQu2sSZ8=; b=T6D/l7dklsy0dewmvo6q5X5dhUrzzPkwvb3bfRHGmCo5M7QFhh4rQjXmEr7Vq8UkgK BAsEnvg9tHssv+LtR055aFeum/7bOLdnJN04i1vrLwgJq92cKQE7vFi6FKzyKrfbZTXO cB+XRoZdquYlZaNzxQlVwjax/lvOvBfehxuU17mPbziBmgrEPr8EQAlwLyWVhf3sJy9D SYkvqQiFKViokOS8ptCW82cpMs0EFuoPBa0iqebZ9OTZqGwH/ki041eq4I1HqTZPFYSq Ag7aM0erTO/7fTuzjZZPq5wtbZygLSY2tEtg3hnMbguGWL/XmxG0sefPO7xQNBL7kksw 7n1Q== X-Gm-Message-State: APjAAAXJHtSfHSMRm455k7mv5mJWZKhRJzFG3hdbB66vNQ1XfN6Ak4Ne JEjvxk/qd1KtdeErIkxmBsg= X-Google-Smtp-Source: APXvYqwu9LmExa87URoYI/cO7DwIY7BOw5a3ckxOgqG1pCcQbtNOFFpvqIq7xQjjsS1gxQqpBgRCJg== X-Received: by 2002:a1c:1f56:: with SMTP id f83mr10564641wmf.93.1580460110332; Fri, 31 Jan 2020 00:41:50 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:49 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 01/12] ARM: dts: imx7d: cl-som-imx7 imx7d-sbc-imx7: move USB Date: Fri, 31 Jan 2020 08:36:27 +0000 Message-Id: <20200131083638.6118-1-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004153_957259_003439CB X-CRM114-Status: GOOD ( 13.75 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.67 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.67 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Whether and which USB port is enabled and how they are powered is a function of the carrier board, not of the SoM. Different carrier boards can have different ports enabled / wired up, and power them differently; so this should really move into the respective DTS. Do so and update the USB power supply to reflect the actual situation on the sbc-imx7 carrier board. Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 24 ------------------------ arch/arm/boot/dts/imx7d-sbc-imx7.dts | 13 +++++++++++++ 2 files changed, 13 insertions(+), 24 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index 7646284e13a7..0d962e9fe83a 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -22,15 +22,6 @@ device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB - minimal configuration */ }; - - reg_usb_otg1_vbus: regulator-vbus { - compatible = "regulator-fixed"; - regulator-name = "usb_otg1_vbus"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; }; &cpu0 { @@ -195,13 +186,6 @@ status = "okay"; }; -&usbotg1 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usbotg1>; - vbus-supply = <®_usb_otg1_vbus>; - status = "okay"; -}; - &usdhc3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc3>; @@ -280,11 +264,3 @@ >; }; }; - -&iomuxc_lpsr { - pinctrl_usbotg1: usbotg1grp { - fsl,pins = < - MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x14 /* OTG PWREN */ - >; - }; -}; diff --git a/arch/arm/boot/dts/imx7d-sbc-imx7.dts b/arch/arm/boot/dts/imx7d-sbc-imx7.dts index f8a868552707..aab646903de3 100644 --- a/arch/arm/boot/dts/imx7d-sbc-imx7.dts +++ b/arch/arm/boot/dts/imx7d-sbc-imx7.dts @@ -15,6 +15,14 @@ / { model = "CompuLab SBC-iMX7"; compatible = "compulab,sbc-imx7", "compulab,cl-som-imx7", "fsl,imx7d"; + + reg_usb_vbus: regulator-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; }; &usdhc1 { @@ -26,6 +34,11 @@ status = "okay"; }; +&&usbotg1 { + vbus-supply = <®_usb_vbus>; + status = "okay"; +}; + &iomuxc { pinctrl_usdhc1: usdhc1grp { fsl,pins = < From patchwork Fri Jan 31 08:36:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359467 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C89C1112B for ; Fri, 31 Jan 2020 08:42:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8B1CE20705 for ; Fri, 31 Jan 2020 08:42:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q0ROHH0e" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B1CE20705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gV4+DB9g+wz24WDe/envcoja16jdSFFmWSyHm4hKsa0=; b=Q0ROHH0e9VQH2c QSCwhVKoGPiYJk/zzYTUxdqofbOxL4LfkJ9BC/ddZqc7UBaLuMhvBGdOUrVd4wrHUrNApp5YvMZ5X fcc9n8RMnvA7D8G1/yuZOWf96XMaa+qQVkPjdjopIDnwmV4U5hLXo7xVMiE5Ef8J1h5cg5laUwe/9 f/MS8DgCfx1D6PtYgzR2D84Hk+nPj//FIOvPA2BhwIW7V8iLyDwYRZIoh0wccPb4SsTipZ4WqgwL9 9s4Xv8bobDDCabpsoCCEzD4ngVHSDTIyg9UmnwaUqhSa4ri+2btF+Z/joGXrLAbaDtaT1wwVqPd6u 5PSHDwTq7szJ4Z/U6q+w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsN-0006pX-VY; Fri, 31 Jan 2020 08:42:07 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRs9-0006cp-RS for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:41:55 +0000 Received: by mail-wm1-f66.google.com with SMTP id f129so7714658wmf.2 for ; Fri, 31 Jan 2020 00:41:52 -0800 (PST) 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=/HyaBKxElmmkbij4csv64kln2w3uU/8uK5M/u+w6Ug8=; b=WWxkcRwfsvrmloutXr0rBGE7Ue8AzGLQXv6CI6/9mPjGeoyGl1K/7j1eh9ieuPwv4B l018P0DwYHbIK9Kxg9j5uwrY+st+ehjQaFwUcEmZC8f8B7WaPB8py25uknTjfdKF0E3g 9yBsl2IhbXNrw9KxFlxFMhkQIKOpGC9SrV70Njbv93/hgXyI9mEQOZ2JWsjHPb9fxHgT BVYOvnhy0Z+XTerTHMX/lfMpHX/945MJMIYiyhWFN2VVs8Yz1BHbHTOfhOrNLpqZ8fmy DtpwMytdUp9Mg/d750aQ5g1cy+P5XYiTXl7YvWtymEviM4cwXc+eZH1AmDqppDMeoR9O SVFg== X-Gm-Message-State: APjAAAUVd+HzGezIUtscNyfCDPsNekLFlV4wnG1+cuXGM5idDh8IK5yu +pNSfaTyNdFPa2uzC/tBmyw= X-Google-Smtp-Source: APXvYqyDG0GpmJ9fE1LRLArRrCTwciMloxNp5gciCVnYB3j3IjoivEqkSuv+/IAYtnLTN0HRvXZ8Jg== X-Received: by 2002:a7b:c204:: with SMTP id x4mr10797173wmi.20.1580460111352; Fri, 31 Jan 2020 00:41:51 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:50 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 02/12] ARM: dts: imx7d: cl-som-imx7: add phy-reset-gpios Date: Fri, 31 Jan 2020 08:36:28 +0000 Message-Id: <20200131083638.6118-2-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004153_891925_EC90A1FE X-CRM114-Status: GOOD ( 13.94 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.66 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.66 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org According to the design team: * reset input PHY0 is directly connected to the corresponding pin GPIO1_4 in the i.MX7 * reset for PHY1 is done using the gpio expander bit 4 While touching this area, also add a 'compatible' to the phy to make it more clear what this is and which driver handles this - an Ethernet phy attached to mdio, handled by of_mdio.c Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index 0d962e9fe83a..e0432a3aa36f 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -30,13 +30,14 @@ &fec1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_enet1>; + pinctrl-0 = <&pinctrl_enet1 &pinctrl_enet1phy>; assigned-clocks = <&clks IMX7D_ENET1_TIME_ROOT_SRC>, <&clks IMX7D_ENET1_TIME_ROOT_CLK>; assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>; assigned-clock-rates = <0>, <100000000>; phy-mode = "rgmii-id"; phy-handle = <ðphy0>; + phy-reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; fsl,magic-packet; status = "okay"; @@ -65,6 +66,7 @@ assigned-clock-rates = <0>, <100000000>; phy-mode = "rgmii-id"; phy-handle = <ðphy1>; + phy-reset-gpios = <&pca9555 4 GPIO_ACTIVE_LOW>; fsl,magic-packet; status = "okay"; }; @@ -264,3 +266,11 @@ >; }; }; + +&iomuxc_lpsr { + pinctrl_enet1phy: enet1phygrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x34 + >; + }; +}; From patchwork Fri Jan 31 08:36:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359471 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 88CF21395 for ; Fri, 31 Jan 2020 08:42:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6658B20705 for ; Fri, 31 Jan 2020 08:42:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aS5sjzdO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6658B20705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=S+WbFyeCj0nMHjd0CR8yvEXe9YuJsL0l9d6XSVxpQaw=; b=aS5sjzdOH8NRiU VnIzn7Uh3nZxnDKKcBP5NF5kB9kC7Ty0qaNaL4ovk9/+3EDxExKE1eais+QaAKD/DTs5yKIpFoGpy 1OOEXJwIO4kyaQW564HpGaipkjeAfuu6x+EJjj7CQtV0oIrY8xCYmYM/9CZPz9/eHC/f9dALPac1K y1owp6lvksZlyXqQhBj5M+UiEATM8Ea4VNzD7ytr3pi3SBkrS4izfvEGrNASsePzgRHDRS97j/huw 8IEznx1aIdMwtniTsAhT9Ac6YLrvt7T7gxXbV7ViN38aDk+Ry5gVbEmOxz9+iTebHKMkPoCqBizUb aR43yDpFuC3107oMyF1g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRt3-0007Oy-0C; Fri, 31 Jan 2020 08:42:49 +0000 Received: from mail-wm1-f65.google.com ([209.85.128.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsA-0006cq-S2 for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:41:56 +0000 Received: by mail-wm1-f65.google.com with SMTP id t14so7694302wmi.5 for ; Fri, 31 Jan 2020 00:41:53 -0800 (PST) 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=oRnNY4JLf7ZTy3fdUTm9bEVVoWS6JMbuHY/wh8kGwgE=; b=pL3wFccHIgMiDqF9jMTeEqHAlbAvm52lmImgK4DtWRDm1MaJ5zZXLJPZAX34gnDZqv 0yb3o/ZyNVkBVVhKhIDrnLGfiq7aZFdr9HmhYcXlzvUGYwsBTgNJjyYlMNSN+BUGdHCX /AICsYiHc7qakHE2/XcIrvsukv5b3MZu3cLyvhwqUMvFKFmVpFzDrAh4/hPkCdIvgPUy Kr5GvDPqL39k4l+LN0oKpng23HoEn3jXdtkD8Yj8UOElICXOnWsrwqse2bcApbpfg9Xa 7+tCIWWAB1ToAClPy8t7m3o/yeUkNwj8fNeN5kJ1nE3Iq5V7I+YbgNhlhYlsokG4BR/e vlyA== X-Gm-Message-State: APjAAAVIvDNmos0QE6rg13ngT1o5snXCMZKRdlYrD39V+qDLJxt5c1GK DnHM8RVk8QKXYPzlBUnJ628= X-Google-Smtp-Source: APXvYqySY42pc1aYVVB+FtN/uubVEJzMCyrRHDIBuzHAc9fotMDyplrvmbtRD7ITLJFsIeB5sdNZXA== X-Received: by 2002:a1c:3803:: with SMTP id f3mr3070206wma.134.1580460112337; Fri, 31 Jan 2020 00:41:52 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:51 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 03/12] ARM: dts: imx7d: cl-som-imx7: fix i2c2 Date: Fri, 31 Jan 2020 08:36:29 +0000 Message-Id: <20200131083638.6118-3-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004154_901345_28C79AB0 X-CRM114-Status: GOOD ( 15.94 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.65 listed in list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.65 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org I2C2 is configured incorrectly at the moment: * update i2c2 to actually work (fix incorrect pinctrl assignments) * add the i2c2 bus recovery information [1] [1] Note that scl is being marked as GPIO_OPEN_DRAIN even though the i.MX pinctrl driver does not support enabling open drain directly - it is enabled by the fixed pinmux entry. So while this flag has no effect in practice, it needs to be there purely so as to fix the following warning from gpiolib: gpio-6 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file as that is the mode requested by i2c-imx.c Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 26 +++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index e0432a3aa36f..ec82f4738c4f 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -72,8 +72,11 @@ }; &i2c2 { - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2_recovery>; + sda-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; pmic: pmic@8 { @@ -236,13 +239,6 @@ >; }; - pinctrl_i2c2: i2c2grp { - fsl,pins = < - MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f - MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f - >; - }; - pinctrl_uart1: uart1grp { fsl,pins = < MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79 @@ -273,4 +269,18 @@ MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x34 >; }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO07__I2C2_SDA 0x4000000f + MX7D_PAD_LPSR_GPIO1_IO06__I2C2_SCL 0x4000000f + >; + }; + + pinctrl_i2c2_recovery: i2c2recoverygrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO07__GPIO1_IO7 0x4000007f + MX7D_PAD_LPSR_GPIO1_IO06__GPIO1_IO6 0x4000007f + >; + }; }; From patchwork Fri Jan 31 08:36:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359469 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5170B1395 for ; Fri, 31 Jan 2020 08:42:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2FA4B20705 for ; Fri, 31 Jan 2020 08:42:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Wy3ylb2j" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2FA4B20705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Z2BvVDpKrr8bYf/wFAPQaYoeRVLUsYvnhF3lbKQz+9c=; b=Wy3ylb2j3V+CfC otnBcsn3UimWjYja/NHUbRENYk7lhGL9izuhT1cPea0JHnT1xo7l6Rx3VMtU6v1Ls6xb7YnTVlD6s OaS/CwWyVGGefRCeJiNsIkhBSJM2OrvstBBDFzVGO/nhZ3cjdsQGBq68ObuuIHmsQqPiuGjPUGB96 Wb61WijqMIoWAAUleQzXzVKaGPmjnFF5uBE2HP8zJn5ply5yUHbaFZ0bU/g4ZdYrpQWztJ2OvLW9Z E3uoQffhU6hDTOEJVwIF9xsKu67COGpl1qBzrD36XQAVqBP0SW8YGw7f6kkIQjoqWrT7BtqFGKv/i 5INIoiXxSefVjn2eud+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsj-00076g-AC; Fri, 31 Jan 2020 08:42:29 +0000 Received: from mail-wr1-f65.google.com ([209.85.221.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsB-0006ct-LF for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:41:57 +0000 Received: by mail-wr1-f65.google.com with SMTP id a6so7544220wrx.12 for ; Fri, 31 Jan 2020 00:41:54 -0800 (PST) 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=a4whMVybYrFM/VJAJPt+RDbk4EyD/C4nT92WrUXXMMQ=; b=PElEgV5VK+aiZtiYNArkmdLfqyohq034pxgmBDxVFiF5GVwBvJXfrl+sRHmES7DMws cnbY4BCNz150Iw40r3QHXCiIQWiX9qECMYawhGyR8WvIBqjuTiy0TDO0V4Z8qZOtYGBV jF0vMTsl3GM1f0Tofh814tEJUNTyeb7IUmKDMl1S6VCESf2hh7FahX1QZgUu2cGNz/i6 rCv65OH98s4PL9x+XjT6Eymrcbt1GIMgcojXKmCzwKztnMAbEhHQ2lSLuGEpzODFk04h orFAuGGLAHt0QDg62DvZ9Fn+05YjLvYG/0MFv1xfNKE+XI9GB/+tw5pldiA9vWTPADYD deGw== X-Gm-Message-State: APjAAAW0OASR7xt+0nUpseKniQi3DSXZhaFMuX6FE1irYPtII8ABiD4/ U0AaV4q5iSIM9CoX9e+n51M= X-Google-Smtp-Source: APXvYqwVssG86O2ErBa6n9RNwfEo2zbOuBOpqzLbdB2yNiTtwkz3BXzSwlTSq0J98OUyvSyrwBqSug== X-Received: by 2002:adf:e483:: with SMTP id i3mr10556484wrm.215.1580460113362; Fri, 31 Jan 2020 00:41:53 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:52 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 04/12] ARM: dts: imx7d: cl-som-imx7: add emmicro, em3027 RTC Date: Fri, 31 Jan 2020 08:36:30 +0000 Message-Id: <20200131083638.6118-4-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004155_705209_864EC34F X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.65 listed in list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.65 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org add/enable RTC support using the on-board EM3027 real time clock on i2c2. Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index ec82f4738c4f..481bd3971c55 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -181,6 +181,11 @@ reg = <0x50>; pagesize = <16>; }; + + rtc@56 { + compatible = "emmicro,em3027"; + reg = <0x56>; + }; }; &uart1 { From patchwork Fri Jan 31 08:36:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359473 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E325C1395 for ; Fri, 31 Jan 2020 08:43:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD5E120CC7 for ; Fri, 31 Jan 2020 08:43:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WUy1yey3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD5E120CC7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CUFKReyg8suxozCLAAEvwaybuDJ4WeI5NUKalFgGLhQ=; b=WUy1yey3CPOWuD jcGvMlnyI9KQM05FtEwPz9idPOHXMvrT3iSmLaVHkJAcCmRTb8kCZLpMFvObLZlE2Lz6vR3WL9V2L VIJT8wEO7msksivmyDmp/CM1wh22d32X/QI76Ttw811V7tXiU4KBkxmET/T8DkMDavbIJm0C3XK9o vNtKSSIw8WPPDDQJxRoO4NKkNuM/i/PGDTwJ8apXdvdSA5bP2jRC1JqWpAptW9vgY+2VgON80xJbS zGdhr3fmjEjHlszMWncslA8Zsysn2G5anP4h/OYvedS49EFupdQ/wR/RY+/Al/nko8GRxdVJJyfmZ qoqi12Gn0ufj1ram0iSA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRtG-0007c7-4E; Fri, 31 Jan 2020 08:43:02 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsB-0006dW-ER for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:41:57 +0000 Received: by mail-wm1-f66.google.com with SMTP id t23so6955104wmi.1 for ; Fri, 31 Jan 2020 00:41:55 -0800 (PST) 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=C68wfOK/1whk3hXx2aI+LZu/B14qolQqF5YsPbhywYw=; b=iGDDlWKZ14/+TfN0k8DxYXfmEXbGq1YHLaxlXcRUUnCXxDOPEDBpC802twyVUTo0al Be3eUo8Knt+HE762IlwZVLxylom1kvNNZYbRb1HC3RCnxOphPCY0zcQgIjXsU1nYSmPS 9iPnwVn5EfXCRZiP7m0o5z4ervmt574dJyXBVlDlOSo/yAnqINSW3QuPkmYMg9jkq835 LA9c6u1EjUSErln+Pq351bydyqdXJ5mxMOKeltbbbcm5yNvV5o288XLUtAXM1NhxoA0d cCT0wNZJ5L0KO55PjeD0iZmlutH4sTx5iJN6D6M9DSGTKXgRW5p2JBN46xqTy6s2m4Wy eSLQ== X-Gm-Message-State: APjAAAVY4aPghCYsI1XqnTRx6luBmLph0sOxjDPkLwLD8iWjD9cSuMaU 5LcU+mTzsnEuMw1nVCAWZ/w= X-Google-Smtp-Source: APXvYqwZ5N3sHxvAExBZXSD9o505UDKVeLrvfAAmDTlTytHy1nqyoBwtcmRSKUnDauBtIb7j0fk1aA== X-Received: by 2002:a7b:c450:: with SMTP id l16mr11167735wmi.31.1580460114264; Fri, 31 Jan 2020 00:41:54 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:53 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 05/12] ARM: dts: imx7d: cl-som-imx7: update pfuze3000 max voltage Date: Fri, 31 Jan 2020 08:36:31 +0000 Message-Id: <20200131083638.6118-5-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004155_479064_B394CAB2 X-CRM114-Status: GOOD ( 12.54 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.66 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.66 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The max voltage of SW1A is 3.3V on PF3000 as per http://cache.freescale.com/files/analog/doc/data_sheet/PF3000.pdf?fsrch=1&sr=1&pageNum=1 While at it, remove the unnecessary leading zero from the i2c address. Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index 481bd3971c55..78046633d91b 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -81,12 +81,12 @@ pmic: pmic@8 { compatible = "fsl,pfuze3000"; - reg = <0x08>; + reg = <0x8>; regulators { sw1a_reg: sw1a { regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1475000>; + regulator-max-microvolt = <3300000>; regulator-boot-on; regulator-always-on; regulator-ramp-delay = <6250>; From patchwork Fri Jan 31 08:36:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359475 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADB791395 for ; Fri, 31 Jan 2020 08:43:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8806220705 for ; Fri, 31 Jan 2020 08:43:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gGJ4IK2R" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8806220705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gc3OklgVyYjg81HY0NfKwlk9m7MZSacGPcGw2oVCiTw=; b=gGJ4IK2R7pOd6n cznh8Rznxg7b8+y8D7NCGKeGBooWgCSlF7WF1N1WbPrF7Ghuf1zQgR0Es8pY9mJqbnjRNjgwGVqG5 fokQnEW2yc8YqOg58AhOvz5xOjwkAPVSh2VeDpkQEnY3AB20SusEYNBuA9E+aWEhXPubx0ntipLSG 2DAs5SM0uAkq9W1qDiv4+g7AmVkqRkplaCUj8RxW8TgYxikCDbauJxMCe787rz7xYVA1GYc8sR11c eAF/tTy6kLKQp+rD7zkbB2c1/7F1FoF4s6K1oSZaTucxgwgAH+PgYKM2U5LUoFZ5aJc08rOXXnBJt +X5CCZGOy4WuHQXJGKvA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRtW-0007qB-Cw; Fri, 31 Jan 2020 08:43:18 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsC-0006eL-Gm for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:41:58 +0000 Received: by mail-wm1-f66.google.com with SMTP id g1so6928056wmh.4 for ; Fri, 31 Jan 2020 00:41:56 -0800 (PST) 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=jGtaYskwXqtitTmb81lpaqplH9rL6ZrH9axl395rJFM=; b=aS94Ls6B3zwKf/8RL/4kdGf0pxUxFRhUdwOgECK79Qrr7/tqw61dhvGKRxRM9glT6z Z6E3an4qROhM5kmtfD9BUlRDDDjAZiPcT+/ATjEKHdR3u6vz+gciabf+b+NECZSQZjVO ZYF84/Omb6tQg8Scb+qxD4gv9J+kmevdNbw7PyxNOjAbaV2tpFmerR8qS+8ntWWPOsPJ Rf1Xu1XhaLxzZ3ibS459Ka1qnqI3a4A94rz4jEnHG4rAgUzWZJRcWggMx9ciwl05Pdhr cAbykpm1swy83xfu/prV0DhHIoERa5kN4uyt1fDrhn7/U8tFq6KOeaXUoyqAf8t6RyFR pK8g== X-Gm-Message-State: APjAAAWuINLCy040uKEzHtF9+rsj0BY5NXRl06Fb18uLIJQbewbIjFBW k/0KT3x4ZR/hxnXHUheiYFk= X-Google-Smtp-Source: APXvYqzdHgyllrzTjRIsDWUxqKCWD3djcZmRB0k47vFVyGaNCVZjRihXvyt4cZA1Ts7DFW5lbYfhbA== X-Received: by 2002:a7b:c386:: with SMTP id s6mr10617994wmj.105.1580460115395; Fri, 31 Jan 2020 00:41:55 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:54 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 06/12] ARM: dts: imx7d: cl-som-imx7: add / enable watchdog Date: Fri, 31 Jan 2020 08:36:32 +0000 Message-Id: <20200131083638.6118-6-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004156_550741_C1E72260 X-CRM114-Status: GOOD ( 12.29 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.66 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.66 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org add / enable watchdog which is connected via WDOG_B to the PMIC, due to i.MX7 Errata e10574 Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index 78046633d91b..ca3c5d95d6c3 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -207,6 +207,12 @@ status = "okay"; }; +&wdog1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; +}; + &iomuxc { pinctrl_enet1: enet1grp { fsl,pins = < @@ -288,4 +294,10 @@ MX7D_PAD_LPSR_GPIO1_IO06__GPIO1_IO6 0x4000007f >; }; + + pinctrl_wdog: wdoggrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74 + >; + }; }; From patchwork Fri Jan 31 08:36:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359477 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AA9F9112B for ; Fri, 31 Jan 2020 08:43:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8593020705 for ; Fri, 31 Jan 2020 08:43:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="i8AHVXhc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8593020705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nHCB8ddvo79D3UBWEaCr1pysRkx0ex0YowUMJwOV6pA=; b=i8AHVXhc+y7d9o EvN3wR6Pv8KC9Q6nnesF35vIKJCitzgZDG54jbN7I3ibbrJOmVKCfUWORwMUpBokkvhx/5haB15WD XLbWP8KOHGqX7+P2xUkAXFlCk2leopakPfTedHPHEJaosJ5/ks5KDC05hacT6rwahBU/MUUrv4xgk 2+BhkHwitFyYPexyGMBLP9qajaO++6snwvzI21Yg33/WWkDZdH8sE66HJndwGeCv8/etwj2PXlSIs qydB+MF1eunPbqo1AClvvKXwfHDAglPIXL0UTLyNfcCLOCJDGKOwFRjLI+uRUMjWYzQ7LFLIMBCHQ 3ntvyxzvJBcLtTGLl0ew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRtg-00084W-Q3; Fri, 31 Jan 2020 08:43:28 +0000 Received: from mail-wm1-f65.google.com ([209.85.128.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsD-0006f0-Mo for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:41:59 +0000 Received: by mail-wm1-f65.google.com with SMTP id p17so7717651wma.1 for ; Fri, 31 Jan 2020 00:41:57 -0800 (PST) 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=sdNLZLbUZjioU3Z4lRpuQbaNIysXdv9lDzhe4Q5gJwU=; b=MbM2V8DXMIENtAaIUa20DY5tR0JVyz3pyiD/QQpjO3vhWynKILqCCw/fYuB4mlzylU xdzBIRllEnEjdsstwJ38BIQAF6pFLIGjBlTTxgTugEMwI9Cna89WMLx3UkhB6XPfN+hP FisiCIczIP9a/XKJX/BGdQavGYM8ZpakJ+MO4a6lNl3a62ojcBxCXY361M+jwS3UE790 43I0UBpdUXMWMZx64NQ9ZS7u3uuHyLU3Uyp4/rKoV7FyN69FZfVWRLyM1+Dp3XhaSjHl yMZfPbqYz4GsLmd0DUNE+vM1KrxSlYhoDzE2OOZBjL/il02TEHzFCNBEaFLQBzV7g7rD xUnw== X-Gm-Message-State: APjAAAULpuLP8nN2RmxGxBBotayVKSVq7s/up9kD5HtzQg0xdqEupJpe TX9VHGIP7qRSVCl2bs8QLPY= X-Google-Smtp-Source: APXvYqwcnzQbFdcIMaQGA5ZuO128eq6F3wqKYN22ra3jP99Ay4uMroGsQRwG80xB0777PwhhtX7RWw== X-Received: by 2002:a05:600c:1007:: with SMTP id c7mr10594687wmc.158.1580460116515; Fri, 31 Jan 2020 00:41:56 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:55 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 07/12] ARM: dts: imx7d: cl-som-imx7: add/enable SPI flash on spi1 Date: Fri, 31 Jan 2020 08:36:33 +0000 Message-Id: <20200131083638.6118-7-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004157_783646_A369E8F4 X-CRM114-Status: GOOD ( 12.85 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.65 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.65 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org add/enable SPI flash on spi1 using the default vendor's partition layout as per downstream kernel Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index ca3c5d95d6c3..d4637a8ca223 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -28,6 +28,36 @@ cpu-supply = <&sw1a_reg>; }; +&ecspi1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1_cs>; + cs-gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>; + status = "okay"; + + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + spi-max-frequency = <20000000>; + reg = <0>; + + partition@0 { + label = "uboot"; + reg = <0x0 0xc0000>; + }; + + partition@c0000 { + label = "uboot environment"; + reg = <0xc0000 0x40000>; + }; + + partition@100000 { + label = "splash"; + reg = <0x100000 0x100000>; + }; + }; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet1 &pinctrl_enet1phy>; @@ -214,6 +244,21 @@ }; &iomuxc { + pinctrl_ecspi1: ecspi1grp { + fsl,pins = < + MX7D_PAD_ECSPI1_MOSI__ECSPI1_MOSI 0xf + MX7D_PAD_ECSPI1_MISO__ECSPI1_MISO 0xf + MX7D_PAD_ECSPI1_SCLK__ECSPI1_SCLK 0xf + >; + }; + + pinctrl_ecspi1_cs: ecspi1_cs_grp { + fsl,pins = < + /* SPI flash chipselect */ + MX7D_PAD_ECSPI1_SS0__GPIO4_IO19 0x34 + >; + }; + pinctrl_enet1: enet1grp { fsl,pins = < MX7D_PAD_SD2_CD_B__ENET1_MDIO 0x30 From patchwork Fri Jan 31 08:36:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359479 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6F2201395 for ; Fri, 31 Jan 2020 08:43:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4716520705 for ; Fri, 31 Jan 2020 08:43:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="clQ8uPll" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4716520705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SyVNR0EK9GwBBLkl0FfAv/uO25KaVPkWSSRawT3vi3Y=; b=clQ8uPllupaPJs +k0Gh6VNSHqf7dLG8DcD5nH/QpFYzxu6deijsRgikcAfpZ9k2VoxxaWBbk8VtNUrU2pgQnNCQm7vv ewiiVNhq83zvm5HFMSWGdaKz4jVMTrU1gm3aNwlm2OosHYn3Ado9sFWRkIS7ntdPMSQIGWN5om8jg W9XNhxTIpz8lfW6x0g4pkPAZUcVYUr5d5pQnq04oCunjzruY/O5WiPsgrAMg+TTl+aT//RVQBb9Nd evXPUY/Nx8UVDP05QN42fwJ4j1XVfjBNJyfFfg1wxniR2nSJ1h4jPMORVXpfPjr7skq5v87rZvwU6 n4R1q0WDzLK1+J3/kokQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRtu-0008LL-Px; Fri, 31 Jan 2020 08:43:42 +0000 Received: from mail-wm1-f67.google.com ([209.85.128.67]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsE-0006gI-T1 for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:42:00 +0000 Received: by mail-wm1-f67.google.com with SMTP id q9so6926613wmj.5 for ; Fri, 31 Jan 2020 00:41:58 -0800 (PST) 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=sMmbpncOJ0ZaEaTp6uD1F3mJKzNvU9i5QAcT7nrh4JY=; b=JKDni7YRFX/y/u0LHrua40wlUnxVNfj4wX1knVBdTtwjTfvxj/BjJrFt9JEPL/a8+G EhxGrx1d2ELV9TtpiRZpfaIbbeYq+jv44kg3EKoaGK2fi9MT5qDKj0Xayq8ol7FjLKIV wHsxI8WbEzg/jE73nUyLoAQ2NxROyR8S3EOYfwt4mIP8HhsYGV9FYOa7WZuVOdGB/EPx JTfh+nq8+oOnGQdbRjAymmZMsDH7ROmKO4Tks7m+x6fVwqYPdQuDFz/ZqYsUaivNFEGD aTgS6MeonL98JDCZeJlnfqDal2B0YZ60wlzaU3p4KcfMywZqnRMUOCROCYJ5UmZwCQrp SipA== X-Gm-Message-State: APjAAAU3oVDtnlyRRhRpf30QfQn2UwykQ5stC6qCBgG/fLAPgqZ0qpvr l7JjeLHHaoH9Bgq5hITq+2k= X-Google-Smtp-Source: APXvYqzKcapyTjD9nBiBSyVMOTcqge1oPKD3TaBRMVfA2GO5FZ48/UrkimVNYtSOgOOLzu22AYMvKA== X-Received: by 2002:a1c:6a06:: with SMTP id f6mr11000810wmc.137.1580460117691; Fri, 31 Jan 2020 00:41:57 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:57 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 08/12] ARM: dts: imx7d: cl-som-imx7: update UART1 (debug) clock Date: Fri, 31 Jan 2020 08:36:34 +0000 Message-Id: <20200131083638.6118-8-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004158_955160_D6E84E46 X-CRM114-Status: GOOD ( 14.57 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.67 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.67 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org assign OSC as uart1 (debug) clock to achieve low power, so that the PLL doesn't need to be kept on Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index d4637a8ca223..f80be855b4ec 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -222,7 +222,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>; - assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>; + assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; status = "okay"; }; From patchwork Fri Jan 31 08:36:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359481 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 68B7E1395 for ; Fri, 31 Jan 2020 08:43:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3FF9420705 for ; Fri, 31 Jan 2020 08:43:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gg46fd5E" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3FF9420705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sm6FElvFFWDWmN0oFciBuR4/mtAyg+KMdB5LCY4xu5g=; b=gg46fd5EnBGDv+ FrejFWn2xYo8E6IGJA56i2QekwyJP6Mk2HOFsr/GJMtmi8kG2jRLUoO7uuE0XGySWPWBGwKqL98lr yXAtr5hjasVXbKrZs49ERjvfjcmlR/LXGnVeWA1JCcYwlJbGo03RLRVYADAEFxND0+0PN/zfk8/Ul YdlN+ZE5giNYRdLlfIu/L1317I6jpCwnpwLd+TxgIov76jncW9/TXQk0HYgFAgg6KANg4Cu61MJAO gQZpIyr7wVumMcAa87sPRxvfdXeUkAq9KJczqpqloRRz9goC7tpO52kAWb2fFUGBRPPmU8GpEwOd9 KPXqeYNrmfKFWaUha/Rg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRu3-000071-OM; Fri, 31 Jan 2020 08:43:51 +0000 Received: from mail-wm1-f65.google.com ([209.85.128.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsF-0006hE-UZ for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:42:01 +0000 Received: by mail-wm1-f65.google.com with SMTP id p9so6945250wmc.2 for ; Fri, 31 Jan 2020 00:41:59 -0800 (PST) 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=1rCIaYhy19uhXqC3cBNmvWggUiwiZruQsnEVhDd61mE=; b=fZsMFb+dgUoYcDAGQrrDFiW6xqEVRBi3rwzimK+4FMovA7nelSfnx79uLJDo+OAF0k ObIGgdEpIbyFN0QuglVjmCUdXrWhcZRxWIxWMYlXbQcNrgX+FwAYgTD9qAMh3A23qdyf uwknY5zIYdxJSYvhmdGv0vA/sKE3OzobkQyr5jqzhOj9c5DaOHNJ6D2dMKQ7kogv65ZK V6nio7WxNBC+s+RqOTpZM9/HgyNN4F4E4Cf9fGLzIVMQe8puBvMiWR83Wf9WR5/TN3b9 HfWc2kHxwJ0ACrCl5vMh0yiWxd2D8SpM2+Tthh26dbgW77GPQ7KbAQMGmsOoQLjFehzJ pufg== X-Gm-Message-State: APjAAAV7uZfiMbnP+QM+cXBEthTeDX6Hz65reSCzMeX8w4HbK7/1yB34 UnzNnbXmaJqAwzkyJ0MU3L02kD2hCzI= X-Google-Smtp-Source: APXvYqypc6MF6QgCbmPRGX+Y/IH0R/dp9yLZXlhDd9OMREV7VANLITul+BVlNBUSXC75nGwIZHUBxQ== X-Received: by 2002:a1c:8095:: with SMTP id b143mr10365919wmd.7.1580460118795; Fri, 31 Jan 2020 00:41:58 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:58 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 09/12] ARM: dts: imx7d: cl-som-imx7: add SMSC USB3503 usb hub Date: Fri, 31 Jan 2020 08:36:35 +0000 Message-Id: <20200131083638.6118-9-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004200_010382_0E8C62D8 X-CRM114-Status: GOOD ( 12.39 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.65 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.65 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org As per the SoM design, add the SMSC USB3503 that is used as a PHY in hardware-only mode, connected to the imx7d's &usbh interface, providing additional USB ports for USB and mini-PCIe. Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index f80be855b4ec..a16cbb070a12 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -22,6 +22,12 @@ device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB - minimal configuration */ }; + + /* SMSC USB3503 connected to &usbh */ + usb_hub: usb-hub { + compatible = "smsc,usb3503"; + reset-gpios = <&pca9555 6 GPIO_ACTIVE_LOW>; + }; }; &cpu0 { From patchwork Fri Jan 31 08:36:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359483 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 83AB9112B for ; Fri, 31 Jan 2020 08:44:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B53D20705 for ; Fri, 31 Jan 2020 08:44:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MA8CZ1lc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B53D20705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qHvGT8yPXxOpn7TuW05xf15YkQrBU4VZ0QuddTsTV6E=; b=MA8CZ1lctI0jjY snfvA2GNS4e4e/EKX56mjdZ9xVg5EZ+JUISWUG2tTi6WdlQW1ffEmiMUzC5Xs6lTf6gsR8jXeYoas jt3BdsDnVha3eSqYn5ZJITPKqJDWDMthnbd1eFPznzkFkzXjrBomj/dLr8ucjH6E34DziGge9tLGX lR2OwNlaruTEL6jP/8xVOI/+VaxfY0jxr5BHQTVzE36dze8h1QmXlhZICXusqiq5k1BCrrnM7hJUD KDPd4zC5DZavDrgf/knrJtCySyaNKB16vGbENHNvNZs3y5mvQOuh/XFaxLPra8mACvXGIOqSQtcP4 3xUJui0TM4ZMW2G5FCeQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRuF-0000Le-Eb; Fri, 31 Jan 2020 08:44:03 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsH-0006iN-1Z for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:42:02 +0000 Received: by mail-wm1-f66.google.com with SMTP id t14so7694722wmi.5 for ; Fri, 31 Jan 2020 00:42:00 -0800 (PST) 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=2dEBK2/0QEjcEIbTow6H8atvD57XckSzsqrktuuuwiQ=; b=uepTS7YjwQAo4N4aXsEhtOY2NRA3gJaKeWliWn5cnqsV4i/T/VN9+nZttZKnUOl2XA +3RBUh7+HAqzRWS6CckWMyVe3+2HILH1ir7qCgw7OI2qdr3SNnt93FwplbuH11b7mvvh 0Kx0qvmwkzqWQ61hy0VH3mldJmZIw+biCJqj4pOBwG6JfJlaq4Lyx0Vx80ncpDzciDaF DtukWbxblrvlQoJ+iKhGTot1cv52uXqZpAG5O1+KmJIxOffLDb9U3Zg5DzNwyWM0GY5a KS18OUwmVAcjUgMrPzpDLD6DWPFow9DhXRkIvDTnjGSIUP2wQRRtQMREWa/7iSQ1Nb1K DwBQ== X-Gm-Message-State: APjAAAUdwVB4WyHpNoXcPzOq/GfbNIHELeu34vzBlnUaDccYsp8oRbTW MSwtqojSUKzrPRvq+eP0qtE= X-Google-Smtp-Source: APXvYqyHY3SsN8sdxcNTZKwuYJH0cgDW0nY1gVdu6YC/r1hZq5mTO/Ua3IXVS/iQwDDxxCzDvFMN6w== X-Received: by 2002:a1c:6389:: with SMTP id x131mr11106584wmb.155.1580460119746; Fri, 31 Jan 2020 00:41:59 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:41:59 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 10/12] ARM: dts: imx7d: cl-som-imx7: add WiLink8 WLAN support Date: Fri, 31 Jan 2020 08:36:36 +0000 Message-Id: <20200131083638.6118-10-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004201_105181_3C019E62 X-CRM114-Status: GOOD ( 14.32 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.66 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.66 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org add / enable TI's WiLink8 WLAN module on SDIO2. Notes: * power is always enabled (because of bluetooth) * the downstream delay of 70ms after power-on doesn't seem to reliably work, hence it was bumped to 700ms Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 60 +++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index a16cbb070a12..4cb36decef3d 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -28,6 +28,24 @@ compatible = "smsc,usb3503"; reset-gpios = <&pca9555 6 GPIO_ACTIVE_LOW>; }; + + pwrseq_ti_wifi: ti-wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&pca9555 0 GPIO_ACTIVE_LOW>; + post-power-on-delay-ms = <700>; + /* 10μs during shutdown, but 60μs between two enables */ + power-off-delay-us = "60"; + }; + + reg_ti_wifi: regulator-ti-wifi { + compatible = "regulator-fixed"; + regulator-name = "wilink-regulator"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pca9555 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; }; &cpu0 { @@ -232,6 +250,31 @@ status = "okay"; }; +&usdhc2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc2>; + bus-width = <4>; + no-1-8-v; + keep-power-in-suspend; + wakeup-source; + vmmc-supply = <®_ti_wifi>; + mmc-pwrseq = <&pwrseq_ti_wifi>; + non-removable; + cap-power-off-card; + status = "okay"; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@2 { + compatible = "ti,wl1835"; + reg = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc2_wlcore>; + interrupt-parent = <&gpio1>; + interrupts = <15 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + &usdhc3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc3>; @@ -308,6 +351,23 @@ >; }; + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX7D_PAD_SD2_CMD__SD2_CMD 0x59 + MX7D_PAD_SD2_CLK__SD2_CLK 0x19 + MX7D_PAD_SD2_DATA0__SD2_DATA0 0x59 + MX7D_PAD_SD2_DATA1__SD2_DATA1 0x59 + MX7D_PAD_SD2_DATA2__SD2_DATA2 0x59 + MX7D_PAD_SD2_DATA3__SD2_DATA3 0x59 + >; + }; + + pinctrl_usdhc2_wlcore: usdhc2wlcoregrp { + fsl,pins = < + MX7D_PAD_GPIO1_IO15__GPIO1_IO15 0x34 + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX7D_PAD_SD3_CMD__SD3_CMD 0x59 From patchwork Fri Jan 31 08:36:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359485 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 437EB112B for ; Fri, 31 Jan 2020 08:44:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 21A0C214D8 for ; Fri, 31 Jan 2020 08:44:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="g4tJnR9K" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 21A0C214D8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4W5TPNVquUJbTFEKvsuZ8w/tEbQHTSn+4cxYhjS9zOg=; b=g4tJnR9KI2RvGW A8vSamo9CAYXmSP4h8FI+ZVPy6pqolq9oR/kdBS+UDppHHYm9V6Ws6liaIC+GLAwIrb1NNRqUZofs CcGTRYo5FDsXmNJvPJzTj9lS0cMeFINZHzG9odLG24AlTdJBPsleJVNQywGkYDw599QVDchhItOLd ZJFR274R2vkfBFrcB7b6kRqg2AL8NHNsxQj05g7ygptnutb/muYe95G4hn9YzznCzFZIs1SkXDxxe oaAyZxAPHdj+0LUFChUAoq6QJcxpm4ZFWtzRuRMN/VPK7a2lYPgZa/uh3T3JqSlc7/Or/P6auH8WD jzUIVyroxcCw+V0kqprA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRuP-0000Zl-PS; Fri, 31 Jan 2020 08:44:13 +0000 Received: from mail-wr1-f66.google.com ([209.85.221.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsJ-0006k3-29 for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:42:04 +0000 Received: by mail-wr1-f66.google.com with SMTP id c9so7592898wrw.8 for ; Fri, 31 Jan 2020 00:42:02 -0800 (PST) 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=I8BhmUjvRpuRsDLc+hCNgR+cjfG8z1wM6d0LK3Ong3c=; b=LBIB7wGHVkFpXak1oYzyYqWU8IiCKz5dO39p3SxGIMkwJEWc6cWel7OF8KVp3M98IL evNhV2TAUeNGxReXIG5ABeZjrcgr9KX4cs6ttyBlMHDjzBt8VkaDxdsIjk427DE5YAnk TJ7gxFHY5WM+5lZyNnNSzRdv1CbHzZ3W5jlfuyBTMZWwS2aMm0PP25cwCc63Dgsvk0qB gtxWI8SXNRhjUy8oRWlMelOjodSkV61NqLlZwndQ7H44kIjoMgH0Hx0tERCWcic1VkNB rIc2J1tmhaTYtwTdq5kzG+vMk4+ebImpLRERK1c+nXUBMzxh5y4JXaLA0Fhc0+QPYn7Q lY9Q== X-Gm-Message-State: APjAAAXsZxKjwmBHQiYVa9us466eWdag48CPECrxP5wVfbrHu6H1uOdi ksvhzkrAmV2cBhqBJadzuhs= X-Google-Smtp-Source: APXvYqxxlDx6OL+N6mRBKI3g5CIhqUA5YoHHDTW8clNvHsx+P0JH34TY2Onr5/+6Mfr6D6bRmeSs/g== X-Received: by 2002:adf:ffc7:: with SMTP id x7mr10605714wrs.159.1580460121281; Fri, 31 Jan 2020 00:42:01 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:42:00 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 11/12] ARM: dts: imx7d: cl-som-imx7: add WiLink Bluetooth support Date: Fri, 31 Jan 2020 08:36:37 +0000 Message-Id: <20200131083638.6118-11-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004203_124667_71166851 X-CRM114-Status: GOOD ( 12.86 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.66 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.66 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org add / enable TI's WiLink8 Bluetooth module on UART3. Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index 4cb36decef3d..08fb43f7ae1d 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -250,6 +250,21 @@ 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"; + + bluetooth { + compatible = "ti,wl1835-st"; + enable-gpios = <&pca9555 1 GPIO_ACTIVE_HIGH>; + max-speed = <3000000>; + }; +}; + &usdhc2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc2>; @@ -351,6 +366,15 @@ >; }; + 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_usdhc2: usdhc2grp { fsl,pins = < MX7D_PAD_SD2_CMD__SD2_CMD 0x59 From patchwork Fri Jan 31 08:36:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 11359487 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 90C361395 for ; Fri, 31 Jan 2020 08:44:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6BE3520705 for ; Fri, 31 Jan 2020 08:44:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eObYJEyC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6BE3520705 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andred.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=llfQvcF7QK4GHkB1wgx1NR2vrCU9xqCeNk1XZikT9w8=; b=eObYJEyCPAkpS6 Uwq0GHn0kmlN+gWghFBPzKh0GqW5EbnXsUFzPVVKeYmgx6wwVT4zdyiiUPPFcJ/9dK6tZvcXPgTHB 4XZvEtd/FttAGeZ37/F2XFcs8tQtJTnChxNbY/HRWUm/q+bPR1F/BEUrdKCLcwxRv25KX1XMnG+YX QHzG0KzVPZM6q04qwShkzrgpRiexU4+TNub+ztNUfcyhDxPDjb0TTwRU1jvdS+OuhJ3/tD2pGtxw6 ujf6DoJWh1qx8GH1uJoKKt/4XgawGiyvaOm+19XT2vGOFHgauw9kHhqygLDlDvv/6RcKOoaE07UXl /9tlY5Hc8wBZqkNVtzRg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRue-0000rA-Mg; Fri, 31 Jan 2020 08:44:28 +0000 Received: from mail-wm1-f65.google.com ([209.85.128.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixRsJ-0006lB-Qf for linux-arm-kernel@lists.infradead.org; Fri, 31 Jan 2020 08:42:06 +0000 Received: by mail-wm1-f65.google.com with SMTP id p9so6945402wmc.2 for ; Fri, 31 Jan 2020 00:42:03 -0800 (PST) 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=nJoqLaePKcCUGwfhd41k13iRET9Ek7BaOdvQo7mN8Ps=; b=Nsfv9nTe8ySPWSshTP30U7uZuu0+Ki4KXlKXEC6NQdUzF+Y2FMhPnb93u29mkxoZF7 +jGQ6PnPzXwstkBsD0EhZYMXA+EbTk2zYaynpoi/j8r4RwnrWp7oaW3Jzgw5M9kWTY9+ +zZ7diEP06Q9BpKTwZz9VNrKFqFXIlxVDLgBozWVrVgZ4JraEvu+IDNG5LtQ7CmUsPbD BOAysn+oJDxjRRr9Rga5nHWd1ng+OSmY8hBT+jNheHwmR9bIAWwzMwosU1A1QFa0eYRI xi1MwoajyAP373eqZaqOz1jMFEulR8aqQdwOC7R3EaDt1XqsknZ5zv6k9wJk7JskmSFq wtGg== X-Gm-Message-State: APjAAAUoO59r4cFJ9ZbMgHz0IJn3LhwK5xcQAzDULailyyJif7wxi9ro MZ1wjdWHio7pAsItGHGseOc= X-Google-Smtp-Source: APXvYqyZVj7slcwPtHcnqag4Jlh4RMqtDAtGhogi6xVjSWfKoqKQcgrOfykWdsX8Nnx6ZecuKmoCqw== X-Received: by 2002:a05:600c:2942:: with SMTP id n2mr10409759wmd.87.1580460122231; Fri, 31 Jan 2020 00:42:02 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id x7sm11034302wrq.41.2020.01.31.00.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 00:42:01 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 12/12] ARM: dts: imx7d: sbc-iot-imx7: add basic board support Date: Fri, 31 Jan 2020 08:36:38 +0000 Message-Id: <20200131083638.6118-12-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200131083638.6118-1-git@andred.net> References: <20200131083638.6118-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200131_004203_962628_8F1F83F8 X-CRM114-Status: GOOD ( 18.82 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.65 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.65 listed in wl.mailspike.net] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [andre.draszik[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Sascha Hauer , Rob Herring , Igor Grinberg , Pengutronix Kernel Team , Shawn Guo , Ilya Ledvich , NXP Linux Team Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This is a forward-port of Compulab's downstream commit against linux 4.9.11, including updates to work with more recent kernels. Original commit message: The SB-IOT-iMX7 base board together with CL-SOM-iMX7 SoM forms SBC-IOT-iMX7 single board computer. SBC-IOT-iMX7 is a single board computer optimized for industrial control and monitoring, extensive wireless and wired connectivity, ideal solution for cost-sensitive systems. It is based on the Freescale i.MX7 system-on-chip. SBC-IOT-iMX7 is implemented with the CL-SOM-iMX7 System-on-Module providing most of the functions,and SB-IOT-iMX7 carrier board providing additional peripheral functions and connectors. https://www.compulab.com/products/computer-on-modules/cl-som-imx7-freescale-i-mx-7-system-on-module/ https://www.compulab.com/products/sbcs/sbc-iot-imx7-nxp-i-mx-7-internet-of-things-single-board-computer/ This commit adds basic board support, including: * SD-card (note that write-protect is not connected on this carrier board) * SPI (available on expansion header) * i2c3 & i2c4 (including bus recovery information) * additional UARTs * all USB ports * SNVS powerkey Compared to the downtream commit, this commit doesn't add / enable the PCIe and LCD interface, as PCIe support needs an additional patch to the PCI controller first, and I can't test the LCD. Signed-off-by: André Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- v3: * enable snvs_pwrkey node v2: * use standard uart-has-rtscts instead of fsl,uart-has-rtscts ARM: dts: imx7d: sbc-iot-imx7: has a power key Signed-off-by: André Draszik --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx7d-sbc-iot-imx7.dts | 202 +++++++++++++++++++++++ 2 files changed, 203 insertions(+) create mode 100644 arch/arm/boot/dts/imx7d-sbc-iot-imx7.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 08011dc8c7a6..6efbfa613366 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -603,6 +603,7 @@ dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-pico-hobbit.dtb \ imx7d-pico-pi.dtb \ imx7d-sbc-imx7.dtb \ + imx7d-sbc-iot-imx7.dtb \ imx7d-sdb.dtb \ imx7d-sdb-reva.dtb \ imx7d-sdb-sht11.dtb \ diff --git a/arch/arm/boot/dts/imx7d-sbc-iot-imx7.dts b/arch/arm/boot/dts/imx7d-sbc-iot-imx7.dts new file mode 100644 index 000000000000..4ffa67f2e530 --- /dev/null +++ b/arch/arm/boot/dts/imx7d-sbc-iot-imx7.dts @@ -0,0 +1,202 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +// +// Copyright 2017 CompuLab Ltd. - http://www.compulab.co.il/ +/* + * Support for CompuLab SBC-IOT-iMX7 Single Board Computer + */ + +#include "imx7d-cl-som-imx7.dts" + +/ { + model = "CompuLab,SBC-IOT-iMX7"; + compatible = "compulab,sbc-iot-imx7", "compulab,cl-som-imx7", "fsl,imx7d"; + + reg_usb_vbus: regulator-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; +}; + +&ecspi3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi3 &pinctrl_ecspi3_cs>; + cs-gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&pinctrl_i2c3>; + pinctrl-1 = <&pinctrl_i2c3_recovery>; + sda-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio1 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + status = "okay"; +}; + +&i2c4 { + clock-frequency = <100000>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4_recovery>; + sda-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio1 10 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + status = "okay"; + + eeprom_iot@54 { + compatible = "atmel,24c08"; + reg = <0x54>; + pagesize = <16>; + }; +}; + +&snvs_pwrkey { + status = "okay"; +}; + +&iomuxc { + pinctrl-1 = <&pinctrl_xpen>; + + /* SB-IOT-iMX7 Xpension Header P7 */ + pinctrl_xpen: xpengrp { + fsl,pins = < + MX7D_PAD_LCD_DATA13__GPIO3_IO18 0x34 /* P7-4 - gpio82 */ + MX7D_PAD_LCD_DATA12__GPIO3_IO17 0x34 /* P7-5 - gpio81 */ + >; + }; + + pinctrl_ecspi3: ecspi3grp { + fsl,pins = < + MX7D_PAD_I2C1_SDA__ECSPI3_MOSI 0xf /* P7-7 */ + MX7D_PAD_I2C1_SCL__ECSPI3_MISO 0xf /* P7-8 */ + MX7D_PAD_I2C2_SCL__ECSPI3_SCLK 0xf /* P7-6 */ + >; + }; + + pinctrl_ecspi3_cs: ecspi3_cs_grp { + fsl,pins = < + MX7D_PAD_I2C2_SDA__GPIO4_IO11 0x34 /* P7-9 */ + >; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX7D_PAD_GPIO1_IO09__I2C3_SDA 0x4000000f /* P7-3 */ + MX7D_PAD_GPIO1_IO08__I2C3_SCL 0x4000000f /* P7-2 */ + >; + }; + + pinctrl_i2c3_recovery: i2c3recoverygrp { + fsl,pins = < + MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x4000000f /* P7-3 */ + MX7D_PAD_GPIO1_IO08__GPIO1_IO8 0x4000000f /* P7-2 */ + >; + }; + + pinctrl_i2c4: i2c4grp { + fsl,pins = < + MX7D_PAD_GPIO1_IO11__I2C4_SDA 0x4000000f + MX7D_PAD_GPIO1_IO10__I2C4_SCL 0x4000000f + >; + }; + + pinctrl_i2c4_recovery: i2c4recoverygrp { + fsl,pins = < + MX7D_PAD_GPIO1_IO11__GPIO1_IO11 0x4000000f + MX7D_PAD_GPIO1_IO10__GPIO1_IO10 0x4000000f + >; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = < + MX7D_PAD_LCD_ENABLE__UART2_DCE_TX 0x79 /* P7-12 */ + MX7D_PAD_LCD_CLK__UART2_DCE_RX 0x79 /* P7-13 */ + MX7D_PAD_LCD_VSYNC__UART2_DCE_CTS 0x79 /* P7-11 */ + MX7D_PAD_LCD_HSYNC__UART2_DCE_RTS 0x79 /* P7-10 */ + >; + }; + + pinctrl_uart5: uart5grp { + fsl,pins = < + MX7D_PAD_I2C4_SDA__UART5_DCE_TX 0x79 /* RS232-TX */ + MX7D_PAD_I2C4_SCL__UART5_DCE_RX 0x79 /* RS232-RX */ + MX7D_PAD_I2C3_SDA__UART5_DCE_RTS 0x79 /* RS232-RTS */ + MX7D_PAD_I2C3_SCL__UART5_DCE_CTS 0x79 /* RS232-CTS */ + >; + }; + + pinctrl_uart7: uart7grp { + fsl,pins = < + MX7D_PAD_ECSPI2_MOSI__UART7_DCE_TX 0x79 /* R485-TX */ + MX7D_PAD_ECSPI2_SCLK__UART7_DCE_RX 0x79 /* R485-RX */ + MX7D_PAD_ECSPI2_SS0__UART7_DCE_CTS 0x79 /* R485-CTS */ + MX7D_PAD_ECSPI2_MISO__UART7_DCE_RTS 0x79 /* R485-TTS */ + >; + }; + + 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_SD1_CD_B__GPIO5_IO0 0x59 /* CD */ + >; + }; +}; + +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; + assigned-clocks = <&clks IMX7D_UART2_ROOT_SRC>; + assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; + uart-has-rtscts; + status = "okay"; +}; + +&uart5 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart5>; + assigned-clocks = <&clks IMX7D_UART5_ROOT_SRC>; + assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>; + uart-has-rtscts; + status = "okay"; +}; + +&uart7 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart7>; + assigned-clocks = <&clks IMX7D_UART7_ROOT_SRC>; + assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>; + uart-has-rtscts; + status = "okay"; +}; + +&usbotg1 { + vbus-supply = <®_usb_vbus>; + status = "okay"; +}; + +&usbotg2 { + dr_mode = "host"; + vbus-supply = <®_usb_vbus>; + status = "okay"; +}; + +&usbh { + vbus-supply = <®_usb_vbus>; + status = "okay"; +}; + +&usdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc1>; + cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; + wakeup-source; + status = "okay"; +};