You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
168 lines
3.1 KiB
168 lines
3.1 KiB
/* |
|
* Copyright (c) 2025 STMicroelectronics |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
/dts-v1/; |
|
|
|
#include <st/mp13/stm32mp135.dtsi> |
|
#include <st/mp13/stm32mp135faex-pinctrl.dtsi> |
|
#include "zephyr/dt-bindings/display/panel.h" |
|
#include <zephyr/dt-bindings/input/input-event-codes.h> |
|
|
|
/ { |
|
model = "STMicroelectronics STM32MP135-DK board"; |
|
compatible = "st,stm32mp135f-dk"; |
|
|
|
chosen { |
|
zephyr,flash = &ddr_code; |
|
zephyr,sram = &ddr_data; |
|
zephyr,console = &uart4; |
|
zephyr,shell-uart = &uart4; |
|
zephyr,display = <dc; |
|
}; |
|
|
|
gpio_keys { |
|
compatible = "gpio-keys"; |
|
|
|
user_button: button { |
|
label = "User 1"; |
|
gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; |
|
zephyr,code = <INPUT_KEY_0>; |
|
}; |
|
}; |
|
|
|
leds { |
|
compatible = "gpio-leds"; |
|
|
|
blue_led_1: led_1 { |
|
gpios = <&gpioa 14 GPIO_ACTIVE_LOW>; |
|
label = "LD3"; |
|
}; |
|
|
|
red_led_2: led_2 { |
|
gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; |
|
label = "LD4"; |
|
}; |
|
|
|
green_led_3: led_3 { |
|
gpios = <&mcp23017 14 GPIO_ACTIVE_HIGH>; |
|
label = "LD7"; |
|
}; |
|
|
|
orange_led_4: led_4 { |
|
gpios = <&mcp23017 15 GPIO_ACTIVE_HIGH>; |
|
label = "LD6"; |
|
}; |
|
}; |
|
|
|
aliases { |
|
led0 = &blue_led_1; |
|
led1 = &red_led_2; |
|
sw0 = &user_button; |
|
}; |
|
}; |
|
|
|
&clk_hsi { |
|
clock-frequency = <DT_FREQ_M(64)>; |
|
status = "okay"; |
|
}; |
|
|
|
&clk_hse { |
|
clock-frequency = <DT_FREQ_M(24)>; |
|
status = "okay"; |
|
}; |
|
|
|
&cpusw { |
|
clocks = <&clk_hsi>; |
|
clock-frequency = <DT_FREQ_M(64)>; |
|
status = "okay"; |
|
}; |
|
|
|
&pll1 { |
|
clocks = <&clk_hse>; |
|
div-m = <2>; |
|
mul-n = <83>; |
|
div-p = <1>; |
|
fracn = <2730>; |
|
status = "okay"; |
|
}; |
|
|
|
&rcc { |
|
clock-frequency = <DT_FREQ_M(1000)>; |
|
clocks = <&pll>; |
|
ahb-prescaler = <1>; |
|
apb1-prescaler = <1>; |
|
apb2-prescaler = <1>; |
|
}; |
|
|
|
&uart4 { |
|
pinctrl-names = "default"; |
|
pinctrl-0 = <&uart4_tx_pd6 &uart4_rx_pd8>; |
|
current-speed = <115200>; |
|
status = "okay"; |
|
}; |
|
|
|
&i2c1 { |
|
pinctrl-names = "default"; |
|
pinctrl-0 = <&i2c1_scl_pd12 &i2c1_sda_pe8>; |
|
status = "okay"; |
|
|
|
mcp23017: pinctrl@21 { |
|
compatible = "microchip,mcp23017"; |
|
reg = <0x21>; |
|
gpio-controller; |
|
#gpio-cells = <2>; |
|
ngpios = <16>; |
|
}; |
|
}; |
|
|
|
&i2c4 { |
|
pinctrl-names = "default"; |
|
pinctrl-0 = <&i2c4_scl_pe15 &i2c4_sda_pb9>; |
|
status = "okay"; |
|
}; |
|
|
|
&i2c5 { |
|
pinctrl-names = "default"; |
|
pinctrl-0 = <&i2c5_scl_pd1 &i2c5_sda_ph6>; |
|
status = "okay"; |
|
}; |
|
|
|
<dc { |
|
pinctrl-0 = <<dc_r2_pg7 <dc_r3_pb12 |
|
<dc_r4_pd14 <dc_r5_pe7 <dc_r6_pe13 <dc_r7_pe9 |
|
<dc_g2_ph13 <dc_g3_pf3 |
|
<dc_g4_pd5 <dc_g5_pg0 <dc_g6_pc7 <dc_g7_pa15 |
|
<dc_b2_pd10 <dc_b3_pf2 |
|
<dc_b4_ph14 <dc_b5_pe0 <dc_b6_pb6 <dc_b7_pf1 |
|
<dc_de_ph9 <dc_clk_pd9 <dc_hsync_pc6 <dc_vsync_pg4>; |
|
pinctrl-names = "default"; |
|
disp-on-gpios = <&gpioi 7 GPIO_ACTIVE_HIGH>; |
|
bl-ctrl-gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>; |
|
|
|
status = "okay"; |
|
|
|
width = <480>; |
|
height = <272>; |
|
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>; |
|
|
|
display-timings { |
|
compatible = "zephyr,panel-timing"; |
|
de-active = <0>; |
|
pixelclk-active = <0>; |
|
hsync-active = <0>; |
|
vsync-active = <0>; |
|
hsync-len = <41>; |
|
vsync-len = <10>; |
|
hback-porch = <13>; |
|
vback-porch = <2>; |
|
hfront-porch = <32>; |
|
vfront-porch = <2>; |
|
}; |
|
|
|
def-back-color-red = <0xFF>; |
|
def-back-color-green = <0xFF>; |
|
def-back-color-blue = <0xFF>; |
|
};
|
|
|