Update PHYTEC's i.MX8MM DTSs
Subsystems (2)
v2 cover Update PHYTEC's i.MX8MM DTSs
Hi all,
these patches aim to get PHYTEC downstream kernel device-tree changes into the mainline for the phyCORE-i.MX8MM SoM and boards (phyBOARD-Polis and phyGATE-Tauri-L).
Changes mainly fix suspending/resuming with different wakeup-sources and add missing regulators. Last 4 patches add additional overlays. Some are meant to be used with PHYTEC's "option tree" to add/disable optional SoM components (idea behind it is outlined in [1]).
[1] https://lore.kernel.org/all/[email protected]/
v1 at: https://lore.kernel.org/all/[email protected]/
v2 changes in corresponding patches.
Best regards,
Andrej
Andrej Picej (3):
arm64: dts: imx8mm-phycore-som: Fix bluetooth wakeup source
arm64: dts: imx8mm-phyboard-polis: Set RTC as wakeup-source
arm64: dts: imx8mm-phygate-tauri-l: Set RTC as wakeup-source
Dominik Haller (1):
arm64: dts: imx8mm-phycore-som: Add overlay for rproc
Janine Hagemann (1):
arm64: dts: imx8mm-phyboard-polis: Add overlay for PEB-EVAL-01
Teresa Remmet (5):
arm64: dts: imx8mm-phycore-som: Keep LDO3 on in suspend
arm64: dts: imx8mm-phycore-som: Remove magic-packet property
arm64: dts: imx8mm-phyboard-polis: Add support for PEB-AV-10
arm64: dts: imx8mm-phycore-som: Add no-eth phy overlay
arm64: dts: imx8mm-phycore-som: Add overlay to disable SPI NOR flash
Yannic Moog (3):
arm64: dts: imx8mm-phycore-som: add descriptions to nodes
arm64: dts: imx8mm-phyboard-polis: add RTC description
arm64: dts: imx8mm: move bulk of rtc properties to carrierboards
Yashwanth Varakala (2):
arm64: dts: imx8mm-phycore-som: Assign regulator for dsi to lvds
bridge
arm64: dts: imx8mm-phyboard-polis: Assign missing regulator for
bluetooth
arch/arm64/boot/dts/freescale/Makefile | 13 + .../imx8mm-phyboard-polis-peb-av-10.dtso | 237 ++++++++++++++++++ .../imx8mm-phyboard-polis-peb-eval-01.dtso | 72 ++++++ .../freescale/imx8mm-phyboard-polis-rdk.dts | 17 +- .../dts/freescale/imx8mm-phycore-no-eth.dtso | 12 + .../freescale/imx8mm-phycore-no-spiflash.dtso | 16 ++ .../dts/freescale/imx8mm-phycore-rpmsg.dtso | 55 ++++ .../dts/freescale/imx8mm-phycore-som.dtsi | 22 +- .../dts/freescale/imx8mm-phygate-tauri-l.dts | 11 + 9 files changed, 439 insertions(+), 16 deletions(-) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-eval-01.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phycore-no-eth.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phycore-no-spiflash.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso
Signature · 1 line
2.34.1
PATCH v2 1/15 arm64: dts: imx8mm-phycore-som: Keep LDO3 on in suspend
From: Teresa Remmet <[email protected]>
LDO3 is also used as switch for enabling VDD_3V3_S and need to be kept on during suspend. Disabling this can lead to an unwanted reset during resume.
Set LDO3 to 2,5V as the voltage should be fix.
---
Changes in v2:
- no change
--- arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +4 -2
@@ -161,11 +161,13 @@ reg_vcc_enet: ldo3 { regulator-always-on; regulator-boot-on; regulator-max-microvolt = <2500000>; - regulator-min-microvolt = <1500000>; + regulator-min-microvolt = <2500000>; regulator-name = "VCC_ENET_2V5 (LDO3)"; regulator-state-mem { - regulator-off-in-suspend; + regulator-on-in-suspend; + regulator-suspend-max-microvolt = <2500000>; + regulator-suspend-min-microvolt = <2500000>; }; };
Signature · 1 line
2.34.1
PATCH v2 2/15 arm64: dts: imx8mm-phycore-som: Fix bluetooth wakeup source
In reply to Andrej PicejNot using pull-up on the host wake-up line triggers the wake up immediately after device enters suspend. Fix this by enabling internal pull-up and setting interrupt triggering on the falling edge.
---
Changes in v2:
- added Teresa's Reviewed-by tag.
--- arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +2 -2
@@ -255,7 +255,7 @@ bluetooth { device-wakeup-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; interrupt-names = "host-wakeup"; interrupt-parent = <&gpio2>; - interrupts = <9 IRQ_TYPE_EDGE_BOTH>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; max-speed = <2000000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_bt>;
@@ -332,7 +332,7 @@ pinctrl_bt: btgrp { fsl,pins = < MX8MM_IOMUXC_SD1_DATA4_GPIO2_IO6 0x00 MX8MM_IOMUXC_SD1_DATA6_GPIO2_IO8 0x00 - MX8MM_IOMUXC_SD1_DATA7_GPIO2_IO9 0x00 + MX8MM_IOMUXC_SD1_DATA7_GPIO2_IO9 0x140 >; };
Signature · 1 line
2.34.1
PATCH v2 3/15 arm64: dts: imx8mm-phycore-som: Remove magic-packet property
In reply to Andrej PicejFrom: Teresa Remmet <[email protected]>
Remove device tree property "fsl,magic-packet" as WoL is not working on the SoM and so not required. This also saves a significant amount of power during suspend as the ethernet phy is not powered down otherwise.
---
Changes in v2:
- no change
--- arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +0 -1
@@ -69,7 +69,6 @@ opp-750000000 { /* Ethernet */ &fec1 { - fsl,magic-packet; phy-mode = "rgmii-id"; phy-handle = <ðphy0>; pinctrl-names = "default";
Signature · 1 line
2.34.1
PATCH v2 4/15 arm64: dts: imx8mm-phycore-som: Assign regulator for dsi to lvds bridge
In reply to Andrej PicejFrom: Yashwanth Varakala <[email protected]>
Add a missing voltage regulator of 1.8v to the sn65dsi83 (dsi_lvds bridge) node. Due to the absence of this regulator, a fallback dummy regulator is used and that triggers a warning message from the kernel. Assigning the appropriate regulator avoids the warning.
---
Changes in v2:
- no change
--- arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +1 -0
@@ -286,6 +286,7 @@ sn65dsi83: bridge@2d { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sn65dsi83>; reg = <0x2d>; + vcc-supply = <®_vdd_1v8>; status = "disabled"; };
Signature · 1 line
2.34.1
PATCH v2 5/15 arm64: dts: imx8mm-phycore-som: add descriptions to nodes
In reply to Andrej PicejFrom: Yannic Moog <[email protected]>
Add missing EEPROM and RTC descriptions. Also use eMMC with lower-case "e".
---
Changes in v2:
- no change
--- arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +3 -1
@@ -290,6 +290,7 @@ sn65dsi83: bridge@2d { status = "disabled"; }; + /* EEPROM */ eeprom@51 { compatible = "atmel,24c32"; pagesize = <32>;
@@ -297,6 +298,7 @@ eeprom@51 { vcc-supply = <®_vdd_3v3_s>; }; + /* RTC */ rv3028: rtc@52 { compatible = "microcrystal,rv3028"; interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
@@ -307,7 +309,7 @@ rv3028: rtc@52 { }; }; -/* EMMC */ +/* eMMC */ &usdhc3 { assigned-clocks = <&clk IMX8MM_CLK_USDHC3_ROOT>; assigned-clock-rates = <400000000>;
Signature · 1 line
2.34.1
PATCH v2 6/15 arm64: dts: imx8mm-phyboard-polis: add RTC description
In reply to Andrej PicejFrom: Yannic Moog <[email protected]>
Add RTC description.
---
Changes in v2:
- no change
--- arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +1 -0
@@ -219,6 +219,7 @@ &pcie_phy { status = "okay"; }; +/* RTC */ &rv3028 { aux-voltage-chargeable = <1>; trickle-resistor-ohms = <3000>;
Signature · 1 line
2.34.1
PATCH v2 7/15 arm64: dts: imx8mm-phyboard-polis: Set RTC as wakeup-source
In reply to Andrej PicejRV-3028 RTC can be used to wakeup the system on phyBOARD-Polis-i.MX8MM, mark the device as wakeup source.
---
Changes in v2:
- added Teresa's Reviewed-by tag.
--- arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +1 -0
@@ -223,6 +223,7 @@ &pcie_phy { &rv3028 { aux-voltage-chargeable = <1>; trickle-resistor-ohms = <3000>; + wakeup-source; }; &snvs_pwrkey {
Signature · 1 line
2.34.1
PATCH v2 8/15 arm64: dts: imx8mm-phygate-tauri-l: Set RTC as wakeup-source
In reply to Andrej PicejRV-3028 RTC can be used to wakeup the system on phyGATE-Tauri-L-i.MX8MM, mark the device as wakeup source.
---
Changes in v2:
- added Teresa's Reviewed-by tag.
--- arch/arm64/boot/dts/freescale/imx8mm-phygate-tauri-l.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mm-phygate-tauri-l.dts +1 -0
@@ -217,6 +217,7 @@ &pwm4 { &rv3028 { aux-voltage-chargeable = <1>; trickle-resistor-ohms = <3000>; + wakeup-source; }; &uart1 {
Signature · 1 line
2.34.1
PATCH v2 9/15 arm64: dts: imx8mm: move bulk of rtc properties to carrierboards
In reply to Andrej PicejFrom: Yannic Moog <[email protected]>
Move properties from SoM's dtsi to carrierboard's dts as they are actually defined by the carrier board design.
---
Changes in v2:
- also moved pinctrl settings to the carrier boards dts.
--- .../boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 10 ++++++++++ arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi | 10 ---------- .../boot/dts/freescale/imx8mm-phygate-tauri-l.dts | 10 ++++++++++ 3 files changed, 20 insertions(+), 10 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +10 -0
@@ -221,6 +221,10 @@ &pcie_phy { /* RTC */ &rv3028 { + interrupt-parent = <&gpio1>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&pinctrl_rtc>; + pinctrl-names = "default"; aux-voltage-chargeable = <1>; trickle-resistor-ohms = <3000>; wakeup-source;
@@ -410,6 +414,12 @@ MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x40 >; }; + pinctrl_rtc: rtcgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x1c0 + >; + }; + pinctrl_tpm: tpmgrp { fsl,pins = < MX8MM_IOMUXC_SD1_STROBE_GPIO2_IO11 0x140
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +0 -10
@@ -301,10 +301,6 @@ eeprom@51 { /* RTC */ rv3028: rtc@52 { compatible = "microcrystal,rv3028"; - interrupts = <3 IRQ_TYPE_LEVEL_LOW>; - interrupt-parent = <&gpio1>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_rtc>; reg = <0x52>; }; };
@@ -377,12 +373,6 @@ MX8MM_IOMUXC_I2C1_SCL_GPIO5_IO14 0x1e0 >; }; - pinctrl_rtc: rtcgrp { - fsl,pins = < - MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x1c0 - >; - }; - pinctrl_sn65dsi83: sn65dsi83grp { fsl,pins = < MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x0
arch/arm64/boot/dts/freescale/imx8mm-phygate-tauri-l.dts +10 -0
@@ -215,6 +215,10 @@ &pwm4 { /* RTC */ &rv3028 { + interrupt-parent = <&gpio1>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&pinctrl_rtc>; + pinctrl-names = "default"; aux-voltage-chargeable = <1>; trickle-resistor-ohms = <3000>; wakeup-source;
@@ -395,6 +399,12 @@ MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x40 >; }; + pinctrl_rtc: rtcgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x1c0 + >; + }; + pinctrl_tempsense: tempsensegrp { fsl,pins = < MX8MM_IOMUXC_SAI3_TXFS_GPIO4_IO31 0x00
Signature · 1 line
2.34.1
PATCH v2 10/15 arm64: dts: imx8mm-phyboard-polis: Assign missing regulator for bluetooth
In reply to Andrej PicejFrom: Yashwanth Varakala <[email protected]>
Assign the missing regulator to the bluetooth node. Absence of this regulator triggers the warning message from kernel as driver uses a fallback dummy regulator when there is no regulator assigned.
---
Changes in v2:
- no change.
--- arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +1 -0
@@ -266,6 +266,7 @@ bluetooth { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_bt>; shutdown-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; + vbat-supply = <®_vcc_3v3>; vddio-supply = <®_vcc_3v3>; }; };
Signature · 1 line
2.34.1
PATCH v2 11/15 arm64: dts: imx8mm-phyboard-polis: Add support for PEB-AV-10
In reply to Andrej PicejFrom: Teresa Remmet <[email protected]>
PEB-AV-10 is an Audio/Video extension module which extends phyBOARD-Polis i.MX8MM.
With MIPI DSI to LVDS bridge already populated on SoM the PEB-AV-10 adds support for:
- connecting 10" display,
- audio with TLV320AIC and
- EEPROM.
---
Changes in v2:
- no change.
--- arch/arm64/boot/dts/freescale/Makefile | 5 + .../imx8mm-phyboard-polis-peb-av-10.dtso | 237 ++++++++++++++++++ 2 files changed, 242 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtso
arch/arm64/boot/dts/freescale/Makefile +5 -0
@@ -122,6 +122,11 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-mx8menlo.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-nitrogen-r2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-rdk.dtb + +imx8mm-phyboard-polis-peb-av-10-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10.dtbo + +dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-av-10.dtb + dtb-$(CONFIG_ARCH_MXC) += imx8mm-phygate-tauri-l.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-prt8mm.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-tqma8mqml-mba8mx.dtb
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtso new file +237 -0
237 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 12/15 arm64: dts: imx8mm-phyboard-polis: Add overlay for PEB-EVAL-01
In reply to Andrej PicejFrom: Janine Hagemann <[email protected]>
Add support for the PEB-EVAL-01 expansion board for phyBOARD-Polis-i.MX8MM.
---
Changes in v2:
- no change.
--- arch/arm64/boot/dts/freescale/Makefile | 2 + .../imx8mm-phyboard-polis-peb-eval-01.dtso | 72 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-eval-01.dtso
arch/arm64/boot/dts/freescale/Makefile +2 -0
@@ -124,8 +124,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-phg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10.dtbo +imx8mm-phyboard-polis-peb-eval-01-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-eval-01.dtbo dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-av-10.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-eval-01.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phygate-tauri-l.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-prt8mm.dtb
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-eval-01.dtso new file +72 -0
72 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 13/15 arm64: dts: imx8mm-phycore-som: Add overlay for rproc
In reply to Andrej PicejFrom: Dominik Haller <[email protected]>
Adds a devicetree overlay containing reserved memory regions used for intercore communication between A53 and M4 cores.
---
Changes in v2:
- no change.
--- arch/arm64/boot/dts/freescale/Makefile | 2 + .../dts/freescale/imx8mm-phycore-rpmsg.dtso | 55 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso
arch/arm64/boot/dts/freescale/Makefile +2 -0
@@ -125,9 +125,11 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10.dtbo imx8mm-phyboard-polis-peb-eval-01-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-eval-01.dtbo +imx8mm-phycore-rpmsg-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phycore-rpmsg.dtbo dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-av-10.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-eval-01.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-rpmsg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phygate-tauri-l.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-prt8mm.dtb
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH v2 13/15] arm64: dts: imx8mm-phycore-som: Add overlay for rproc
Quoted 44 lines · Andrej Picej
From: Dominik Haller <[email protected]>
Adds a devicetree overlay containing reserved memory regions used for intercore communication between A53 and M4 cores.
Signed-off-by Dominik Haller <[email protected]>Signed-off-by Andrej Picej <[email protected]>---
Changes in v2:
- no change.--- arch/arm64/boot/dts/freescale/Makefile | 2 + .../dts/freescale/imx8mm-phycore-rpmsg.dtso | 55 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtsoarch/arm64/boot/dts/freescale/Makefile +2
-0@@ -125,9 +125,11 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10.dtbo imx8mm-phyboard-polis-peb-eval-01-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-eval-01.dtbo +imx8mm-phycore-rpmsg-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phycore-rpmsg.dtbo dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-av-10.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-eval-01.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-rpmsg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phygate-tauri-l.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-prt8mm.dtbarch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +6
-0@@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2024 PHYTEC Messtechnik GmbH + * Author: Dominik Haller <[email protected]> + */ +
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso line 16
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +10
-0+/dts-v1/; +/plugin/; + +#include <dt-bindings/clock/imx8mm-clock.h> + +&{/} { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges;
I'm getting this:
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:16.3-10: Warning (ranges_format): /fragment@0/__overlay__/reserved-memory:ranges: empty "ranges" property but its #size-cells (2) differs from /fragment@0/__overlay__ (1) arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #address-cells value arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #size-cells value
Shawn
Quoted 42 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +39
-0+ + m4_reserved: m4@80000000 { + reg = <0 0x80000000 0 0x1000000>; + no-map; + }; + + vdev0vring0: vdev0vring0@b8000000 { + reg = <0 0xb8000000 0 0x8000>; + no-map; + }; + + vdev0vring1: vdev0vring1@b8008000 { + reg = <0 0xb8008000 0 0x8000>; + no-map; + }; + + rsc_table: rsc_table@b80ff000 { + reg = <0 0xb80ff000 0 0x1000>; + no-map; + }; + + vdevbuffer: vdevbuffer@b8400000 { + compatible = "shared-dma-pool"; + reg = <0 0xb8400000 0 0x100000>; + no-map; + }; + }; + + core-m4 { + compatible = "fsl,imx8mm-cm4"; + clocks = <&clk IMX8MM_CLK_M4_DIV>; + mboxes = <&mu 0 1 + &mu 1 1 + &mu 3 1>; + mbox-names = "tx", "rx", "rxdb"; + memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, <&rsc_table>; + syscon = <&src>; + }; +};Signature · 1 line
2.34.1
Re: [PATCH v2 13/15] arm64: dts: imx8mm-phycore-som: Add overlay for rproc
Hi Shawn,
Quoted 58 lines · Shawn Guo
Quoted 44 lines · Andrej Picej
From: Dominik Haller <[email protected]>
Adds a devicetree overlay containing reserved memory regions used for intercore communication between A53 and M4 cores.
Signed-off-by Dominik Haller <[email protected]>Signed-off-by Andrej Picej <[email protected]>---
Changes in v2:
- no change.--- arch/arm64/boot/dts/freescale/Makefile | 2 + .../dts/freescale/imx8mm-phycore-rpmsg.dtso | 55 +++++++++++++++++++ 2 files changed, 57 insertions(+)create mode 100644
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtsoarch/arm64/boot/dts/freescale/Makefile +2
-0@@ -125,9 +125,11 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10.dtbo imx8mm-phyboard-polis-peb-eval-01-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-eval-01.dtbo +imx8mm-phycore-rpmsg-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phycore-rpmsg.dtbo dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-av-10.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-eval-01.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-rpmsg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phygate-tauri-l.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-prt8mm.dtbarch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +6
-0@@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2024 PHYTEC Messtechnik GmbH + * Author: Dominik Haller <[email protected]> + */ +arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso line 16
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +10
-0+/dts-v1/; +/plugin/; + +#include <dt-bindings/clock/imx8mm-clock.h> + +&{/} { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges;I'm getting this:
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:16.3-10: Warning (
ranges_format): /fragment@0/__overlay__/reserved-memory:ranges: empty "ranges" property but its #size-cells (2) differs from /fragment@0/__overlay__ (1) arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #address-cells value arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #size-cells value
I see, missed this before, sorry. But I have some problems fixing it.
I think the problem is that this is overlay, the same node put in the imx8mm-phycore-som.dtsi doesn't trigger a warning. The only solution that I found is that I specify the default address-cells and size-cells in root node:
&{/} {
#address-cells = <2>;
#size-cells = <2>;
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
...
};
};The same values are used in imx8mm.dtsi, but the checker fails to find these default values. Not sure if this is the right solution, though. Your input would be helpful, thanks.
Best regards,
Andrej
Quoted 45 lines
Shawn
Quoted 42 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +39
-0+ + m4_reserved: m4@80000000 { + reg = <0 0x80000000 0 0x1000000>; + no-map; + }; + + vdev0vring0: vdev0vring0@b8000000 { + reg = <0 0xb8000000 0 0x8000>; + no-map; + }; + + vdev0vring1: vdev0vring1@b8008000 { + reg = <0 0xb8008000 0 0x8000>; + no-map; + }; + + rsc_table: rsc_table@b80ff000 { + reg = <0 0xb80ff000 0 0x1000>; + no-map; + }; + + vdevbuffer: vdevbuffer@b8400000 { + compatible = "shared-dma-pool"; + reg = <0 0xb8400000 0 0x100000>; + no-map; + }; + }; + + core-m4 { + compatible = "fsl,imx8mm-cm4"; + clocks = <&clk IMX8MM_CLK_M4_DIV>; + mboxes = <&mu 0 1 + &mu 1 1 + &mu 3 1>; + mbox-names = "tx", "rx", "rxdb"; + memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, <&rsc_table>; + syscon = <&src>; + }; +};Signature · 1 line
2.34.1
Re: [Upstream] Re: [PATCH v2 13/15] arm64: dts: imx8mm-phycore-som: Add overlay for rproc
Gentle ping.
Best regards,
Andrej
Quoted 138 lines · Andrej Picej
Hi Shawn,
Quoted 57 lines · Shawn Guo
Quoted 43 lines · Andrej Picej
From: Dominik Haller <[email protected]>
Adds a devicetree overlay containing reserved memory regions used for intercore communication between A53 and M4 cores.
Signed-off-by Dominik Haller <[email protected]>Signed-off-by Andrej Picej <[email protected]>---
Changes in v2:
- no change.
---
arch/arm64/boot/dts/freescale/Makefile | 2 + .../dts/freescale/imx8mm-phycore-rpmsg.dtso | 55 +++++++++++++++++++2 files changed, 57 insertions(+)create mode 100644
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtsoarch/arm64/boot/dts/freescale/Makefile +0
-0@@ -125,9 +125,11 @@ dtb-$(CONFIG_ARCH_MXC) +=imx8mm-phyboard-polis-rdk.dtb
imx8mm-phyboard-polis-peb-av-10-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10.dtbo imx8mm-phyboard-polis-peb-eval-01-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-eval-01.dtbo +imx8mm-phycore-rpmsg-dtbs += imx8mm-phyboard-polis-rdk.dtb
imx8mm-phycore-rpmsg.dtbo
dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-av-10.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-eval-01.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-rpmsg.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-phygate-tauri-l.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mm-prt8mm.dtbarch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +6
-0@@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2024 PHYTEC Messtechnik GmbH + * Author: Dominik Haller <[email protected]> + */ +arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso line 16
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +10
-0+/dts-v1/; +/plugin/; + +#include <dt-bindings/clock/imx8mm-clock.h> + +&{/} { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges;I'm getting this:
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:16.3-10: Warning (
ranges_format): /fragment@0/__overlay__/reserved-memory:ranges: empty "ranges" property but its #size-cells (2) differs from /fragment@0/__overlay__ (1) arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #address-cells value arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #size-cells valueI see, missed this before, sorry. But I have some problems fixing it.
I think the problem is that this is overlay, the same node put in theimx8mm-phycore-som.dtsidoesn't trigger a warning. The only solution that I found is that I specify the default address-cells and size-cells in root node:&{/} {
#address-cells = <2>;
#size-cells = <2>;reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
...
};
};The same values are used in
imx8mm.dtsi, but the checker fails to find these default values. Not sure if this is the right solution, though. Your input would be helpful, thanks.Best regards,
AndrejQuoted 37 lines
Shawn
Quoted 35 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +35
-0+ + m4_reserved: m4@80000000 { + reg = <0 0x80000000 0 0x1000000>; + no-map; + }; + + vdev0vring0: vdev0vring0@b8000000 { + reg = <0 0xb8000000 0 0x8000>; + no-map; + }; + + vdev0vring1: vdev0vring1@b8008000 { + reg = <0 0xb8008000 0 0x8000>; + no-map; + }; + + rsc_table: rsc_table@b80ff000 { + reg = <0 0xb80ff000 0 0x1000>; + no-map; + }; + + vdevbuffer: vdevbuffer@b8400000 { + compatible = "shared-dma-pool"; + reg = <0 0xb8400000 0 0x100000>; + no-map; + }; + }; + + core-m4 { + compatible = "fsl,imx8mm-cm4"; + clocks = <&clk IMX8MM_CLK_M4_DIV>; + mboxes = <&mu 0 1 + &mu 1 1 + &mu 3 1>; + mbox-names = "tx", "rx", "rxdb";Quoted 9 lines
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +1
-0+ memory-region = <&vdevbuffer>, <&vdev0vring0>,<&vdev0vring1>, <
&rsc_table>;
+ syscon = <&src>;
+ };
+};Signature · 1 line
2.34.1_______________________________________________
upstream mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Re: [PATCH v2 13/15] arm64: dts: imx8mm-phycore-som: Add overlay for rproc
In reply to Andrej PicejQuoted 49 lines · Andrej Picej
Quoted 25 lines
Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +6
-0@@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2024 PHYTEC Messtechnik GmbH + * Author: Dominik Haller <[email protected]> + */ +arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso line 16
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +10
-0+/dts-v1/; +/plugin/; + +#include <dt-bindings/clock/imx8mm-clock.h> + +&{/} { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges;I'm getting this:
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:16.3-10: Warning (
ranges_format): /fragment@0/__overlay__/reserved-memory:ranges: empty "ranges" property but its #size-cells (2) differs from /fragment@0/__overlay__ (1) arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #address-cells value arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #size-cells valueI see, missed this before, sorry. But I have some problems fixing it. I think the problem is that this is overlay, the same node put in the
imx8mm-phycore-som.dtsidoesn't trigger a warning.
The only solution that I found is that I specify the default address-cells and size-cells in root node:&{/} { #address-cells = <2>; #size-cells = <2>; reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; ... }; };
Quoted 4 lines
The same values are used in
imx8mm.dtsi, but the checker fails to find these default values.
Not sure if this is the right solution, though. Your input would be helpful, thanks.
Unless DT folks have better suggestion, I'm fine with this.
Shawn
Re: [PATCH v2 13/15] arm64: dts: imx8mm-phycore-som: Add overlay for rproc
Quoted 50 lines · Shawn Guo
Quoted 49 lines · Andrej Picej
Quoted 25 lines
Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +6
-0@@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2024 PHYTEC Messtechnik GmbH + * Author: Dominik Haller <[email protected]> + */ +arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso line 16
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso new file +10
-0+/dts-v1/; +/plugin/; + +#include <dt-bindings/clock/imx8mm-clock.h> + +&{/} { + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges;I'm getting this:
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:16.3-10: Warning (
ranges_format): /fragment@0/__overlay__/reserved-memory:ranges: empty "ranges" property but its #size-cells (2) differs from /fragment@0/__overlay__ (1) arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #address-cells value arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #size-cells valueI see, missed this before, sorry. But I have some problems fixing it. I think the problem is that this is overlay, the same node put in the
imx8mm-phycore-som.dtsidoesn't trigger a warning.
The only solution that I found is that I specify the default address-cells and size-cells in root node:&{/} { #address-cells = <2>; #size-cells = <2>; reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; ... }; };
Quoted 6 lines
Quoted 4 lines
The same values are used in
imx8mm.dtsi, but the checker fails to find these default values.
Not sure if this is the right solution, though. Your input would be helpful, thanks.Unless DT folks have better suggestion, I'm fine with this.
Ok, I'll send a v2. Thanks.
Best regards,
Andrej
Quoted 3 lines
Shawn
PATCH v2 14/15 arm64: dts: imx8mm-phycore-som: Add no-eth phy overlay
In reply to Andrej PicejFrom: Teresa Remmet <[email protected]>
There are SoM variants with no eth phy populated. Add overlay to be able to support this.
---
Changes in v2:
- no change.
--- arch/arm64/boot/dts/freescale/Makefile | 2 ++ .../boot/dts/freescale/imx8mm-phycore-no-eth.dtso | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phycore-no-eth.dtso
arch/arm64/boot/dts/freescale/Makefile +2 -0
@@ -125,10 +125,12 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10.dtbo imx8mm-phyboard-polis-peb-eval-01-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-eval-01.dtbo +imx8mm-phycore-no-eth-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phycore-no-eth.dtbo imx8mm-phycore-rpmsg-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phycore-rpmsg.dtbo dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-av-10.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-eval-01.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-no-eth.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-rpmsg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phygate-tauri-l.dtb
arch/arm64/boot/dts/freescale/imx8mm-phycore-no-eth.dtso new file +12 -0
@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2024 PHYTEC Messtechnik GmbH + * Author: Teresa Remmet <[email protected]> + */ + +/dts-v1/; +/plugin/; + +ðphy0 { + status = "disabled"; +};
Signature · 1 line
2.34.1
PATCH v2 15/15 arm64: dts: imx8mm-phycore-som: Add overlay to disable SPI NOR flash
In reply to Andrej PicejFrom: Teresa Remmet <[email protected]>
There are SoM variants with no SPI NOR flash populated. Add overlay to be able to support this.
---
Changes in v2:
- no change.
--- arch/arm64/boot/dts/freescale/Makefile | 2 ++ .../freescale/imx8mm-phycore-no-spiflash.dtso | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-phycore-no-spiflash.dtso
arch/arm64/boot/dts/freescale/Makefile +2 -0
@@ -126,11 +126,13 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-av-10.dtbo imx8mm-phyboard-polis-peb-eval-01-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phyboard-polis-peb-eval-01.dtbo imx8mm-phycore-no-eth-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phycore-no-eth.dtbo +imx8mm-phycore-no-spiflash-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phycore-no-spiflash.dtbo imx8mm-phycore-rpmsg-dtbs += imx8mm-phyboard-polis-rdk.dtb imx8mm-phycore-rpmsg.dtbo dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-av-10.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phyboard-polis-peb-eval-01.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-no-eth.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-no-spiflash.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phycore-rpmsg.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-phygate-tauri-l.dtb
arch/arm64/boot/dts/freescale/imx8mm-phycore-no-spiflash.dtso new file +16 -0
@@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2024 PHYTEC Messtechnik GmbH + * Author: Teresa Remmet <[email protected]> + */ + +/dts-v1/; +/plugin/; + +&flexspi { + status = "disabled"; +}; + +&som_flash { + status = "disabled"; +};
Signature · 1 line
2.34.1