Skip to contentSkip to conversation

Add support for Kontron OSM-S i.MX8MP SoM and carrier boards

PATCH Superseded Frieder Schrempf 4 participants 7 messages Jul 2, 2024 – Jul 4, 2024

Subsystems (2)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

cover Add support for Kontron OSM-S i.MX8MP SoM and carrier boards

From: Frieder Schrempf <[email protected]>

Patch 1: board DT bindings
Patch 2: OSM-S i.MX8MP SoM and BL carrier board devicetrees Patch 3: i.MX8MP SMARC module and eval carrier board devicetrees

Frieder Schrempf (3):
dt-bindings: arm: fsl: Add Kontron i.MX8MP OSM-S based boards
arm64: dts: Add support for Kontron OSM-S i.MX8MP SoM and BL carrier
board
arm64: dts: Add support for Kontron i.MX8MP SMARC module and eval
carrier

 .../devicetree/bindings/arm/fsl.yaml          |  13 +
 arch/arm64/boot/dts/freescale/Makefile        |   6 +
 .../dts/freescale/imx8mp-kontron-bl-osm-s.dts | 307 ++++++
 .../boot/dts/freescale/imx8mp-kontron-dl.dtso | 112 +++
 .../dts/freescale/imx8mp-kontron-osm-s.dtsi   | 908 ++++++++++++++++++
 .../imx8mp-kontron-smarc-eval-carrier.dts     | 224 +++++
 .../dts/freescale/imx8mp-kontron-smarc.dtsi   | 271 ++++++
 7 files changed, 1841 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc.dtsi
Signature · 1 line
2.45.2
#1 lore raw

PATCH 1/3 dt-bindings: arm: fsl: Add Kontron i.MX8MP OSM-S based boards

From: Frieder Schrempf <[email protected]>

Add the bindings for the Kontron i.MX8MP OSM-S SoM and carrier boards.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +13 -0
index 6d185d09cb6ae..0bda153c38705 100644
@@ -1095,6 +1095,19 @@ properties:
           - const: engicam,icore-mx8mp             # i.MX8MP Engicam i.Core MX8M Plus SoM
           - const: fsl,imx8mp
 
+      - description: Kontron i.MX8MP OSM-S SoM based Boards
+        items:
+          - const: kontron,imx8mp-bl-osm-s  # Kontron BL i.MX8MP OSM-S Board
+          - const: kontron,imx8mp-osm-s     # Kontron i.MX8MP OSM-S SoM
+          - const: fsl,imx8mp
+
+      - description: Kontron i.MX8MP SMARC based Boards
+        items:
+          - const: kontron,imx8mp-smarc-eval-carrier  # Kontron i.MX8MP SMARC Eval Carrier
+          - const: kontron,imx8mp-smarc               # Kontron i.MX8MP SMARC Module
+          - const: kontron,imx8mp-osm-s               # Kontron i.MX8MP OSM-S SoM
+          - const: fsl,imx8mp
+
       - description: PHYTEC phyCORE-i.MX8MP SoM based boards
         items:
           - const: phytec,imx8mp-phyboard-pollux-rdk # phyBOARD-Pollux RDK
Signature · 1 line
2.45.2
#4 lore raw

PATCH 2/3 arm64: dts: Add support for Kontron OSM-S i.MX8MP SoM and BL carrier board

In reply to Frieder Schrempf

From: Frieder Schrempf <[email protected]>

This adds support for the Kontron Electronics OSM-S i.MX8MP SoM and the matching baseboard BL i.MX8MP.

