/* * Copyright 2018 Foundries.io Ltd * SPDX-License-Identifier: Apache-2.0 */ #include / { aliases { intmux = &intmux1; system-lptmr = &lptmr2; }; cpus { /delete-node/ cpu@0; }; }; &m0_flash { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; /* This configuration assumes the Arm cores are disabled, as * these base addresses contain the Arm core vector tables if * they are used. */ zero_riscy_code_partition: partition@1000000 { label = "zero-riscy-code"; reg = <0x01000000 0x0003ff00>; }; zero_riscy_vector_partition: partition@3ff00 { label = "zero-riscy-vector"; reg = <0x0003ff00 0x100>; }; }; }; /* * INTMUX channels below are somewhat arbitrary. * * The peripherals are all placed in channel 0. This can be overridden with * overlays, e.g. to manage IRQ priorities, and it will Just Work, but using * fewer channels here allows disabling unused ones in Kconfig, making the * binary smaller. * * Each enabled channel requires 256 bytes in _sw_isr_table, so the savings for * disabling channels can add up. */ &intmux1 { interrupt-parent = <&event1>; interrupts = , , , , , , , ; status = "okay"; }; &lptmr0 { interrupt-parent = <&intmux1>; interrupts = ; }; &lptmr1 { interrupt-parent = <&intmux1>; interrupts = ; }; &lptmr2 { interrupt-parent = <&event1>; interrupts = <14>; }; &gpioa { interrupt-parent = <&intmux1>; interrupts = ; }; &gpiob { interrupt-parent = <&intmux1>; interrupts = ; }; &gpioc { interrupt-parent = <&intmux1>; interrupts = ; }; &gpiod { interrupt-parent = <&intmux1>; interrupts = ; }; &gpioe { interrupt-parent = <&event1>; interrupts = <21>; }; &uart0 { interrupt-parent = <&intmux1>; interrupts = ; }; &uart1 { interrupt-parent = <&intmux1>; interrupts = ; }; &uart2 { interrupt-parent = <&intmux1>; interrupts = ; }; &uart3 { interrupt-parent = <&event1>; interrupts = <20>; }; &i2c0 { interrupt-parent = <&intmux1>; interrupts = ; }; &i2c1 { interrupt-parent = <&intmux1>; interrupts = ; }; &i2c2 { interrupt-parent = <&intmux1>; interrupts = ; }; &i2c3 { interrupt-parent = <&event1>; interrupts = <16>; };