Skip to content

Commit 4108f71

Browse files
committed
Portenta-X8 spl/u-boot: override imx8mm-evk devicetree [1]
1 parent de81854 commit 4108f71

File tree

2 files changed

+24
-226
lines changed

2 files changed

+24
-226
lines changed

meta-arduino-bsp/recipes-bsp/u-boot/u-boot-imx/portenta-x8/imx8mm-evk.dts

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,11 @@
99
#include "imx8mm-evk.dtsi"
1010

1111
/ {
12-
model = "NXP i.MX8MM EVK board";
12+
model = "Arduino Portenta X8 i.MX8MM board";
1313
compatible = "fsl,imx8mm-evk", "fsl,imx8mm";
1414

1515
chosen {
16-
bootargs = "console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200";
17-
};
18-
19-
aliases {
20-
spi0 = &flexspi;
21-
};
22-
};
23-
24-
&flexspi {
25-
pinctrl-names = "default";
26-
pinctrl-0 = <&pinctrl_flexspi>;
27-
status = "okay";
28-
29-
flash@0 {
30-
reg = <0>;
31-
#address-cells = <1>;
32-
#size-cells = <1>;
33-
compatible = "jedec,spi-nor";
34-
spi-max-frequency = <80000000>;
35-
spi-tx-bus-width = <1>;
36-
spi-rx-bus-width = <4>;
16+
bootargs = "console=ttymxc2,115200 earlycon=ec_imx6q,0x30880000,115200";
3717
};
3818
};
3919

@@ -50,17 +30,6 @@
5030
};
5131

