blob: ab2f9dfb22199b6a5cfb6f9223f43000cdb3ea37 [file] [log] [blame]
/*
* Copyright 2021,2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "mimxrt1170_evk-pinctrl.dtsi"
#include <nxp/nxp_rt1170.dtsi>
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
aliases {
led0 = &green_led;
led1 = &red_led;
sw0 = &user_button;
magn0 = &fxos8700;
accel0 = &fxos8700;
sdhc0 = &usdhc1;
pwm-led0 = &green_pwm_led;
mcuboot-button0 = &user_button;
};
leds {
compatible = "gpio-leds";
green_led: led-1 {
gpios = <&gpio9 3 GPIO_ACTIVE_HIGH>;
label = "User LED D6";
};
red_led: led-2 {
gpios = <&gpio9 25 GPIO_ACTIVE_LOW>;
label = "User LED D34";
};
};
gpio_keys {
compatible = "gpio-keys";
user_button: button-1 {
label = "User SW7";
gpios = <&gpio13 0 GPIO_ACTIVE_HIGH>;
zephyr,code = <INPUT_KEY_0>;
};
};
pwmleds {
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&flexpwm1_pwm2 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};
arduino_header: connector {
/* NOTE:
* The CM7 has no interrupt numbers for gpio9/gpio11/gpio12, so it isn't possible
* to use input interrupts with A0-A5 or D0-D15.
* The CM4 does support input interrupts.
*/
compatible = "arduino-header-r3";
#gpio-cells = <2>;
gpio-map-mask = <0xffffffff 0xffffffc0>;
gpio-map-pass-thru = <0 0x3f>;
gpio-map = <ARDUINO_HEADER_R3_A0 0 &gpio9 9 0>,
<ARDUINO_HEADER_R3_A1 0 &gpio9 10 0>,
<ARDUINO_HEADER_R3_A2 0 &gpio9 11 0>,
<ARDUINO_HEADER_R3_A3 0 &gpio9 12 0>,
<ARDUINO_HEADER_R3_A4 0 &gpio9 8 0>,
<ARDUINO_HEADER_R3_A5 0 &gpio9 7 0>,
<ARDUINO_HEADER_R3_D0 0 &gpio11 12 0>,
<ARDUINO_HEADER_R3_D1 0 &gpio11 11 0>,
<ARDUINO_HEADER_R3_D2 0 &gpio11 13 0>,
<ARDUINO_HEADER_R3_D3 0 &gpio9 3 0>,
<ARDUINO_HEADER_R3_D4 0 &gpio9 5 0>,
<ARDUINO_HEADER_R3_D5 0 &gpio9 4 0>,
<ARDUINO_HEADER_R3_D6 0 &gpio8 31 0>,
<ARDUINO_HEADER_R3_D7 0 &gpio9 13 0>,
<ARDUINO_HEADER_R3_D8 0 &gpio9 6 0>,
<ARDUINO_HEADER_R3_D9 0 &gpio9 0 0>,
<ARDUINO_HEADER_R3_D10 0 &gpio9 28 0>,
<ARDUINO_HEADER_R3_D11 0 &gpio9 29 0>,
<ARDUINO_HEADER_R3_D12 0 &gpio9 30 0>,
<ARDUINO_HEADER_R3_D13 0 &gpio9 27 0>,
<ARDUINO_HEADER_R3_D14 0 &gpio12 4 0>,
<ARDUINO_HEADER_R3_D15 0 &gpio12 5 0>;
};
};
arduino_i2c: &lpi2c5 {
status = "okay";
pinctrl-0 = <&pinmux_lpi2c5>;
pinctrl-names = "default";
fxos8700: fxos8700@1f {
compatible = "nxp,fxos8700";
reg = <0x1f>;
/* Two zero ohm resistors (R256 and R270) isolate sensor
* interrupt gpios from the soc and are unpopulated by default.
* Note that if you populate them, they conflict with camera and
* ethernet PHY reset signals.
*/
int1-gpios = <&gpio11 14 GPIO_ACTIVE_LOW>;
int2-gpios = <&gpio11 15 GPIO_ACTIVE_LOW>;
};
};
&lpuart1 {
status = "okay";
pinctrl-0 = <&pinmux_lpuart1>;
pinctrl-1 = <&pinmux_lpuart1_sleep>;
pinctrl-names = "default", "sleep";
current-speed = <115200>;
};
arduino_serial: &lpuart2 {
/* No HW flow control possible for Arduino Header due to missing LPUART2 RTS on D3 */
pinctrl-0 = <&pinmux_lpuart2>;
pinctrl-1 = <&pinmux_lpuart2_sleep>;
pinctrl-names = "default", "sleep";
};
&user_button {
status = "okay";
};
&green_led {
status = "okay";
};
&flexpwm1_pwm2 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm1>;
pinctrl-names = "default";
};
&enet_mac {
status = "okay";
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
phy-handle = <&phy>;
phy-connection-type = "rmii";
zephyr,random-mac-address;
};
&enet_mdio {
status = "okay";
pinctrl-0 = <&pinmux_enet_mdio>;
pinctrl-names = "default";
phy: phy@0 {
compatible = "microchip,ksz8081";
reg = <0>;
status = "okay";
reset-gpios = <&gpio12 12 GPIO_ACTIVE_HIGH>;
int-gpios = <&gpio9 11 GPIO_ACTIVE_HIGH>;
microchip,interface-type = "rmii";
};
};
&enet_ptp_clock {
status = "okay";
pinctrl-0 = <&pinmux_ptp>;
pinctrl-names = "default";
};
&enet1g_mac {
status = "disabled";
pinctrl-0 = <&pinmux_enet1g>;
pinctrl-names = "default";
phy-handle = <&enet1g_phy>;
phy-connection-type = "rgmii";
zephyr,random-mac-address;
};
&enet1g_mdio {
status = "disabled";
pinctrl-0 = <&pinmux_enet1g_mdio>;
pinctrl-names = "default";
enet1g_phy: phy@1 {
compatible = "realtek,rtl8211f";
reg = <1>;
status = "disabled";
reset-gpios = <&gpio11 14 GPIO_ACTIVE_HIGH>;
int-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
};
};
&enet1g_ptp_clock {
status = "disabled";
pinctrl-0 = <&pinmux_enet1g_ptp>;
pinctrl-names = "default";
};
&csi {
pinctrl-0 = <&pinmux_csi>;
pinctrl-names = "default";
};
&lpi2c6 {
pinctrl-0 = <&pinmux_lpi2c6>;
pinctrl-names = "default";
};
&flexcan3 {
pinctrl-0 = <&pinmux_flexcan3>;
pinctrl-names = "default";
};
&lcdif {
pinctrl-0 = <&pinmux_lcdif>;
pinctrl-names = "default";
};
&lpi2c1 {
pinctrl-0 = <&pinmux_lpi2c1>;
pinctrl-names = "default";
};
arduino_spi: &lpspi1 {
pinctrl-0 = <&pinmux_lpspi1>;
pinctrl-names = "default";
};
&lpuart2 {
pinctrl-0 = <&pinmux_lpuart2>;
pinctrl-1 = <&pinmux_lpuart2_sleep>;
pinctrl-names = "default", "sleep";
};
&sai1 {
pinctrl-0 = <&pinmux_sai1>;
pinctrl-names = "default";
};
&lpadc1 {
pinctrl-0 = <&pinmux_lpadc1>;
pinctrl-names = "default";
};
&flexspi {
pinctrl-0 = <&pinmux_flexspi1>;
pinctrl-names = "default";
};
&usdhc1 {
pinctrl-0 = <&pinmux_usdhc1>;
pinctrl-1 = <&pinmux_usdhc1_dat3_nopull>;
pinctrl-names = "default", "nopull";
};
&flexspi {
status = "okay";
ahb-prefetch;
ahb-read-addr-opt;
rx-clock-source = <1>;
reg = <0x400cc000 0x4000>, <0x30000000 DT_SIZE_M(16)>;
is25wp128: is25wp128@0 {
compatible = "nxp,imx-flexspi-nor";
size = <DT_SIZE_M(16*8)>;
reg = <0>;
spi-max-frequency = <DT_FREQ_M(104)>;
status = "okay";
jedec-id = [9d 70 18];
erase-block-size = <DT_SIZE_K(4)>;
write-block-size = <1>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/*
* Partition sizes must be aligned
* to the flash memory sector size of 4KB.
*/
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(128)>;
};
slot0_partition: partition@20000 {
label = "image-0";
reg = <0x00020000 DT_SIZE_M(7)>;
};
slot1_partition: partition@720000 {
label = "image-1";
reg = <0x00720000 DT_SIZE_M(7)>;
};
storage_partition: partition@E20000 {
label = "storage";
reg = <0x00E20000 (DT_SIZE_M(2) - DT_SIZE_K(128))>;
};
};
};
};
&pxp {
status = "okay";
};