- Add i2c0 port support on xiao_esp32c6 Signed-off-by: Romain Pelletant <romain.pelletant@fullfreqs.com>
78 lines
1.2 KiB
Text
78 lines
1.2 KiB
Text
/*
|
|
* Copyright (c) 2024 Mario Paja
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <espressif/esp32c6/esp32c6_wroom_n4.dtsi>
|
|
#include "xiao_esp32c6-pinctrl.dtsi"
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
|
#include <espressif/partitions_0x0_default.dtsi>
|
|
#include "seeed_xiao_connector.dtsi"
|
|
|
|
/ {
|
|
model = "Seeed XIAO ESP32C6";
|
|
compatible = "seeed,xiao-esp32c6";
|
|
|
|
chosen {
|
|
zephyr,sram = &sramhp;
|
|
zephyr,console = &usb_serial;
|
|
zephyr,shell-uart = &usb_serial;
|
|
zephyr,flash = &flash0;
|
|
zephyr,code-partition = &slot0_partition;
|
|
};
|
|
|
|
leds: leds {
|
|
compatible = "gpio-leds";
|
|
yellow_led: led_0 {
|
|
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
|
|
label = "User LED1";
|
|
};
|
|
};
|
|
|
|
aliases {
|
|
led0 = &yellow_led;
|
|
watchdog0 = &wdt0;
|
|
};
|
|
|
|
};
|
|
|
|
&trng0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&wdt0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_serial {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
pinctrl-0 = <&i2c0_default>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&spi2 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status = "okay";
|
|
pinctrl-0 = <&spim2_default>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&uart0_default>;
|
|
pinctrl-names = "default";
|
|
};
|