5232
&iomuxc {
53-
pinctrl_flexspi: flexspigrp {
54-
fsl,pins = <
55-
MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x1c2
56-
MX8MM_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B 0x82
57-
MX8MM_IOMUXC_NAND_DATA00_QSPI_A_DATA0 0x82
58-
MX8MM_IOMUXC_NAND_DATA01_QSPI_A_DATA1 0x82
59-
MX8MM_IOMUXC_NAND_DATA02_QSPI_A_DATA2 0x82
60-
MX8MM_IOMUXC_NAND_DATA03_QSPI_A_DATA3 0x82
61-
>;
62-
};
63-
6433
pinctrl_usdhc3: usdhc3grp {
6534
fsl,pins = <
6635
MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190

meta-arduino-bsp/recipes-bsp/u-boot/u-boot-imx/portenta-x8/imx8mm-evk.dtsi

Lines changed: 22 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/ {
1313
chosen {
14-
stdout-path = &uart2;
14+
stdout-path = &uart3;
1515
};
1616

1717
memory@40000000 {
@@ -24,9 +24,23 @@
2424
pinctrl-names = "default";
2525
pinctrl-0 = <&pinctrl_gpio_led>;
2626

27-
led-0 {
28-
gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
29-
default-state = "on";
27+
ledR {
28+
label = "ledR";
29+
gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
30+
default-state = "off";
31+
};
32+
33+
ledG {
34+
label = "ledG";
35+
gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
36+
default-state = "off";
37+
};
38+
39+
ledB {
40+
label = "ledB";
41+
gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
42+
linux,default-trigger = "heartbeat";
43+
default-state = "off";
3044
};
3145
};
3246

@@ -43,7 +57,7 @@
4357
regulator-name = "MPCIE_3V3";
4458
regulator-min-microvolt = <3300000>;
4559
regulator-max-microvolt = <3300000>;
46-
gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
60+
/*gpio = <&x8h7_gpio 29 GPIO_ACTIVE_HIGH>;*/ /* stm32h7 PWM6 */
4761
enable-active-high;
4862
};
4963

@@ -59,104 +73,10 @@
5973
enable-active-high;
6074
};
6175

62-
backlight: backlight {
63-
compatible = "pwm-backlight";
64-
pwms = <&pwm1 0 5000000 0>;
65-
brightness-levels = <0 255>;
66-
num-interpolated-steps = <255>;
67-
default-brightness-level = <250>;
68-
};
69-
70-
ir-receiver {
71-
compatible = "gpio-ir-receiver";
72-
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
73-
pinctrl-names = "default";
74-
pinctrl-0 = <&pinctrl_ir>;
75-
linux,autosuspend-period = <125>;
76-
};
77-
78-
audio_codec_bt_sco: audio-codec-bt-sco {
79-
compatible = "linux,bt-sco";
80-
#sound-dai-cells = <1>;
81-
};
82-
83-
wm8524: audio-codec {
84-
#sound-dai-cells = <0>;
85-
compatible = "wlf,wm8524";
86-
pinctrl-names = "default";
87-
pinctrl-0 = <&pinctrl_gpio_wlf>;
88-
wlf,mute-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>;
89-
};
90-
91-
sound-bt-sco {
92-
compatible = "simple-audio-card";
93-
simple-audio-card,name = "bt-sco-audio";
94-
simple-audio-card,format = "dsp_a";
95-
simple-audio-card,bitclock-inversion;
96-
simple-audio-card,frame-master = <&btcpu>;
97-
simple-audio-card,bitclock-master = <&btcpu>;
98-
99-
btcpu: simple-audio-card,cpu {
100-
sound-dai = <&sai2>;
101-
dai-tdm-slot-num = <2>;
102-
dai-tdm-slot-width = <16>;
103-
};
104-
105-
simple-audio-card,codec {
106-
sound-dai = <&audio_codec_bt_sco 1>;
107-
};
108-
};
109-
110-
sound-wm8524 {
111-
compatible = "simple-audio-card";
112-
simple-audio-card,name = "wm8524-audio";
113-
simple-audio-card,format = "i2s";
114-
simple-audio-card,frame-master = <&cpudai>;
115-
simple-audio-card,bitclock-master = <&cpudai>;
116-
simple-audio-card,widgets =
117-
"Line", "Left Line Out Jack",
118-
"Line", "Right Line Out Jack";
119-
simple-audio-card,routing =
120-
"Left Line Out Jack", "LINEVOUTL",
121-
"Right Line Out Jack", "LINEVOUTR";
122-
123-
cpudai: simple-audio-card,cpu {
124-
sound-dai = <&sai3>;
125-
dai-tdm-slot-num = <2>;
126-
dai-tdm-slot-width = <32>;
127-
};
128-
129-
simple-audio-card,codec {
130-
sound-dai = <&wm8524>;
131-
clocks = <&clk IMX8MM_CLK_SAI3_ROOT>;
132-
};
133-
};
134-
13576
dsi_host: dsi-host {
13677
compatible = "samsung,sec-mipi-dsi";
13778
status = "okay";
13879
};
139-
140-
rm67199_panel {
141-
compatible = "raydium,rm67199";
142-
pinctrl-names = "default";
143-
pinctrl-0 = <&pinctrl_mipi_dsi_en>;
144-
reset-gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
145-
dsi-lanes = <4>;
146-
video-mode = <2>; /* 0: burst mode
147-
* 1: non-burst mode with sync event
148-
* 2: non-burst mode with sync pulse
149-
*/
150-
panel-width-mm = <68>;
151-
panel-height-mm = <121>;
152-
status = "okay";
153-
154-
port {
155-
rm67191_from_dsim: endpoint {
156-
remote-endpoint = <&dsim_to_rm67191>;
157-
};
158-
};
159-
};
16080
};
16181

16282
&A53_0 {
@@ -175,22 +95,6 @@
17595
cpu-supply = <&buck2_reg>;
17696
};
17797

178-
179-
&ecspi2 {
180-
#address-cells = <1>;
181-
#size-cells = <0>;
182-
pinctrl-names = "default";
183-
pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs>;
184-
cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
185-
status = "okay";
186-
187-
spidev0: spi@0 {
188-
reg = <0>;
189-
compatible = "rohm,dh2228fv";
190-
spi-max-frequency = <500000>;
191-
};
192-
};
193-
19498
&fec1 {
19599
pinctrl-names = "default";
196100
pinctrl-0 = <&pinctrl_fec1>;
@@ -206,7 +110,7 @@
206110
ethphy0: ethernet-phy@0 {
207111
compatible = "ethernet-phy-ieee802.3-c22";
208112
reg = <0>;
209-
reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
113+
reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
210114
reset-assert-us = <15000>;
211115
reset-deassert-us = <100000>;
212116
qca,disable-smarteee;
@@ -340,49 +244,6 @@
340244
scl-gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>;
341245
sda-gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
342246
status = "okay";
343-
344-
adv_bridge: adv7535@3d {
345-
compatible = "adi,adv7535";
346-
reg = <0x3d>;
347-
adi,addr-cec = <0x3c>;
348-
adi,dsi-lanes = <4>;
349-
status = "okay";
350-
351-
port {
352-
adv7535_from_dsim: endpoint {
353-
remote-endpoint = <&dsim_to_adv7535>;
354-
};
355-
};
356-
};
357-
358-
ptn5110: tcpc@50 {
359-
compatible = "nxp,ptn5110";
360-
pinctrl-names = "default";
361-
pinctrl-0 = <&pinctrl_typec1>;
362-
reg = <0x50>;
363-
interrupt-parent = <&gpio2>;
364-
interrupts = <11 8>;
365-
status = "okay";
366-
367-
port {
368-
typec1_dr_sw: endpoint {
369-
remote-endpoint = <&usb1_drd_sw>;
370-
};
371-
};
372-
373-
typec1_con: connector {
374-
compatible = "usb-c-connector";
375-
label = "USB-C";
376-
power-role = "dual";
377-
data-role = "dual";
378-
try-power-role = "sink";
379-
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
380-
sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
381-
PDO_VAR(5000, 20000, 3000)>;
382-
op-sink-microwatt = <15000000>;
383-
self-powered;
384-
};
385-
};
386247
};
387248

388249
&i2c3 {
@@ -393,13 +254,6 @@
393254
scl-gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>;
394255
sda-gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>;
395256
status = "okay";
396-
397-
pca6416: gpio@20 {
398-
compatible = "ti,tca6416";
399-
reg = <0x20>;
400-
gpio-controller;
401-
#gpio-cells = <2>;
402-
};
403257
};
404258

405259
&pcie_phy {
@@ -413,7 +267,7 @@
413267
&pcie0 {
414268
pinctrl-names = "default";
415269
pinctrl-0 = <&pinctrl_pcie0>;
416-
reset-gpio = <&gpio4 21 GPIO_ACTIVE_LOW>;
270+
reset-gpio = <&gpio3 25 GPIO_ACTIVE_LOW>;
417271
clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&clk IMX8MM_CLK_PCIE1_AUX>,
418272
<&pcie0_refclk>;
419273
clock-names = "pcie", "pcie_aux", "pcie_bus";
@@ -423,26 +277,7 @@
423277
assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
424278
<&clk IMX8MM_SYS_PLL2_250M>;
425279
vpcie-supply = <&reg_pcie0>;
426-
status = "okay";
427-
};
428-
429-
&sai2 {
430-
#sound-dai-cells = <0>;
431-
pinctrl-names = "default";
432-
pinctrl-0 = <&pinctrl_sai2>;
433-
assigned-clocks = <&clk IMX8MM_CLK_SAI2>;
434-
assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
435-
assigned-clock-rates = <24576000>;
436-
status = "okay";
437-
};
438-
439-
&sai3 {
440-
pinctrl-names = "default";
441-
pinctrl-0 = <&pinctrl_sai3>;
442-
assigned-clocks = <&clk IMX8MM_CLK_SAI3>;
443-
assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
444-
assigned-clock-rates = <24576000>;
445-
status = "okay";
280+
status = "disabled";
446281
};
447282

448283
&snvs_pwrkey {
@@ -493,12 +328,6 @@
493328
status = "okay";
494329
};
495330

496-
&pwm1 {
497-
pinctrl-names = "default";
498-
pinctrl-0 = <&pinctrl_backlight>;
499-
status = "okay";
500-
};
501-
502331
&lcdif {
503332
display = <&display0>;
504333
status = "okay";

0 commit comments

Comments
 (0)