From patchwork Sun Sep 1 15:57:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786533 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5AA0CCD3420 for ; Sun, 1 Sep 2024 16:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1Ob0e+Qn93ij7b7IP/gAJRwe1k4eBRmfkKD7MG+ku9Y=; b=L2r6QnQzag7bqjzLkA8csQEAb4 FVR0rhErF8txZ+0dwGVQZynG/nIjxEn9IyVvxbWHLufQTlWUfW4o80oHYHrHYSDJ5XHbuqeIHgzd2 mwW6jhck5X+7t0GdUZX9chLJs5xJbQFHBxF2yBFQcGszAeXSgkspKf3qE195AT/SC/CbiX5C7wY2H pfKmJVqjzSEZAqpRYpeaffZ7ax70ETtLSzUgQYW4b18ev19LloGXpTSV80Km3CmLjmwHYkfSJB4dF pod4ARg0gqmO3RHHC/KijgCr3SCdmh4om50AyeL7MNFfGj5fY5ZyNJlF2rvkAG1i8h/99hQXPr3Y5 a01wQ0Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn1m-0000000BtoL-3Qjg; Sun, 01 Sep 2024 16:02:10 +0000 Received: from mail11.truemail.it ([217.194.8.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxS-0000000BsjG-167X for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:46 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 0E6A71F9F1; Sun, 1 Sep 2024 17:57:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206256; bh=1Ob0e+Qn93ij7b7IP/gAJRwe1k4eBRmfkKD7MG+ku9Y=; h=From:To:Subject; b=T9hPvvmtU3tFcc8K/o9OoQXZ4QBU3svlnRyQENkuKCcsGDZis59iIJLVMyJXpWl+l 1VhHhW537nFvOfIr7mycg9izXvX2QC5wUevKfpr0IE3Xsk4j4EI/ZGbwDGmPyUwMr2 VUuKObO239ajmFjlWL4F3y+ClKnod0FARrAAcvg3bjTqHvjlua/hy4BlO5DNsBUbh/ eUw+4niY8xfqrJYvvb9J5BB/z644/a61Y3xRGeT73H/aWU9UZbUVLw0T/7h04Cy1kG Sq7o8Xsgp9q046qA2S19PbSdZErH8mB7xCc5GUcASCakzR1Mazi/FzDFOlqs08bSd9 w++QBy4BOtB6Q== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Emanuele Ghidoli , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v2 01/10] arm64: dts: colibri-imx8x: Add usb support Date: Sun, 1 Sep 2024 17:57:12 +0200 Message-Id: <20240901155721.7912-2-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085743_075103_9A7C4F8D X-CRM114-Status: UNSURE ( 9.96 ) 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: Emanuele Ghidoli Add USB HOST and OTG support to Colibri-iMX8X carrier boards. Signed-off-by: Emanuele Ghidoli Signed-off-by: Francesco Dolcini --- v2: Fix 'id-gpios' property, s/id-gpio/id-gpios/ --- .../dts/freescale/imx8x-colibri-aster.dtsi | 26 +++++++++++++ .../dts/freescale/imx8x-colibri-eval-v3.dtsi | 26 +++++++++++++ .../dts/freescale/imx8x-colibri-iris.dtsi | 26 +++++++++++++ .../boot/dts/freescale/imx8x-colibri.dtsi | 37 +++++++++++++++++-- 4 files changed, 111 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi index bc659066e19a..c02dfdd75b60 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi @@ -7,6 +7,10 @@ &colibri_gpio_keys { status = "okay"; }; +&extcon_usbc_det { + status = "okay"; +}; + /* Colibri Ethernet */ &fec1 { status = "okay"; @@ -38,6 +42,28 @@ &lpuart3 { status = "okay"; }; +/* USB PHY for usbotg3 */ +&usb3_phy { + status = "okay"; +}; + +&usbotg1 { + status = "okay"; +}; + +&usbotg3 { + status = "okay"; +}; + +&usbotg3_cdns3 { + status = "okay"; +}; + +/* USB PHY for usbotg1 */ +&usbphy1 { + status = "okay"; +}; + /* Colibri SDCard */ &usdhc2 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi index 9af769ab8ceb..91de84772e1c 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -23,6 +23,10 @@ &colibri_gpio_keys { status = "okay"; }; +&extcon_usbc_det { + status = "okay"; +}; + &i2c1 { status = "okay"; @@ -90,6 +94,28 @@ &fec1 { status = "okay"; }; +/* USB PHY for usbotg3 */ +&usb3_phy { + status = "okay"; +}; + +&usbotg1 { + status = "okay"; +}; + +&usbotg3 { + status = "okay"; +}; + +&usbotg3_cdns3 { + status = "okay"; +}; + +/* USB PHY for usbotg1 */ +&usbphy1 { + status = "okay"; +}; + /* Colibri SD/MMC Card */ &usdhc2 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi index 8d06925a8ebd..a6b013cc6929 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi @@ -21,6 +21,10 @@ &colibri_gpio_keys { status = "okay"; }; +&extcon_usbc_det { + status = "okay"; +}; + /* Colibri FastEthernet */ &fec1 { status = "okay"; @@ -108,6 +112,28 @@ &lsio_pwm2 { status = "okay"; }; +/* USB PHY for usbotg3 */ +&usb3_phy { + status = "okay"; +}; + +&usbotg1 { + status = "okay"; +}; + +&usbotg3 { + status = "okay"; +}; + +&usbotg3_cdns3 { + status = "okay"; +}; + +/* USB PHY for usbotg1 */ +&usbphy1 { + status = "okay"; +}; + /* Colibri SD/MMC Card */ &usdhc2 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index 49d105eb4769..56de45fb05e7 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -23,12 +23,31 @@ key-wakeup { }; }; + extcon_usbc_det: usbc-det { + compatible = "linux,extcon-usb-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbc_det>; + id-gpios = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>; + status = "disabled"; + }; + reg_module_3v3: regulator-module-3v3 { compatible = "regulator-fixed"; regulator-name = "+V3.3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + reg_usbh_vbus: regulator-usbh-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbh1_reg>; + gpio = <&lsio_gpio4 3 GPIO_ACTIVE_LOW>; + regulator-always-on; + regulator-max-microvolt = <5000000>; + regulator-min-microvolt = <5000000>; + regulator-name = "usbh_vbus"; + }; }; /* TODO Analogue Inputs */ @@ -329,6 +348,20 @@ &lsio_pwm2 { /* TODO On-module i2s / Audio */ +&usbotg1 { + adp-disable; + disable-over-current; + extcon = <&extcon_usbc_det &extcon_usbc_det>; + hnp-disable; + power-active-high; + srp-disable; + vbus-supply = <®_usbh_vbus>; +}; + +&usbotg3_cdns3 { + dr_mode = "host"; +}; + /* On-module eMMC */ &usdhc1 { bus-width = <8>; @@ -356,10 +389,6 @@ &usdhc2 { no-1-8-v; }; -/* TODO USB Client/Host */ - -/* TODO USB Host */ - /* TODO VPU Encoder/Decoder */ &iomuxc { From patchwork Sun Sep 1 15:57:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786532 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 68659CD3420 for ; Sun, 1 Sep 2024 16:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=8K6JD5FK2M93e8eYmr95cJOrSvI5mOVv6u4803sZynU=; b=BJiZyXduDMlbxhZWQCoQhANv0I SyKU2O9P2GSNqY8AGavZbNJZrhYa/bbqn1wma9OB+NaDu46pjVf9rJuSEidebpvlNYbRlws+GaICh nAgYOKik9CeXvBbcztCQ78w+wPD4vPwOzXGLU5p6wGbfFhXDpJAaOjkDOqZrMiJV9KG5j+ULLzkAA YKuh2tfNLovmG5YWSrrP3dGemAlmp0tkOUXaTVZGMk5wkE/0iOHYZrEVyF2KEUDFDIhD1zEFz6Cpb n4uU++vVIKQ9SYqiNw1gqnIE7EI8r8JeSphIkC93nzePJldxTJjjPcNIDPYZeSmHBLTqPocNQPt+z w5v6X5EQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn0w-0000000Btfx-2cwx; Sun, 01 Sep 2024 16:01:18 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxS-0000000BsjJ-19YW for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:46 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id A47EA1FA18; Sun, 1 Sep 2024 17:57:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206257; bh=8K6JD5FK2M93e8eYmr95cJOrSvI5mOVv6u4803sZynU=; h=From:To:Subject; b=DNlMVPKzo0AU6Pw6nLWxr0N1nQnijJIoQlBS5a9MLupMWKsIrFz+AvYa01kfixQPi h7/dzR2NRJVlj71deeRJ9ZY7WpxZAAR5jckpVHRegx9ZWsDH5xkqAtyAB6q40iDp8x vE0ZXzcbFrlGFT/KsZTome3ltza3JFOpXRzptn73tjI7VXarL8yfx6gJmthbDZGXR6 2Eq53sEzA+Oy9q+raTcIRRUIfhu3ZqR2ly1EZusC5FI2bEiWSaZCQRs6Qywkq4EaGz uHBuy/NuAieC0WrCaKlnrAt0854piWTQIviONPT3Osw7tqcJC+L7+IftsFCsanuqDT rP3QzHXQ1Qerw== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v2 02/10] arm64: dts: colibri-imx8x: Add analog inputs Date: Sun, 1 Sep 2024 17:57:13 +0200 Message-Id: <20240901155721.7912-3-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085743_105360_B6A6C6C4 X-CRM114-Status: GOOD ( 10.43 ) 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: João Paulo Gonçalves Add adc nodes for analog inputs support for all Colibri-iMX8X carrier boards. Signed-off-by: João Paulo Gonçalves Signed-off-by: Francesco Dolcini --- v2: no changes --- .../boot/dts/freescale/imx8x-colibri-aster.dtsi | 5 +++++ .../boot/dts/freescale/imx8x-colibri-eval-v3.dtsi | 5 +++++ .../boot/dts/freescale/imx8x-colibri-iris.dtsi | 5 +++++ arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 14 +++++++++++++- 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi index c02dfdd75b60..503aa5a90503 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi @@ -3,6 +3,11 @@ * Copyright 2018-2021 Toradex */ +/* Colibri Analogue Inputs */ +&adc0 { + status = "okay"; +}; + &colibri_gpio_keys { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi index 91de84772e1c..a2b2a0865666 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -19,6 +19,11 @@ clk16m: clock-16mhz { }; }; +/* Colibri Analogue Inputs */ +&adc0 { + status = "okay"; +}; + &colibri_gpio_keys { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi index a6b013cc6929..6d9d54d4e549 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi @@ -17,6 +17,11 @@ reg_3v3: regulator-3v3 { }; }; +/* Colibri Analogue Inputs */ +&adc0 { + status = "okay"; +}; + &colibri_gpio_keys { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index 56de45fb05e7..d88f2dd20afa 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -38,6 +38,13 @@ reg_module_3v3: regulator-module-3v3 { regulator-max-microvolt = <3300000>; }; + reg_module_vref_1v8: regulator-module-vref-1v8 { + compatible = "regulator-fixed"; + regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-name = "vref-1v8"; + }; + reg_usbh_vbus: regulator-usbh-vbus { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -50,7 +57,12 @@ reg_usbh_vbus: regulator-usbh-vbus { }; }; -/* TODO Analogue Inputs */ +/* Colibri Analogue Inputs */ +&adc0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc0>; + vref-supply = <®_module_vref_1v8>; +}; /* TODO Cooling maps for DX */ From patchwork Sun Sep 1 15:57:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786529 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C0418C54FC6 for ; Sun, 1 Sep 2024 15:58:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bbgIXRbk6h0Jgo5jOxc1Jg4WIH37efdJl8/8+iAAz7k=; b=ad59bvgaS92Kez6EC9LKpDSaCV vipN2PvLdZ6a7CatUKtJIy/YnHw6UzMBr6VXZqLvvDlAiBfxHukEGqPx1fOZCakBxHoHCQ190bCiA Fed8FiSDNjZVDVD8mXt79dIY8xF+pdxwKYnDKHzyno8QifN0OLKL0QREBEcpAtuV/Khcalutrd2xp Hsyf4cUCEzrxHEnL2A8ikHjiGPhmrfrwulWu4OBY9af9d2MkH7kowfW56s+A2ObPzr1HLCT7yNc8m l299SYU2wPSacuih0N1dzVYNigr3YWWrjauOvMoPKddV3k3pYykgBzNIbM0PgmbF9ufLMLrPa3W04 ZZSQ90Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmyN-0000000Bsyj-31k8; Sun, 01 Sep 2024 15:58:40 +0000 Received: from mail11.truemail.it ([217.194.8.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxS-0000000BsjK-148g for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:44 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 466F01FA1D; Sun, 1 Sep 2024 17:57:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206257; bh=bbgIXRbk6h0Jgo5jOxc1Jg4WIH37efdJl8/8+iAAz7k=; h=From:To:Subject; b=onXNPUZ5hAIqarXic4LWsumUxdcpfCKWZ7Ae4Z+pBQhXbqH54h8VLki5aT/OPJ/+M +nwspx1Eux1TQ3M+H6UmPJXtfYIWv2qf7X+zJ2iZ1qvrzeOs3kVCpnz+f7k+thD6TS IGRA0KzUic++UkQ+zL0ENu8rrRa0Hq/fKWYb8I3R5FHG4GbqFAXpnc8RcwrnbZ/JD5 KdyQrsrNX6sC+EJjFq3SH348jn/HUZIPk0doBcbTOukUJRDlYYgfkgry5+NPc7dZfe Wo2VP6/WTuQdrE2RJDxE1w1xMwORN8Am15an2gCm6m0RkfcQx6xGuZf1uLgimL8CO9 xbd/Ze11wD1BA== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Francesco Dolcini , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/10] arm64: dts: colibri-imx8x: Add fxl6408 gpio expander Date: Sun, 1 Sep 2024 17:57:14 +0200 Message-Id: <20240901155721.7912-4-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085743_079267_B2F7F4DA X-CRM114-Status: UNSURE ( 7.99 ) 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: Francesco Dolcini Add fxl6408 gpio expander, this is required for Wi-Fi, Bluetooth and USB functionalities. Signed-off-by: Francesco Dolcini --- v2: no changes --- arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index d88f2dd20afa..210db574b425 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -108,6 +108,21 @@ touchscreen@2c { adi,conversion-interval = /bits/ 8 <255>; status = "disabled"; }; + + gpio_expander_43: gpio@43 { + compatible = "fcs,fxl6408"; + reg = <0x43>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "Wi-Fi_W_DISABLE", + "Wi-Fi_WKUP_WLAN", + "PWR_EN_+V3.3_WiFi_N", + "PCIe_REF_CLK_EN", + "USB_RESET_N", + "USB_BYPASS_N", + "Wi-Fi_PDn", + "Wi-Fi_WKUP_BT"; + }; }; /* TODO i2c lvds0 accessible on FFC (X2) */ From patchwork Sun Sep 1 15:57:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786531 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A408FC54FC6 for ; Sun, 1 Sep 2024 16:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=KovUm7gxradhL47FySE0BJ+erGrrKC+Oq0JDZl3e670=; b=u8jZd2/dhr8zRvH6duVb21zuLw 9hzD1Z/XA5CCZFfSvrCIJ6CayGvVhvdGrBfv/K1xqFh7hWdrAVXnNARdGSroi3sAJ5nCQ66f8YFLF Awa8LZProG28sY8SMRFRBcAdlTGuQCV8BztWVbYN6ukXb8pYFNt/WLNq/zH6+rKP5LAl9hL4Oi1U7 wdOd989ZryfBzOErHH3Tddg322RpFXuNhPWk435FcPljkdmwWQ9UUOnk/Q4WLXXfW3HGToR8jOG2m 94CGZxS3XlvCmJ0f5hFVQsIZPIPfWYLkNW4MjovCP2ecMKcDw99vQ80xISy640AFNgt7f6YKkC4Yh Uv38FFDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn05-0000000BtSS-2HMK; Sun, 01 Sep 2024 16:00:25 +0000 Received: from mail11.truemail.it ([217.194.8.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxS-0000000BsjM-13Fr for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:45 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id DC7EB1FA59; Sun, 1 Sep 2024 17:57:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206258; bh=KovUm7gxradhL47FySE0BJ+erGrrKC+Oq0JDZl3e670=; h=From:To:Subject; b=RPwhOCUPP40Pf7kjkF91XyIZ83X4ws79yzffJiGSWVmpSVldprSMhgdfqsVv1+WlS 3HpToBp+jH/O2CfbvOkHcLhHHeEAanXADugjdw4UaTvQCLz1WhjyNjlt8y/+RcEK5R fRucT5LrsWNV1BoCEJA+KRCcYhgRK1dhjuVe7CwkO1bpZ9lYKH/01pIoj1DgR3ARUR LZJpsnfUi8NHSMTY3LbtPLC26xaIhKefydvBKpZo/fmRzVMcDelz//BELZc625UTpz y+425xP3ExcuG2jI8X6LuNBX5qOmTwpQ1OOU+BsEjwJbWFPh/t7h+GZcAlgd409Sla b8OWZ8j3nl1pw== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v2 04/10] arm64: dts: colibri-imx8x: Add sound card Date: Sun, 1 Sep 2024 17:57:15 +0200 Message-Id: <20240901155721.7912-5-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085743_062494_314E0EDF X-CRM114-Status: GOOD ( 10.43 ) 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: João Paulo Gonçalves Add audio support for Colibri-iMX8X sound card. Signed-off-by: João Paulo Gonçalves Signed-off-by: Francesco Dolcini --- v2: sort i2c nodes by address fixup sound card --- .../boot/dts/freescale/imx8x-colibri.dtsi | 47 ++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index 210db574b425..60cf4e400052 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -38,6 +38,13 @@ reg_module_3v3: regulator-module-3v3 { regulator-max-microvolt = <3300000>; }; + reg_module_3v3_avdd: regulator-module-3v3-avdd { + compatible = "regulator-fixed"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "+V3.3_AVDD_AUDIO"; + }; + reg_module_vref_1v8: regulator-module-vref-1v8 { compatible = "regulator-fixed"; regulator-max-microvolt = <1800000>; @@ -55,6 +62,23 @@ reg_usbh_vbus: regulator-usbh-vbus { regulator-min-microvolt = <5000000>; regulator-name = "usbh_vbus"; }; + + sound-card { + compatible = "simple-audio-card"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,format = "i2s"; + simple-audio-card,frame-master = <&dailink_master>; + simple-audio-card,name = "colibri-imx8x"; + + dailink_master: simple-audio-card,codec { + clocks = <&mclkout0_lpcg IMX_LPCG_CLK_0>; + sound-dai = <&sgtl5000_a>; + }; + + simple-audio-card,cpu { + sound-dai = <&sai0>; + }; + }; }; /* Colibri Analogue Inputs */ @@ -91,6 +115,21 @@ &i2c0 { pinctrl-0 = <&pinctrl_i2c0>, <&pinctrl_sgtl5000_usb_clk>; status = "okay"; + sgtl5000_a: audio-codec@a { + compatible = "fsl,sgtl5000"; + reg = <0xa>; + #sound-dai-cells = <0>; + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&mclkout0_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, <49152000>, <12000000>, <12000000>; + clocks = <&mclkout0_lpcg IMX_LPCG_CLK_0>; + VDDA-supply = <®_module_3v3_avdd>; + VDDD-supply = <®_module_vref_1v8>; + VDDIO-supply = <®_module_3v3>; + }; + /* Touch controller */ touchscreen@2c { compatible = "adi,ad7879-1"; @@ -373,7 +412,13 @@ &lsio_pwm2 { /* TODO on-module PCIe for Wi-Fi */ -/* TODO On-module i2s / Audio */ +/* On-module I2S */ +&sai0 { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai0>; + status = "okay"; +}; &usbotg1 { adp-disable; From patchwork Sun Sep 1 15:57:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786541 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 20F06C54FC6 for ; Sun, 1 Sep 2024 16:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=uqCIwId1TqaArpD+Ua/VfFXHA7izDHzS5SszDWKTAx0=; b=H6swuqCRWRw+402wM8vQL7dsQX /GCBc/cwY10J/bReKufm3yrXgXELswghVeD3eeXW19EOj7bIV69gigeuIkWlRBmvnQFHpSJKRpYwi O+U1wshBHnDI/zjJyUCvFbY1agNaq+rVGV/XaxEAyF94UBUxidGflwXAggU3QmODEpK1YivHhQn2t BqULpi6EbGNHO9IeAMrkDsypEERhKn64UG5+ybAO2s1AToKyI5yatdwI70wmi3x/0rZqyVWFoV0A7 +DOjRYY78cajC9xZgCo2hsfQzFAOOLIbv49VnZuZ1pocacotuffrbtOGBEYI+Ehw5fAg8giffEKQp fiEweCMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn2c-0000000BtuD-3fSu; Sun, 01 Sep 2024 16:03:02 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxW-0000000Bskk-0mXN for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:47 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 7E2C51FA62; Sun, 1 Sep 2024 17:57:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206258; bh=uqCIwId1TqaArpD+Ua/VfFXHA7izDHzS5SszDWKTAx0=; h=From:To:Subject; b=w94XTqetAK0JcK49Hm1OqBLcbrIsXQOw8ck+PQxXWFqEByQ0SUKa+R/hz6QEGZNSJ NFnK0Rha4QUTP0NAdOgXeSK7VmXc4gGHsYONRqQGtJj5/8tYOA1C1ZEdyrDMDfnPrX 8l7cH4r/n3/JTJp/NaZ3aQI2axMgtmhGJz8PGDkI4uSqvHSOFcU/YN1jllx11IHm3l ZFlSTkcDaOxxskZiCgHo77dZynz1pbG86gwVOgXf09/yVctQVcyV4670j2Zyd8weMM XyQjXHAs/4OejBCWE+wM09M7k0ivfXfoF6VkWtCoiNgXUcSFHrum2oGo1tEqul6q6J eDANk7nwtZ3cA== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Francesco Dolcini , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 05/10] arm64: dts: colibri-imx8x: Add PMIC thermal zone Date: Sun, 1 Sep 2024 17:57:16 +0200 Message-Id: <20240901155721.7912-6-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085746_413868_DBA45E72 X-CRM114-Status: UNSURE ( 9.81 ) 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: Francesco Dolcini Add PMIC thermal zones. Signed-off-by: Francesco Dolcini --- v2: no changes --- .../boot/dts/freescale/imx8dx-colibri.dtsi | 11 ++++++ .../boot/dts/freescale/imx8x-colibri.dtsi | 34 +++++++++++++++++-- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8dx-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8dx-colibri.dtsi index 66b0fcc6687d..4d1ad052c5b6 100644 --- a/arch/arm64/boot/dts/freescale/imx8dx-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8dx-colibri.dtsi @@ -9,3 +9,14 @@ / { model = "Toradex Colibri iMX8DX Module"; }; + +&thermal_zones { + pmic-thermal { + cooling-maps { + map0 { + cooling-device = <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index 60cf4e400052..bc1577b5f1ea 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -88,8 +88,6 @@ &adc0 { vref-supply = <®_module_vref_1v8>; }; -/* TODO Cooling maps for DX */ - &cpu_alert0 { hysteresis = <2000>; temperature = <90000>; @@ -420,6 +418,38 @@ &sai0 { status = "okay"; }; +&thermal_zones { + pmic-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_PMIC_0>; + + trips { + pmic_alert0: trip0 { + temperature = <110000>; + hysteresis = <2000>; + type = "passive"; + }; + + pmic_crit0: trip1 { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + pmic_cooling_map0: map0 { + trip = <&pmic_alert0>; + cooling-device = <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A35_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A35_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; +}; + &usbotg1 { adp-disable; disable-over-current; From patchwork Sun Sep 1 15:57:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786542 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 213E2CD3420 for ; Sun, 1 Sep 2024 16:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xLI6E86Pd+rLiDpAMzs0yyOFhgf2TdCupbACQnH+AxY=; b=ft1VhZwkthQ4XUa7ImbR7yyYg0 ++SERsINkeAA5tam9pk3NiDFQ2qMiFiUkEK+9cTRUBTluNB2G3SNx4IbNx4Xveqs3g+UEQ8ZPpAz9 AeDu6kuI9b419Vl8yktYaZ5N/zC4VhigcNAjzLrJ/LgwNsDado+Nh7LbIMuPkSuy3y1JbZ0P+0wv4 4PQZwG/fe+cj62TerfiLmFC0d+u3/muvrDo+ewriyV2kB+CXjiDZIkXMCfw1RB/uP9zMRNbnVVs2c 7OdeZqakidLOZCtEpzaMSnA+C8kXOhD9bxl3xRiurJp4I72e/qnkyAemZeamPNkbNESVMqXfFB3bc CbeSp+BA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn3S-0000000Bu1A-3POS; Sun, 01 Sep 2024 16:03:54 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxW-0000000Bskl-0nnS for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:48 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 200161FA90; Sun, 1 Sep 2024 17:57:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206259; bh=xLI6E86Pd+rLiDpAMzs0yyOFhgf2TdCupbACQnH+AxY=; h=From:To:Subject; b=Ku/ueXl3vVHOI9m0MudUaWOSKSSHGZkq2QjUqirBC/ebWD/ki1bzga30EtCxuUvro rOzbHolF6a1+W1EBY+e1NDxfO8xLbQitQIqoNLs3mrHeADg3T46xG1e58bWFqNKGRn 9SOZNEUNDZn8/kZCkufqW8/zDL5u8j05v/5WWaq3p5dIN3I4xhz5w8lzenNqQzORsi Z2aotMXi6qUxHfBIIvz/bwxdVBLE3GNbyKZOk/oIv+B6x0Pkyi/6Jy+yTIPET3n3XV atVgdLZE7ItgAi2YQomAxvV7/2qGHQ7TEtRO3YWUpFU6m67Vwg9IDKTmF8nx0uJ1wU Nu3hcU1jzAA7g== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Francesco Dolcini , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/10] arm64: dts: colibri-imx8x: Add USB3803 HUB Date: Sun, 1 Sep 2024 17:57:17 +0200 Message-Id: <20240901155721.7912-7-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085746_416432_2DE33A12 X-CRM114-Status: UNSURE ( 8.33 ) 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: Francesco Dolcini Add USB3803 HUB, this is required for Bluetooth and USB functionalities. Signed-off-by: Francesco Dolcini --- v2: no changes --- .../boot/dts/freescale/imx8x-colibri.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index bc1577b5f1ea..f929c5f07e64 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -113,6 +113,26 @@ &i2c0 { pinctrl-0 = <&pinctrl_i2c0>, <&pinctrl_sgtl5000_usb_clk>; status = "okay"; + /* USB HUB USB3803 */ + usb-hub@8 { + compatible = "smsc,usb3803"; + reg = <0x8>; + assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>, + <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>, + <&mclkout0_lpcg IMX_LPCG_CLK_0>; + assigned-clock-rates = <786432000>, <49152000>, <12000000>, <12000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb3503a>; + bypass-gpios = <&gpio_expander_43 5 GPIO_ACTIVE_LOW>; + clocks = <&mclkout0_lpcg IMX_LPCG_CLK_0>; + clock-names = "refclk"; + disabled-ports = <2>; + initial-mode = <1>; + intn-gpios = <&lsio_gpio3 4 GPIO_ACTIVE_LOW>; + reset-gpios = <&gpio_expander_43 4 GPIO_ACTIVE_LOW>; + }; + sgtl5000_a: audio-codec@a { compatible = "fsl,sgtl5000"; reg = <0xa>; From patchwork Sun Sep 1 15:57:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786543 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3A0D9CD3420 for ; Sun, 1 Sep 2024 16:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=5Myt184EA2rjc3VnEo4tydZ1Ip2r77/PxY4ntdfv7fs=; b=qR3pz50i3pAY0LpZx0noacNZS1 9yHqghwQVM3Psqiyokud6oqnwXcSyjF+bVz6/h1Y9TG0Oxo40zIx2rF8rScqjnZJlymeudRLXLeS+ Y4E2pqnz80ocLx6/IOIv0OFCWidB4Yhx70lCQC2y73Hr8Ck+PnDJlg0nmFu631RKksXsNW6FxoiWe BfgYT3u00IOQQZHcmvXsqhlrVPa76ITAczKtPnGIvfl0rM3LupWArHtFumlF2e7SmTk4EyAAlkxqX QoTywg4viySWHiiLvoTNF35rH+Yy/BhjqkHAsNZQqCrcdZTfrK9wyLUoQq9doteucprDOCBrb+cEF yOZCjvZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn4I-0000000Bu7E-2WrB; Sun, 01 Sep 2024 16:04:46 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxW-0000000Bskt-3Kp0 for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:48 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id B64D81FB1F; Sun, 1 Sep 2024 17:57:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206260; bh=5Myt184EA2rjc3VnEo4tydZ1Ip2r77/PxY4ntdfv7fs=; h=From:To:Subject; b=i9VwIEJCaihy9eILIXS2CZ9jhEJE1PTkaunyB7lD4Nw1VXtgHoxDdNCfBhxyMnE7s jeMegmC70/OMPG6RIZI3Ets7t6P/zRR26P8uAQQA5b055oYeOAyla2hX7SOF/2Qz3q YUeU3pD11xVDwbjK3d272/h8Xt0/+MvMWjfdmL1dn2xeNnJSYLxBSMcYsE2BjfGJg3 N3FmEmW5whnjOfemHqmaqj2nOpoHgrlYhEwJhY1jVzv4E4FVg9OtCQk5yXAqFPMyRK SGIvJaxFkf3s7Wtk/PjAxJygsOrRjoPHWy5IGeO0CufKQSMhEPWLb0GrroWXT3T0Pj HKnBwEh9RCrmg== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v2 07/10] arm64: dts: colibri-imx8x: Add vpu support Date: Sun, 1 Sep 2024 17:57:18 +0200 Message-Id: <20240901155721.7912-8-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085747_029478_2894ACC0 X-CRM114-Status: UNSURE ( 9.83 ) 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: João Paulo Gonçalves Enable VPU on Colibri-iMX8X. Signed-off-by: João Paulo Gonçalves Signed-off-by: Francesco Dolcini --- v2: no changes --- .../boot/dts/freescale/imx8x-colibri.dtsi | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index f929c5f07e64..cc1a0a26fcec 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -424,6 +424,15 @@ &lsio_pwm2 { pinctrl-names = "default"; }; +/* VPU Mailboxes */ +&mu_m0 { + status="okay"; +}; + +&mu1_m0 { + status="okay"; +}; + /* TODO MIPI CSI */ /* TODO MIPI DSI with DSI-to-HDMI bridge lt8912 */ @@ -511,7 +520,24 @@ &usdhc2 { no-1-8-v; }; -/* TODO VPU Encoder/Decoder */ +&vpu { + compatible = "nxp,imx8qxp-vpu"; + status = "okay"; +}; + +/* VPU Decoder */ +&vpu_core0 { + reg = <0x2d040000 0x10000>; + memory-region = <&decoder_boot>, <&decoder_rpc>; + status = "okay"; +}; + +/* VPU Encoder */ +&vpu_core1 { + reg = <0x2d050000 0x10000>; + memory-region = <&encoder_boot>, <&encoder_rpc>; + status = "okay"; +}; &iomuxc { /* On-module touch pen-down interrupt */ From patchwork Sun Sep 1 15:57:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786544 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 45FCECD3420 for ; Sun, 1 Sep 2024 16:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=T42bUGqwk0p0W8pIULO87aKB2+HshwN8ZFTvo+g8NME=; b=Wfx9ih1zh8FwCqXnhajG5KS/pi ZKh0IlK0sqq7LJNs1rnDZSMAuNLAyFJ5r6FVeo9Z5LEr3CVsMbB0aXxV7SpeKLYoKLtOD5fw0fBBU ZLfZJl6ccL1MQ6/Zo2rdMMEw+p/ZR0vd8/HOBg+WP8/cvCY7s4aco6/qAS4fTWkcHqS26Fo0wx0YY /JVAc88NzfumBvnVLmlXosxDqOb+mmQpDfiQDSUqMvrgZx51JbmGizCvNh8g9R0uVsBi890SuD6qD qMkt0g2cyypMjPtvrvEhdfH6MRvz4HtsZFbRWkKbUmG2Wh7aBNJIQwWt/A5cdyPGR6FVpnaQGbr9n 5SqtHjrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn59-0000000BuFR-0wDb; Sun, 01 Sep 2024 16:05:39 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxW-0000000Bsks-3KtE for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:49 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 4AA5B1FB20; Sun, 1 Sep 2024 17:57:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206260; bh=T42bUGqwk0p0W8pIULO87aKB2+HshwN8ZFTvo+g8NME=; h=From:To:Subject; b=YY/Gg36FfRdwA9fQZzCOEZqeuBUjKoE8OgOmMWVMHf1HrOhSUoV/BsVo24DkUi1HX DgiSn4PoeA+BQIdV0hCmFmTLCiHWm4u314UVh+GwkJpkHlJwZgceB1aIeY8MBpl1Z5 gl5WYVj9VjDuqIlrwH0aBgeccEh6+Y9egIPejKkmizJagdtsnXPshgXcsP7ZUhX3Xy bpXLyi+w7gS3ib5mJQDnKWiFlE+R/Jlzr7yzmd7Z8FqZAZPVEzN5Thw7jN4emPX3jo lriIUsw3nmIkxOG/uW5MTib3vZQv5iz9kGGmmRVSQhsJqBjoeUhjWc/ZXUm4yEMdNv 7xnEG8Xbb2cgw== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v2 08/10] arm64: dts: colibri-imx8x: Add adma_pwm Date: Sun, 1 Sep 2024 17:57:19 +0200 Message-Id: <20240901155721.7912-9-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085747_062261_308E413E X-CRM114-Status: UNSURE ( 8.29 ) 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: João Paulo Gonçalves Add adma_pwm node for Colibri-iMX8X carrier boards. Signed-off-by: João Paulo Gonçalves Signed-off-by: Francesco Dolcini --- v2: no changes --- arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi | 5 +++++ arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi | 5 +++++ arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi | 5 +++++ arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 6 ++++++ 4 files changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi index 503aa5a90503..f7bbb2153ae0 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-aster.dtsi @@ -8,6 +8,11 @@ &adc0 { status = "okay"; }; +/* Colibri PWM_A */ +&adma_pwm { + status = "okay"; +}; + &colibri_gpio_keys { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi index a2b2a0865666..f75499765d85 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -24,6 +24,11 @@ &adc0 { status = "okay"; }; +/* Colibri PWM_A */ +&adma_pwm { + status = "okay"; +}; + &colibri_gpio_keys { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi index 6d9d54d4e549..54393a0c5cbf 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-iris.dtsi @@ -22,6 +22,11 @@ &adc0 { status = "okay"; }; +/* Colibri PWM_A */ +&adma_pwm { + status = "okay"; +}; + &colibri_gpio_keys { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index cc1a0a26fcec..7a40a827ef75 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -88,6 +88,12 @@ &adc0 { vref-supply = <®_module_vref_1v8>; }; +/* Colibri PWM_A */ +&adma_pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_a>; +}; + &cpu_alert0 { hysteresis = <2000>; temperature = <90000>; From patchwork Sun Sep 1 15:57:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786546 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 11D31CD3420 for ; Sun, 1 Sep 2024 16:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=C7ZOumTw1p40Es14ioXFW4jyqIiwFLtpXfMrrFijnPs=; b=NJqaFCeZXbCXWGnpg4e77Peq/Y WYq95mJot7fxz6n/ilEdn8M6rIleCAPUK/Duarhea3X+TjdWqqzrAtLVhqjPK/aBbUCQAzLP9s6Z1 RwXI7jg5oKjFcb1whJ4ccC2qckxEOkbi0qfWHYTW11ab0Gf5ctszsi5UJ6N/LxWzljPVjYsWMcsP+ 6igk9hW6dwhxtl4V2aZeU3GIAk+XwbdsWMzBZpVXqBKVQ7iQNyBA7zXyPf0IzPwMj6bbVvrYACPh5 s8Pu9d1xKUTd/gzHemgbszX2nzWtGfaIuFFoBta415hhtYBjY8qpzRdzbFLsIrAEJr2MCyDq3TWzT WUo1n49g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn6p-0000000BuVs-1Jq7; Sun, 01 Sep 2024 16:07:23 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxX-0000000BslC-1VJa for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:50 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id D603A1FB21; Sun, 1 Sep 2024 17:57:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206261; bh=C7ZOumTw1p40Es14ioXFW4jyqIiwFLtpXfMrrFijnPs=; h=From:To:Subject; b=KtH+u+p0NeBh2WQFw1lhOvD0/G5ZQD9etbivqCMe+l2DVt/PNHQFP0OmfEoXJUENk CdXqfVMPaocsWBpAza/YETOM93tXRDKmDKGOmwneHLC/sUnKUqHCcjbaXMwQjqTaE/ ox2yBaW2y97nyLgFunR1+L5SQPXb9jQv0bTbAUN90naBrR8+p7p9l4+EDK9+k4WW/K kjagGEhOtUxJ9mQDWbOoMD4UOfLOrO2y5B+Jmj/VHAcPXTrJOzhBUCbq0cGM4Jl5P4 AjXJSAESAUEV5B0Ox5EFAxmcA9DFPsyzTsw4gY83/Ju1qkJ0sJ80y5kuQnyeiNE3Il z9dr1kJWXRlYg== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Philippe Schenker , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v2 09/10] arm64: dts: colibri-imx8x: Add 50mhz clock for eth Date: Sun, 1 Sep 2024 17:57:20 +0200 Message-Id: <20240901155721.7912-10-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085747_600192_AD9875BC X-CRM114-Status: UNSURE ( 9.08 ) 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: Philippe Schenker Change enet0_lpcg to get the clock value needed in Colibri-iMX8X for 100mbps ethernet. Signed-off-by: Philippe Schenker Signed-off-by: Francesco Dolcini --- v2: no changes --- arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index 7a40a827ef75..cf689904c166 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -106,6 +106,21 @@ &cpu_crit0 { type = "critical"; }; +&enet0_lpcg { + clocks = <&clk IMX_SC_R_ENET_0 IMX_SC_PM_CLK_PER>, + <&clk IMX_SC_R_ENET_0 IMX_SC_PM_CLK_PER>, + <&conn_axi_clk>, + <&clk IMX_SC_R_ENET_0 IMX_SC_C_DISABLE_50>, + <&conn_ipg_clk>, + <&conn_ipg_clk>; + clock-output-names = "enet0_lpcg_timer_clk", + "enet0_lpcg_txc_sampling_clk", + "enet0_lpcg_ahb_clk", + "enet0_lpcg_ref_50mhz_clk", + "enet0_lpcg_ipg_clk", + "enet0_lpcg_ipg_s_clk"; +}; + /* TODO flexcan1 - 3 */ /* TODO GPU */ From patchwork Sun Sep 1 15:57:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13786545 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 37675CD3420 for ; Sun, 1 Sep 2024 16:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=RNvOcUq9hCoNQl4k0iHcvMfQMn0dWq6B44up8cQLmwA=; b=x1wAwPIL9o4DLLxNUzgp6HMh0C UDwrbL4VbAtf5xXJAKtzfamo3pe1oOVsUFgv4WVfzq4h5VKRzsws3rUbAsMTk0y4klSzWdqeWpI+R P5yk33Jx3Krhlst84FTbD37Btj5hQJHow3zKJbO2DExvQNgriBJK3yNDZngJ5qspmmyRkGz4GFhtu kxWA3JZkE93S5GTVjGRodqDzUE/HT3Gfm36tez/N4IuR+kpUyY3SASfL8UY4xusipls3NP/M7c8/g ++RCsmg/fpruN7IJh1nO6hL33jWo8QSKZFwU5zGy+8gXAiVzH4CWjD535YQbSMMT64zrpFC/H5NU6 GZR6tBmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skn5z-0000000BuLb-1Tlq; Sun, 01 Sep 2024 16:06:31 +0000 Received: from mail11.truemail.it ([217.194.8.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skmxX-0000000BslD-1T8H for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 15:57:49 +0000 Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 77C021FB22; Sun, 1 Sep 2024 17:57:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1725206261; bh=RNvOcUq9hCoNQl4k0iHcvMfQMn0dWq6B44up8cQLmwA=; h=From:To:Subject; b=qvWkYrfHy1jUHoJpAZbMqVAbUQ7vrwGCMKdQ1hATVQoQ5RuLmngiUiG0WIUc1rJE2 24ffIBdclX9rK6x4PAjWQosL3FlK38dF/Cu4gok6ZufBYjO9LVsyt4e42S3gFlEmhn tZI8Kq/z/s9+T8S+K3lLI4YSCuwQGuxraNfReJkjTFN8TU0Ld59XJbwYHXEZ8KQHPi TQDhPXEqdryr1u5tSocxiz3xBeup21GELBTJVJDcR+rFbCWw8HgaUFWOIQZJj6J+Sx euhVYM4fuxUY4dHBtSECTWMtVdPC10zQuJj3fMXhXV7Kf/lLiPTP6tNcOg9f8qzMFy zgfMQtg+0aCbw== From: Francesco Dolcini To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: =?utf-8?q?Jo=C3=A3o_Paulo_Gon=C3=A7alves?= , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v2 10/10] arm64: dts: colibri-imx8x: Cleanup comments Date: Sun, 1 Sep 2024 17:57:21 +0200 Message-Id: <20240901155721.7912-11-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240901155721.7912-1-francesco@dolcini.it> References: <20240901155721.7912-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_085747_576306_65DEA995 X-CRM114-Status: UNSURE ( 8.80 ) 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: João Paulo Gonçalves Remove unnecessary comments. The Colibri-iMX8X doesn't support FlexCAN, and the GPU is already enabled in the SOC dtsi. Signed-off-by: João Paulo Gonçalves Signed-off-by: Francesco Dolcini --- v2: no changes --- arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index cf689904c166..edba5b582414 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -121,10 +121,6 @@ &enet0_lpcg { "enet0_lpcg_ipg_s_clk"; }; -/* TODO flexcan1 - 3 */ - -/* TODO GPU */ - /* On-module I2C */ &i2c0 { #address-cells = <1>;