From patchwork Mon Aug 26 21:59:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778562 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 73A1EC5472C for ; Mon, 26 Aug 2024 22:02:25 +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=FqS9Cyqz6dpZP7Sy6v7YHLIg5mvaiCVwUco5tXm5AtM=; b=By9tNbzfdbBMTgtPuG7rD6HXw4 PM++AHJWYUUt4OfKrTL5pELtHp/FfBnfMRqK9egFY0hbzmb0ywZZkc8EqXb81LJZ4lq0vM8eZ3CEI Q68eN5p9H67/Ero6OqXlgN4HYfM+upxxVqPeFdivZxrsJqOOesMB9LCzYK0yct4ys1xDm9lP4njJd 11Cwar9TYFXtse8uU8L9fY1aQScVNn06ymS9kpzP9+yEhQl6d13ka1mAsYQo86hJh0YBC4bqKGUz+ XNMXP/i7VfiMx6K50mCkBs8rflKB9n1nKQ7trEKRXOY4+MTDfaLsRlVk8cqFYWxpe53Nthc5We5HC tFh45tHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihmt-00000008vM8-2bzR; Mon, 26 Aug 2024 22:02:11 +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 1sihkU-00000008ua1-3Ebh for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 D393525017; Mon, 26 Aug 2024 23:59:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709577; bh=FqS9Cyqz6dpZP7Sy6v7YHLIg5mvaiCVwUco5tXm5AtM=; h=From:To:Subject; b=E00Xvnctnr914ljcx0lMhPItjT2yllJhU4NdnQZ/cMynt27qriKwln66X5LlTWaZd wEu/9N4Y+ptxTXI0lutfe81P97dGOYgAtFfFJ1vXXoq6OB+1Qd/1++hEgHJHVp3zSN 5Hw9y4I0cYGAFcF0+Mbmusl4/puXvCX+fss970C5kiTp+hUkyvfXvcYBEi428Am3xq 35WyXulJO6rTiKv31XnNVkv+oTnO8ZiSqLM3J1ID57ZglGHnUTUK/KvBMAmMz/xqw3 2+7WPgJhv9BWFU2Jk/3HTJkAq2BL3C7gxlFHBaGpnNTiiDEHv3dD+7pu3NTwEix4xw u2OAvwkNQUGLw== 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 v1 01/10] arm64: dts: colibri-imx8x: Add usb support Date: Mon, 26 Aug 2024 23:59:13 +0200 Message-Id: <20240826215922.13225-2-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145943_902679_B8E88F91 X-CRM114-Status: UNSURE ( 9.36 ) 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 --- .../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..1199e311d6f9 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-gpio = <&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 Mon Aug 26 21:59:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778561 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 44435C5321D for ; Mon, 26 Aug 2024 22:01: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=3nXxX6+gvRVf+zAc6fUvb5njG3ZQWFMWH1kakJJtpEk=; b=bbSCyFUqIMzTSooYww35xywje+ x0nHWQnmO2YYFPvh/XbsdR+P+Os5rlnWvG6I8fXVBNZESGkTWe1LAqsb0G0AiAyJfixmSBKlM2Fy0 D/27JBDlrMJhipIKA3/H8KLZQTik5Mlqbaay8+FaHAcNLXoS7Ra7PrXfreTHQmZ6J4AlSK8kYOjyS BPVZWgaLHKbAyr1xy8jWKUQdvm4HC4FtiZkIX+1LkA2O2quPsm6Jr/4tqF73tzJhe44GBo0EcJdlM mi8YsBxO0cnwmoinPXij1ldWTj2rlL15e/HK/XmASLE4dhpFx3quVNf5StTuBFeQFJc41DY/YtuYU hS8e3O3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihm7-00000008v6X-2pqg; Mon, 26 Aug 2024 22:01: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 1sihkV-00000008ua2-0JSv for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 7518E25062; Mon, 26 Aug 2024 23:59:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709577; bh=3nXxX6+gvRVf+zAc6fUvb5njG3ZQWFMWH1kakJJtpEk=; h=From:To:Subject; b=WrTuoD5LvdBi20dB/av00NgYgQ2xjqmMrMsN9A6F6l6VSHwevObQgFhGv3u9fSFyB wh1AjYSaGbKss9rkCA3e77mXFEG6Wc9abTf3E0czFQ/YeFeYJGFZjv1vLSqSi7Zr3V 6Xps7LGUw1rrzK8vFSp8dHgUgrs2TR/bj6q7SJDfH/IWPspok2hF0eqs81xEcXRlzN P2JNLWXDASbB9P5DBOD0GYaUQWWfgNJATuQ1QtiLmZC3ImG7uJx4BjOy8rd7Ml17Jy Py+ZRfCusrmFzK2UQiNRc2ZvgRI6o/00VYxLlSVayck1MemTQ1Vu24oroEjgpPw5x4 wPlUmlsTkLvnQ== 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 v1 02/10] arm64: dts: colibri-imx8x: Add analog inputs Date: Mon, 26 Aug 2024 23:59:14 +0200 Message-Id: <20240826215922.13225-3-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145943_904385_1D25D118 X-CRM114-Status: UNSURE ( 9.82 ) 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 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 --- .../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 1199e311d6f9..c7f0dfe7b162 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 Mon Aug 26 21:59:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778564 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 5A8D0C5321D for ; Mon, 26 Aug 2024 22:03:57 +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=Y6SBDzFquVWsPY1lMx9z0fEMhXiSLxw9RPsKlk+gYHE=; b=VIjX+RgIiXJMV9dOyJ7Mwhi0V8 xcY3hanY+pXRq0fsK1RZpDpuTOytKdNNagjE7q89PgkjwhS7e8MdXcif8e6smfTgfCLpjCsxtND7Z P6K6T3dVjlkbomcsLg9J2yaktY/LT8AAgYVW3/PIY+NLN6Bt/Y6JYD1n2loNnpa0LpTODH1ISCWIi aKqY6kWLTYtCpuT4A6ceplPcgQf1+MWncCl5f8lsvfSLy4Mby8Qe2LJ2JFm7oiC/DGjBBha1XU0Op 11LDC361vyGbv4bKbwJS77XdgQUm2f7tArpTHhpDjgzKy+DV8aItqGYUMHNJ4l5DPYFbpR81eO4fH lHsFB1Uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihoP-00000008viZ-2qyV; Mon, 26 Aug 2024 22:03:45 +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 1sihkU-00000008ua3-3wKf for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 172FD25065; Mon, 26 Aug 2024 23:59:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709578; bh=Y6SBDzFquVWsPY1lMx9z0fEMhXiSLxw9RPsKlk+gYHE=; h=From:To:Subject; b=YwPkNiDkLzHstFIFTpd0vni25qwybAiM5Lbw4+T9m43gwiOysERiaugEEBJIF5u3W 8tXPHNR2EL7UNgjO+hKwB9Vin+Pf0fYVfKhfzVJZafKfmJYYV5WV8s03Teha7+l1KW hvuDCCgrk8PLu1BAO3Eaf8jH0XqVJgN9FV0S2kZ2r6hf/qNRlm1t9ri2B/pyOPBRur MMGl8CNy35C0Ll9jKPZTGsanYDghdAYTnTlUhk8L17GkQsF1HliB+ozVI91pV0RM9x Mn10f5l2xjI3raEyXLhs+A+p4lkHSKzITThhF7uXDRIBoqqjnmZXyJFdWo59cmRRTX ghad59uaDSqgg== 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 v1 03/10] arm64: dts: colibri-imx8x: Add fxl6408 gpio expander Date: Mon, 26 Aug 2024 23:59:15 +0200 Message-Id: <20240826215922.13225-4-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145943_904431_E4235A3E X-CRM114-Status: UNSURE ( 7.37 ) 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 --- 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 c7f0dfe7b162..aa9c45c290b9 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 Mon Aug 26 21:59:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778563 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 61B0CC5321D for ; Mon, 26 Aug 2024 22:03:08 +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=a6VuMP+XHJVX+Qc/uL/hJS3JhoWqTXPpjFhR6W1QxPs=; b=rPUfa2k5zS7WfsVXy8u5TeX2jx HWpMLjydZ4ALkjq8UPL5u1r5CJW+xyyW7SoD4TPKeOTAPLmDs1TxTRjPTOm14OziCsP+FGK09v1lN fhaOuAHNCu3c3lk2djGIcV3bnlNK9ag6drLmyThLjeQ8osOyq9kzJVvhejJZi/eKDrlrUfO/mR7ee kO3DE9Q6qRUrWZST91RjwR0/ICmlLzQn+uEP0q3gpUtTz5g5DouWa6/KU7SnaLNmTpBpBFJ0ZuLmJ O7gEAx7YF5p+T5SzTxbtPLOr5Vhmed5bl/RAXXJpKMhbRcPVrgkgaQOVcw1iuey2ZBoQ0kKPL2kIC 4B/3I3pA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihnf-00000008vby-3JaX; Mon, 26 Aug 2024 22:02:59 +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 1sihkV-00000008ua8-0HXu for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 ACE3B25068; Mon, 26 Aug 2024 23:59:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709579; bh=a6VuMP+XHJVX+Qc/uL/hJS3JhoWqTXPpjFhR6W1QxPs=; h=From:To:Subject; b=K7VcqpHPIqJruVrv6v7eieZpRF3ZrjR1nsAtKxMiu/xickc5VR7HcAnPkV0K6JBrS kqdWE+grgP7WVESTMFTRJscStRTlM3WXWuM4zFDa+Wg3dUnRWgnJivL5fXChhdkoCa 2pA0TsOG0F5qG4HI+NFMNS/AYYygEC2QxilT++5D/xmJZCG7Yek1nU9eLD3llaJHP3 pJrUT2xIMLpu+BA26inqcy0wrzSBkAVRgZ7OJX9DonJoD+5CO2rla0PYKN3DiP90xe V7g9Mm1AdU7iJQopqq8ed+g3AWvPiGHRbmG5m4DwEokFb/n0UmxRtLcj+RoUyU9TrI IUkf82GPyyzBw== 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 v1 04/10] arm64: dts: colibri-imx8x: Add sound card Date: Mon, 26 Aug 2024 23:59:16 +0200 Message-Id: <20240826215922.13225-5-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145943_924627_EB9A18B8 X-CRM114-Status: UNSURE ( 9.72 ) 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 audio support for Colibri-iMX8X sound card. Signed-off-by: João Paulo Gonçalves Signed-off-by: Francesco Dolcini --- .../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 aa9c45c290b9..1d22002103c4 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 */ @@ -109,6 +133,21 @@ touchscreen@2c { status = "disabled"; }; + 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>; + }; + gpio_expander_43: gpio@43 { compatible = "fcs,fxl6408"; reg = <0x43>; @@ -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 Mon Aug 26 21:59: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: 13778565 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 C6034C5472C for ; Mon, 26 Aug 2024 22:04:39 +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=KaIgGdKJgM6VdCbreGRynqu6r3UROl0K8YfZBEpupGE=; b=hcxxr6PrSVJJCFYI8TFSEpfD6N wtZ0RokHXo0K1WA1JPlfxQlYemzyDO3MfZsN1Akk0TkihFtcd9L2NQAiqPzNtoTenhmSUe56q477H XcKbJWXmrgCfrzBmflSBu1X3mqub6uQW+UoCDhQCyH5e5G8/zICeIPcZKy13GANKPxyPQIfufUkYX nSbr3Hnmk/0Z0lLlqqBuiOIGjCSU9dwtSIcf7Nysfa02K4U/ARYYcmoVQgPcgKN9a6JYYopxA1UW7 zxYMF4QXfioukSb9XJCL2O/vpXGpTUEkXf20JryCO2HhnFDFR0XfJny/Ja43pGEwGCvNwsuuMj57f AkH7lUMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihp9-00000008vpz-1n4Y; Mon, 26 Aug 2024 22:04:31 +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 1sihkY-00000008ubg-3d9W for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 44B022506B; Mon, 26 Aug 2024 23:59:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709579; bh=KaIgGdKJgM6VdCbreGRynqu6r3UROl0K8YfZBEpupGE=; h=From:To:Subject; b=CRNSzAEnw7nH3o5kk3X7wCvha5oZzSe1UzUnKkJbpdw1CgSTBrYL/KaYRTOemyw5f O9EVUFRQ982Z0KCxTmopMv8oS0Nt2M8dtanabsgI7FVHjHGEdlvbLwAPQITciL/ERG uWzleTg8pE2cFqSkuXAwrcs0NX8KIrgU58Tnd67pfy+acQp/TRimB/fZ9sp9wyEw8n DPZj4A/YYL6oJRJ855hQEDyAAnTUrJHl6OsSlB8RX3hNQEiQ1G3YHkRgro4zczTISk ICQA/6aM/GskV+hMwSZF32OGkUffdQG8iBmrKV9d8A8bWvYcTsW0VHsJW50TxuFsB4 Pf+6UgbzcSzUA== 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 v1 05/10] arm64: dts: colibri-imx8x: Add PMIC thermal zone Date: Mon, 26 Aug 2024 23:59:17 +0200 Message-Id: <20240826215922.13225-6-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145947_094170_AC57A947 X-CRM114-Status: UNSURE ( 9.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: Francesco Dolcini Add PMIC thermal zones. Signed-off-by: Francesco Dolcini --- .../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 1d22002103c4..f6afce016ff2 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 Mon Aug 26 21:59:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778566 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 40686C5472C for ; Mon, 26 Aug 2024 22:05:28 +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=3BT5+sdVfi/hhHm41S0oCipG1TuIyy/krE/KMNZy3nQ=; b=TDlxdGZCHqEwJrV38vKzczzEPv AsyKpjj9ms4UsGU4ZGQZuB31rTpEFLMVRF0fGnPEirpWr04c/Q6ddMmHMqcYMZPWeE3DHL7kkVR8O pw8YgZQRuUjVjcKQuC28CKrOCwV96Gw0pmREMeg6dkPidwzYL6p6bY6DeaESJ479YtqU0Xrk7GOkf ZCjdKQ3VSimjnBaVKsm1JsewNnfaulyKsfNAkQOj3HAkdoWd8xHQlRZQNwFE0OXWMwgamHDzR4Lqg IRSwgW6/e++32J3WQC+Pvd7oY2ipwwYuh2fO9wjERlyenRWjd2G3kXZwjbowK8VF3PQI+PUTzvDvu b/+baSzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihpv-00000008w0O-1KDt; Mon, 26 Aug 2024 22:05:19 +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 1sihkY-00000008ubh-3gMg for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 E4C022506E; Mon, 26 Aug 2024 23:59:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709580; bh=3BT5+sdVfi/hhHm41S0oCipG1TuIyy/krE/KMNZy3nQ=; h=From:To:Subject; b=TGlLk8VgGaUQlvmMGksUcTvyqmdSNTz1KAPPhqm4Pb0pRl7/8ShAi2BfTSwibzu7D ruGUn1CV7a/FUXx+Ym/VuCvK/M14d46nKHRU/x/aIM2OUqOKOgyp3CRzwfEyp1G3kX kkXxUO2CA4lhi33nw5URTvliqLEkqZ3UNCr44ql+WpARwRg9r/348f/rymmJEhZw3k gxOSDzj+j9CsiVRv4GhEJo+poUju1e03V58JGd7+Ka5y42Uaa0fKKRy+LMZX6Sgx/b 5Iv+R4pb2Jd4o/I4YVMNV0xSr/e0qbLNyTfeErpc1dc2z25bZpxDB+szf6KS+83Sgl p5m8szGO0Li3g== 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 v1 06/10] arm64: dts: colibri-imx8x: Add USB3803 HUB Date: Mon, 26 Aug 2024 23:59:18 +0200 Message-Id: <20240826215922.13225-7-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145947_158582_A10F19B6 X-CRM114-Status: UNSURE ( 7.73 ) 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 --- .../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 f6afce016ff2..7c728208f385 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>; + }; + /* Touch controller */ touchscreen@2c { compatible = "adi,ad7879-1"; From patchwork Mon Aug 26 21:59: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: 13778568 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 988B5C5321D for ; Mon, 26 Aug 2024 22:07:03 +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=3NPK+p0mJgiOq8GcwZ3CPB6kLXaNxyIbSXm1F2awChY=; b=KImOMGzxJp9goDbjk8jNO8/Xx5 Fyx/cs2MugEn1Kd5hSwNwWGSpSQd1ezIhVJBqyL/DxSgUGigJRMTFZss23ZrD0cy60Tw4Tthu5GZl znvbG2U/MAQlBNyj+004FOVRWwn5+ODfrwIlewxXNCrB/plYIwfBRvnFnwZ271VGMtScklluV27v+ rTU3SywHlrjA4yxmF4Upaw3LSkG6vREY2M7ccS35q+vV+RsTG3TCTuw/Iu3LtjasFJtTK+DJmirry 95QfuJvD8BDBU1MJEeexvKRKLvA/OIy9X/YPNTf/BOAuHzCe/x2Ygnv98vxImR4+1tYc28oJxsi8c GmJvXNOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihrR-00000008wEY-1vwu; Mon, 26 Aug 2024 22:06:53 +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 1sihkZ-00000008ubr-1p8v for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 73EF525074; Mon, 26 Aug 2024 23:59:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709580; bh=3NPK+p0mJgiOq8GcwZ3CPB6kLXaNxyIbSXm1F2awChY=; h=From:To:Subject; b=bVhjX+CcmYlJAb47TAqqNoeoQwZ3t/AwKxEE2ThglUrZfdl7YVoCKA1Q/QwgcLIhQ wPE2jFSZ5Sf/gitHA9Y4XpfxzgdrIUpn2/4h3cGCuh4Lbld3aEPjvXQqUGxf3uSD/Y m4jBJV4MNWFmKrhyn9U3nNxzspyxlzMQICw7GzvmLgWW7dNR//Rdf7KqmG230t9iro ZzB94C7jS+jw6r9/Y8b9bjmRW8bIdiiFkPMLmLgDQtpsMNj72pDb7b8zQCTQB949tv ENxJ9SMTRQ0bs8dKPWZSJVLH2H3V/xXGxbG3kpCKjHAuGxn/ro86rTLUgHP2pE1cdI kXMTDrKicJB6g== 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 v1 07/10] arm64: dts: colibri-imx8x: Add vpu support Date: Mon, 26 Aug 2024 23:59:19 +0200 Message-Id: <20240826215922.13225-8-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145947_701588_F0E20454 X-CRM114-Status: UNSURE ( 9.32 ) 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 --- .../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 7c728208f385..782546a35bf9 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 Mon Aug 26 21:59:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778567 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 05D6DC5321D for ; Mon, 26 Aug 2024 22:06:15 +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=mXowhD81nNtIh4Zuu2na6my9WsdVkq42/DwcPSggglQ=; b=REl5C5TrNAI31udvoprZEq88ug 19deKFrwxXEqEEzQEvRWZfeEXsiTsXED89upqTKG0EZfYgC0KoEasheBjli6TmQjBeryUHEBEyCQO 4iCGT1Lolqu6Tj1QQ1X2bZ6KiB+mGLY8S7l1mhov4qonB/0oXc4RNNJxjBcDpr9NH+yzIBZD11mt1 GwbvzXw3JVLCnR6ZWvIyobuqItYwQdso7fQRh2yCoSk4I6EJaUL0Ylbp4EHX/T79v93YBUMpZGtlY MthwwAQux+hNAUJKuSFIg5ZuiCzdOP00ARUTRrm9Cpo/dRPkHT1z5Zx7eRr6XA1AD+wtPTNAr+hQs 2BTF21Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihqg-00000008w8m-2bap; Mon, 26 Aug 2024 22:06:06 +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 1sihkZ-00000008ubq-1nnM for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 0FD1525077; Mon, 26 Aug 2024 23:59:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709581; bh=mXowhD81nNtIh4Zuu2na6my9WsdVkq42/DwcPSggglQ=; h=From:To:Subject; b=eIxFanq4VlyxaMWdNaDUfxEBQbIVyc3uaSTY0ZJ1KHxKCNC0+Kpbj9UJAH5IO6Yn/ PlApeLsAXXNI7UHMWXukWu0mMn5XJKxcVfrGXCdyNnknQQV3f5LR1E8+4zD9Z4ifPQ zWEWE5s7nFfYOi7sEMhQZjxcoAGFZiIwpx8zRiFaelOdoTIwwghY3/Mkqj134TY2jQ TUuHKWMG6JGl3rIsofidfVahzoqUNx8CQ65ZI3ad+89HPhzwwzIOcyb3UeGGEMNG6d 4pnnpluy6izfqZ1XLKDDV9u2gMSgAOJbaJnVu/KShXtsZ9nT7kJopM7hAKP4TWEe1G tNECj4AbypU8w== 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 v1 08/10] arm64: dts: colibri-imx8x: Add adma_pwm Date: Mon, 26 Aug 2024 23:59:20 +0200 Message-Id: <20240826215922.13225-9-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145947_706561_029F5CBA X-CRM114-Status: UNSURE ( 7.68 ) 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 --- 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 782546a35bf9..9cd4383e9298 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 Mon Aug 26 21:59:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778569 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 46E3EC5472C for ; Mon, 26 Aug 2024 22:07: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: 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=SDG2/Gs74zsbXlc1LkgedRkmMLU/OqYN0TCFF8ojvrI=; b=xVoetIIMyJSEnpnLA8+p4zD32G dkxdxCXdsDbbWP3+W5H12Bp/lVX8nlcd1mkgO+XfDK8BhB1fx5jUFR+AShVLzzPg6kPD35NcB5E8g f0VQthby1MgWkYe07IYnCD2tKoqql4riCTtzRDKPFqgjGsEzCHtTRxIwsqSIJGqYGsF9hO3iGkEch qMQ7L7gs3bf2kzuQx3DbiW63mTeTZaapKDNxfq9BmJkFLzYRJHa8Qk5KpQZ08Huv3bqNZEguP3XEF 7e5jGkb9me+WXkBtivYMwuN1eABMY+XgBOCcU1fIx3frXcfwdz3b/enaiTzsHmz8T//KP1XpMpwXw VE7jsjdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihsB-00000008wMU-0wku; Mon, 26 Aug 2024 22:07:39 +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 1sihka-00000008uc4-0Izj for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 A5C0D2507A; Mon, 26 Aug 2024 23:59:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709582; bh=SDG2/Gs74zsbXlc1LkgedRkmMLU/OqYN0TCFF8ojvrI=; h=From:To:Subject; b=XDJ3HRc7pisfH/tnnEYXxfghttI3aMlXzuqKns38q+C769ZWj/kkSQjYMY682ewav u3hT1Zizs5kdEozgCGUZYMLxgRtOwBgD7JluWGGWcruJQF7FYMpFPAgEKQJtRbvilj ShYHfKYXo+ZAj1zilp2o/v/KJ0KQrR1/VdqIIZm7FlO0HMdPDcpsaD2wHraq8iSCVf izQLrUoAQ28x+xKJ9tgts1FrOx58zzFceb0HS89dvwkxQwlvs6dKKlLK0wzTwA7DY4 n9QF0v3c2sc8OMpWMsUr8OcczvhpnafYz+k4AyyghE0FgiiqM+zZUnUUuMGQaXv6oB mwhlNogXYJu+g== 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 v1 09/10] arm64: dts: colibri-imx8x: Add 50mhz clock for eth Date: Mon, 26 Aug 2024 23:59:21 +0200 Message-Id: <20240826215922.13225-10-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145948_365888_48CAC493 X-CRM114-Status: UNSURE ( 8.37 ) 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 --- 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 9cd4383e9298..75259e8d48a9 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 Mon Aug 26 21:59:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13778573 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 A3AF8C5472C for ; Mon, 26 Aug 2024 22:08:34 +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=Hj4hr0R1mObUNs2bkOBKYhNT+1JKlzVOa1x2fo7WPgg=; b=gW0/1p8GoEeuWnsRYFXKkJwdwj o+pZ/r0z3yHpquqaBCg8Z+ClzFRly0xayqJSVhSeV5sP6MmgHZf/NlaNdTI/6nfICq84KxXrhbtxA VaJpkOZBfnZcacA0/hTSNcfS4dvZ8VnIZpbz/GLIf2ZyiLgL4SNls9AYf5Ka2hek4KUAc6gFuIkoH mnDGM8IrntHDDSR0/9ksGJ7LbR237Q49cwRGqaJFtJ15ryejU9dCVEUsLaXesDAmlEAE0rvEWjUjz u3E/Ln/q5L8Kb4/kRLgkPtnJhJtInIfI+N49rm0e0MV76Sa9gB7Z3kVBmyLboepOcKm6p+tsjdnkq pC1Tl72A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihsv-00000008wUz-4C1x; Mon, 26 Aug 2024 22:08:26 +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 1sihka-00000008uc5-0Jnf for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:59: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 474B22507D; Mon, 26 Aug 2024 23:59:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1724709582; bh=Hj4hr0R1mObUNs2bkOBKYhNT+1JKlzVOa1x2fo7WPgg=; h=From:To:Subject; b=TtvsZjWPEfx96fucU9dWmBhLtA7ni3Q9QczZ5T7N2GXyNrf6teOb/mUBfI2TzOZ1T kHcXG0L/HmtpFEcdnz55NF2EzOoWpWcj504AAdx2456cwvGGv7SB4OMeVbxUpYx+I1 lw6fEfQh+OT3oBS9LxHMaFbXnFXiFGsRCUc6KttDpMqVkCHyGqietzeXeP43hIMZL4 4ycJkcvBLOYUugM0bsCKaGTP9Q+2jI8OckH3UhBWStR9lTHSDorzN1g87Nad1LAhjK qotRl2Lx2hjqDQmZ9+ILR3QHYNI/r23CFVpy/9Di6DI6dUxRCPcW19atx3SKecdztc tWzhh8PjFHUgA== 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 v1 10/10] arm64: dts: colibri-imx8x: Cleanup comments Date: Mon, 26 Aug 2024 23:59:22 +0200 Message-Id: <20240826215922.13225-11-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826215922.13225-1-francesco@dolcini.it> References: <20240826215922.13225-1-francesco@dolcini.it> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_145948_366927_75D7A586 X-CRM114-Status: UNSURE ( 8.18 ) 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 --- 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 75259e8d48a9..42326baf878a 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>;