/* * Copyright (c) 2021 Yonatan Schachter * Copyright (c) 2022 Peter Johanson * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include #include "adafruit_qt_py_rp2040-pinctrl.dtsi" #include "seeed_xiao_connector.dtsi" #include #include / { chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,flash-controller = &ssi; zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,code-partition = &code_partition; }; aliases { watchdog0 = &wdt0; led-strip = &ws2812; }; }; &flash0 { reg = <0x10000000 DT_SIZE_M(8)>; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; /* Reserved memory for the second stage bootloader */ second_stage_bootloader: partition@0 { label = "second_stage_bootloader"; reg = <0x00000000 0x100>; read-only; }; /* * Usable flash. Starts at 0x100, after the bootloader. The partition * size is 8MB minus the 0x100 bytes taken by the bootloader. */ code_partition: partition@100 { label = "code-partition"; reg = <0x100 (DT_SIZE_M(8) - 0x100)>; read-only; }; }; }; &clocks { pinctrl-0 = <&clocks_default>; pinctrl-names = "default"; }; &uart1 { current-speed = <115200>; status = "okay"; pinctrl-0 = <&uart1_default>; pinctrl-names = "default"; }; &gpio0 { status = "okay"; /* * Unlike some of the other Adafruit boards, the neopixel on this board has * its positive side hooked up to a GPIO pin rather than a positive voltage * rail to save on power. This will enable the LED on board initialization. */ neopixel-power-enable { gpio-hog; gpios = <11 GPIO_ACTIVE_HIGH>; output-high; }; }; &i2c0 { clock-frequency = ; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-names = "default"; }; &i2c1 { pinctrl-0 = <&i2c1_default>; pinctrl-names = "default"; status = "okay"; clock-frequency = ; }; &spi0 { clock-frequency = ; status = "okay"; pinctrl-0 = <&spi0_default>; pinctrl-names = "default"; }; &timer { status = "okay"; }; &wdt0 { status = "okay"; }; &adc { status = "okay"; pinctrl-0 = <&adc_default>; pinctrl-names = "default"; }; &pio0 { status = "okay"; }; &pio1 { status = "okay"; /* * Need to put this on PIO1 as having this on PIO0 causes the GPIO hog to * not work. */ pio-ws2812 { compatible = "worldsemi,ws2812-rpi_pico-pio"; status = "okay"; pinctrl-0 = <&ws2812_pio1_default>; pinctrl-names = "default"; bit-waveform = <3>, <3>, <4>; ws2812: ws2812 { status = "okay"; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; chain-length = <1>; color-mapping = ; reset-delay = <280>; frequency = <800000>; }; }; }; zephyr_udc0: &usbd { status = "okay"; }; &vreg { regulator-always-on; regulator-allowed-modes = ; };