From patchwork Thu Sep 30 15:56:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12528807 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 154BBC433F5 for ; Thu, 30 Sep 2021 15:59:43 +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 D976261507 for ; Thu, 30 Sep 2021 15:59:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D976261507 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Vmx0mq79VHcIfvWYbL4YWakiXkOKscb8Eyg5HPebSR8=; b=FqvXvRhlIJtW4I jt+X1UfXAJwN5b4am7OknNovwhvEapJPc3pzRE/xjgK4P86OuXcix2cbmubFVoIqcb0OwuFRKMNAw tEV2NjAnCj6BnxzrDegeuf2hAyUmq/6ibc4zsHr0rsuMBk5PHx3e+B+GHo0vglzWILgMWYB6wmVln jLAlKuVJK1xa6dvFoc2SXG2uztcygEc4w6Axk8i3ToyztDtDS6a4cwidJdHKFkzWf4ALSJMu1ncQt WzXdNLM6NP75pj8gmWeilr9fFzL4O81AdDhzsDd5Ki74Bm3O6ZRzj3yQcPibTJmCkxdwCP0SFN96a z9WXs++/u2+Q8Mq9QMXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyRd-00F4Pd-D9; Thu, 30 Sep 2021 15:58:01 +0000 Received: from mail.fris.de ([116.203.77.234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyQV-00F3wJ-LU for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 15:56:53 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 67ADFBFC87; Thu, 30 Sep 2021 17:56:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017409; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=7MTFLH0nF2ydDs5hog4J7IiH2Yacxf1aNgYfRZym6Nw=; b=iRgcy0nBiKGFa0osS8HjSayva48QzhhvfHyfRVxKbPufi+3T3C0yaLMBaSStL41ZDfNHGV BFmPFoRKWoD3QDJdz4E1KmuAUdwcPffaPONL5i48z+6h8kUc1uU2GrPLqw37o6tl1zj4Rp fWT0CGUqOONvlQZy8prQQ/BiN4Z6C4OgtXp/QcU33CtXtvY9F/8iL+kv2s02m7XpvDZDtC vcQ1jfX2f/I932KU+wzsXZ3up2bB5pY0Ch2S5+0W3WO3RbObiyMG40qNO3Y1UaPj+0mnlm 1xnzIo3LHh/g+zmReDYpPoH9oj7B2N4c0iMVpLJQgtQ3BsDKyBzjXNab0XYh+w== From: Frieder Schrempf To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: Frieder Schrempf , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 1/8] arm64: dts: imx8mm-kontron: Add support for ultra high speed modes on SD card Date: Thu, 30 Sep 2021 17:56:24 +0200 Message-Id: <20210930155633.2745201-2-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_085651_932233_0C721FB0 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf In order to use ultra high speed modes (UHS) on the SD card slot, we add matching pinctrls and fix the voltage switching for LDO5 of the PMIC, by providing the SD_VSEL pin as GPIO to the PMIC driver. Signed-off-by: Frieder Schrempf --- .../dts/freescale/imx8mm-kontron-n801x-s.dts | 28 ++++++++++++++++++- .../freescale/imx8mm-kontron-n801x-som.dtsi | 2 ++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts index d17abb515835..62ba3bd08a0c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts @@ -189,8 +189,10 @@ usbnet: usbether@1 { }; &usdhc2 { - pinctrl-names = "default"; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>; + pinctrl-1 = <&pinctrl_usdhc2_100mhz>; + pinctrl-2 = <&pinctrl_usdhc2_200mhz>; vmmc-supply = <®_vdd_3v3>; vqmmc-supply = <®_nvcc_sd>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; @@ -319,4 +321,28 @@ MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x019 >; }; + + pinctrl_usdhc2_100mhz: usdhc2grp100mhz { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4 + MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x019 + >; + }; + + pinctrl_usdhc2_200mhz: usdhc2grp200mhz { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6 + MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x019 + >; + }; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi index d0456daefda8..03b3516abd64 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi @@ -86,6 +86,7 @@ pca9450: pmic@25 { pinctrl-0 = <&pinctrl_pmic>; interrupt-parent = <&gpio1>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + sd-vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; regulators { reg_vdd_soc: BUCK1 { @@ -225,6 +226,7 @@ MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3 pinctrl_pmic: pmicgrp { fsl,pins = < MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x141 + MX8MM_IOMUXC_GPIO1_IO04_GPIO1_IO4 0x141 >; }; From patchwork Thu Sep 30 15:56:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12528811 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F1C3C433F5 for ; Thu, 30 Sep 2021 16:00: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 360CA61440 for ; Thu, 30 Sep 2021 16:00:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 360CA61440 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nfCNN/GueVxiMM4XTP5iz+yACIgOPMRpdHqmGGhHwEc=; b=hNmI3I4dkYCg8L cPEsoARC8U9zgR3EcmK9Aj1qyDlc6fY2DftqQEr+TgsBzdURHIX61zA1PUjLPlw2tk6hhQ74SsWJB puMEe9rt0jWrIx9fyV0N0pYB5ohxr5aDJQTMMiEMhv6cjlBOxSHKWME2mgkQvMCo7DbC0lJkBM6aL yvjrm7RA2bLzlA8/2f6Q8wwLxo0AnmLk/jZM4RfUq7lN5Sh2QEwLnj6TWbzXRL2UKy/T8WUwUFfU4 H4x5Q60LtdxeMPx7GXaymHvqRIKQR8uAKGZ2nZJgRIchU5l7gdVGsMcb9ptf5h2JpZWhO4P9AJvbY 3ceFV2Ej9du6yrHeWPyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyRz-00F4XW-F6; Thu, 30 Sep 2021 15:58:24 +0000 Received: from mail.fris.de ([2a01:4f8:c2c:390b::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyQb-00F3z0-Is for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 15:56:59 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E1561BFBD8; Thu, 30 Sep 2021 17:56:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017414; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=IU87R0XSQOesOBA4xIK7GNvQVFsVTZb7Gkj0MIhqEes=; b=1Aioh4dTlVijAtyXdQNT6Sr1VrjuoTchdcdV8AUsilm0KCFsGOwVhQb11qNjTnGKprYmes 74mOqHWN9TvgMcnZ1Dcz133RCXaw5B9Zy1lmrZYyXePOv1lNp3z+dPQN7OOaH8wxwOvhlY C5RZHNvpr+yUwUrL/AsLdOnzvdJ42TppXBmQz/UVfXqe65i2VPKnUPkaZdzCWni7v8CMsz kITSaLy5E6ZYTNQNyoJfIwm4lLriGWZnea5+XPdkK25/B/gnOyW76iHaUoR541hQtvzymK MH9/UCI8FNppMp09qp+xfxazn/XZ7gCraNa6Mxl7Q88L6j6qDekW9XpFcoaaow== From: Frieder Schrempf To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: Frieder Schrempf , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 2/8] arm64: dts: imx8mm-kontron: Make sure SOC and DRAM supply voltages are correct Date: Thu, 30 Sep 2021 17:56:25 +0200 Message-Id: <20210930155633.2745201-3-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_085657_820878_88C325CD X-CRM114-Status: UNSURE ( 9.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf VDD_SOC should be 800 mV in suspend and 850 mV in run mode. VDD_DRAM should be 950 mV for DDR clock frequencies of 1.5 GHz. This information is taken from the datasheet and the uboot-imx code. Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi index 03b3516abd64..b12fb7ce6686 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi @@ -92,10 +92,12 @@ regulators { reg_vdd_soc: BUCK1 { regulator-name = "buck1"; regulator-min-microvolt = <800000>; - regulator-max-microvolt = <900000>; + regulator-max-microvolt = <850000>; regulator-boot-on; regulator-always-on; regulator-ramp-delay = <3125>; + nxp,dvs-run-voltage = <850000>; + nxp,dvs-standby-voltage = <800000>; }; reg_vdd_arm: BUCK2 { @@ -111,7 +113,7 @@ reg_vdd_arm: BUCK2 { reg_vdd_dram: BUCK3 { regulator-name = "buck3"; regulator-min-microvolt = <850000>; - regulator-max-microvolt = <900000>; + regulator-max-microvolt = <950000>; regulator-boot-on; regulator-always-on; }; From patchwork Thu Sep 30 15:56:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12528813 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96E6CC433EF for ; Thu, 30 Sep 2021 16:00: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 527E961555 for ; Thu, 30 Sep 2021 16:00:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 527E961555 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cgnDMmZ8fogezpAyNWbANCmQFrYzbUcEzxHQ+DBrz2Y=; b=UAbFUXQea7RHFX 2XYh+902liUmpapuIHkkBXaadFuKrmcxiVa6dlUvcNHy95IRYn44tqpa3ILwaCg3d9BNTXDNTVVqv JzidWPR5lKANkxnW2IiN7Kzs8s7fJuTqmgACkJZjQY3M7SfdxWHTnQiSymqeAmLD3/54IzfDxIwcB bLlM2s7YHfL/e5iJGGWzsSI22vA9vImMM4MUpl1458aBqTy2N7xCww+uqkGINTtKlW7DNdOPaKAzK AKieFb8DMErk6pbJd3xF6PYfDFAEPxbrigCQ/VCvogH5PCU9CUFfzIoFPhBOXZpFssFul9SM9p8aE HIAqBBa5J6hH+dkNWh3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVySV-00F4jo-0Q; Thu, 30 Sep 2021 15:58:55 +0000 Received: from mail.fris.de ([116.203.77.234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyQf-00F41O-6F for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 15:57:02 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 12663BFC3C; Thu, 30 Sep 2021 17:56:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017419; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=alEtzVuLTEICfKOFXlZGbyKnKgKOip/2lnlXzNX7clA=; b=pd27ZR7mWJcMy5DoHaXlVvvVLSGMOOPW9rMkbCymCOEU5VFZ+obesIqg09PE5GEihgiAYR TApUbCcjUP3bHPodbv9mnuLL/wzH9WoOJvKChOXsrlWzXkwza2n3zD0xoTm1T6GiOEhWJY Qh9piO0Avz0LeDCGwVzHO0Knkst+ZoGuSjKGMjzC+dntFgIXn7KSSZqBJ2LsG6e79Dz7io jkPmADsk3ai5/UpvDO7Vi/VV8JX3sQ0DGhWqO1NDpSDHF4AvzL1d5/eveLGQOaaNFMIENa gvH5YSxiuu2WWTx5DfdoRMxAfcWPo1mLn7dyYsAoj/BE3VOhouFt71Y9O/7j9A== From: Frieder Schrempf To: devicetree@vger.kernel.org, Frieder Schrempf , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 3/8] arm64: dts: imx8mm-kontron: Set VDD_SNVS to 800 mV Date: Thu, 30 Sep 2021 17:56:26 +0200 Message-Id: <20210930155633.2745201-4-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_085701_441128_46F3AA00 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf According to the datasheet VDD_SNVS should be 800 mV, so let's make sure that the voltage won't be different. Fixes: 21c4f45b335f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") Cc: stable@vger.kernel.org Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi index b12fb7ce6686..213014f59b46 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi @@ -152,8 +152,8 @@ reg_nvcc_snvs: LDO1 { reg_vdd_snvs: LDO2 { regulator-name = "ldo2"; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <900000>; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; regulator-boot-on; regulator-always-on; }; From patchwork Thu Sep 30 15:56:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12528815 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4EB4C433F5 for ; Thu, 30 Sep 2021 16:01:12 +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 7E2C061555 for ; Thu, 30 Sep 2021 16:01:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7E2C061555 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qzmNrtKmo3tgLcODcL5lubQ80etELWoIwXXIZFyUbUk=; b=OFA+1AWzFpb501 4+TE4oM5AM0ihlkx5UpmIicWszAatMnkwFBikx5+zEm+xNyO2dRza0d853S7yr2ffgUSTYELznksu Yj6lvgUA/9FCWM4qjTXXNi4Puaz4+hFdeTwQh9uYqrwL1oJ1uGzH/WBzJgI82AIZP6WxpsMXurVxJ +hVYcm7fk31b7Za1evebg5yqLJGaNcrDfpTcd6CouH0F/N1geXsU59aZpXh319gs/dLknDw16/4xM L7YgKmwbw74hH66EZ2RRkht62jKQkNBQbjO0zVDtL6SbF9wawWb08sVWnvqOZQkZ9hJHwp8KOeGB6 LRtopbyX5WMwarwso/3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyT3-00F4z4-LH; Thu, 30 Sep 2021 15:59:30 +0000 Received: from mail.fris.de ([116.203.77.234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyQj-00F43c-H0 for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 15:57:07 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7DFD6BFC87; Thu, 30 Sep 2021 17:57:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017424; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=o35XKi8sP7pTjx9dbzkIl3YkUdYw+egKO5cpgBi69rA=; b=EFB35ltBxViyg9XTKGhg/R/eUQJise6SGORQyf9D5g9qITWt9OKNtkozXNbymghIMK+etw 38eGUoko7ryIAah/WHNRol2ZC+7bNNolEbnm9jyUHIyvo8AkxK4s2g2uqTsECdsaOmhc2T +wo1u3Nmcw13g4gK6OEdUmhyDd3ACyGdjZUDSk6DnSbjlyw+FK4N4bc29EwnHzIJrpdwdQ FTIjoNl6C3isWVbJGGNXe7XSDV96eTwOzh/y/srZo2h1BKIutcMay5yUuTypbzb1u8elOt ax3Lhyd/9zO0tMAuZWwIbwOVJkHYcmcG9zNid4SYIh2nlswWnnW3GsJCiBm94A== From: Frieder Schrempf To: devicetree@vger.kernel.org, Frieder Schrempf , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 4/8] arm64: dts: imx8mm-kontron: Fix reg_rst_eth2 and reg_vdd_5v regulators Date: Thu, 30 Sep 2021 17:56:27 +0200 Message-Id: <20210930155633.2745201-5-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_085705_773498_0210EC05 X-CRM114-Status: GOOD ( 11.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf The regulator reg_vdd_5v represents the fixed 5V supply on the board which can't be switched off. Mark it as always-on. The regulator reg_rst_eth2 should keep the reset signal of the USB ethernet adapter deassertet anytime. Fix the polarity and mark it as always-on. Fixes: 21c4f45b335f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") Cc: stable@vger.kernel.org Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts index 62ba3bd08a0c..f2c8ccefd1bf 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts @@ -70,7 +70,9 @@ reg_rst_eth2: regulator-rst-eth2 { regulator-name = "rst-usb-eth2"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb_eth2>; - gpio = <&gpio3 2 GPIO_ACTIVE_LOW>; + gpio = <&gpio3 2 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; }; reg_vdd_5v: regulator-5v { @@ -78,6 +80,7 @@ reg_vdd_5v: regulator-5v { regulator-name = "vdd-5v"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; + regulator-always-on; }; }; From patchwork Thu Sep 30 15:56:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12528817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB934C433F5 for ; Thu, 30 Sep 2021 16:02:10 +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 8016161267 for ; Thu, 30 Sep 2021 16:02:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8016161267 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9ZmCG/tUJPPsRQujrb1+u9rThD6F4IDtsBTtNYwp0cs=; b=c7gkv8vBmcbjwu oQ4vv2lcTI9B4t9tEzDVUZawKXRJjmkiYgr5/O2zR35DF7FhhUlO+1geRNffoug46iBvhfq1Uei8M /mMdqSWHE2VoCRxoYFvrLIFKIZ2GGqfccoGkTyv6BtT/Umlqx4WBRV8Yjz4PQFUoRiqSDhGRGCzpb mPXFn2GuzmK6oIf3vjV+ViPjKlvKIFSGyI3JyFDHQQ2I/GoAIw9wNFScX87tquFGhgvjyGyzJ792W 3RIyLL6DkLZA/R/82k9uqEDZ0Clo9+W38RcVNmH/713YAPiLXZPfBZe0Wg0zGlct67ra5yld+WEGc JDnNsa5ZPrC86tgjIxXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyTr-00F5Ki-MI; Thu, 30 Sep 2021 16:00:20 +0000 Received: from mail.fris.de ([116.203.77.234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyQo-00F46J-9E for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 15:57:13 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B61A4BFBD8; Thu, 30 Sep 2021 17:57:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017428; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=fq/4Ecd3SDWhNxyRFfxC6ViwOFH6rIsVd8/4VWDJEbo=; b=qeTkR3/Fi2HJPraZCMZszO8aIsq9+39huk7ZEHY5y7erfgAwbgCRTtayxhxPAGbE2ELM+s Yyf3gOeVAk2kOyoKrkCTAEsPx4wYZ6J2KgeNTXe2GfqzbNc2rUi7c5YrCt/5Cx7rtUeGTJ OimZI5hw90qsw/drCyEV/NGVuWMIIXDa4fivt68fzs/9OU94FC82mE1/0AQEcXLbb9X0iM RJ8EFBw8H/qU+gt35m3wgT+DfveXK2oWYf9Wj3HJYvkzd7S9GdX/yBwqOCBZiBITsKS38J 8oVap9CG7cvqRF0M7UmJqbnQee2Po6D1gbwXgbItLPwA7C31QjOex52PD3UStA== From: Frieder Schrempf To: devicetree@vger.kernel.org, Frieder Schrempf , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 5/8] arm64: dts: imx8mm-kontron: Fix CAN SPI clock frequency Date: Thu, 30 Sep 2021 17:56:28 +0200 Message-Id: <20210930155633.2745201-6-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_085710_567937_DBF472C4 X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf The MCP2515 can be used with an SPI clock of up to 10 MHz. Set the limit accordingly to prevent any performance issues caused by the really low clock speed of 100 kHz. Fixes: 21c4f45b335f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") Cc: stable@vger.kernel.org Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts index f2c8ccefd1bf..dbf11e03ecce 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts @@ -98,7 +98,7 @@ can0: can@0 { clocks = <&osc_can>; interrupt-parent = <&gpio4>; interrupts = <28 IRQ_TYPE_EDGE_FALLING>; - spi-max-frequency = <100000>; + spi-max-frequency = <10000000>; vdd-supply = <®_vdd_3v3>; xceiver-supply = <®_vdd_5v>; }; From patchwork Thu Sep 30 15:56:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12528819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34045C433EF for ; Thu, 30 Sep 2021 16:03:15 +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 EFE4B61269 for ; Thu, 30 Sep 2021 16:03:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EFE4B61269 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0Y/JvZngRsbv/R58Z6PJudQib2vyP1WM5/DEyTVC91c=; b=i2nh1TrX92TsqP E7x+L+cafQzJklcPFsMQmFHzm9Z9gCXnPZpwMb+05dV7yVeXTyofWSHbOxs31qpZLmAA7Eatc/V0M vn+mEMQes3j4XJIQPraGBz8NFjPLaxQ5KpDFz5IwErJPTP9gpy/Hw8BcMPLdMGaMbUIO6SQIZnz7b QDYcEfwhmGDEJU6wN2AUtsGGkCTo2hcaCLz+jaB3Rwneubs2BofXS4uwzatPuF4TthuTnwuaiv0vl 02HE6viga6W+smcHN97YtGTCd2VpWrehuQEKnsqR8zezbyUrONLTpTDFn1d22tlct7nNnWy+eenu2 5+TjsRGGlFQbm4LpHLlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyUc-00F5h1-Pq; Thu, 30 Sep 2021 16:01:07 +0000 Received: from mail.fris.de ([2a01:4f8:c2c:390b::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyQs-00F481-FO for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 15:57:16 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6590EBFBF7; Thu, 30 Sep 2021 17:57:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017432; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=U2BMALAc9YdZifU3ydM+t12Cr15TJPxPAwAYvhTKJRM=; b=wodVgWg82W0RW2jGBSZy3Ack4sv2Cq72G5mIVrY5AQJ35k/3T9npty8ZyzVC/8ZPqxFSvv snakMqLHd/3rCQizJL96/JJmYNhG5DFx/gPFfMPe6iDRJwD1Vz9qVAJMAcpHHSU+Sy0OqE 7iA7/J3PUmldAmuRckRDzwJmKk2QWv0ngAZdmLhBXg+DBVBbwbJ25D30TigE2QBn6op6ib dNlZi1JYGMrm74YN99PkwU9wC7yUW/n4POp5na8jIT7euFvrxtlzBCfmnNxDyph8hvyfGy Z1YBruEXRQGjZKzqx/rViC+P6n7/nB1uFZZ6FAK/9fPuKCJ/Dl8liqi786saOg== From: Frieder Schrempf To: devicetree@vger.kernel.org, Frieder Schrempf , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 6/8] arm64: dts: imx8mm-kontron: Fix connection type for VSC8531 RGMII PHY Date: Thu, 30 Sep 2021 17:56:29 +0200 Message-Id: <20210930155633.2745201-7-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_085715_112391_9DA943B7 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf Previously we falsely relied on the PHY driver to unconditionally enable the internal RX delay. Since the following fix for the PHY driver this is not the case anymore: commit 7b005a1742be ("net: phy: mscc: configure both RX and TX internal delays for RGMII") In order to enable the delay we need to set the connection type to "rgmii-rxid". Fixes: 21c4f45b335f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") Cc: stable@vger.kernel.org Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts index dbf11e03ecce..0e4509287a92 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts @@ -114,7 +114,7 @@ &ecspi3 { &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; - phy-connection-type = "rgmii"; + phy-connection-type = "rgmii-rxid"; phy-handle = <ðphy>; status = "okay"; From patchwork Thu Sep 30 15:56:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12528831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B741DC433F5 for ; Thu, 30 Sep 2021 16:04:30 +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 7E37B613A9 for ; Thu, 30 Sep 2021 16:04:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7E37B613A9 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UyzoNK5iKTM+XszMEd2SvUmZQWdblaqWkRpg19a9D4Q=; b=YWoBAfT93oHK3Y NOBEw/5OtpKaMhJ1pUWjSYdzBQN+JmxV6XdwglotrSkixRS636wLSH2CIpwZ5tp/9g1v4Rv5LicTM b8C8wZj/Ro+eXB5SXpYry9AmWKBZvNUh26/k/R4x8/b45IrWSEQnT7T4dfjfG0jM5pGaY+m/3T8rY d2A/MjCa9Dcranu1sVc4gV9wS4iCQIhWwOn04e/zdLxdlpRZvY7pTMIFNZyCP1cXCp4bo8CGhJsO4 3KOtnk5x0DqnQ39vhn9ex1zomuuJUWrODlGRSDa0g53OKKZK5vB/iNR7o7nNBXF9nv/uEY3CVkZIr Vwte7BeW6+YEfeGCndrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyVM-00F5yG-9B; Thu, 30 Sep 2021 16:01:52 +0000 Received: from mail.fris.de ([2a01:4f8:c2c:390b::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyQx-00F4AU-96 for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 15:57:20 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C6017BFBD8; Thu, 30 Sep 2021 17:57:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017437; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=jyAuLIRMAog5EPrq8Q6DzdCiAqb5jHM/M1xGrD1qs3s=; b=ZCipyBabp37loEmSOEbi58LA/tvlEqQsopYHv9zq5CjGIe4QhOB+XU56FA4FuTV9mElF+P DLSXohDDphGBu79I8Q43y7AxXF6wFaQQQjcfKHuq+uCgMaJnxXXfAnbjQXP4Z0OPxnXGCS Cqs3J7zYUjINrW43y6rSBMKfam4/MJ7/H12SOgorIz1bnOKjTSnazf3LHxUFnizjpu8uZZ qvhWLRHcOgvlDyiUAa8csYE6HvJbphr1871fZs/Yf4NpregKOSJDK1NLID9j7XbN++yEjr aIAes+1fnryTLiZq/qUIRBmVh6l1xypzksUwbufcsh8gXFGMno8HQdpeZ/7eGw== From: Frieder Schrempf To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: Frieder Schrempf , Heiko Thiery , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 7/8] arm64: dts: imx8mm-kontron: Fix reset delays for ethernet PHY Date: Thu, 30 Sep 2021 17:56:30 +0200 Message-Id: <20210930155633.2745201-8-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_085719_521548_5B3D1241 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf According to the datasheet the VSC8531 PHY expects a reset pulse of 100 ns and a delay of 15 ms after the reset has been deasserted. Set the matching values in the devicetree. Reported-by: Heiko Thiery Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts index 0e4509287a92..106e13945ae5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts @@ -124,8 +124,8 @@ mdio { ethphy: ethernet-phy@0 { reg = <0>; - reset-assert-us = <100>; - reset-deassert-us = <100>; + reset-assert-us = <1>; + reset-deassert-us = <15000>; reset-gpios = <&gpio4 27 GPIO_ACTIVE_LOW>; }; }; From patchwork Thu Sep 30 15:56:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12528833 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 860A6C433F5 for ; Thu, 30 Sep 2021 16:05:19 +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 4E7F761269 for ; Thu, 30 Sep 2021 16:05:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4E7F761269 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2NsV8t0NX6oRWlJ78ZpqWMToaQvSrbQzQ7pc1++iobk=; b=P2/+s//ql/rVmZ wJJAxQIRz6ey6mQv3i2cccSB7GIy2YnlRX7f5V/UvIXdrCLzsiSfOZIoqUz8OYCRxLTD+WvTlKlro TOKzWBGx5/f7h37r2tJEnR44/UuL73njg8O4dZoSbCVUPsZQVR06uz4h21c7fK21/z5ITRIYYc4x8 M9NTo+d2rrIsJLGtEgfeCqmQ824ESHERQWdjIp/gByjpw+IdgG4jwUOs5iGLVEIg3KISSqekTlc4U YEXtr5ST8ZN1RGShHVQjle7lKLez/NPOzmSo7YWkhTe0r6xcPGIO+IcSxt0wrpN4A8EowIanC8dIF 5cP5mziRaCSe/9h7q/kw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyWI-00F6R4-JN; Thu, 30 Sep 2021 16:02:51 +0000 Received: from mail.fris.de ([116.203.77.234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVyR1-00F4Ci-Ut for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 15:57:25 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7B0DABFBF7; Thu, 30 Sep 2021 17:57:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1633017442; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=vmXGHfv62cic9GjQFFUjFhCG+ijbcaRskAQhxjIcXoE=; b=FZMI34FBsad6MwaZOnpht2abn/MRxRhLG8/VLYj4PqLhqLs/neL/4NhFlQK9BtHnMnvPAf QZTlGyWPQTWEZzOt2pSQELwMdqiuznO8qEKOSGWd1RlcZ1kxlz2Wdq0Lq8873P1GAR2JsI Np8wzJYBmaSCGOa1s/mvtzavGbfeyCd2qSXMzSFcTZEeNnzrD2QGwxu1hl4nws+sSuckJ0 VVyAGWGcK88/H0ZQ7dIKr7HJy5qgHrjtjM8Xut741fgemnIrsiD1U90+PV4glybS4oqPL4 0y4YGsoVNa12ObvEgVlk3zwWMN9c69B6mRkeuoLVhTQM34AFGVE3ypCvXFGvLw== From: Frieder Schrempf To: devicetree@vger.kernel.org, Frieder Schrempf , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: Heiko Thiery , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH 8/8] arm64: dts: imx8mm-kontron: Leave reg_vdd_arm always powered on Date: Thu, 30 Sep 2021 17:56:31 +0200 Message-Id: <20210930155633.2745201-9-frieder@fris.de> In-Reply-To: <20210930155633.2745201-1-frieder@fris.de> References: <20210930155633.2745201-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_085724_198600_76A5602E X-CRM114-Status: GOOD ( 10.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frieder Schrempf When the cpufreq driver is enabled, the buck2 regulator is kept powered on by the dependency between the CPU nodes with 'cpu-supply' set. Without the cpufreq driver the kernel will power off the regulator as it doesn't see any users. This is obviously not what we want, therefore keep the regulator powered on in any case. Reported-by: Heiko Thiery Fixes: 21c4f45b335f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") Cc: stable@vger.kernel.org Signed-off-by: Frieder Schrempf Tested-by: Heiko Thiery --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi index 213014f59b46..c3418d263eb4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi @@ -105,6 +105,7 @@ reg_vdd_arm: BUCK2 { regulator-min-microvolt = <850000>; regulator-max-microvolt = <950000>; regulator-boot-on; + regulator-always-on; regulator-ramp-delay = <3125>; nxp,dvs-run-voltage = <950000>; nxp,dvs-standby-voltage = <850000>;