|  | /* | 
|  | * Copyright (c) 2021, NXP | 
|  | * | 
|  | * SPDX-License-Identifier: Apache-2.0 | 
|  | */ | 
|  |  | 
|  | #include "mimxrt1160_evk-pinctrl.dtsi" | 
|  | #include <nxp/nxp_rt1160.dtsi> | 
|  | #include <zephyr/dt-bindings/input/input-event-codes.h> | 
|  |  | 
|  | / { | 
|  | aliases { | 
|  | led0 = &green_led; | 
|  | sw0 = &user_button; | 
|  | magn0 = &fxos8700; | 
|  | accel0 = &fxos8700; | 
|  | sdhc0 = &usdhc1; | 
|  | mcuboot-button0 = &user_button; | 
|  | }; | 
|  |  | 
|  | leds { | 
|  | compatible = "gpio-leds"; | 
|  |  | 
|  | green_led: led-1 { | 
|  | gpios = <&gpio9 3 GPIO_ACTIVE_LOW>; | 
|  | label = "User LED D6"; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | 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>; | 
|  | }; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | &lpuart1 { | 
|  | status = "okay"; | 
|  | current-speed = <115200>; | 
|  | pinctrl-0 = <&pinmux_lpuart1>; | 
|  | pinctrl-1 = <&pinmux_lpuart1_sleep>; | 
|  | pinctrl-names = "default", "sleep"; | 
|  | }; | 
|  |  | 
|  | &lpuart2 { | 
|  | pinctrl-0 = <&pinmux_lpuart2>; | 
|  | pinctrl-1 = <&pinmux_lpuart2_sleep>; | 
|  | pinctrl-names = "default", "sleep"; | 
|  | }; | 
|  |  | 
|  | &user_button { | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &green_led { | 
|  | status = "okay"; | 
|  | }; | 
|  |  | 
|  | &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>; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | &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 = <4096>; | 
|  | 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))>; | 
|  | }; | 
|  | }; | 
|  | }; | 
|  | }; | 
|  |  | 
|  | &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"; | 
|  | }; | 
|  |  | 
|  | &csi { | 
|  | pinctrl-0 = <&pinmux_csi>; | 
|  | 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"; | 
|  | }; | 
|  |  | 
|  | &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"; | 
|  | }; |