From patchwork Mon Aug 26 15:37:49 2019 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: 11114913 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 9F37B14DB for ; Mon, 26 Aug 2019 15:38:53 +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 7D01620874 for ; Mon, 26 Aug 2019 15:38:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZFD/omeR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D01620874 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=IdrA70lrP8dSHq9Kwu5GWqmHj+Lu+cTtGyiQPtN35XQ=; b=ZFD/omeRIBrie3 VoIXS5Lkf4Iz2C+JsbELwDD9OhmmRn3dgnePdn3c6JtKp1WoMQvq07sN+aQNEaxGDo+NGE/x+Qqtm jssuw8diyaQiiN1kqg1U+i6L+omMATclKMiNXdCQCuFYxdWIZx2jG+iXfEewBoaFIBo28sXvD/f45 orgZOmVrNCuzu4qGtcdGV0KTBLp8JJSuiFp8o4iia+hMI8e9Q/k30VbEpXS1o3ZQkIbWRQki6QehC IImQPH/WOwqlkuLCW0WYiRQLuACSJ6xj8OOOW0yQSaQHre6b/mQ3QoMthhpLeIWZjJkCMUY6qBy7R xRRtto6r2meF5llCXq8w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H4y-0002j9-1d; Mon, 26 Aug 2019 15:38:48 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H4v-0002hx-AK for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:47 +0000 Received: by mail-wm1-f66.google.com with SMTP id 10so15913848wmp.3 for ; Mon, 26 Aug 2019 08:38:44 -0700 (PDT) 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=5/JN6uYb6Ltt98oMBprPmMJCQ9NUBW/kztrckS3ANvk=; b=W+ZzNqUnxEXcQd8Pt+bsg6gUKeJmhZRkJ8VWWpca3ueP2Z9lAgKRvOhQwdPkYaBLqs soUlWUfpHIc8Pi/tOvaWRBiTKxSe4j4LnILs8k5Rzk8cFdG378GyXG1C5MTeZ1QhzlHa l+1K3r1raUQ6vzglDWTBjy/PJvIA6407ZHG4OMqC97j+Il/KBB8U7xpzeOnJP7MVjiVq ua4ZgmSA4AT2CIYEnZiFaseh42wwIuxlqnqZGX7CfxPnitZHhcL+ewYQTkDSxfijnVI9 m6HMLajb/ET/FubHkQWaIb2Om6uy9ZITkoHo9KqpcRGyN0e+D8+wVXDlTEbKHDs6ctCq PuRQ== X-Gm-Message-State: APjAAAVV80bPEEvItHMezY1QGy4onZv+y5zStgdts/nspxoGGJqjMuO6 jR2dcZZksxrF93iBpTgzl70= X-Google-Smtp-Source: APXvYqz6k0m1OCGHUiJ4OnGEKQyzGpm4tnivwPcoBNTuZ+jjYF+s+0PdhAXAhI1A6chPPoWGfmhDAw== X-Received: by 2002:a7b:c3d0:: with SMTP id t16mr23715323wmj.25.1566833923520; Mon, 26 Aug 2019 08:38:43 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:42 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 01/12] ARM: dts: imx7d: cl-som-imx7 imx7d-sbc-imx7: move USB Date: Mon, 26 Aug 2019 16:37:49 +0100 Message-Id: <20190826153800.35400-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-20190826_083845_360812_F744AE9E X-CRM114-Status: GOOD ( 13.71 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 62d5e9a4a781..6f7e85cf0c28 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 { @@ -193,13 +184,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>; @@ -278,11 +262,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 Mon Aug 26 15:37:50 2019 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: 11114915 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 CBB0514DB for ; Mon, 26 Aug 2019 15:39:04 +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 A989C21848 for ; Mon, 26 Aug 2019 15:39:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LErZpue0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A989C21848 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=jDSz0g6v406AqG3sIS4MGtZiEX+EcCwvleWD7nEeZEo=; b=LErZpue0e5ldwy InoftCARvD7ekvu/0vdswycMIRW2gYD/i68k6FG3O5c/nvqCXlV0PqDYDrp5tfFCw31tuLAImRvw2 16XCz8zMVg1H/iLB5KyRJe9SD0ZSIgcUiHLdJtB/euqy4cvjHmIdr+3lcGdO81e54h8NASejVDdKx +jncSCflCg+y+2GLCD/yj0TRV7XMC/7XGcWHWiba7EJ6MoFvjFmU+vYP7DG5llz4gUwWv9QtpCUFc smQ/SnBcQopcXj6hoD42wNv/BsYWg3sLmYooiKzfvi1nyluW5LOBJiILmOjpjnUTCCHPuVyBEOnod hRXUicUkO7VoIpuk/QkQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H5D-0002xH-Vc; Mon, 26 Aug 2019 15:39:04 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H4v-0002i2-Uf for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:47 +0000 Received: by mail-wm1-f66.google.com with SMTP id i63so16320000wmg.4 for ; Mon, 26 Aug 2019 08:38:45 -0700 (PDT) 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=9NkYS7urVCiEtt0M3GAw4i3Cp3ycEW4gYRkzUzyQ4Xs=; b=b8LjTekQCpC6gOdcINRSF/wUyf4mmCWKkuV9MwkjaEB/u511c4qUMPLyDulistk834 o5ho8SNkp2/ehRpG36gdTpbTna1xu6IZy7p1CQ5wEC1Tlolg0iMxYNWWBk7zye2Odl0x nO0BB7KYcO9m2qihikVBZ7D1539/NJN3kmXrMVnLWVGFs3rAgkfPu1qpirsu4geyaka9 tx1uNzJnhtI/GP0PGPWgMNzm7sfMoaaizStjIJtTLPB91zqeqPz9ja3jl3t+YHTkMTWo 6MOz6LgkBhJzpq/UkvnXgaIONPEVPe4lZcrIr1t088Kv4UxlcGx59Bno5Hy3TKJQpNn2 tdcg== X-Gm-Message-State: APjAAAUV9in9thoartcqT8xWwDvm3JX2x0VBihJ0GN3xNmvenG74UBu/ 8bOXCKlp/QrQ9xl74XUucrU= X-Google-Smtp-Source: APXvYqzrHfkBV0VZT/8b7GJDeH5p/8ZVnepaLjJKhgQaGgIBm+5y5g3FQZTpNlEAYwACbwrmIYxjRA== X-Received: by 2002:a1c:a74b:: with SMTP id q72mr23123109wme.96.1566833924812; Mon, 26 Aug 2019 08:38:44 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:44 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 02/12] ARM: dts: imx7d: cl-som-imx7: add phy-reset-gpios Date: Mon, 26 Aug 2019 16:37:50 +0100 Message-Id: <20190826153800.35400-2-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083845_985269_A4D6E7F0 X-CRM114-Status: GOOD ( 13.84 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 | 14 +++++++++++++- 1 file changed, 13 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 6f7e85cf0c28..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"; @@ -45,10 +46,12 @@ #size-cells = <0>; ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; }; ethphy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; }; }; @@ -63,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"; }; @@ -262,3 +266,11 @@ >; }; }; + +&iomuxc_lpsr { + pinctrl_enet1phy: enet1phygrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x34 + >; + }; +}; From patchwork Mon Aug 26 15:37:51 2019 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: 11114917 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 5BC6416B1 for ; Mon, 26 Aug 2019 15:39: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 313B421848 for ; Mon, 26 Aug 2019 15:39: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="fhXirzUx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 313B421848 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=fhXirzUxoorzSu Erv1bAb9aK4HBHusWHP7YS6rlJQJI8HDErj533UiBujJXrfvCzqvxYgUeTlAoHUXw44e6wZiWS8sN XY0KAQ6k2P14FWBP+mtzjNM877TohuJW+cFxBCFeUfAkWXcjRk7jbJmk1hPU8fmFnzHGwtt3DMPJm bdAibTKME/Fyfef8haJz0FMNtmBZHj9WXzs+7kcJCnz7L3iESNrFzlD5/Tc6W/HCzpF1TiSKx1COa z5s+91TSOxbgPp5sp8yb7QoAOtleQQa72v99pcNMlEGWVsgvtLV8pVsFz6bZmQm0Af3zJfVKGQ+Xo 7okrom53aoDqODKBPXEQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H5V-0003EE-4K; Mon, 26 Aug 2019 15:39:21 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H4w-0002ic-UV for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:48 +0000 Received: by mail-wm1-f66.google.com with SMTP id e8so293535wme.1 for ; Mon, 26 Aug 2019 08:38:46 -0700 (PDT) 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=MIk4J1ktB4YCUzypHKSRLJeH6buuxxRnDxwyeVHxa8V/Mjo7v0iYbESRhPgI142dl3 q7p6TTjWdgWZ6WEZWgcj6CQOJru64cViWz9JpWTiTBUyFUZF9G3I3ZjnDs0+Or2Rtg8I Dl2JzC2vwf9rxOVho9I+EiimEalaxG55rNQhv5t59Audjyd83L5rt5xcDopAJmLeqaI4 r1k19e7WOh/vPaK0oKV9iGTE+n9eUDx0YDpmS9B81xW0CQxXnC9CAJsbh746UBqYdNL1 1bs+junYIzePwpdOEFu/NqkrczPRU/MuAAqdFn4WXKNv8kPRxA+9roChTrbX0e4JJ1MJ 7tLQ== X-Gm-Message-State: APjAAAU1FEn1CrGPEXkEXHiBqJVUknGQaqlMFB/BhXZwDnwyh8RZHIzp YAs3Lb5zU/O0z6Qmt8EDH3s= X-Google-Smtp-Source: APXvYqxyyoXPftbW6GeJwx4yF6wo2uOK6DKbLk1+l/KNCdpLBNfpM76u9knFOkAdArEhuytwOMmhtg== X-Received: by 2002:a1c:804b:: with SMTP id b72mr22413166wmd.139.1566833925797; Mon, 26 Aug 2019 08:38:45 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:45 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 03/12] ARM: dts: imx7d: cl-som-imx7: fix i2c2 Date: Mon, 26 Aug 2019 16:37:51 +0100 Message-Id: <20190826153800.35400-3-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083846_977221_7714CA96 X-CRM114-Status: GOOD ( 15.98 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:37:52 2019 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: 11114925 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 AD2C516B1 for ; Mon, 26 Aug 2019 15:39:42 +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 8B05221848 for ; Mon, 26 Aug 2019 15:39:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c1FBtIwr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B05221848 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=c1FBtIwra5hqmu i50KsgIaUuWeJ7uMtzHgsGaI5+/vfmgkiBTO/9vR9sOWXvhDl33aY2uk9NMbqayELTZ5r1wjFy66N RRIRrRW0FENURej3v+X92yd84fQqv6gpeDG5hAjKVvjngsTluVURpsj8z9m5kJzxP2W68iYpPZj4L ChIjRGvsEyqhaEVasu6+wUdJboE01hrTb4BwS6Rls2ytd2C76fmkk4uDkwqremfEPwtz5xRAFRjK9 lTtOJWGlJuO8WpFCvKCSxe1kIhnFd7MdqfWY4Gi+rF+E6J1t6UcIQXXlNCGr7uBDC6FifhtDZiwF2 Nc0GWotha2Hc1SEj2zeA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H5p-0003Ug-JM; Mon, 26 Aug 2019 15:39:42 +0000 Received: from mail-wm1-f67.google.com ([209.85.128.67]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H4y-0002iv-75 for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:49 +0000 Received: by mail-wm1-f67.google.com with SMTP id 10so15914061wmp.3 for ; Mon, 26 Aug 2019 08:38:47 -0700 (PDT) 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=e9TiGhbJnJ2fsHXfLZ1VpQNPJOAvJGAv3bhDiHFY6QsmRVzFAPN+JIg72G/v4dAOmR syRrCit9KvtzobULLZ4zrIYdFO64YrLhnB4znz0yv7kvi3yk3iQIS81UaMIDAsfjBFUj 7PmImXzJkgEo5Lnq4gTa9Lv2RbmHAkFHlQe7Qavo7dAoVfatc6KZ2XEriXBD656UZPKA VXUQ5D8xicFbk+Sg9Lv6QfKw4nugCNW+orDy73dL7zMma9tpfZvziwxwFO35ckwh+TjT nNGUCWkube/P1Lv5zEnSTLzQ21VmfBJ+zKJxdeaU9EkBge7LaCtVWRIBW/y+boUP+4zA tjsw== X-Gm-Message-State: APjAAAUM+UQHgqpeDp6sG57AKzOTBRBFG2feQsSCzyB1CZcgLOCZerFL Jbr2qVTUN9NP0euyPGJY5ow= X-Google-Smtp-Source: APXvYqygTRJ64Z2TySzhfxKxSjAmfAcggoIVmXZ4r3Dc/XwC55KuebNCr5QYo+MM+8TDE2dGCd2iUw== X-Received: by 2002:a05:600c:40f:: with SMTP id q15mr23039886wmb.88.1566833926763; Mon, 26 Aug 2019 08:38:46 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:46 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 04/12] ARM: dts: imx7d: cl-som-imx7: add emmicro,em3027 RTC Date: Mon, 26 Aug 2019 16:37:52 +0100 Message-Id: <20190826153800.35400-4-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083848_266866_A96C3B35 X-CRM114-Status: GOOD ( 11.41 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:37:53 2019 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: 11114931 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 0E3B914DB for ; Mon, 26 Aug 2019 15:40:04 +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 D972520874 for ; Mon, 26 Aug 2019 15:40:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YPnkcUDo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D972520874 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=YPnkcUDo8miAhP 0fLchD/lHoBAfwtOyiomJn2ZphRKGtO3oAyiGbLWSkNLDt1ewy3vOyfDcpvlZ+Q61qkyha75LihQB iBZ35z9+W8imveuA0lDoYmqubVUOFRF2FlZXFn9w72eMoILtEngT35DL51riw/7xaILsZN6Fi8pHn kQBzFUz7Xv00NSiqarXfgvtFGE5W3wreQTduLtqrOX+VGXMkL5GwA1zL3KnCNB++z1Qd8XlNhDqXo yHvVNRB7coDbkeEZZYz6ng4LppOMv9Jxx6a+EJ0idgQBNgjiqJtfkEtZ/J9tgJLIO6hqX7H5nJgaP NUbF2GDJvFj+tJRc5vbw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H64-0003lD-CH; Mon, 26 Aug 2019 15:39:56 +0000 Received: from mail-wr1-f68.google.com ([209.85.221.68]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H4z-0002jQ-5E for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:51 +0000 Received: by mail-wr1-f68.google.com with SMTP id z11so15806563wrt.4 for ; Mon, 26 Aug 2019 08:38:48 -0700 (PDT) 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=nA+7fP4SUmH9SX9DvI66otIkpLxq+C1taweQHJCknVJo3ErXH4xoVnHH7XWAdq9lP+ Hl55dTDrxiowzjlX6jz4Ldc7F0hT4GkLVhTQ2Y1/70Nde8NQUeBFoKMKdu60aicXv/rr Q2LimE9kn8j1BOaMRfY9cVXZH5KWICQzcp0ap7YAfQayCwLOXZYHmRiHVJLa3KdRSfbB i3uxd1HuWqsQLRCtyvf8FhB1MhIP/hGhgJDkACPk+1hz7GUYlkyJni+G5uHtAxEhnL6x VCCAiz7rPXs0O65isfok2kiXjHSbUb5qsZEpRQjN1G/H9HGcJl2RnesSXWaFw4siZ4mj U2ow== X-Gm-Message-State: APjAAAXycVJ7kB1VHPJ3SRaOcocaxeIuBgjgJOJ7eyR5f8iphv2gHdsp CYuCRHNoiFeSVEO6lLWgHCw= X-Google-Smtp-Source: APXvYqzSfSRNF+1JuaMYWeM7Zw0bN2vHYxbspqB/4JqdONbprhgfE3ickBcc/rF94i6b4+TlH5xkhA== X-Received: by 2002:adf:c803:: with SMTP id d3mr24148095wrh.130.1566833927742; Mon, 26 Aug 2019 08:38:47 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:47 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 05/12] ARM: dts: imx7d: cl-som-imx7: update pfuze3000 max voltage Date: Mon, 26 Aug 2019 16:37:53 +0100 Message-Id: <20190826153800.35400-5-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083849_299856_77DC8B92 X-CRM114-Status: GOOD ( 12.50 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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.68 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.68 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:37:54 2019 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: 11114935 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 1BCAB184E for ; Mon, 26 Aug 2019 15:40:22 +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 EBFA621848 for ; Mon, 26 Aug 2019 15:40:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XENrO3zb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBFA621848 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=XENrO3zbCAxrZM JdM+K8NXnCcknzwngqL7MLyzZG8GdKn1AgQun20ShFL2KXo5BnuCNoH8GBZtr8uJo40y6a0fw33tR 1JjvzBRokdIt/DbSH5WxLkgKPUcKRX2Dmnakh5aL27WE5FBNoDxvE5ozL/KceRIdJ5IVKGUMJk9vr lRZRow6I0nov1kLtWEe+FIa7nX8waMo7ig4zTgGWAb41auCyad7bzG6xViSpfLZO9teEGvVauxbZ3 /o4efydscL48I6kjvPSoH7vPHoVd5BjPMBrxNTMdbKys7vrKJZqyR/okABSRjsXGLRBo+pU233au5 Me9wUiWFbAtSskgDL+zQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H6R-0005DQ-U9; Mon, 26 Aug 2019 15:40:20 +0000 Received: from mail-wr1-f65.google.com ([209.85.221.65]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H50-0002km-5H for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:51 +0000 Received: by mail-wr1-f65.google.com with SMTP id z1so15776334wru.13 for ; Mon, 26 Aug 2019 08:38:49 -0700 (PDT) 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=CKljwLHtYrlbKi92aNcOAnS8U2w5H2+RnYk8f0a5F/LnpkE70FakcQiTfOzSg78/vT R1Sc4NqB3omdQEodUA+9UmNcylw0/aAmYW05lKUtgrwN8SzrV/cl6ijgUCwU+kDIYAov 7mNgu+3n4kCy+IOEeIJXx5/AZzQstmO+/E8ZU7TO19XjhKC3um5LBVcaFmFeKhGzdo+H n7Y6D4/uyAi6yQPsCKha+wUjuJXKsGbQl7vTBj7BuNBVcXjHarCRNvy6xzkTSeJ2weZV gcczS2LceNidY1XZuk+wNoy9N4fN2QswUI8AaXa/g49axD6JHTiCCmD7bmYyS2yvxvdM itgQ== X-Gm-Message-State: APjAAAVaUb0mlzaMoAlai4ot4kv5EOR5UM7ZK3gDhcQrL1wi4diMfrZ9 l1l/roGIfymEvXtjxH6gN8A= X-Google-Smtp-Source: APXvYqydGIPpHOfkRz3VzlXBrDkyVledGjyMVRFPj6NY3pQu4YoRMHWAwMQbnBklpd5rb2iT/1qMAA== X-Received: by 2002:adf:d08e:: with SMTP id y14mr22820025wrh.309.1566833928723; Mon, 26 Aug 2019 08:38:48 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:48 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 06/12] ARM: dts: imx7d: cl-som-imx7: add / enable watchdog Date: Mon, 26 Aug 2019 16:37:54 +0100 Message-Id: <20190826153800.35400-6-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083850_238450_BBA0CDDB X-CRM114-Status: GOOD ( 12.25 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:37:55 2019 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: 11114937 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 1602B16B1 for ; Mon, 26 Aug 2019 15:40: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 E793F20874 for ; Mon, 26 Aug 2019 15:40:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GywIS/t8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E793F20874 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=GywIS/t8iv30LR +Dr7tHcnoTm/Hwpmw6PvYIkLEXptI8c8q5qBQx+HviiNoy5TJy1NXs9BJ/Aho5Xk9se7PKQRyNEIX fiF74k6qQUm0F19y/yF3uVyN6mrnd/vMa2sBbzBSCuyYXkcR0MqMk4Ruf42TZqS00fBYV0sXfvTqQ X5jDTrN0rB/plyMLTS/n+HWU7rSEkpGrf6KM7z+U0WFfrmFMOxxCCD7c/o0LNwaYzDQy/UV4w7DEM MhvYt3DNZK8xvyJUSMVHPQro/cFsgLyKiswPiylIg5pEmY7+D7J+kKfBmxOeMxiiwxVzvwB+iiJyy mf/QVjvWwp237DjnEtag==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H6n-0005SW-AT; Mon, 26 Aug 2019 15:40:41 +0000 Received: from mail-wr1-f67.google.com ([209.85.221.67]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H51-0002mK-4e for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:52 +0000 Received: by mail-wr1-f67.google.com with SMTP id u16so15804725wrr.0 for ; Mon, 26 Aug 2019 08:38:50 -0700 (PDT) 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=Yjvl1H5j03JkrWjDsKILC/TsP2jVcW8M+hAZE9LAsFogWfDkwPwp1D1BFeMgdlnVhB MAkPqWOYDiKB8REOck8KOW1JzQZNJGEavabdbHxJLLP92s/hONnOIZirm7fThP27Ocub 61O3b/Olt22lRzHRXLh+XRAFnBWv+Xz0e1Kb8bnoMq4G6K3olfEPbrYT3JyxKToGjMOT JhzyP2cTQlMd1byo7v5BISrX5HuE9uGdGneAYYZe7X19hBRzQa66hpKgwpw4W6sOy9lv qDpuSsHzgXFTC/R7GIPn7NRp8aKriO4jvbn1abdOClkKTKDcQk82tBKg6p6rTkN5s73H hg4Q== X-Gm-Message-State: APjAAAXixtMP951zPqhxR1+IrxmB9fztwZgdko1trhjruewvtyBY9V0n fGBuCMB0v1XLTKrNss3irHw= X-Google-Smtp-Source: APXvYqyupufwIm7Jbil3XGdUZ6YsobfUaIlznuBm6oZ9/FZv+zEyI9GMPHplQrpOf0n27DVXhf+4PA== X-Received: by 2002:adf:fd8b:: with SMTP id d11mr22079526wrr.300.1566833929706; Mon, 26 Aug 2019 08:38:49 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:49 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 07/12] ARM: dts: imx7d: cl-som-imx7: add/enable SPI flash on spi1 Date: Mon, 26 Aug 2019 16:37:55 +0100 Message-Id: <20190826153800.35400-7-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083851_227879_EEF05E30 X-CRM114-Status: GOOD ( 12.91 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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.67 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.67 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:37:56 2019 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: 11114939 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 1924314DB for ; Mon, 26 Aug 2019 15:41:02 +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 EA95E20874 for ; Mon, 26 Aug 2019 15:41:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gmN1s5Sl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA95E20874 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=gmN1s5Sl8VDxsE RFxQ8YeVY94haI9qyzwIEWn2TL8Tk+sSNv45hDTKQuB6x4GrHeP1nIpxL+keYIoA2DOb2SqAz44tj V1qbLqQFi18H41KyVBNjvBiZZZWbUulGKHAaQVs2NwbuCvZ+ndfh4PenLw5svccH+ZqztFNs60NrZ 0vd4kUT8svDPGkgbV9Q9NMV2CCLTmT/RbP2/b3fchsiDi2pRg4yb4y/s5aVOGzUaSJlDImb7hcrfd 9Qej2skyc2mOaFDARJi7BhWjvFpsEqpH6NmIBSoLKofmW8Z5Y8l6smpk4DXyPdTbfTJYePMMyTSi0 cuFjy3anZg2lU4KGnBMg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H77-0005er-7K; Mon, 26 Aug 2019 15:41:01 +0000 Received: from mail-wm1-f68.google.com ([209.85.128.68]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H52-0002nb-5I for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:53 +0000 Received: by mail-wm1-f68.google.com with SMTP id k1so15953707wmi.1 for ; Mon, 26 Aug 2019 08:38:51 -0700 (PDT) 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=SkanPMzvBZ1AoBIi40S0shDCsHuHxiQBi9t9pxIffjEi/gBMNvOuXTgdEFAaJcBftV 5jHg3Kuhe8K/qhC0B4ToKyliz5vFLj52QeLsb6BrQ9ethhcZZ+KS42ldrhsG3JZXVns8 eNts0n/ZTGnOqm0jDvtMHGFYpFnAcMza7snGHOf7gCkRgy7jU2Kxd9VXOec/Go08LhQH Xn7v4dxDVzxxQrO6vr3q7AwbOTWpKM5HPPKh2+dfMgOgIBOOVIQLPZasZQvxBMJN03UM mj60k5NeYJEv6f9PlPf5ccZEFI3QtRhjG7AzTyHO+DWbP82adcQs1irk6F8X7s5zFiW2 w4PA== X-Gm-Message-State: APjAAAXvK6MKtba/952nxAiyUKbhEnhw0Sy9VadaoNIXXML3TNtfnYAc 1fHdKK63pN1kxcfsX4INLjQ= X-Google-Smtp-Source: APXvYqzGJnbPj/aQN9vpELl8apyFyQZE5AG9D4gn7qkUgkt0R4z3A8KozlSMpWB1/cHyMGbBxQxjWQ== X-Received: by 2002:a1c:1b42:: with SMTP id b63mr22828360wmb.46.1566833930681; Mon, 26 Aug 2019 08:38:50 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:50 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 08/12] ARM: dts: imx7d: cl-som-imx7: update UART1 (debug) clock Date: Mon, 26 Aug 2019 16:37:56 +0100 Message-Id: <20190826153800.35400-8-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083852_283490_EE9CD4B3 X-CRM114-Status: GOOD ( 14.53 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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.68 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.68 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:37:57 2019 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: 11114945 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 7243616B1 for ; Mon, 26 Aug 2019 15:41:34 +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 5013520874 for ; Mon, 26 Aug 2019 15:41:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="V/D2NhNH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5013520874 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=V/D2NhNHNDbbNF GWfoDMSUgY3Wf5tnpeRIuz+l4rFJFOx/7RPnRnw+1SINw+AVhU4WaNZjydZHVamgfti/lKd0zHnME ocB3N0KPbHaYaWW5X+OcISmvZk1DGQYaoj4jiyYeZ9IS7T1VEiYD+rkl2GTmTC/dE2V5rA4o1yMHK zTbWfm0L0FVbdPKhfWj7X657rTxLfUYhBypJ4PM8TuPZSPoKHb7tebg6v+k1pM6Pupn3eSFhJcOBm zunnSiFE2pRH2tQsYLO/VcrAclYUnLuPYLolJN8yWjwqpxXXYtsgy/jg29ym5P0eME7aFAv177l4n +ykp5+85z7dY5UVihRNA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H7d-000669-Pf; Mon, 26 Aug 2019 15:41:34 +0000 Received: from mail-wr1-f66.google.com ([209.85.221.66]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H54-0002p0-1f for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:55 +0000 Received: by mail-wr1-f66.google.com with SMTP id b16so15765831wrq.9 for ; Mon, 26 Aug 2019 08:38:52 -0700 (PDT) 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=QVbQwuaNQ4WtH5RTPUr7wYlKAdkQV3fUldwVtr98YFLdPLLia6PdTs0kJVhX2XF1ej 2NdRwar+Al2EHa0265Nl/C8iJfipsWKcUnVtxkCj9sNbBJyGWTxViFVm6NswBf346Z09 /TAZR0knN1nIaoHSyUuts3np1M76bnk2ZkRB10rY3mIJPJEYDkLzjODR6qVZmvbHHbKE R6gS6R5VHUzXzL4/x/1W94S56zFCAEu+XZ5n8AAUWOqBwc93HKQfeOSkgFw7zm6+LWjY KEcAd8RXLnKLACiOruA+c7pc/rvpWvJbMxWGrRpn34csiEKRpibzTSPy/OhpwBQee49/ 5B6Q== X-Gm-Message-State: APjAAAUuRCwk6YUfkHcmkoW/uyy5KBwTIfumSK1tyHAbWGjPx1AuIb0B Vrqc53mrMDS3R0DIk35L44I= X-Google-Smtp-Source: APXvYqzz9bVlQdXc7SzziaVbdiGF8boBNGBFFqyPOelinM1tHX9oibhkShJbp6vuG99X/Ilm2U7GiA== X-Received: by 2002:a5d:6446:: with SMTP id d6mr22393884wrw.159.1566833931686; Mon, 26 Aug 2019 08:38:51 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:51 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 09/12] ARM: dts: imx7d: cl-som-imx7: add SMSC USB3503 usb hub Date: Mon, 26 Aug 2019 16:37:57 +0100 Message-Id: <20190826153800.35400-9-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083854_244931_CCCCE8D3 X-CRM114-Status: GOOD ( 12.35 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:37:58 2019 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: 11114943 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 2063116B1 for ; Mon, 26 Aug 2019 15:41:20 +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 F27BC20874 for ; Mon, 26 Aug 2019 15:41:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PF9jTGFn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F27BC20874 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=PF9jTGFn3qAVVB gdJcycDIRAP453varO0Y1UdkJjdkn9kZ2ePB35kb29j7jdwLZzZUuKKAwQkxp562+IVPRQg7LBKab A3TY6JFcQCHHhwAlSrk/HFYUc8+x20jd5IvGtXeuNSwvapLbufF0EqfmnYEEQqC34QEe3e9hBp12x z1GQQDq3sEyzqCOr5DmNlB9B/B0RHBx6yXc1ioNzOhDlrR1zKmR0+1bvvMr1VR8nG/0hCQXdOIsHG Qx20sCP3Sz/djNefYwArmD/mh1Y7zHnYC1NwT94WB4BZIOvnrL0YUeifsg1IB9YANweMHcTedQfiK a3k4gum3rVDR2jW1t7pQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H7L-0005rz-4j; Mon, 26 Aug 2019 15:41:15 +0000 Received: from mail-wr1-f65.google.com ([209.85.221.65]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H53-0002q0-O2 for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:55 +0000 Received: by mail-wr1-f65.google.com with SMTP id y8so15759223wrn.10 for ; Mon, 26 Aug 2019 08:38:53 -0700 (PDT) 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=jF+TUwREtJBz0rVJHJ1GhVbLzrOAc6DdFfcLqxFTG0BtRZmU9OsfugwEdWW9Bh0LtU z5uGAim8mVWbKK3MbmdMLHBZM2HPciSGsDJi0QpDEhAhXaMxLPGVujmX0bZ6eBaYLt7/ xC7oU+9J//qAEmmZErtCL6Hudh2zHlx7RD9Wcv0ZNtvGXEBPOmSKFFdukXpmGrCoTA98 hHuLE7q8YutLDynEktUTU7JcPhrQa62fjJwZIJY7zsPj/5pGXcQCw4ETPBE1veoB8LHG zUCzSfM4XA5tKcl8p4iEeXMd/VPUe14T83W0X6PSRyni1L2Kzx+nd1xnYofCPwWDCtaf gIww== X-Gm-Message-State: APjAAAVZrsXbrfqHGmqbPosOQpPPnv4ukbNvqSLi2M24xP5q9MYqWC7K VSJI1R/49qIepawMfboVl5k= X-Google-Smtp-Source: APXvYqwjXotGvt0EQ3krMpcIpOWZidN92OK/jBtmB2hqylriN76aoWIA6r+Xj3p2ErKfcs5YQG1CBQ== X-Received: by 2002:a5d:63d0:: with SMTP id c16mr23237426wrw.22.1566833932617; Mon, 26 Aug 2019 08:38:52 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:52 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 10/12] ARM: dts: imx7d: cl-som-imx7: add WiLink8 WLAN support Date: Mon, 26 Aug 2019 16:37:58 +0100 Message-Id: <20190826153800.35400-10-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083853_991030_AAEDC659 X-CRM114-Status: GOOD ( 14.28 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:37:59 2019 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: 11114947 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 06125184E for ; Mon, 26 Aug 2019 15:41:53 +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 D3B4A20874 for ; Mon, 26 Aug 2019 15:41:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jpg4eTyg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D3B4A20874 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=jpg4eTygjZ28ZX f0OQa6KfgAO3lJG3u70MKqgadQth4HwCfTxkW56CNsKLsattw7Cwuen9QOgJRvocUsrsGYN73SVR3 yWEOqRLMQP7WfsOMK0kI+0PjR1eX/GdXSUJuJNl10MYlSVqoj3RWNg3ugy9zknpe07vPJPT7nyMXV hQaVSdztvVO91fiXkXACSrWhH9ZFwriyiN1MvkloMR7hG3tPN8yfjBSF1u13vV4Xf5x9UAvmGQ/xA dcRE06Fuy1VziSszXI0eVEWQnCIYcfeJbYBrJdFaOpdbhtMrUvEHB79iIrSWKIU4pkcnKH8Pnas76 6SEzOIl5nuMGY36zHXqg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H7r-0006Jp-U1; Mon, 26 Aug 2019 15:41:48 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H54-0002qm-Pn for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:57 +0000 Received: by mail-wm1-f66.google.com with SMTP id e8so293774wme.1 for ; Mon, 26 Aug 2019 08:38:54 -0700 (PDT) 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=BKsUDlF+zylEbIyM4DSW7+/Xa20y60koaeUZ57t/7V8fnf1c3aCwZhysUZPlVBBOrp pliNkkRa++wcHVcZgNpbZv8ZYy5vwCzSYMnbWdctG2p+7DbKHqIS8vc9MA1Owj3mGtyU ShIHEnQWKjFJWPzThbVUmCDWXp8WZNgafhBVydZ60V1x7Jsu9rLPHAgHOvBAxhIFCoJ1 z5IBf6k8sHxPPFeqIDPKxtzCDzudPq21XyGQmlyVEL+u3kHoYNmTKw+gwWq0IyrEgxfk 8b+fXcUSSWlVt1+/IB2gMz2nyfFLgojNKwroDHvvSI3K0rzjq5rbgRJd4eBXw71Wcd7a 6s4g== X-Gm-Message-State: APjAAAXQmazVBA4/dztSYTCd9bmFw1SHiBy6zsRtEZh85NA22tbCiy3n a3muuQD1mtwxST+lk8lAcrw= X-Google-Smtp-Source: APXvYqwMD/2qo0xGpO8j5/o0mKPTDWKJ+yk4XONGvPSsZuutCz0ekSIirvu1/zzmTBZWPbnKFZS1pw== X-Received: by 2002:a1c:4005:: with SMTP id n5mr22328274wma.166.1566833933541; Mon, 26 Aug 2019 08:38:53 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:53 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 11/12] ARM: dts: imx7d: cl-som-imx7: add WiLink Bluetooth support Date: Mon, 26 Aug 2019 16:37:59 +0100 Message-Id: <20190826153800.35400-11-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083854_962697_5CB256D6 X-CRM114-Status: GOOD ( 12.82 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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 Mon Aug 26 15:38:00 2019 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: 11114949 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 1CDD714DB for ; Mon, 26 Aug 2019 15:42:07 +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 ED10221848 for ; Mon, 26 Aug 2019 15:42:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hFqamzaL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED10221848 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=SFLmvBhm9gYK9pxSK+eXjONcPlIefB5reJ/xna1oppg=; b=hFqamzaLYGAH+g 4Gn6jgiHb5NOpc/w49srSPaH0/CwfZgl72HsGdcN6MdBelNEA1knhFglqBa5nv/fVGSpKbGcP+1bL J+4VU1bHXgqOpHkPGq5/buNE0jSeDBgFQ2N/vcnCgzPUzkH2eWNYq2+/97hCxKXLTVIYQGk2e1x7S ysG8LvDOQzuCaxGjeZIU0mytXhdJSkrR/hCYyj4Xj9eZOUb6wjbvDn4V3Ay/oufURaHjck/FCENVG C0f5dNlwXSuJ2JVkFMYIYMcE6TvbzEquSbiHIflacTcj3jCOJfLJJk+CHYKoFjbq48Ef05CrPX7ZE wNbK+mNetUQ71jkjW9kg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2H8A-0006Zq-C2; Mon, 26 Aug 2019 15:42:06 +0000 Received: from mail-wm1-f65.google.com ([209.85.128.65]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2H56-0002sW-3g for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 15:38:58 +0000 Received: by mail-wm1-f65.google.com with SMTP id o4so15928666wmh.2 for ; Mon, 26 Aug 2019 08:38:55 -0700 (PDT) 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=CCidpFZxLFE4P75q/h/CfR1vG1u9xDP4alk3j8cCjK4=; b=qNlhScVgexKOUnX1CXO5L5VTM3+6OOt/uy67pkmOB8+Yu7/sK/Ltf3M552sAjqt/f/ 49lQ5/Ifb9DzgZX6KXjd3p/+SHhXOUwvUCsjC8Marmk0V7CLXPoiu1upH0YuzxcA1M37 iO/qXocCY+yxzFU8OZvLZKzm+cc+K03DiISYNc6b7Xi+U1bUHHX3W7pgChAvR+lAIri5 zzhO+/vZTRrYKMz5+m2U+NUkr925blkvQHC+bHpeHr0H00vn2OId1s+0WQroLVAULJa8 c0kCb2tu+5DX+jnoJ7pYmB1VBGSCJiwPwhHl5wJ9DoN6BHleQE9zeqj+XYV8D8pYJk5c QLvQ== X-Gm-Message-State: APjAAAWS2Svd6p7w74y0U2fPierOX1YUGZVKoGYmWimdYaHdxzWvH0Ql ZxxlyaJvlljbb4165vGENC5h4cf6isQ= X-Google-Smtp-Source: APXvYqzsbhVljiEuydQ/xlkYaZBrTfAVaxQTlAtSYpAoi/lBDHWGvwGJ2EF8W9qxZmRGghumu+azug== X-Received: by 2002:a1c:a008:: with SMTP id j8mr22556949wme.57.1566833934527; Mon, 26 Aug 2019 08:38:54 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:54 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: linux-kernel@vger.kernel.org Subject: [PATCH 12/12] ARM: dts: imx7d: sbc-iot-imx7: add basic board support Date: Mon, 26 Aug 2019 16:38:00 +0100 Message-Id: <20190826153800.35400-12-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_083856_168383_57C22D7E X-CRM114-Status: GOOD ( 18.34 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.2 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 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andre.draszik[at]gmail.com) 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.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. 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 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 --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx7d-sbc-iot-imx7.dts | 198 +++++++++++++++++++++++ 2 files changed, 199 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 9159fa2cea90..78d51f2f9930 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -591,6 +591,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..6f2af5aa439e --- /dev/null +++ b/arch/arm/boot/dts/imx7d-sbc-iot-imx7.dts @@ -0,0 +1,198 @@ +// 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>; + }; +}; + +&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>; + fsl,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>; + fsl,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>; + fsl,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"; +};