2023-09-28 14:46:18 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2023 honglin leng <a909204013@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <broadcom/bcm2711.dtsi>
|
2023-09-29 20:46:16 +08:00
|
|
|
#include <zephyr/dt-bindings/gpio/gpio.h>
|
|
|
|
|
2023-09-28 14:46:18 +08:00
|
|
|
/ {
|
|
|
|
model = "Raspberry Pi 4 Model B";
|
|
|
|
compatible = "raspberrypi,4-model-b", "brcm,bcm2838";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2023-09-29 20:46:16 +08:00
|
|
|
aliases {
|
|
|
|
led0 = &led_act;
|
|
|
|
};
|
|
|
|
|
2023-09-28 14:46:18 +08:00
|
|
|
chosen {
|
|
|
|
zephyr,console = &uart1;
|
|
|
|
zephyr,shell-uart = &uart1;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
};
|
2023-09-29 20:46:16 +08:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_act: led-act {
|
|
|
|
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; /* GPIO 42 */
|
|
|
|
label = "ACT";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
2023-09-28 14:46:18 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
status = "okay";
|
|
|
|
current-speed = <115200>;
|
|
|
|
};
|