1/* 2 * Copyright 2019,2024 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <nxp/nxp_lpc55S6x.dtsi> 10#include "lpcxpresso55s69.dtsi" 11#include <zephyr/dt-bindings/pwm/pwm.h> 12#include <zephyr/dt-bindings/input/input-event-codes.h> 13 14/ { 15 model = "NXP LPCXpresso55S69 board"; 16 compatible = "nxp,lpc55xxx", "nxp,lpc"; 17 18 cpus { 19 /delete-node/ cpu@1; 20 }; 21 22 aliases{ 23 sw0 = &user_button_1; 24 sw1 = &user_button_2; 25 sw2 = &user_button_3; 26 watchdog0 = &wwdt0; 27 /* For pwm test suites */ 28 pwm-0 = &sc_timer; 29 pwm-led0 = &red_pwm_led; 30 red-pwm-led = &red_pwm_led; 31 sdhc0 = &sdhc0; 32 accel0 = &mma8652fc; 33 sdhc0 = &sdif; 34 mcuboot-button0 = &user_button_1; 35 }; 36 37 chosen { 38 zephyr,sram = &sram0; 39 zephyr,flash = &flash0; 40 zephyr,code-partition = &slot0_partition; 41 zephyr,uart-mcumgr = &flexcomm0; 42 zephyr,code-cpu1-partition = &slot0_ns_partition; 43 zephyr,sram-cpu1-partition = &sram3; 44 zephyr,console = &flexcomm0; 45 zephyr,shell-uart = &flexcomm0; 46 zephyr,entropy = &rng; 47 }; 48 49 gpio_keys { 50 compatible = "gpio-keys"; 51 user_button_1: button_0 { 52 label = "User SW1"; 53 gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; 54 zephyr,code = <INPUT_KEY_0>; 55 }; 56 user_button_2: button_1 { 57 label = "User SW2"; 58 gpios = <&gpio1 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; 59 zephyr,code = <INPUT_KEY_1>; 60 }; 61 user_button_3: button_2 { 62 label = "User SW3"; 63 gpios = <&gpio1 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; 64 zephyr,code = <INPUT_KEY_2>; 65 }; 66 }; 67 68 pwmleds { 69 compatible = "pwm-leds"; 70 red_pwm_led: red_pwm_led { 71 pwms = <&sc_timer 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 72 label = "Red PWM LED"; 73 status = "okay"; 74 }; 75 }; 76}; 77 78/* 79 * Default for this board is to allocate SRAM0-2 to cpu0 but the 80 * application can have an application specific device tree to 81 * allocate the SRAM0-4 differently. 82 * 83 * For example, SRAM0-3 could be allocated to cpu0 with only SRAM4 84 * for cpu1. This would require the zephyr,sram chosen value for cpu1 85 * to be changed to sram4 and the value of sram0 to have a DT_SIZE_K 86 * of 256. 87 * 88 */ 89&sram0 { 90 compatible = "mmio-sram"; 91 reg = <0x20000000 DT_SIZE_K(192)>; 92}; 93 94&gpio0 { 95 status = "okay"; 96}; 97 98&gpio1 { 99 status = "okay"; 100}; 101 102&green_led { 103 status = "okay"; 104}; 105 106&red_led { 107 status = "okay"; 108}; 109 110&flexcomm0 { 111 status = "okay"; 112}; 113 114&flexcomm4 { 115 status = "okay"; 116}; 117 118&sdif { 119 status = "okay"; 120 pinctrl-0 = <&pinmux_sdif_default>; 121 pinctrl-names = "default"; 122 mmc { 123 compatible = "zephyr,sdmmc-disk"; 124 disk-name = "SD"; 125 status = "okay"; 126 }; 127}; 128 129&hs_lspi { 130 status = "okay"; 131 cs-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; 132}; 133 134&wwdt0 { 135 status = "okay"; 136}; 137 138&adc0 { 139 status = "okay"; 140 pinctrl-0 = <&pinmux_lpadc0>; 141 pinctrl-names = "default"; 142}; 143 144&mailbox0 { 145 status = "okay"; 146}; 147 148&usbfs { 149 pinctrl-0 = <&pinmux_usbfs>; 150 pinctrl-names = "default"; 151}; 152 153zephyr_udc0: &usbhs { 154 status = "okay"; 155 phy-handle = <&usbphy1>; 156}; 157 158zephyr_uhc0: &usbhfs { 159 pinctrl-0 = <&pinmux_usbhfs>; 160 pinctrl-names = "default"; 161 status = "okay"; 162}; 163 164zephyr_uhc1: &usbhhs { 165 pinctrl-0 = <&pinmux_usbhhs>; 166 pinctrl-names = "default"; 167 status = "okay"; 168 phy-handle = <&usbphy1>; 169}; 170 171&usbphy1 { 172 status = "okay"; 173 tx-d-cal = <5>; 174 tx-cal-45-dp-ohms = <10>; 175 tx-cal-45-dm-ohms = <10>; 176}; 177 178&ctimer0 { 179 status = "okay"; 180}; 181 182&ctimer1 { 183 status = "okay"; 184}; 185 186&ctimer2 { 187 status = "okay"; 188}; 189 190&ctimer3 { 191 status = "okay"; 192}; 193 194&ctimer4 { 195 status = "okay"; 196}; 197 198/* I2S receive channel */ 199i2s0: &flexcomm6 { 200 status = "okay"; 201 compatible = "nxp,lpc-i2s"; 202 #address-cells = <1>; 203 #size-cells = <0>; 204}; 205 206/* I2S transmit channel */ 207i2s1: &flexcomm7 { 208 status = "okay"; 209 compatible = "nxp,lpc-i2s"; 210 #address-cells = <1>; 211 #size-cells = <0>; 212}; 213 214&sc_timer { 215 status = "okay"; 216}; 217 218&dma0 { 219 status = "okay"; 220}; 221 222&dma1 { 223 status = "okay"; 224}; 225 226&mrt_channel0 { 227 status = "okay"; 228}; 229