/* SPDX-License-Identifier: Apache-2.0 */ #include #include #include #include #include #include / { clocks { uartclk: apb-pclk { compatible = "fixed-clock"; clock-frequency = ; #clock-cells = <0>; }; }; cpus { #address-cells = <1>; #size-cells = <0>; cpu0: cpu@0 { compatible = "arm,cortex-m4f"; reg = <0>; cpu-power-states = <&idle &suspend_to_ram>; }; power-states { idle: idle { compatible = "zephyr,power-state"; power-state-name = "suspend-to-idle"; /* As Apollo3blue datasheet, run_to_sleep and sleep_to_run * transition time are both lower than 1us, but considering * the software overhead we set a bigger value. */ min-residency-us = <100>; exit-latency-us = <5>; }; suspend_to_ram: suspend_to_ram { compatible = "zephyr,power-state"; power-state-name = "suspend-to-ram"; /* As Apollo3blue datasheet, run_to_deepsleep transition time is * the software overhead 1us and deepsleep_to_run transition time * is about 25us,but considering the software overhead, we set * a bigger value. */ min-residency-us = <2000>; exit-latency-us = <125>; }; }; }; /* TCM */ tcm: tcm@10000000 { compatible = "zephyr,memory-region"; reg = <0x10000000 0x10000>; zephyr,memory-region = "ITCM"; }; /* SRAM */ sram0: memory@10010000 { compatible = "mmio-sram"; reg = <0x10010000 0x50000>; }; soc { compatible = "ambiq,apollo3-blue", "ambiq,apollo3x", "simple-bus"; flash: flash-controller@c000 { compatible = "ambiq,flash-controller"; reg = <0x0000c000 0xf4000>; #address-cells = <1>; #size-cells = <1>; /* Flash region */ flash0: flash@c000 { compatible = "soc-nv-flash"; reg = <0x0000c000 0xf4000>; }; }; pwrcfg: pwrcfg@40021000 { compatible = "ambiq,pwrctrl"; reg = <0x40021000 0x400>; #pwrcfg-cells = <2>; }; stimer0: stimer@40008140 { compatible = "ambiq,stimer"; reg = <0x40008140 0x80>; interrupts = <23 0>; status = "okay"; }; counter0: counter@40008000 { compatible = "ambiq,counter"; reg = <0x40008000 0x20>; interrupts = <14 0>; clock-frequency = ; clk-source = <2>; status = "disabled"; }; counter1: counter@40008020 { compatible = "ambiq,counter"; reg = <0x40008020 0x20>; interrupts = <14 0>; clock-frequency = ; clk-source = <2>; status = "disabled"; }; counter2: counter@40008040 { compatible = "ambiq,counter"; reg = <0x40008040 0x20>; interrupts = <14 0>; clock-frequency = ; clk-source = <2>; status = "disabled"; }; counter3: counter@40008060 { compatible = "ambiq,counter"; reg = <0x40008060 0x20>; interrupts = <14 0>; clock-frequency = ; clk-source = <2>; status = "disabled"; }; counter4: counter@40008080 { compatible = "ambiq,counter"; reg = <0x40008080 0x20>; interrupts = <14 0>; clock-frequency = ; clk-source = <2>; status = "disabled"; }; counter5: counter@400080a0 { compatible = "ambiq,counter"; reg = <0x400080A0 0x20>; interrupts = <14 0>; clock-frequency = ; clk-source = <2>; status = "disabled"; }; counter6: counter@400080c0 { compatible = "ambiq,counter"; reg = <0x400080C0 0x20>; interrupts = <14 0>; clock-frequency = ; clk-source = <2>; status = "disabled"; }; counter7: counter@400080e0 { compatible = "ambiq,counter"; reg = <0x400080E0 0x20>; interrupts = <14 0>; clock-frequency = ; clk-source = <2>; status = "disabled"; }; uart0: uart@4001c000 { compatible = "ambiq,uart", "arm,pl011"; reg = <0x4001c000 0x1000>; interrupts = <15 0>; interrupt-names = "UART0"; status = "disabled"; clocks = <&uartclk>; ambiq,pwrcfg = <&pwrcfg 0x8 0x80>; zephyr,pm-device-runtime-auto; }; uart1: uart@4001d000 { compatible = "ambiq,uart", "arm,pl011"; reg = <0x4001d000 0x1000>; interrupts = <16 0>; interrupt-names = "UART1"; status = "disabled"; clocks = <&uartclk>; ambiq,pwrcfg = <&pwrcfg 0x8 0x100>; zephyr,pm-device-runtime-auto; }; spi0: spi@50004000 { reg = <0x50004000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <6 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x2>; zephyr,pm-device-runtime-auto; }; spi1: spi@50005000 { reg = <0x50005000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <7 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x4>; zephyr,pm-device-runtime-auto; }; spi2: spi@50006000 { reg = <0x50006000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <8 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x8>; zephyr,pm-device-runtime-auto; }; spi3: spi@50007000 { reg = <0x50007000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <9 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x10>; zephyr,pm-device-runtime-auto; }; spi4: spi@50008000 { reg = <0x50008000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <10 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x20>; zephyr,pm-device-runtime-auto; }; spi5: spi@50009000 { reg = <0x50009000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <11 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x40>; zephyr,pm-device-runtime-auto; }; i2c0: i2c@50004000 { reg = <0x50004000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <6 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x2>; zephyr,pm-device-runtime-auto; }; i2c1: i2c@50005000 { reg = <0x50005000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <7 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x4>; zephyr,pm-device-runtime-auto; }; i2c2: i2c@50006000 { reg = <0x50006000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <8 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x8>; zephyr,pm-device-runtime-auto; }; i2c3: i2c@50007000 { reg = <0x50007000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <9 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x10>; zephyr,pm-device-runtime-auto; }; i2c4: i2c@50008000 { reg = <0x50008000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <10 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x20>; zephyr,pm-device-runtime-auto; }; i2c5: i2c@50009000 { reg = <0x50009000 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <11 0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x40>; zephyr,pm-device-runtime-auto; }; adc0: adc@50010000 { reg = <0x50010000 0x400>; interrupts = <18 0>; interrupt-names = "ADC"; channel-count = <10>; internal-vref-mv = <1500>; status = "disabled"; #io-channel-cells = <1>; ambiq,pwrcfg = <&pwrcfg 0x8 0x200>; }; mspi0: spi@40020000 { compatible = "ambiq,mspi"; reg = <0x40020000 0x400>; interrupts = <20 0>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x800>; }; bleif: spi@5000c000 { compatible = "ambiq,spi-bleif"; reg = <0x5000c000 0x414>; interrupts = <12 1>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; ambiq,pwrcfg = <&pwrcfg 0x8 0x8000>; bt_hci_apollo: bt-hci@0 { compatible = "ambiq,bt-hci-spi"; spi-max-frequency = ; reg = <0>; }; }; pinctrl: pin-controller@40010000 { compatible = "ambiq,apollo3-pinctrl"; reg = <0x40010000 0x800>; #address-cells = <1>; #size-cells = <0>; gpio: gpio@40010000 { compatible = "ambiq,gpio"; gpio-map-mask = <0xffffffe0 0xffffffc0>; gpio-map-pass-thru = <0x1f 0x3f>; gpio-map = < 0x00 0x0 &gpio0_31 0x0 0x0 0x20 0x0 &gpio32_63 0x0 0x0 >; reg = <0x40010000>; #gpio-cells = <2>; #address-cells = <1>; #size-cells = <0>; ranges; gpio0_31: gpio0_31@0 { compatible = "ambiq,gpio-bank"; gpio-controller; #gpio-cells = <2>; reg = <0>; interrupts = <13 0>; status = "disabled"; }; gpio32_63: gpio32_63@20 { compatible = "ambiq,gpio-bank"; gpio-controller; #gpio-cells = <2>; reg = <0x20>; interrupts = <13 0>; status = "disabled"; ngpios = <18>; }; }; }; wdt0: watchdog@40024000 { compatible = "ambiq,watchdog"; reg = <0x40024000 0x400>; interrupts = <1 0>; clock-frequency = <16>; status = "disabled"; }; }; }; &nvic { arm,num-irq-priority-bits = <3>; };