dt-bindings: arm: Document the btt3 i.MX28 based board
Subsystems (2)
PATCH v6 1/2 dt-bindings: arm: Document the btt3 i.MX28 based board
The imx287 based btt3 board is very similar to xea in terms of used SOM module.
--- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
@@ -97,6 +97,7 @@ properties: - i2se,duckbill - i2se,duckbill-2 - karo,tx28 # Ka-Ro electronics TX28 module + - lwn,imx28-btt3 - lwn,imx28-xea - msr,m28cu3 # M28 SoM with custom base board - schulercontrol,imx28-sps1
Signature · 1 line
2.39.2
PATCH v6 2/2 dts: nxp: mxs: Add descriptions for imx287 based btt3-[012] devices
The btt3 device' HW revisions from 0 to 2 use imx287 SoC and are to some extend similar to already upstreamed XEA devices, hence are using common imx28-lwe.dtsi file.
New, imx28-btt3.dtsi has been added to embrace common DTS properties for different HW revisions for this device.
As a result - changes introduced in imx28-btt3-[012].dts are minimal.
---
Changes for v2:
- Rename dts file from btt3-[012] to imx28-btt3-[012] to match current linux kernel naming convention
- Remove 'wlf,wm8974' from compatible for codec@1a
Changes for v3:
- Keep alphabethical order for Makefile entries
Changes for v4:
- Change compatible for btt3 board (to 'lwn,imx28-btt3')
Changes for v5:
- Combine patch, which adds btt3-[012] with one adding board entry to fsl.yaml
Changes for v6:
- Make the patch series for adding entry in fsl.yaml and btt3
--- arch/arm/boot/dts/nxp/mxs/Makefile | 3 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts | 8 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi | 320 +++++++++++++++++++++ 5 files changed, 355 insertions(+) create mode 100644 arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts create mode 100644 arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts create mode 100644 arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts create mode 100644 arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi
arch/arm/boot/dts/nxp/mxs/Makefile +3 -0
@@ -8,6 +8,9 @@ dtb-$(CONFIG_ARCH_MXS) += \ imx28-apf28.dtb \ imx28-apf28dev.dtb \ imx28-apx4devkit.dtb \ + imx28-btt3-0.dtb \ + imx28-btt3-1.dtb \ + imx28-btt3-2.dtb \ imx28-cfa10036.dtb \ imx28-cfa10037.dtb \ imx28-cfa10049.dtb \
arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts new file +12 -0
@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi" + +&hog_pins_rev { + fsl,pull-up = <MXS_PULL_ENABLE>; +};
arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts new file +8 -0
@@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi"
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +12 -0
@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi" + +&lcdif { + display = <&display_te_b>; +};
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +320 -0
320 lines not on this page · raw message
Signature · 1 line
2.39.2
Fabio Estevam
reviewerRe: [PATCH v6 2/2] dts: nxp: mxs: Add descriptions for imx287 based btt3-[012] devices
Hi Lukasz,
Quoted 16 lines · Lukasz Majewski
+&lcdif {
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +15
-0+ pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a>, <&lcdif_sync_pins_bttc>, + <&lcdif_reset_pins_bttc>; + lcd-supply = <®_3v3>; + display = <&display0>; + status = "okay"; + display0: display0 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing0: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>;
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 106
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ hfront-porch = <20>; + hback-porch = <38>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <1>;
According to fsl,lcdif.yaml, a remote-endpoint to the display is needed.
See imx28-evk.dts for an example.
Re: [PATCH v6 2/2] dts: nxp: mxs: Add descriptions for imx287 based btt3-[012] devices
Hi Fabio,
Quoted 31 lines
Hi Lukasz,
Quoted 16 lines · Lukasz Majewski
+&lcdif {
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +15
-0+ pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a>, <&lcdif_sync_pins_bttc>, + <&lcdif_reset_pins_bttc>; + lcd-supply = <®_3v3>; + display = <&display0>; + status = "okay"; + display0: display0 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing0: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>;arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 106
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ hfront-porch = <20>; + hback-porch = <38>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <1>;
Quoted 4 lines
According to fsl,lcdif.yaml, a remote-endpoint to the display is needed.
See
imx28-evk.dtsfor an example.
This file has the:
panel {
compatible = "sii,43wvf1g";Whereas in those devices (i.e. btt3) - I don't know the names of the displays - manufacturer buys them according to the timing properties.
Hence the question - how shall I proceed?
IMHO the most straightforward way is to modify fsl,lcdif.yaml to not require "port" and "remote-endpoint" and instead add support for "display-timings" and "timingX"
Especially that Documentation/devicetree/bindings/display/panel/display-timings.yaml
are already defined and used by many imx boards (from imx25 to imx6q)
- git grep -n "display-timings"
Even the imx28-m28evk.dts is using the "display-timings" and not "remote-endpoint" approach.
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Fabio Estevam
reviewerRe: [PATCH v6 2/2] dts: nxp: mxs: Add descriptions for imx287 based btt3-[012] devices
Hi Lukasz,
Quoted 4 lines · Lukasz Majewski
This file has the:
panel { compatible = "sii,43wvf1g";
Quoted 8 lines
Whereas in those devices (i.e. btt3) - I don't know the names of the displays - manufacturer buys them according to the timing properties.
Hence the question - how shall I proceed?
IMHO the most straightforward way is to modify fsl,lcdif.yaml to not require "port" and "remote-endpoint" and instead add support for "display-timings" and "timingX"
Yes, that would be a good solution, thanks.
Re: [PATCH v6 2/2] dts: nxp: mxs: Add descriptions for imx287 based btt3-[012] devices
In reply to Lukasz MajewskiHi Lukasz,
please adjust the subject of your patch accordingly to the subsystem.
Suggestion
ARM: dts: mxs: Add descriptions for imx287 based btt3-[012] devices
Am 12.09.24 um 14:48 schrieb Lukasz Majewski:
Quoted 95 lines
The btt3 device' HW revisions from 0 to 2 use imx287 SoC and are to some extend similar to already upstreamed XEA devices, hence are using common
imx28-lwe.dtsifile.New,
imx28-btt3.dtsihas been added to embrace common DTS properties for different HW revisions for this device.As a result - changes introduced in imx28-btt3-[012].dts are minimal.
Signed-off-by Lukasz Majewski <[email protected]>---
Changes for v2:
- Rename dts file from btt3-[012] to imx28-btt3-[012] to match current linux kernel naming convention
- Remove 'wlf,wm8974' from compatible for codec@1aChanges for v3:
- Keep alphabethical order forMakefileentriesChanges for v4:
- Change compatible for btt3 board (to 'lwn,imx28-btt3')Changes for v5:
- Combine patch, which adds btt3-[012] with one adding board entry tofsl.yamlChanges for v6:
- Make the patch series for adding entry infsl.yamland btt3--- arch/arm/boot/dts/nxp/mxs/Makefile | 3 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts | 8 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi | 320 +++++++++++++++++++++ 5 files changed, 355 insertions(+)create mode 100644
arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsiarch/arm/boot/dts/nxp/mxs/Makefile +3
-0@@ -8,6 +8,9 @@ dtb-$(CONFIG_ARCH_MXS) += \ imx28-apf28.dtb \ imx28-apf28dev.dtb \ imx28-apx4devkit.dtb \ + imx28-btt3-0.dtb \ + imx28-btt3-1.dtb \ + imx28-btt3-2.dtb \ imx28-cfa10036.dtb \ imx28-cfa10037.dtb \ imx28-cfa10049.dtb \arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts new file +12
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi" + +&hog_pins_rev { + fsl,pull-up = <MXS_PULL_ENABLE>; +};arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts new file +8
-0@@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi"arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +1
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts line 11
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +10
-0+/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi" + +&lcdif { + display = <&display_te_b>;
The reason why you don't move the second display into this file is because you expect a new hardware revision in the future?
Quoted 13 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +1
-0+};arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0@@ -0,0 +1,320 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ +/dts-v1/;
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 16
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+#include "imx28-lwe.dtsi" + +/ { + model = "BTT3"; + + compatible = "lwn,imx28-btt3", "fsl,imx28"; + + chosen { + bootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 ro rootwait console=ttyAMA0,115200 panic=1 quiet"; + };
It's a little bit unusual to place so many Linux specific stuff into the device tree bootargs.
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 25
Quoted 9 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +9
-0+ + memory@40000000 { + reg = <0x40000000 0x10000000>; + device_type = "memory"; + }; + + poweroff { + compatible = "gpio-poweroff"; + gpios = <&gpio0 24 0>;
Please use the GPIO polarity defines.
Quoted 106 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +106
-0+ }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "BTTC Audio"; + simple-audio-card,widgets = "Speaker", "BTTC Speaker"; + simple-audio-card,routing = "BTTC Speaker", "SPKOUTN", "BTTC Speaker", "SPKOUTP"; + simple-audio-card,dai-link@0 { + format = "left_j"; + bitclock-master = <&dai0_master>; + frame-master = <&dai0_master>; + mclk-fs = <256>; + dai0_master: cpu { + sound-dai = <&saif0>; + }; + codec { + sound-dai = <&wm89xx>; + clocks = <&saif0>; + }; + }; + }; + + wifi_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_en_pin_bttc>; + reset-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; + /* W1-163 needs 60us for WL_EN to be low and */ + /* 150ms after high before downloading FW is possible */ + post-power-on-delay-ms = <200>; + power-off-delay-us = <100>; + }; +}; + +&auart0 { + pinctrl-names = "default"; + pinctrl-0 = <&auart0_2pins_a>; + status = "okay"; +}; + +&auart3 { + pinctrl-names = "default"; + pinctrl-0 = <&auart3_pins_a>; + uart-has-rtscts; + status = "okay"; +}; + +&i2c0 { + wm89xx: codec@1a { + compatible = "wlf,wm8940"; + reg = <0x1a>; + #sound-dai-cells = <0>; + }; +}; + +&lcdif { + pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a>, <&lcdif_sync_pins_bttc>, + <&lcdif_reset_pins_bttc>; + lcd-supply = <®_3v3>; + display = <&display0>; + status = "okay"; + display0: display0 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing0: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hfront-porch = <20>; + hback-porch = <38>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <1>; + }; + }; + }; + display_te_b: display1 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing_te_b: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hfront-porch = <20>; + hback-porch = <68>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; + };
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 141
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ +}; + +&mac0 { + clocks = <&clks 57>, <&clks 57>, <&clks 64>; + clock-names = "ipg", "ahb", "enet_out"; + phy-handle = <&mac0_phy>; + phy-mode = "rmii"; + phy-supply = <®_3v3>; + local-mac-address = [ 00 11 B8 00 BF 8A ];
Is this replaced dynamically by the bootloader? Otherwise this suggests all boards use the same MAC address.
Quoted 4 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +4
-0+ status = "okay"; + + mdio { + #address-cells = <1>;
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 155
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ #size-cells = <0>; + + mac0_phy: ethernet-phy@0 { + /* LAN8720Ai - PHY ID */ + compatible = "ethernet-phy-id0007.c0f0","ethernet-phy-ieee802.3-c22"; + reg = <0>; + smsc,disable-energy-detect; + max-speed = <100>; + + reset-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; /* GPIO4_12 */
I think the comment only repeat what is already defined here.
Quoted 93 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +93
-0+ reset-assert-us = <1000>; + reset-deassert-us = <1000>; + }; + }; +}; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&hog_pins_a>, <&hog_pins_rev>; + + hog_pins_a: hog@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_RDY2__GPIO_0_22 + MX28_PAD_GPMI_RDY3__GPIO_0_23 + MX28_PAD_GPMI_RDN__GPIO_0_24 + MX28_PAD_LCD_VSYNC__GPIO_1_28 + MX28_PAD_SSP2_SS1__GPIO_2_20 + MX28_PAD_SSP2_SS2__GPIO_2_21 + MX28_PAD_AUART2_CTS__GPIO_3_10 + MX28_PAD_AUART2_RTS__GPIO_3_11 + MX28_PAD_GPMI_WRN__GPIO_0_25 + MX28_PAD_ENET0_RXD2__GPIO_4_9 + MX28_PAD_ENET0_TXD2__GPIO_4_11 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + hog_pins_rev: hog@1 { + reg = <1>; + fsl,pinmux-ids = < + MX28_PAD_ENET0_RXD3__GPIO_4_10 + MX28_PAD_ENET0_TX_CLK__GPIO_4_5 + MX28_PAD_ENET0_COL__GPIO_4_14 + MX28_PAD_ENET0_CRS__GPIO_4_15 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + keypad_pins_bttc: keypad-bttc@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_D00__GPIO_0_0 + MX28_PAD_AUART0_CTS__GPIO_3_2 + MX28_PAD_AUART0_RTS__GPIO_3_3 + MX28_PAD_GPMI_D03__GPIO_0_3 + MX28_PAD_GPMI_D04__GPIO_0_4 + MX28_PAD_GPMI_D05__GPIO_0_5 + MX28_PAD_GPMI_D06__GPIO_0_6 + MX28_PAD_GPMI_D07__GPIO_0_7 + MX28_PAD_GPMI_CE1N__GPIO_0_17 + MX28_PAD_GPMI_CE2N__GPIO_0_18 + MX28_PAD_GPMI_CE3N__GPIO_0_19 + MX28_PAD_GPMI_RDY0__GPIO_0_20 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + lcdif_sync_pins_bttc: lcdif-bttc@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_LCD_DOTCLK__LCD_DOTCLK + MX28_PAD_LCD_ENABLE__LCD_ENABLE + MX28_PAD_LCD_HSYNC__LCD_HSYNC + MX28_PAD_LCD_RD_E__LCD_VSYNC + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + lcdif_reset_pins_bttc: lcdif-bttc@1 { + reg = <1>; + fsl,pinmux-ids = < + MX28_PAD_LCD_RESET__GPIO_3_30 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; + + ssp1_sdio_pins_a: ssp1-sdio@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_SSP1_DATA0__SSP1_D0 + MX28_PAD_GPMI_D01__SSP1_D1 + MX28_PAD_GPMI_D02__SSP1_D2
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 258
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ MX28_PAD_SSP1_DATA3__SSP1_D3 + MX28_PAD_SSP1_CMD__SSP1_CMD + MX28_PAD_SSP1_SCK__SSP1_SCK + >; + fsl,drive-strength = <MXS_DRIVE_8mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; + + wifi_en_pin_bttc: wifi_en_pin@0 {
This should trigger a schema warning. The node name should use dashes instead of underscore.
Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +8
-0+ reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_CLE__GPIO_0_27 + >; + fsl,drive-strength = <MXS_DRIVE_8mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + };
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 276
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm3_pins_a>; + status = "okay"; +}; + +®_usb_5v { + gpio = <&gpio1 28 0>;
Please use polarity define.
Quoted 16 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +16
-0+}; + +&saif0 { + pinctrl-names = "default"; + pinctrl-0 = <&saif0_pins_a>; + #sound-dai-cells = <0>; + assigned-clocks = <&clks 53>; + assigned-clock-rates = <12000000>; + status = "okay"; +}; + +&saif1 { + pinctrl-names = "default"; + pinctrl-0 = <&saif1_pins_a>; + fsl,saif-master = <&saif0>; + #sound-dai-cells = <0>;
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 302
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ status = "okay"; +}; + +&ssp1 { + compatible = "fsl,imx28-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <&ssp1_sdio_pins_a>; + bus-width = <4>; + no-1-8-v; /* force 3.3V VIO */ + pm-ignore-notify;
This seems to be undocumented.
Quoted 18 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +18
-0+ non-removable; + vmmc-supply = <®_3v3>; + mmc-pwrseq = <&wifi_pwrseq>; + keep-power-in-suspend; + status = "okay"; + + wlan@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + }; +}; + +&ssp2 { + compatible = "fsl,imx28-spi"; + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins_a>; + status = "okay"; +};
Re: [PATCH v6 2/2] dts: nxp: mxs: Add descriptions for imx287 based btt3-[012] devices
Hi Stefan,
Quoted 108 lines
Hi Lukasz,
please adjust the subject of your patch accordingly to the subsystem.
Suggestion
ARM: dts: mxs: Add descriptions for imx287 based btt3-[012] devices
Am 12.09.24 um 14:48 schrieb Lukasz Majewski:
Quoted 99 lines
The btt3 device' HW revisions from 0 to 2 use imx287 SoC and are to some extend similar to already upstreamed XEA devices, hence are using common
imx28-lwe.dtsifile.New,
imx28-btt3.dtsihas been added to embrace common DTS properties for different HW revisions for this device.As a result - changes introduced in imx28-btt3-[012].dts are minimal.
Signed-off-by Lukasz Majewski <[email protected]>---
Changes for v2:
- Rename dts file from btt3-[012] to imx28-btt3-[012] to match current linux kernel naming convention
- Remove 'wlf,wm8974' from compatible for codec@1aChanges for v3:
- Keep alphabethical order forMakefileentriesChanges for v4:
- Change compatible for btt3 board (to 'lwn,imx28-btt3')Changes for v5:
- Combine patch, which adds btt3-[012] with one adding board entry tofsl.yamlChanges for v6:
- Make the patch series for adding entry infsl.yamland btt3--- arch/arm/boot/dts/nxp/mxs/Makefile | 3 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts | 8 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi | 320+++++++++++++++++++++ 5 files changed, 355 insertions(+)
create mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi(quoted diff) +0
-0b/arch/arm/boot/dts/nxp/mxs/Makefile index
a430d04f9c69..96dd31ea19ba100644 --- a/arch/arm/boot/dts/nxp/mxs/Makefile +++ b/arch/arm/boot/dts/nxp/mxs/Makefile @@ -8,6 +8,9 @@ dtb-$(CONFIG_ARCH_MXS) += \ imx28-apf28.dtb \
imx28-apf28dev.dtb \
imx28-apx4devkit.dtb \arch/arm/boot/dts/nxp/mxs/Makefile +3
-0+ imx28-btt3-0.dtb \ + imx28-btt3-1.dtb \ + imx28-btt3-2.dtb \ imx28-cfa10036.dtb \ imx28-cfa10037.dtb \ imx28-cfa10049.dtb \(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dtsnew file mode 100644 index 000000000000..6ac46e4b21bbarch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts new file +12
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi" + +&hog_pins_rev { + fsl,pull-up = <MXS_PULL_ENABLE>; +};(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dtsnew file mode 100644 index 000000000000..213fe931c58barch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts new file +8
-0@@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi"(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dtsnew file mode 100644 index 000000000000..c787c2d03463arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +5
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */
Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts line 11
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +6
-0+ +/dts-v1/; +#include "imx28-btt3.dtsi" + +&lcdif { + display = <&display_te_b>;The reason why you don't move the second display into this file is because you expect a new hardware revision in the future?
Yes, exactly. This is long-standing device.
Quoted 18 lines
Quoted 18 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +1
-0+};(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsinew file mode 100644 index 000000000000..94a21ea8d5d2arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +11
-0@@ -0,0 +1,320 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ +/dts-v1/; +#include "imx28-lwe.dtsi" + +/ { + model = "BTT3"; +
Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +4
-0+ compatible = "lwn,imx28-btt3", "fsl,imx28"; + + chosen { + bootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 rorootwait console=ttyAMA0,115200 panic=1 quiet";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +1
-0+ };It's a little bit unusual to place so many Linux specific stuff into the device tree bootargs.
I do keep the bootargs from first version of the device/DTS to avoid any "unexpected" regressions.
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 25
Quoted 9 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +9
-0+ + memory@40000000 { + reg = <0x40000000 0x10000000>; + device_type = "memory"; + }; + + poweroff { + compatible = "gpio-poweroff"; + gpios = <&gpio0 24 0>;Please use the GPIO polarity defines.
Ok.
Quoted 113 lines
Quoted 113 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0+ }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "BTTC Audio"; + simple-audio-card,widgets = "Speaker", "BTTCSpeaker";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +1
-0+ simple-audio-card,routing = "BTTC Speaker","SPKOUTN", "BTTC Speaker", "SPKOUTP";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +22
-0+ simple-audio-card,dai-link@0 { + format = "left_j"; + bitclock-master = <&dai0_master>; + frame-master = <&dai0_master>; + mclk-fs = <256>; + dai0_master: cpu { + sound-dai = <&saif0>; + }; + codec { + sound-dai = <&wm89xx>; + clocks = <&saif0>; + }; + }; + }; + + wifi_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_en_pin_bttc>; + reset-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; + /* W1-163 needs 60us for WL_EN to be low and */ + /* 150ms after high before downloading FW ispossible */
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +81
-0+ post-power-on-delay-ms = <200>; + power-off-delay-us = <100>; + }; +}; + +&auart0 { + pinctrl-names = "default"; + pinctrl-0 = <&auart0_2pins_a>; + status = "okay"; +}; + +&auart3 { + pinctrl-names = "default"; + pinctrl-0 = <&auart3_pins_a>; + uart-has-rtscts; + status = "okay"; +}; + +&i2c0 { + wm89xx: codec@1a { + compatible = "wlf,wm8940"; + reg = <0x1a>; + #sound-dai-cells = <0>; + }; +}; + +&lcdif { + pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a>, <&lcdif_sync_pins_bttc>, + <&lcdif_reset_pins_bttc>; + lcd-supply = <®_3v3>; + display = <&display0>; + status = "okay"; + display0: display0 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing0: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hfront-porch = <20>; + hback-porch = <38>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <1>; + }; + }; + }; + display_te_b: display1 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing_te_b: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hfront-porch = <20>; + hback-porch = <68>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; + }; + +}; + +&mac0 {
Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 141
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0+ clocks = <&clks 57>, <&clks 57>, <&clks 64>; + clock-names = "ipg", "ahb", "enet_out"; + phy-handle = <&mac0_phy>; + phy-mode = "rmii"; + phy-supply = <®_3v3>; + local-mac-address = [ 00 11 B8 00 BF 8A ];Is this replaced dynamically by the bootloader? Otherwise this suggests all boards use the same MAC address.
Yes, this is replaced during production. In fact it could be 00 00 00 00 00 00 as well.
The IP address assigned here allows the device to be recognizable on the network even when the full "flashing" is not successful.
Quoted 9 lines
Quoted 9 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +9
-0+ status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + mac0_phy: ethernet-phy@0 { + /* LAN8720Ai - PHY ID */ + compatible =
Quoted 8 lines
Quoted 7 lines
"ethernet-phy-id0007.c0f0","ethernet-phy-ieee802.3-c22";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +5
-0+ reg = <0>; + smsc,disable-energy-detect; + max-speed = <100>; + + reset-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>;/*
GPIO4_12*/I think the comment only repeat what is already defined here.
Yes - I will remove it.
Quoted 97 lines
Quoted 97 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +97
-0+ reset-assert-us = <1000>; + reset-deassert-us = <1000>; + }; + }; +}; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&hog_pins_a>, <&hog_pins_rev>; + + hog_pins_a: hog@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_RDY2__GPIO_0_22 + MX28_PAD_GPMI_RDY3__GPIO_0_23 + MX28_PAD_GPMI_RDN__GPIO_0_24 + MX28_PAD_LCD_VSYNC__GPIO_1_28 + MX28_PAD_SSP2_SS1__GPIO_2_20 + MX28_PAD_SSP2_SS2__GPIO_2_21 + MX28_PAD_AUART2_CTS__GPIO_3_10 + MX28_PAD_AUART2_RTS__GPIO_3_11 + MX28_PAD_GPMI_WRN__GPIO_0_25 + MX28_PAD_ENET0_RXD2__GPIO_4_9 + MX28_PAD_ENET0_TXD2__GPIO_4_11 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + hog_pins_rev: hog@1 { + reg = <1>; + fsl,pinmux-ids = < + MX28_PAD_ENET0_RXD3__GPIO_4_10 + MX28_PAD_ENET0_TX_CLK__GPIO_4_5 + MX28_PAD_ENET0_COL__GPIO_4_14 + MX28_PAD_ENET0_CRS__GPIO_4_15 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + keypad_pins_bttc: keypad-bttc@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_D00__GPIO_0_0 + MX28_PAD_AUART0_CTS__GPIO_3_2 + MX28_PAD_AUART0_RTS__GPIO_3_3 + MX28_PAD_GPMI_D03__GPIO_0_3 + MX28_PAD_GPMI_D04__GPIO_0_4 + MX28_PAD_GPMI_D05__GPIO_0_5 + MX28_PAD_GPMI_D06__GPIO_0_6 + MX28_PAD_GPMI_D07__GPIO_0_7 + MX28_PAD_GPMI_CE1N__GPIO_0_17 + MX28_PAD_GPMI_CE2N__GPIO_0_18 + MX28_PAD_GPMI_CE3N__GPIO_0_19 + MX28_PAD_GPMI_RDY0__GPIO_0_20 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + lcdif_sync_pins_bttc: lcdif-bttc@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_LCD_DOTCLK__LCD_DOTCLK + MX28_PAD_LCD_ENABLE__LCD_ENABLE + MX28_PAD_LCD_HSYNC__LCD_HSYNC + MX28_PAD_LCD_RD_E__LCD_VSYNC + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + lcdif_reset_pins_bttc: lcdif-bttc@1 { + reg = <1>; + fsl,pinmux-ids = < + MX28_PAD_LCD_RESET__GPIO_3_30 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; + + ssp1_sdio_pins_a: ssp1-sdio@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_SSP1_DATA0__SSP1_D0 + MX28_PAD_GPMI_D01__SSP1_D1 + MX28_PAD_GPMI_D02__SSP1_D2 + MX28_PAD_SSP1_DATA3__SSP1_D3 + MX28_PAD_SSP1_CMD__SSP1_CMD + MX28_PAD_SSP1_SCK__SSP1_SCK + >;
Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 258
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0+ fsl,drive-strength = <MXS_DRIVE_8mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; + + wifi_en_pin_bttc: wifi_en_pin@0 {This should trigger a schema warning. The node name should use dashes instead of underscore.
IIRC - there was no schema warning for it.
Quoted 11 lines
Quoted 11 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +11
-0+ reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_CLE__GPIO_0_27 + >; + fsl,drive-strength = <MXS_DRIVE_8mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; +}; + +&pwm {
Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 276
Quoted 7 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +7
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pwm3_pins_a>; + status = "okay"; +}; + +®_usb_5v { + gpio = <&gpio1 28 0>;Please use polarity define.
Ok.
Quoted 19 lines
Quoted 19 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +19
-0+}; + +&saif0 { + pinctrl-names = "default"; + pinctrl-0 = <&saif0_pins_a>; + #sound-dai-cells = <0>; + assigned-clocks = <&clks 53>; + assigned-clock-rates = <12000000>; + status = "okay"; +}; + +&saif1 { + pinctrl-names = "default"; + pinctrl-0 = <&saif1_pins_a>; + fsl,saif-master = <&saif0>; + #sound-dai-cells = <0>; + status = "okay"; +}; +
Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 302
Quoted 7 lines
+&ssp1 {
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0+ compatible = "fsl,imx28-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <&ssp1_sdio_pins_a>; + bus-width = <4>; + no-1-8-v; /* force 3.3V VIO */ + pm-ignore-notify;This seems to be undocumented.
Maybe this is a reminder from older DTS version. Anyway - I will remove it.
Quoted 10 lines
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ non-removable; + vmmc-supply = <®_3v3>; + mmc-pwrseq = <&wifi_pwrseq>; + keep-power-in-suspend; + status = "okay"; + + wlan@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + };
Quoted 9 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 320
Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +8
-0+}; + +&ssp2 { + compatible = "fsl,imx28-spi"; + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins_a>; + status = "okay"; +};
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Re: [PATCH v6 2/2] dts: nxp: mxs: Add descriptions for imx287 based btt3-[012] devices
Hi Lukasz,
Am 08.10.24 um 13:41 schrieb Lukasz Majewski:
Quoted 146 lines
Hi Stefan,
Quoted 108 lines
Hi Lukasz,
please adjust the subject of your patch accordingly to the subsystem.
Suggestion
ARM: dts: mxs: Add descriptions for imx287 based btt3-[012] devices
Am 12.09.24 um 14:48 schrieb Lukasz Majewski:
Quoted 99 lines
The btt3 device' HW revisions from 0 to 2 use imx287 SoC and are to some extend similar to already upstreamed XEA devices, hence are using common
imx28-lwe.dtsifile.New,
imx28-btt3.dtsihas been added to embrace common DTS properties for different HW revisions for this device.As a result - changes introduced in imx28-btt3-[012].dts are minimal.
Signed-off-by Lukasz Majewski <[email protected]>---
Changes for v2:
- Rename dts file from btt3-[012] to imx28-btt3-[012] to match current linux kernel naming convention
- Remove 'wlf,wm8974' from compatible for codec@1aChanges for v3:
- Keep alphabethical order forMakefileentriesChanges for v4:
- Change compatible for btt3 board (to 'lwn,imx28-btt3')Changes for v5:
- Combine patch, which adds btt3-[012] with one adding board entry tofsl.yamlChanges for v6:
- Make the patch series for adding entry infsl.yamland btt3--- arch/arm/boot/dts/nxp/mxs/Makefile | 3 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts | 8 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi | 320+++++++++++++++++++++ 5 files changed, 355 insertions(+)
create mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi(quoted diff) +0
-0b/arch/arm/boot/dts/nxp/mxs/Makefile index
a430d04f9c69..96dd31ea19ba100644 --- a/arch/arm/boot/dts/nxp/mxs/Makefile +++ b/arch/arm/boot/dts/nxp/mxs/Makefile @@ -8,6 +8,9 @@dtb-$(CONFIG_ARCH_MXS) += \ imx28-apf28.dtb \ imx28-apf28dev.dtb \ imx28-apx4devkit.dtb \arch/arm/boot/dts/nxp/mxs/Makefile +3
-0+ imx28-btt3-0.dtb \ + imx28-btt3-1.dtb \ + imx28-btt3-2.dtb \ imx28-cfa10036.dtb \ imx28-cfa10037.dtb \ imx28-cfa10049.dtb \(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dtsnew file mode 100644 index 000000000000..6ac46e4b21bbarch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts new file +12
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi" + +&hog_pins_rev { + fsl,pull-up = <MXS_PULL_ENABLE>; +};(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dtsnew file mode 100644 index 000000000000..213fe931c58barch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts new file +8
-0@@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi"(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dtsnew file mode 100644 index 000000000000..c787c2d03463arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +5
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts line 11
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +6
-0+ +/dts-v1/; +#include "imx28-btt3.dtsi" + +&lcdif { + display = <&display_te_b>;The reason why you don't move the second display into this file is because you expect a new hardware revision in the future?
Yes, exactly. This is long-standing device.
Quoted 18 lines
Quoted 18 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +1
-0+};(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsinew file mode 100644 index 000000000000..94a21ea8d5d2arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +11
-0@@ -0,0 +1,320 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ +/dts-v1/; +#include "imx28-lwe.dtsi" + +/ { + model = "BTT3"; +Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +4
-0+ compatible = "lwn,imx28-btt3", "fsl,imx28"; + + chosen { + bootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 rorootwait console=ttyAMA0,115200 panic=1 quiet";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +1
-0+ };It's a little bit unusual to place so many Linux specific stuff into the device tree bootargs.
Quoted 2 lines
I do keep the bootargs from first version of the device/DTS to avoid any "unexpected" regressions.
Not strong opinion about this this, but it sounds like your customer use a limited bootloader like imx-bootlets and the whole cmdline is configured via DT.
Quoted 134 lines
Quoted 11 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 25
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +9
-0+ + memory@40000000 { + reg = <0x40000000 0x10000000>; + device_type = "memory"; + }; + + poweroff { + compatible = "gpio-poweroff"; + gpios = <&gpio0 24 0>;Please use the GPIO polarity defines.
Ok.
Quoted 113 lines
Quoted 113 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0+ }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "BTTC Audio"; + simple-audio-card,widgets = "Speaker", "BTTCSpeaker";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +1
-0+ simple-audio-card,routing = "BTTC Speaker","SPKOUTN", "BTTC Speaker", "SPKOUTP";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +22
-0+ simple-audio-card,dai-link@0 { + format = "left_j"; + bitclock-master = <&dai0_master>; + frame-master = <&dai0_master>; + mclk-fs = <256>; + dai0_master: cpu { + sound-dai = <&saif0>; + }; + codec { + sound-dai = <&wm89xx>; + clocks = <&saif0>; + }; + }; + }; + + wifi_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_en_pin_bttc>; + reset-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; + /* W1-163 needs 60us for WL_EN to be low and */ + /* 150ms after high before downloading FW ispossible */
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +81
-0+ post-power-on-delay-ms = <200>; + power-off-delay-us = <100>; + }; +}; + +&auart0 { + pinctrl-names = "default"; + pinctrl-0 = <&auart0_2pins_a>; + status = "okay"; +}; + +&auart3 { + pinctrl-names = "default"; + pinctrl-0 = <&auart3_pins_a>; + uart-has-rtscts; + status = "okay"; +}; + +&i2c0 { + wm89xx: codec@1a { + compatible = "wlf,wm8940"; + reg = <0x1a>; + #sound-dai-cells = <0>; + }; +}; + +&lcdif { + pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a>, <&lcdif_sync_pins_bttc>, + <&lcdif_reset_pins_bttc>; + lcd-supply = <®_3v3>; + display = <&display0>; + status = "okay"; + display0: display0 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing0: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hfront-porch = <20>; + hback-porch = <38>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <1>; + }; + }; + }; + display_te_b: display1 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing_te_b: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hfront-porch = <20>; + hback-porch = <68>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; + }; + +}; + +&mac0 {Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 141
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0+ clocks = <&clks 57>, <&clks 57>, <&clks 64>; + clock-names = "ipg", "ahb", "enet_out"; + phy-handle = <&mac0_phy>; + phy-mode = "rmii"; + phy-supply = <®_3v3>; + local-mac-address = [ 00 11 B8 00 BF 8A ];Is this replaced dynamically by the bootloader? Otherwise this suggests all boards use the same MAC address.
Quoted 5 lines
Yes, this is replaced during production. In fact it could be 00 00 00 00 00 00 as well.
The IP address assigned here allows the device to be recognizable on the network even when the full "flashing" is not successful.
Could you please add a short comment about this?
Quoted 125 lines
Quoted 10 lines
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +9
-0+ status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + mac0_phy: ethernet-phy@0 { + /* LAN8720Ai - PHY ID */ + compatible =Quoted 8 lines
Quoted 7 lines
"ethernet-phy-id0007.c0f0","ethernet-phy-ieee802.3-c22";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +5
-0+ reg = <0>; + smsc,disable-energy-detect; + max-speed = <100>; + + reset-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>;/*
GPIO4_12*/I think the comment only repeat what is already defined here.
Yes - I will remove it.
Quoted 97 lines
Quoted 97 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +97
-0+ reset-assert-us = <1000>; + reset-deassert-us = <1000>; + }; + }; +}; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&hog_pins_a>, <&hog_pins_rev>; + + hog_pins_a: hog@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_RDY2__GPIO_0_22 + MX28_PAD_GPMI_RDY3__GPIO_0_23 + MX28_PAD_GPMI_RDN__GPIO_0_24 + MX28_PAD_LCD_VSYNC__GPIO_1_28 + MX28_PAD_SSP2_SS1__GPIO_2_20 + MX28_PAD_SSP2_SS2__GPIO_2_21 + MX28_PAD_AUART2_CTS__GPIO_3_10 + MX28_PAD_AUART2_RTS__GPIO_3_11 + MX28_PAD_GPMI_WRN__GPIO_0_25 + MX28_PAD_ENET0_RXD2__GPIO_4_9 + MX28_PAD_ENET0_TXD2__GPIO_4_11 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + hog_pins_rev: hog@1 { + reg = <1>; + fsl,pinmux-ids = < + MX28_PAD_ENET0_RXD3__GPIO_4_10 + MX28_PAD_ENET0_TX_CLK__GPIO_4_5 + MX28_PAD_ENET0_COL__GPIO_4_14 + MX28_PAD_ENET0_CRS__GPIO_4_15 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + keypad_pins_bttc: keypad-bttc@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_D00__GPIO_0_0 + MX28_PAD_AUART0_CTS__GPIO_3_2 + MX28_PAD_AUART0_RTS__GPIO_3_3 + MX28_PAD_GPMI_D03__GPIO_0_3 + MX28_PAD_GPMI_D04__GPIO_0_4 + MX28_PAD_GPMI_D05__GPIO_0_5 + MX28_PAD_GPMI_D06__GPIO_0_6 + MX28_PAD_GPMI_D07__GPIO_0_7 + MX28_PAD_GPMI_CE1N__GPIO_0_17 + MX28_PAD_GPMI_CE2N__GPIO_0_18 + MX28_PAD_GPMI_CE3N__GPIO_0_19 + MX28_PAD_GPMI_RDY0__GPIO_0_20 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + lcdif_sync_pins_bttc: lcdif-bttc@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_LCD_DOTCLK__LCD_DOTCLK + MX28_PAD_LCD_ENABLE__LCD_ENABLE + MX28_PAD_LCD_HSYNC__LCD_HSYNC + MX28_PAD_LCD_RD_E__LCD_VSYNC + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + lcdif_reset_pins_bttc: lcdif-bttc@1 { + reg = <1>; + fsl,pinmux-ids = < + MX28_PAD_LCD_RESET__GPIO_3_30 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; + + ssp1_sdio_pins_a: ssp1-sdio@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_SSP1_DATA0__SSP1_D0 + MX28_PAD_GPMI_D01__SSP1_D1 + MX28_PAD_GPMI_D02__SSP1_D2 + MX28_PAD_SSP1_DATA3__SSP1_D3 + MX28_PAD_SSP1_CMD__SSP1_CMD + MX28_PAD_SSP1_SCK__SSP1_SCK + >;Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 258
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0+ fsl,drive-strength = <MXS_DRIVE_8mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; + + wifi_en_pin_bttc: wifi_en_pin@0 {This should trigger a schema warning. The node name should use dashes instead of underscore.
Quoted 1 line
IIRC - there was no schema warning for it.
Nevertheless please use dashes like on the other nodes
Regards
Re: [PATCH v6 2/2] dts: nxp: mxs: Add descriptions for imx287 based btt3-[012] devices
Hi Stefan,
Quoted 150 lines
Hi Lukasz,
Am 08.10.24 um 13:41 schrieb Lukasz Majewski:
Quoted 147 lines
Hi Stefan,
Quoted 109 lines
Hi Lukasz,
please adjust the subject of your patch accordingly to the subsystem.
Suggestion
ARM: dts: mxs: Add descriptions for imx287 based btt3-[012] devices
Am 12.09.24 um 14:48 schrieb Lukasz Majewski:
Quoted 99 lines
The btt3 device' HW revisions from 0 to 2 use imx287 SoC and are to some extend similar to already upstreamed XEA devices, hence are using common
imx28-lwe.dtsifile.New,
imx28-btt3.dtsihas been added to embrace common DTS properties for different HW revisions for this device.As a result - changes introduced in imx28-btt3-[012].dts are minimal.
Signed-off-by Lukasz Majewski <[email protected]>---
Changes for v2:
- Rename dts file from btt3-[012] to imx28-btt3-[012] to match current linux kernel naming convention
- Remove 'wlf,wm8974' from compatible for codec@1aChanges for v3:
- Keep alphabethical order forMakefileentriesChanges for v4:
- Change compatible for btt3 board (to 'lwn,imx28-btt3')Changes for v5:
- Combine patch, which adds btt3-[012] with one adding board entry tofsl.yamlChanges for v6:
- Make the patch series for adding entry infsl.yamland btt3--- arch/arm/boot/dts/nxp/mxs/Makefile | 3 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts | 8 + arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts | 12 + arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi | 320+++++++++++++++++++++ 5 files changed, 355 insertions(+)
create mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dtscreate mode 100644arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi(quoted diff) +0
-0b/arch/arm/boot/dts/nxp/mxs/Makefile index
a430d04f9c69..96dd31ea19ba100644 --- a/arch/arm/boot/dts/nxp/mxs/Makefile +++ b/arch/arm/boot/dts/nxp/mxs/Makefile @@ -8,6 +8,9 @@dtb-$(CONFIG_ARCH_MXS) += \ imx28-apf28.dtb \ imx28-apf28dev.dtb \ imx28-apx4devkit.dtb \arch/arm/boot/dts/nxp/mxs/Makefile +3
-0+ imx28-btt3-0.dtb \ + imx28-btt3-1.dtb \ + imx28-btt3-2.dtb \ imx28-cfa10036.dtb \ imx28-cfa10037.dtb \ imx28-cfa10049.dtb \(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dtsnew file mode 100644 index 000000000000..6ac46e4b21bbarch/arm/boot/dts/nxp/mxs/imx28-btt3-0.dts new file +12
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi" + +&hog_pins_rev { + fsl,pull-up = <MXS_PULL_ENABLE>; +};(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dtsnew file mode 100644 index 000000000000..213fe931c58barch/arm/boot/dts/nxp/mxs/imx28-btt3-1.dts new file +8
-0@@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ + +/dts-v1/; +#include "imx28-btt3.dtsi"(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dtsnew file mode 100644 index 000000000000..c787c2d03463arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +5
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */Quoted 8 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts line 11
Quoted 6 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +6
-0+ +/dts-v1/; +#include "imx28-btt3.dtsi" + +&lcdif { + display = <&display_te_b>;The reason why you don't move the second display into this file is because you expect a new hardware revision in the future?
Yes, exactly. This is long-standing device.
Quoted 26 lines
Quoted 23 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3-2.dts new file +1
-0+};(quoted diff) +0
-0
b/arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsinew file mode 100644 index 000000000000..94a21ea8d5d2arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +15
-0@@ -0,0 +1,320 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2024 + * Lukasz Majewski, DENX Software Engineering, [email protected] + */ +/dts-v1/; +#include "imx28-lwe.dtsi" + +/ { + model = "BTT3"; + + compatible = "lwn,imx28-btt3", "fsl,imx28"; + + chosen { + bootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 rorootwait console=ttyAMA0,115200 panic=1 quiet";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi
Quoted 1 line
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +1
-0+ };It's a little bit unusual to place so many Linux specific stuff into the device tree bootargs.
Quoted 5 lines
Quoted 2 lines
I do keep the bootargs from first version of the device/DTS to avoid any "unexpected" regressions.
Not strong opinion about this this, but it sounds like your customer use a limited bootloader like imx-bootlets and the whole cmdline is configured via DT.
We do use u-boot from the very beginning...
Quoted 135 lines
Quoted 135 lines
Quoted 11 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 25
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +9
-0+ + memory@40000000 { + reg = <0x40000000 0x10000000>; + device_type = "memory"; + }; + + poweroff { + compatible = "gpio-poweroff"; + gpios = <&gpio0 24 0>;Please use the GPIO polarity defines.
Ok.
Quoted 122 lines
Quoted 110 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +6
-0+ }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "BTTC Audio"; + simple-audio-card,widgets = "Speaker", "BTTCSpeaker";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +1
-0+ simple-audio-card,routing = "BTTC Speaker","SPKOUTN", "BTTC Speaker", "SPKOUTP";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +22
-0+ simple-audio-card,dai-link@0 { + format = "left_j"; + bitclock-master = <&dai0_master>; + frame-master = <&dai0_master>; + mclk-fs = <256>; + dai0_master: cpu { + sound-dai = <&saif0>; + }; + codec { + sound-dai = <&wm89xx>; + clocks = <&saif0>; + }; + }; + }; + + wifi_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_en_pin_bttc>; + reset-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; + /* W1-163 needs 60us for WL_EN to be low and */ + /* 150ms after high before downloading FW ispossible */
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +29
-0+ post-power-on-delay-ms = <200>; + power-off-delay-us = <100>; + }; +}; + +&auart0 { + pinctrl-names = "default"; + pinctrl-0 = <&auart0_2pins_a>; + status = "okay"; +}; + +&auart3 { + pinctrl-names = "default"; + pinctrl-0 = <&auart3_pins_a>; + uart-has-rtscts; + status = "okay"; +}; + +&i2c0 { + wm89xx: codec@1a { + compatible = "wlf,wm8940"; + reg = <0x1a>; + #sound-dai-cells = <0>; + }; +}; + +&lcdif { + pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a>,<
&lcdif_sync_pins_bttc>,arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +48
-0+ <&lcdif_reset_pins_bttc>; + lcd-supply = <®_3v3>; + display = <&display0>; + status = "okay"; + display0: display0 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing0: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hfront-porch = <20>; + hback-porch = <38>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <1>; + }; + }; + }; + display_te_b: display1 { + bits-per-pixel = <32>; + bus-width = <24>; + display-timings { + native-mode = <&timing0>; + timing_te_b: timing0 { + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hfront-porch = <20>; + hback-porch = <68>; + hsync-len = <30>; + vfront-porch = <4>; + vback-porch = <14>; + vsync-len = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; + };arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 141
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ +}; + +&mac0 { + clocks = <&clks 57>, <&clks 57>, <&clks 64>; + clock-names = "ipg", "ahb", "enet_out"; + phy-handle = <&mac0_phy>; + phy-mode = "rmii"; + phy-supply = <®_3v3>; + local-mac-address = [ 00 11 B8 00 BF 8A ];Is this replaced dynamically by the bootloader? Otherwise this suggests all boards use the same MAC address.
Quoted 6 lines
Quoted 5 lines
Yes, this is replaced during production. In fact it could be 00 00 00 00 00 00 as well.
The IP address assigned here allows the device to be recognizable on the network even when the full "flashing" is not successful.
Could you please add a short comment about this?
Ok.
Quoted 125 lines
Quoted 125 lines
Quoted 10 lines
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +9
-0+ status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + mac0_phy: ethernet-phy@0 { + /* LAN8720Ai - PHY ID */ + compatible =Quoted 8 lines
Quoted 7 lines
"ethernet-phy-id0007.c0f0","ethernet-phy-ieee802.3-c22";
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +5
-0+ reg = <0>; + smsc,disable-energy-detect; + max-speed = <100>; + + reset-gpios = <&gpio4 12
GPIO_ACTIVE_LOW>; /*GPIO4_12*/I think the comment only repeat what is already defined here.
Yes - I will remove it.
Quoted 105 lines
Quoted 93 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +93
-0+ reset-assert-us = <1000>; + reset-deassert-us = <1000>; + }; + }; +}; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&hog_pins_a>, <&hog_pins_rev>; + + hog_pins_a: hog@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_RDY2__GPIO_0_22 + MX28_PAD_GPMI_RDY3__GPIO_0_23 + MX28_PAD_GPMI_RDN__GPIO_0_24 + MX28_PAD_LCD_VSYNC__GPIO_1_28 + MX28_PAD_SSP2_SS1__GPIO_2_20 + MX28_PAD_SSP2_SS2__GPIO_2_21 + MX28_PAD_AUART2_CTS__GPIO_3_10 + MX28_PAD_AUART2_RTS__GPIO_3_11 + MX28_PAD_GPMI_WRN__GPIO_0_25 + MX28_PAD_ENET0_RXD2__GPIO_4_9 + MX28_PAD_ENET0_TXD2__GPIO_4_11 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + hog_pins_rev: hog@1 { + reg = <1>; + fsl,pinmux-ids = < + MX28_PAD_ENET0_RXD3__GPIO_4_10 + MX28_PAD_ENET0_TX_CLK__GPIO_4_5 + MX28_PAD_ENET0_COL__GPIO_4_14 + MX28_PAD_ENET0_CRS__GPIO_4_15 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + keypad_pins_bttc: keypad-bttc@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_D00__GPIO_0_0 + MX28_PAD_AUART0_CTS__GPIO_3_2 + MX28_PAD_AUART0_RTS__GPIO_3_3 + MX28_PAD_GPMI_D03__GPIO_0_3 + MX28_PAD_GPMI_D04__GPIO_0_4 + MX28_PAD_GPMI_D05__GPIO_0_5 + MX28_PAD_GPMI_D06__GPIO_0_6 + MX28_PAD_GPMI_D07__GPIO_0_7 + MX28_PAD_GPMI_CE1N__GPIO_0_17 + MX28_PAD_GPMI_CE2N__GPIO_0_18 + MX28_PAD_GPMI_CE3N__GPIO_0_19 + MX28_PAD_GPMI_RDY0__GPIO_0_20 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + lcdif_sync_pins_bttc: lcdif-bttc@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_LCD_DOTCLK__LCD_DOTCLK + MX28_PAD_LCD_ENABLE__LCD_ENABLE + MX28_PAD_LCD_HSYNC__LCD_HSYNC + MX28_PAD_LCD_RD_E__LCD_VSYNC + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_DISABLE>; + }; + + lcdif_reset_pins_bttc: lcdif-bttc@1 { + reg = <1>; + fsl,pinmux-ids = < + MX28_PAD_LCD_RESET__GPIO_3_30 + >; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; + + ssp1_sdio_pins_a: ssp1-sdio@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_SSP1_DATA0__SSP1_D0 + MX28_PAD_GPMI_D01__SSP1_D1 + MX28_PAD_GPMI_D02__SSP1_D2arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi line 258
Quoted 10 lines
arch/arm/boot/dts/nxp/mxs/imx28-btt3.dtsi new file +10
-0+ MX28_PAD_SSP1_DATA3__SSP1_D3 + MX28_PAD_SSP1_CMD__SSP1_CMD + MX28_PAD_SSP1_SCK__SSP1_SCK + >; + fsl,drive-strength = <MXS_DRIVE_8mA>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + fsl,pull-up = <MXS_PULL_ENABLE>; + }; + + wifi_en_pin_bttc: wifi_en_pin@0 {This should trigger a schema warning. The node name should use dashes instead of underscore.
Quoted 2 lines
Quoted 1 line
IIRC - there was no schema warning for it.
Nevertheless please use dashes like on the other nodes
Ok.
Quoted 2 lines
Regards
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 4 lines · Lukasz Majewski
The imx287 based btt3 board is very similar to xea in terms of used SOM module.
Signed-off-by Lukasz Majewski <[email protected]>
Quoted 19 lines
--- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/fsl.yaml +1
-0@@ -97,6 +97,7 @@ properties: - i2se,duckbill - i2se,duckbill-2 - karo,tx28 # Ka-Ro electronics TX28 module + - lwn,imx28-btt3 - lwn,imx28-xea - msr,m28cu3 # M28 SoM with custom base board - schulercontrol,imx28-sps1Signature · 1 line
2.39.2