Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | /* * Copyright (c) 2017, NXP * * SPDX-License-Identifier: Apache-2.0 */ #include <mem.h> #include <dt-bindings/clock/mcux_lpc_syscon_clock.h> #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/i2c/i2c.h> #include <mem.h> / { aliases{ gpio-0 = &gpio0; gpio-1 = &gpio1; mailbox-0 = &mailbox0; }; chosen { zephyr,flash-controller = &iap; }; cpus { #address-cells = <1>; #size-cells = <0>; cpu0: cpu@0 { compatible = "arm,cortex-m4f"; reg = <0>; }; cpu1: cpu@1 { compatible = "arm,cortex-m0+"; reg = <1>; }; }; soc { syscon: syscon@40000000 { compatible = "nxp,lpc-syscon"; reg = <0x40000000 0x4000>; label = "SYSCON"; #clock-cells = <1>; }; sram0:memory@20000000 { compatible = "mmio-sram"; reg = <0x20000000 DT_SIZE_K(64)>; }; sram1:memory@20010000 { compatible = "mmio-sram"; reg = <0x20010000 DT_SIZE_K(64)>; }; sram2:memory@20020000 { compatible = "mmio-sram"; reg = <0x20020000 DT_SIZE_K(32)>; }; sramx:memory@4000000{ compatible = "mmio-sram"; reg = <0x4000000 DT_SIZE_K(32)>; }; iap: flash-controller@4009c000 { compatible = "nxp,lpc-iap"; label = "FLASH_IAP"; reg = <0x4009c000 0x18>; #address-cells = <1>; #size-cells = <1>; flash0: flash@0 { compatible = "soc-nv-flash"; reg = <0 DT_SIZE_K(256)>; label = "LPC_FLASH"; erase-block-size = <256>; write-block-size = <256>; }; }; iocon: iocon@40001000 { compatible = "nxp,lpc-iocon"; reg = <0x40001000 0x100>; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x40001000 0x100>; pio0: pio0@0 { compatible = "nxp,lpc-iocon-pio"; reg = <0x0 0x80>; }; pio1: pio0@80 { compatible = "nxp,lpc-iocon-pio"; reg = <0x80 0x80>; }; }; gpio0: gpio@0 { compatible = "nxp,lpc-gpio"; reg = <0x4008c000 0x2488>; interrupts = <4 2>,<5 2>,<6 2>,<7 2>; label = "GPIO_0"; gpio-controller; #gpio-cells = <2>; port = <0>; }; gpio1: gpio@1 { compatible = "nxp,lpc-gpio"; reg = <0x4008C000 0x2488>; interrupts = <32 2>,<33 2>,<34 2>,<35 2>; label = "GPIO_1"; gpio-controller; #gpio-cells = <2>; port = <1>; }; mailbox0:mailbox@4008b000 { compatible = "nxp,lpc-mailbox"; reg = <0x4008b000 0xEC>; interrupts = <31 0>; label = "MAILBOX_0"; status = "disabled"; }; flexcomm0: flexcomm@40086000 { compatible = "nxp,lpc-flexcomm"; reg = <0x40086000 0x1000>; interrupts = <14 0>; clocks = <&syscon MCUX_FLEXCOMM0_CLK>; label = "FLEXCOMM_0"; status = "disabled"; }; flexcomm1: flexcomm@40087000 { compatible = "nxp,lpc-flexcomm"; reg = <0x40087000 0x1000>; interrupts = <15 0>; clocks = <&syscon MCUX_FLEXCOMM1_CLK>; label = "FLEXCOMM_1"; status = "disabled"; }; flexcomm2: flexcomm@40088000 { compatible = "nxp,lpc-flexcomm"; reg = <0x40088000 0x1000>; interrupts = <16 0>; clocks = <&syscon MCUX_FLEXCOMM2_CLK>; label = "FLEXCOMM_2"; status = "disabled"; }; flexcomm3: flexcomm@40089000 { compatible = "nxp,lpc-flexcomm"; reg = <0x40089000 0x1000>; interrupts = <17 0>; clocks = <&syscon MCUX_FLEXCOMM3_CLK>; label = "FLEXCOMM_3"; status = "disabled"; }; flexcomm4: flexcomm@4008a000 { compatible = "nxp,lpc-flexcomm"; reg = <0x4008a000 0x1000>; interrupts = <18 0>; clocks = <&syscon MCUX_FLEXCOMM4_CLK>; label = "FLEXCOMM_4"; status = "disabled"; }; flexcomm5: flexcomm@40096000 { compatible = "nxp,lpc-flexcomm"; reg = <0x40096000 0x1000>; interrupts = <19 0>; clocks = <&syscon MCUX_FLEXCOMM5_CLK>; label = "FLEXCOMM_5"; status = "disabled"; }; flexcomm6: flexcomm@40097000 { compatible = "nxp,lpc-flexcomm"; reg = <0x40097000 0x1000>; interrupts = <20 0>; clocks = <&syscon MCUX_FLEXCOMM6_CLK>; label = "FLEXCOMM_6"; status = "disabled"; }; flexcomm7: flexcomm@40098000 { compatible = "nxp,lpc-flexcomm"; reg = <0x40098000 0x1000>; interrupts = <21 0>; clocks = <&syscon MCUX_FLEXCOMM7_CLK>; label = "FLEXCOMM_7"; status = "disabled"; }; }; }; &nvic { arm,num-irq-priority-bits = <3>; }; |