| /* |
| * Copyright 2022, 2024 NXP |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| #include <arm/armv8-m.dtsi> |
| #include <zephyr/dt-bindings/adc/adc.h> |
| #include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h> |
| #include <zephyr/dt-bindings/gpio/gpio.h> |
| #include <zephyr/dt-bindings/i2c/i2c.h> |
| #include <zephyr/dt-bindings/inputmux/inputmux_trigger_ports.h> |
| #include <mem.h> |
| |
| / { |
| cpus { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| cpu@0 { |
| compatible = "arm,cortex-m33f"; |
| reg = <0>; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| mpu: mpu@e000ed90 { |
| compatible = "arm,armv8m-mpu"; |
| reg = <0xe000ed90 0x40>; |
| }; |
| }; |
| }; |
| }; |
| |
| &sram { |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| /* lpc55_3x Memory configurations: |
| * |
| * LPC55x36: RAMX: 16K, SRAM0: 16K, SRAM1: 16K, SRAM2: 32K, SRAM3: 32K, SRAM4: 16K |
| */ |
| sramx: memory@4000000 { |
| compatible = "mmio-sram"; |
| reg = <0x04000000 DT_SIZE_K(16)>; |
| }; |
| sram0: memory@20000000 { |
| compatible = "mmio-sram"; |
| reg = <0x20000000 DT_SIZE_K(16)>; |
| }; |
| sram1: memory@20004000 { |
| compatible = "mmio-sram"; |
| reg = <0x20004000 DT_SIZE_K(16)>; |
| }; |
| sram2: memory@20008000 { |
| compatible = "mmio-sram"; |
| reg = <0x20008000 DT_SIZE_K(32)>; |
| }; |
| sram3: memory@20010000 { |
| compatible = "mmio-sram"; |
| reg = <0x20010000 DT_SIZE_K(32)>; |
| }; |
| sram4: memory@20018000 { |
| compatible = "mmio-sram"; |
| reg = <0x20018000 DT_SIZE_K(16)>; |
| }; |
| }; |
| |
| &peripheral { |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| syscon: syscon@0 { |
| compatible = "nxp,lpc-syscon"; |
| reg = <0x0 0x1000>; |
| #clock-cells = <1>; |
| }; |
| |
| iap: flash-controller@34000 { |
| compatible = "nxp,iap-fmc553"; |
| reg = <0x34000 0x1000>; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| status = "ok"; |
| |
| flash0: flash@0 { |
| compatible = "soc-nv-flash"; |
| reg = <0x0 DT_SIZE_K(246)>; |
| erase-block-size = <512>; |
| write-block-size = <512>; |
| }; |
| |
| flash_reserved: flash@3d800 { |
| compatible = "soc-nv-flash"; |
| reg = <0x0003d800 DT_SIZE_K(10)>; |
| status = "disabled"; |
| }; |
| |
| boot_rom: flash@3000000 { |
| compatible = "soc-nv-flash"; |
| reg = <0x3000000 DT_SIZE_K(128)>; |
| }; |
| }; |
| |
| iocon: iocon@1000 { |
| compatible = "nxp,lpc-iocon"; |
| reg = <0x1000 0x100>; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| ranges = <0x0 0x1000 0x100>; |
| pinctrl: pinctrl { |
| compatible = "nxp,lpc-iocon-pinctrl"; |
| }; |
| }; |
| |
| gpio0: gpio@0 { |
| compatible = "nxp,lpc-gpio"; |
| reg = <0x8c000 0x278c>; |
| int-source = "pint"; |
| gpio-controller; |
| #gpio-cells = <2>; |
| port = <0>; |
| }; |
| |
| gpio1: gpio@1 { |
| compatible = "nxp,lpc-gpio"; |
| reg = <0x8c000 0x278c>; |
| int-source = "pint"; |
| gpio-controller; |
| #gpio-cells = <2>; |
| port = <1>; |
| }; |
| |
| gpio2: gpio@2 { |
| compatible = "nxp,lpc-gpio"; |
| reg = <0x8c000 0x278c>; |
| gpio-controller; |
| #gpio-cells = <2>; |
| port = <2>; |
| }; |
| |
| dma0: dma-controller@82000 { |
| compatible = "nxp,lpc-dma"; |
| reg = <0x82000 0x1000>; |
| interrupts = <1 0>; |
| dma-channels = <52>; |
| nxp,dma-num-of-otrigs = <4>; |
| nxp,dma-otrig-base-address = <LPC55S36_DMA0_OTRIG_BASE>; |
| nxp,dma-itrig-base-address = <LPC55S36_DMA0_ITRIG_BASE>; |
| status = "disabled"; |
| #dma-cells = <1>; |
| }; |
| |
| dma1: dma-controller@a7000 { |
| compatible = "nxp,lpc-dma"; |
| reg = <0xa7000 0x1000>; |
| interrupts = <58 0>; |
| dma-channels = <16>; |
| nxp,dma-num-of-otrigs = <4>; |
| nxp,dma-otrig-base-address = <LPC55S36_DMA1_OTRIG_BASE>; |
| nxp,dma-itrig-base-address = <LPC55S36_DMA1_ITRIG_BASE>; |
| status = "disabled"; |
| #dma-cells = <1>; |
| }; |
| |
| pint: pint@4000 { |
| compatible = "nxp,pint"; |
| reg = <0x4000 0x1000>; |
| interrupt-controller; |
| #interrupt-cells = <1>; |
| #address-cells = <0>; |
| interrupts = <4 2>, <5 2>, <6 2>, <7 2>, |
| <32 2>, <33 2>, <34 2>, <35 2>; |
| num-lines = <8>; |
| num-inputs = <64>; |
| }; |
| |
| flexcomm0: flexcomm@86000 { |
| compatible = "nxp,lpc-flexcomm"; |
| reg = <0x86000 0x1000>; |
| interrupts = <14 0>; |
| clocks = <&syscon MCUX_FLEXCOMM0_CLK>; |
| dmas = <&dma0 4>, <&dma0 5>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| }; |
| |
| flexcomm1: flexcomm@87000 { |
| compatible = "nxp,lpc-flexcomm"; |
| reg = <0x87000 0x1000>; |
| interrupts = <15 0>; |
| clocks = <&syscon MCUX_FLEXCOMM1_CLK>; |
| dmas = <&dma0 6>, <&dma0 7>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| }; |
| |
| flexcomm2: flexcomm@88000 { |
| compatible = "nxp,lpc-flexcomm"; |
| reg = <0x88000 0x1000>; |
| interrupts = <16 0>; |
| clocks = <&syscon MCUX_FLEXCOMM2_CLK>; |
| dmas = <&dma0 10>, <&dma0 11>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| }; |
| |
| flexcomm3: flexcomm@89000 { |
| compatible = "nxp,lpc-flexcomm"; |
| reg = <0x89000 0x1000>; |
| interrupts = <17 0>; |
| clocks = <&syscon MCUX_FLEXCOMM3_CLK>; |
| dmas = <&dma0 8>, <&dma0 9>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| }; |
| |
| flexcomm4: flexcomm@8a000 { |
| compatible = "nxp,lpc-flexcomm"; |
| reg = <0x8a000 0x1000>; |
| interrupts = <18 0>; |
| clocks = <&syscon MCUX_FLEXCOMM4_CLK>; |
| dmas = <&dma0 12>, <&dma0 13>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| }; |
| |
| flexcomm5: flexcomm@96000 { |
| compatible = "nxp,lpc-flexcomm"; |
| reg = <0x96000 0x1000>; |
| interrupts = <19 0>; |
| clocks = <&syscon MCUX_FLEXCOMM5_CLK>; |
| dmas = <&dma0 14>, <&dma0 15>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| }; |
| |
| flexcomm6: flexcomm@97000 { |
| compatible = "nxp,lpc-flexcomm"; |
| reg = <0x97000 0x1000>; |
| interrupts = <20 0>; |
| clocks = <&syscon MCUX_FLEXCOMM6_CLK>; |
| dmas = <&dma0 16>, <&dma0 17>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| }; |
| |
| flexcomm7: flexcomm@98000 { |
| compatible = "nxp,lpc-flexcomm"; |
| reg = <0x98000 0x1000>; |
| interrupts = <21 0>; |
| clocks = <&syscon MCUX_FLEXCOMM7_CLK>; |
| dmas = <&dma0 18>, <&dma0 19>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| }; |
| |
| hs_lspi: spi@9f000 { |
| compatible = "nxp,lpc-spi"; |
| reg = <0x9f000 0x1000>; |
| interrupts = <59 0>; |
| clocks = <&syscon MCUX_HS_SPI_CLK>; |
| dmas = <&dma0 2>, <&dma0 3>; |
| dma-names = "rx", "tx"; |
| status = "disabled"; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| }; |
| |
| adc0: adc@A0000 { |
| compatible = "nxp,lpc-lpadc"; |
| reg = <0xA0000 0x1000>; |
| interrupts = <22 0>; |
| status = "disabled"; |
| clk-divider = <8>; |
| clk-source = <0>; |
| voltage-ref= <1>; |
| calibration-average = <128>; |
| power-level = <0>; |
| offset-value-a = <10>; |
| offset-value-b = <10>; |
| #io-channel-cells = <1>; |
| dmas = <&dma0 21>, <&dma0 22>; |
| dma-names = "adc0-dma0", "adc0-dma1"; |
| nxp,reference-supply = <&vref0>; |
| clocks = <&syscon MCUX_LPADC1_CLK>; |
| }; |
| |
| dac0: dac@b2000 { |
| compatible = "nxp,lpdac"; |
| reg = < 0xb2000 0x1000>; |
| interrupts = <74 0>; |
| status = "disabled"; |
| voltage-reference = <0>; |
| #io-channel-cells = <1>; |
| }; |
| |
| dac1: dac@b6000 { |
| compatible = "nxp,lpdac"; |
| reg = < 0xb6000 0x1000>; |
| interrupts = <75 0>; |
| status = "disabled"; |
| voltage-reference = <0>; |
| #io-channel-cells = <1>; |
| }; |
| |
| dac2: dac@b9000 { |
| compatible = "nxp,lpdac"; |
| reg = < 0xb9000 0x1000>; |
| interrupts = <76 0>; |
| status = "disabled"; |
| voltage-reference = <0>; |
| #io-channel-cells = <1>; |
| }; |
| |
| can0: can@4009d000 { |
| compatible = "nxp,lpc-mcan"; |
| reg = <0x4009d000 0x1000>; |
| interrupts = <43 0>, <44 0>; |
| interrupt-names = "int0", "int1"; |
| clocks = <&syscon MCUX_MCAN_CLK>; |
| bosch,mram-cfg = <0x0 15 15 8 8 0 15 15>; |
| status = "disabled"; |
| }; |
| |
| flexpwm0: flexpwm@400C3000 { |
| compatible = "nxp,flexpwm"; |
| reg = <0x400C3000 0x1000>; |
| interrupt-names = "INPUT-CAPTURE", "FAULT", "RELOAD-ERROR"; |
| interrupts = <80 0>, <81 0>, <82 0>; |
| flexpwm0_pwm0: pwm0 { |
| compatible = "nxp,imx-pwm"; |
| index = <0>; |
| interrupt-names = "COMPARE-SUB0", "RELOAD-SUB0"; |
| interrupts = <83 0>, <84 0>; |
| #pwm-cells = <3>; |
| clocks = <&syscon MCUX_BUS_CLK 0 0>; |
| nxp,prescaler = <128>; |
| status = "disabled"; |
| run-in-wait; |
| }; |
| |
| flexpwm0_pwm1: pwm1 { |
| compatible = "nxp,imx-pwm"; |
| index = <1>; |
| interrupt-names = "COMPARE-SUB1", "RELOAD-SUB1"; |
| interrupts = <85 0>, <86 0>; |
| #pwm-cells = <3>; |
| clocks = <&syscon MCUX_BUS_CLK 0 0>; |
| nxp,prescaler = <128>; |
| status = "disabled"; |
| run-in-wait; |
| }; |
| |
| flexpwm0_pwm2: pwm2 { |
| compatible = "nxp,imx-pwm"; |
| index = <2>; |
| interrupt-names = "COMPARE-SUB2", "RELOAD-SUB2"; |
| interrupts = <87 0>, <88 0>; |
| #pwm-cells = <3>; |
| clocks = <&syscon MCUX_BUS_CLK 0 0>; |
| nxp,prescaler = <128>; |
| status = "disabled"; |
| run-in-wait; |
| }; |
| |
| flexpwm0_pwm3: pwm3 { |
| compatible = "nxp,imx-pwm"; |
| index = <3>; |
| interrupt-names = "COMPARE-SUB3", "RELOAD-SUB3"; |
| interrupts = <89 0>, <90 0>; |
| #pwm-cells = <3>; |
| clocks = <&syscon MCUX_BUS_CLK 0 0>; |
| nxp,prescaler = <128>; |
| status = "disabled"; |
| run-in-wait; |
| }; |
| }; |
| |
| |
| flexpwm1: flexpwm@400C5000 { |
| compatible = "nxp,flexpwm"; |
| reg = <0x400C5000 0x1000>; |
| interrupt-names = "INPUT-CAPTURE", "FAULT", "RELOAD-ERROR"; |
| interrupts = <91 0>, <92 0>, <93 0>; |
| flexpwm1_pwm0: pwm0 { |
| compatible = "nxp,imx-pwm"; |
| index = <0>; |
| interrupt-names = "COMPARE-SUB0", "RELOAD-SUB0"; |
| interrupts = <94 0>, <95 0>; |
| #pwm-cells = <3>; |
| clocks = <&syscon MCUX_BUS_CLK 0 0>; |
| nxp,prescaler = <128>; |
| status = "disabled"; |
| run-in-wait; |
| }; |
| |
| flexpwm1_pwm1: pwm1 { |
| compatible = "nxp,imx-pwm"; |
| index = <1>; |
| interrupt-names = "COMPARE-SUB1", "RELOAD-SUB1"; |
| interrupts = <96 0>, <97 0>; |
| #pwm-cells = <3>; |
| clocks = <&syscon MCUX_BUS_CLK 0 0>; |
| nxp,prescaler = <128>; |
| status = "disabled"; |
| run-in-wait; |
| }; |
| |
| flexpwm1_pwm2: pwm2 { |
| compatible = "nxp,imx-pwm"; |
| index = <2>; |
| interrupt-names = "COMPARE-SUB2", "RELOAD-SUB2"; |
| interrupts = <98 0>, <99 0>; |
| #pwm-cells = <3>; |
| clocks = <&syscon MCUX_BUS_CLK 0 0>; |
| nxp,prescaler = <128>; |
| status = "disabled"; |
| run-in-wait; |
| }; |
| |
| flexpwm1_pwm3: pwm3 { |
| compatible = "nxp,imx-pwm"; |
| index = <3>; |
| interrupt-names = "COMPARE-SUB3", "RELOAD-SUB3"; |
| interrupts = <100 0>, <101 0>; |
| #pwm-cells = <3>; |
| clocks = <&syscon MCUX_BUS_CLK 0 0>; |
| nxp,prescaler = <128>; |
| status = "disabled"; |
| run-in-wait; |
| }; |
| }; |
| |
| usbfs: usbfs@84000 { |
| compatible = "nxp,lpcip3511"; |
| reg = <0x84000 0x1000>; |
| interrupts = <28 0>; |
| num-bidir-endpoints = <5>; |
| maximum-speed = "full-speed"; |
| status = "disabled"; |
| }; |
| |
| sc_timer: pwm@85000 { |
| compatible = "nxp,sctimer-pwm"; |
| reg = <0x85000 0x1000>; |
| interrupts = <12 0>; |
| status = "disabled"; |
| clocks = <&syscon MCUX_SCTIMER_CLK 0 0>; |
| prescaler = <2>; |
| #pwm-cells = <3>; |
| }; |
| |
| vref0: vref@b5000 { |
| compatible = "nxp,vref"; |
| regulator-name = "lpc55s36-vref"; |
| reg = <0xb5000 0x30>; |
| status = "disabled"; |
| nxp,buffer-startup-delay-us = <400>; |
| nxp,bandgap-startup-time-us = <20>; |
| }; |
| }; |
| |
| &nvic { |
| arm,num-irq-priority-bits = <3>; |
| }; |