From 6aacfdfc80bd8e57e36ecae42328397ac7fc50dd Mon Sep 17 00:00:00 2001 From: Ilya Ledvich Date: Mon, 18 Mar 2024 16:02:18 +0200 Subject: [PATCH] compulab: iotd-imx8p: update board support for SB-IOTDIMX8MP revision 1.1 Signed-off-by: Ilya Ledvich --- arch/arm/dts/iotdin-imx8p-u-boot.dtsi | 6 +----- arch/arm/dts/sb-iotdimx8p.dtsi | 31 ++++++++++++++++++++++----- board/compulab/iotdin-imx8p/Kconfig | 2 +- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/arch/arm/dts/iotdin-imx8p-u-boot.dtsi b/arch/arm/dts/iotdin-imx8p-u-boot.dtsi index 1fa5f0b2476..fc1f6a6d27e 100644 --- a/arch/arm/dts/iotdin-imx8p-u-boot.dtsi +++ b/arch/arm/dts/iotdin-imx8p-u-boot.dtsi @@ -140,11 +140,7 @@ u-boot,dm-spl; }; -&pinctrl_i2c5 { - u-boot,dm-spl; -}; - -&pinctrl_i2c5_gpio { +&pca9555_sb { u-boot,dm-spl; }; diff --git a/arch/arm/dts/sb-iotdimx8p.dtsi b/arch/arm/dts/sb-iotdimx8p.dtsi index 3973bfdd126..4212af12fc9 100644 --- a/arch/arm/dts/sb-iotdimx8p.dtsi +++ b/arch/arm/dts/sb-iotdimx8p.dtsi @@ -3,11 +3,30 @@ * Copyright 2024 CompuLab */ +#include + / { 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 = ; + gpios = <&pca9555_sb 7 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + power-led-blue { + label = "PowerLED_Blue"; + color = ; + gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; }; &fec { @@ -57,10 +76,6 @@ &i2c3 { status = "okay"; -}; - -&i2c5 { - status = "okay"; pca9555_sb: pca9555-sb@20 { compatible = "nxp,pca9555"; @@ -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"; @@ -139,4 +154,10 @@ MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20 0x154 >; }; + + pinctrl_user_leds: userledsgrp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x140 + >; + }; }; diff --git a/board/compulab/iotdin-imx8p/Kconfig b/board/compulab/iotdin-imx8p/Kconfig index 7e67087db13..3eea90d0c28 100644 --- a/board/compulab/iotdin-imx8p/Kconfig +++ b/board/compulab/iotdin-imx8p/Kconfig @@ -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