The SoM hardware complies to the Open Standard Module (OSM) 1.1 specification, size S (https://sget.org/standards/osm).

---
 arch/arm64/boot/dts/freescale/Makefile        |   5 +
 .../dts/freescale/imx8mp-kontron-bl-osm-s.dts | 307 ++++++
 .../boot/dts/freescale/imx8mp-kontron-dl.dtso | 112 +++
 .../dts/freescale/imx8mp-kontron-osm-s.dtsi   | 908 ++++++++++++++++++
 4 files changed, 1332 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi
arch/arm64/boot/dts/freescale/Makefile +5 -0
index bd443c2bc5a48..8688a85ba5a44 100644
@@ -170,6 +170,11 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-dhcom-pdk2.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-dhcom-pdk3.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-bl-osm-s.dtb
+
+imx8mp-kontron-dl-dtbs += imx8mp-kontron-bl-osm-s.dtb imx8mp-kontron-dl.dtbo
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-dl.dtb
+
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-msc-sm2s-ep1.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-navqp.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb
arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts new file +307 -0

307 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso new file +112 -0

112 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi new file +908 -0

908 lines not on this page · raw message

Signature · 1 line
2.45.2
#5 lore raw

PATCH 3/3 arm64: dts: Add support for Kontron i.MX8MP SMARC module and eval carrier

In reply to Frieder Schrempf

From: Frieder Schrempf <[email protected]>

This adds support for the Kontron Electronics i.MX8MP SMARC module (which uses the OSM-S i.MX8MP SoM) on the Kontron SMARC eval carrier.

---
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../imx8mp-kontron-smarc-eval-carrier.dts     | 224 +++++++++++++++
 .../dts/freescale/imx8mp-kontron-smarc.dtsi   | 271 ++++++++++++++++++
 3 files changed, 496 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc.dtsi
arch/arm64/boot/dts/freescale/Makefile +1 -0
index 8688a85ba5a44..6d72558c1a9e3 100644
@@ -175,6 +175,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-bl-osm-s.dtb
 imx8mp-kontron-dl-dtbs += imx8mp-kontron-bl-osm-s.dtb imx8mp-kontron-dl.dtbo
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-dl.dtb
 
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-smarc-eval-carrier.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-msc-sm2s-ep1.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-navqp.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb
arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dts new file +224 -0

224 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc.dtsi new file +271 -0

271 lines not on this page · raw message

Signature · 1 line
2.45.2
#6 lore raw
In reply to Frieder Schrempf
Quoted 27 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

Patch 1: board DT bindings
Patch 2: OSM-S i.MX8MP SoM and BL carrier board devicetrees Patch 3: i.MX8MP SMARC module and eval carrier board devicetrees

Frieder Schrempf (3):
dt-bindings: arm: fsl: Add Kontron i.MX8MP OSM-S based boards
arm64: dts: Add support for Kontron OSM-S i.MX8MP SoM and BL carrier
board
arm64: dts: Add support for Kontron i.MX8MP SMARC module and eval
carrier

 .../devicetree/bindings/arm/fsl.yaml          |  13 +
 arch/arm64/boot/dts/freescale/Makefile        |   6 +
 .../dts/freescale/imx8mp-kontron-bl-osm-s.dts | 307 ++++++
 .../boot/dts/freescale/imx8mp-kontron-dl.dtso | 112 +++
 .../dts/freescale/imx8mp-kontron-osm-s.dtsi   | 908 ++++++++++++++++++
 .../imx8mp-kontron-smarc-eval-carrier.dts     | 224 +++++
 .../dts/freescale/imx8mp-kontron-smarc.dtsi   | 271 ++++++
 7 files changed, 1841 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc.dtsi
Quoted 5 lines

--
2.45.2

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

New warnings running 'make CHECK_DTBS=y freescale/imx8mp-kontron-bl-osm-s.dtb freescale/imx8mp-kontron-smarc-eval-carrier.dtb' for [email protected]:

arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dtb: eeprom@50: compatible: 'oneOf' conditional failed, one must be fixed:
arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dtb: eeprom@50: compatible: 'oneOf' conditional failed, one must be fixed:

		'onnn,n24s64b' does not match 'c00$'
		'onnn,n24s64b' does not match 'c01$'
		'onnn,n24s64b' does not match 'cs01$'
		'onnn,n24s64b' does not match 'c02$'
		'onnn,n24s64b' does not match 'cs02$'
		'onnn,n24s64b' does not match 'mac402$'
		'onnn,n24s64b' does not match 'mac602$'
		'onnn,n24s64b' does not match 'c04$'
		'onnn,n24s64b' does not match 'cs04$'
		'onnn,n24s64b' does not match 'c08$'
		'onnn,n24s64b' does not match 'cs08$'
		'onnn,n24s64b' does not match 'c16$'
		'onnn,n24s64b' does not match 'cs16$'
		'onnn,n24s64b' does not match 'c32$'
		'onnn,n24s64b' does not match 'cs32$'
		'onnn,n24s64b' does not match 'c64$'
		'onnn,n24s64b' does not match 'cs64$'
		'onnn,n24s64b' does not match 'c128$'
		'onnn,n24s64b' does not match 'cs128$'
		'onnn,n24s64b' does not match 'c256$'
		'onnn,n24s64b' does not match 'cs256$'
		'onnn,n24s64b' does not match 'c512$'
		'onnn,n24s64b' does not match 'cs512$'
		'onnn,n24s64b' does not match 'c1024$'
		'onnn,n24s64b' does not match 'cs1024$'
		'onnn,n24s64b' does not match 'c1025$'
		'onnn,n24s64b' does not match 'cs1025$'
		'onnn,n24s64b' does not match 'c2048$'
		'onnn,n24s64b' does not match 'cs2048$'
		'onnn,n24s64b' does not match 'spd$'
		'atmel,24c64' does not match 'c00$'
		'atmel,24c64' does not match 'c01$'
		'atmel,24c64' does not match 'cs01$'
		'atmel,24c64' does not match 'c02$'
		'atmel,24c64' does not match 'cs02$'
		'atmel,24c64' does not match 'mac402$'
		'atmel,24c64' does not match 'mac602$'
		'atmel,24c64' does not match 'c04$'
		'atmel,24c64' does not match 'cs04$'
		'atmel,24c64' does not match 'c08$'
		'atmel,24c64' does not match 'cs08$'
		'atmel,24c64' does not match 'c16$'
		'atmel,24c64' does not match 'cs16$'
		'atmel,24c64' does not match 'c32$'
		'atmel,24c64' does not match 'cs32$'
		'atmel,24c64' does not match 'cs64$'
		'atmel,24c64' does not match 'c128$'
		'atmel,24c64' does not match 'cs128$'
		'atmel,24c64' does not match 'c256$'
		'atmel,24c64' does not match 'cs256$'
		'atmel,24c64' does not match 'c512$'
		'atmel,24c64' does not match 'cs512$'
		'atmel,24c64' does not match 'c1024$'
		'atmel,24c64' does not match 'cs1024$'
		'atmel,24c64' does not match 'c1025$'
		'atmel,24c64' does not match 'cs1025$'
		'atmel,24c64' does not match 'c2048$'
		'atmel,24c64' does not match 'cs2048$'
		'atmel,24c64' does not match 'spd$'
	['onnn,n24s64b', 'atmel,24c64'] is too long
	'onnn,n24s64b' does not match '^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$'
	'belling,bl24c16a' was expected
	'onnn,n24s64b' is not one of ['rohm,br24g01', 'rohm,br24t01']
	'onnn,n24s64b' is not one of ['nxp,se97b', 'renesas,r1ex24002']
	'onnn,n24s64b' is not one of ['onnn,cat24c04', 'onnn,cat24c05', 'rohm,br24g04']
	'renesas,r1ex24016' was expected
	'giantec,gt24c32a' was expected
	'onnn,n24s64b' is not one of ['renesas,r1ex24128', 'samsung,s524ad0xd1']
	'onnn,n24s64b' does not match '^atmel,24c(32|64)d-wl$'
	'atmel,24c16' was expected
	'atmel,24c01' was expected
	'atmel,24c02' was expected
	'atmel,24c04' was expected
	'atmel,24c32' was expected
	'atmel,24c128' was expected
	from schema $id: http://devicetree.org/schemas/eeprom/at24.yaml#

arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dtb: eeprom@50: Unevaluated properties are not allowed ('compatible' was unexpected)
from schema $id: http://devicetree.org/schemas/eeprom/at24.yaml#
arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dtb: /soc@0/bus@30800000/i2c@30ad0000/eeprom@50: failed to match any schema with compatible: ['onnn,n24s64b', 'atmel,24c64'] arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dtb: eeprom@50: compatible: 'oneOf' conditional failed, one must be fixed:
arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dtb: eeprom@50: compatible: 'oneOf' conditional failed, one must be fixed:

		'onnn,n24s64b' does not match 'c00$'
		'onnn,n24s64b' does not match 'c01$'
		'onnn,n24s64b' does not match 'cs01$'
		'onnn,n24s64b' does not match 'c02$'
		'onnn,n24s64b' does not match 'cs02$'
		'onnn,n24s64b' does not match 'mac402$'
		'onnn,n24s64b' does not match 'mac602$'
		'onnn,n24s64b' does not match 'c04$'
		'onnn,n24s64b' does not match 'cs04$'
		'onnn,n24s64b' does not match 'c08$'
		'onnn,n24s64b' does not match 'cs08$'
		'onnn,n24s64b' does not match 'c16$'
		'onnn,n24s64b' does not match 'cs16$'
		'onnn,n24s64b' does not match 'c32$'
		'onnn,n24s64b' does not match 'cs32$'
		'onnn,n24s64b' does not match 'c64$'
		'onnn,n24s64b' does not match 'cs64$'
		'onnn,n24s64b' does not match 'c128$'
		'onnn,n24s64b' does not match 'cs128$'
		'onnn,n24s64b' does not match 'c256$'
		'onnn,n24s64b' does not match 'cs256$'
		'onnn,n24s64b' does not match 'c512$'
		'onnn,n24s64b' does not match 'cs512$'
		'onnn,n24s64b' does not match 'c1024$'
		'onnn,n24s64b' does not match 'cs1024$'
		'onnn,n24s64b' does not match 'c1025$'
		'onnn,n24s64b' does not match 'cs1025$'
		'onnn,n24s64b' does not match 'c2048$'
		'onnn,n24s64b' does not match 'cs2048$'
		'onnn,n24s64b' does not match 'spd$'
		'atmel,24c64' does not match 'c00$'
		'atmel,24c64' does not match 'c01$'
		'atmel,24c64' does not match 'cs01$'
		'atmel,24c64' does not match 'c02$'
		'atmel,24c64' does not match 'cs02$'
		'atmel,24c64' does not match 'mac402$'
		'atmel,24c64' does not match 'mac602$'
		'atmel,24c64' does not match 'c04$'
		'atmel,24c64' does not match 'cs04$'
		'atmel,24c64' does not match 'c08$'
		'atmel,24c64' does not match 'cs08$'
		'atmel,24c64' does not match 'c16$'
		'atmel,24c64' does not match 'cs16$'
		'atmel,24c64' does not match 'c32$'
		'atmel,24c64' does not match 'cs32$'
		'atmel,24c64' does not match 'cs64$'
		'atmel,24c64' does not match 'c128$'
		'atmel,24c64' does not match 'cs128$'
		'atmel,24c64' does not match 'c256$'
		'atmel,24c64' does not match 'cs256$'
		'atmel,24c64' does not match 'c512$'
		'atmel,24c64' does not match 'cs512$'
		'atmel,24c64' does not match 'c1024$'
		'atmel,24c64' does not match 'cs1024$'
		'atmel,24c64' does not match 'c1025$'
		'atmel,24c64' does not match 'cs1025$'
		'atmel,24c64' does not match 'c2048$'
		'atmel,24c64' does not match 'cs2048$'
		'atmel,24c64' does not match 'spd$'
	['onnn,n24s64b', 'atmel,24c64'] is too long
	'onnn,n24s64b' does not match '^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$'
	'belling,bl24c16a' was expected
	'onnn,n24s64b' is not one of ['rohm,br24g01', 'rohm,br24t01']
	'onnn,n24s64b' is not one of ['nxp,se97b', 'renesas,r1ex24002']
	'onnn,n24s64b' is not one of ['onnn,cat24c04', 'onnn,cat24c05', 'rohm,br24g04']
	'renesas,r1ex24016' was expected
	'giantec,gt24c32a' was expected
	'onnn,n24s64b' is not one of ['renesas,r1ex24128', 'samsung,s524ad0xd1']
	'onnn,n24s64b' does not match '^atmel,24c(32|64)d-wl$'
	'atmel,24c16' was expected
	'atmel,24c01' was expected
	'atmel,24c02' was expected
	'atmel,24c04' was expected
	'atmel,24c32' was expected
	'atmel,24c128' was expected
	from schema $id: http://devicetree.org/schemas/eeprom/at24.yaml#

arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dtb: eeprom@50: Unevaluated properties are not allowed ('compatible' was unexpected)
from schema $id: http://devicetree.org/schemas/eeprom/at24.yaml#
arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dtb: /soc@0/bus@30800000/i2c@30ad0000/eeprom@50: failed to match any schema with compatible: ['onnn,n24s64b', 'atmel,24c64'] arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dtb: /usbc: failed to match any schema with compatible: ['linux,extcon-usb-gpio'] arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dtb: /usbc: failed to match any schema with compatible: ['linux,extcon-usb-gpio']