Skip to content

Commit

Permalink
compulab: iotd-imx8p: update board support for SB-IOTDIMX8MP revision…
Browse files Browse the repository at this point in the history
… 1.1

Signed-off-by: Ilya Ledvich <[email protected]>
  • Loading branch information
ilyacompulab committed May 6, 2024
1 parent d0cb0f6 commit 6aacfdf
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
6 changes: 1 addition & 5 deletions arch/arm/dts/iotdin-imx8p-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,7 @@
u-boot,dm-spl;
};

&pinctrl_i2c5 {
u-boot,dm-spl;
};

&pinctrl_i2c5_gpio {
&pca9555_sb {
u-boot,dm-spl;
};

Expand Down
31 changes: 26 additions & 5 deletions arch/arm/dts/sb-iotdimx8p.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,30 @@
* Copyright 2024 CompuLab
*/

#include <dt-bindings/leds/common.h>

/ {
chosen {
bootargs = "console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200 console=tty0";
stdout-path = &uart2;
};

leds {
pinctrl-0 = <&pinctrl_gpio_led>, <&pinctrl_user_leds>;

pled_amber: power-led-abmer {
label = "PowerLED_Amber";
color = <LED_COLOR_ID_AMBER>;
gpios = <&pca9555_sb 7 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
power-led-blue {
label = "PowerLED_Blue";
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
};
};

&fec {
Expand Down Expand Up @@ -57,10 +76,6 @@

&i2c3 {
status = "okay";
};

&i2c5 {
status = "okay";

pca9555_sb: pca9555-sb@20 {
compatible = "nxp,pca9555";
Expand All @@ -69,7 +84,7 @@
reg = <0x20>;

gpio-line-names =
"WLAN_PDn", "ULED2_GREEN", "TPM_RSTn", "ULED2_RED",
"WLAN_PDn", "ULED2_GREEN", "ULED1_GREEN", "ULED2_RED",
"ULED1_RED", "MODEM_RSTn", "RF_KILLn", "LED_AMBR_CNTL",
"PWR_EN", "USB_RESET1", "USB_RESET2", "USB_RESET3",
"B2B_GPIO0", "B2B_GPIO1", "B2B_GPIO2", "B2B_GPIO3";
Expand Down Expand Up @@ -139,4 +154,10 @@
MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20 0x154
>;
};

pinctrl_user_leds: userledsgrp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x140
>;
};
};
2 changes: 1 addition & 1 deletion board/compulab/iotdin-imx8p/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config SYS_I2C_EEPROM_ADDR

config SYS_I2C_EEPROM_BUS_SB
hex
default 0x4
default 0x2

config SYS_I2C_EEPROM_ADDR_SB
hex
Expand Down

0 comments on commit 6aacfdf

Please sign in to comment.