Commit a3dfd128 authored by Lucien Zhao's avatar Lucien Zhao Committed by Benjamin Cabé
Browse files

boards: nxp: mimxrt700_evk: add p3t1755dp_ard_i2c support



add lpi2c8 pin configuration in dts
enable lpi2c8 to support p3t1755dp_ard_i2c shield

Signed-off-by: default avatarLucien Zhao <lucien.zhao@nxp.com>
parent bce1b59a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -66,6 +66,8 @@ the hardware features below.
+-----------+------------+-------------------------------------+
| IOCON     | on-chip    | pinmux                              |
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c                                 |
+-----------+------------+-------------------------------------+
| GPIO      | on-chip    | gpio                                |
+-----------+------------+-------------------------------------+
| UART      | on-chip    | serial port-polling;                |
@@ -90,6 +92,10 @@ functionality of a pin.
+---------+-----------------+----------------------------+
| Name    | Function        | Usage                      |
+=========+=================+============================+
| PIO0_6  | I2C             | I2C SDA                    |
+---------+-----------------+----------------------------+
| PIO0_7  | I2C             | I2C SCL                    |
+---------+-----------------+----------------------------+
| PIO0_31 | UART0           | UART RX                    |
+---------+-----------------+----------------------------+
| PIO1_0  | UART0           | UART TX                    |
+12 −0
Original line number Diff line number Diff line
@@ -20,6 +20,18 @@
		};
	};

	pinmux_flexcomm8_i2c: pinmux_flexcomm8_i2c {
		group0 {
			pinmux = <LP_FLEXCOMM8_P0_PIO0_6>,
				<LP_FLEXCOMM8_P1_PIO0_7>;
			bias-pull-up;
			input-enable;
			slew-rate = "normal";
			drive-strength = "high";
			drive-open-drain;
		};
	};

	pinmux_flexcomm19_lpuart: pinmux_flexcomm19_lpuart {
		group0 {
			pinmux = <LP_FLEXCOMM19_P0_PIO8_14>;
+13 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
/dts-v1/;

#include <nxp/nxp_rt7xx_cm33_cpu0.dtsi>
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "mimxrt700_evk-pinctrl.dtsi"

@@ -84,6 +85,16 @@
	pinctrl-names = "default";
};

&flexcomm8{
	status = "okay";
};

&flexcomm8_lpi2c8 {
	pinctrl-0 = <&pinmux_flexcomm8_i2c>;
	pinctrl-names = "default";
	clock-frequency = <I2C_BITRATE_STANDARD>;
};

&gpio0 {
	status = "okay";
};
@@ -115,3 +126,5 @@
		write-block-size = <2>;
	};
};

p3t1755dp_ard_i2c_interface: &flexcomm8_lpi2c8 {};
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ toolchain:
  - gnuarmemb
supported:
  - gpio
  - i2c
  - uart
  - spi
vendor: nxp