mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-04 00:03:25 -04:00
ARM: dts: stm32: enable ltdc binding with ili9341, gyro l3gd20 on stm32429-disco board
Enable the ltdc & ili9341, gyro l3gd20 on stm32429-disco board. Signed-off-by: dillon min <dillon.minfei@gmail.com> Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
This commit is contained in:
parent
27e6b725b4
commit
a726e2f000
1 changed files with 48 additions and 0 deletions
|
@ -49,6 +49,8 @@
|
||||||
#include "stm32f429.dtsi"
|
#include "stm32f429.dtsi"
|
||||||
#include "stm32f429-pinctrl.dtsi"
|
#include "stm32f429-pinctrl.dtsi"
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "STMicroelectronics STM32F429i-DISCO board";
|
model = "STMicroelectronics STM32F429i-DISCO board";
|
||||||
|
@ -108,12 +110,58 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
<dc {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-0 = <<dc_pins_b>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
port {
|
||||||
|
ltdc_out_rgb: endpoint {
|
||||||
|
remote-endpoint = <&panel_in_rgb>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
assigned-clocks = <&rcc 1 CLK_RTC>;
|
assigned-clocks = <&rcc 1 CLK_RTC>;
|
||||||
assigned-clock-parents = <&rcc 1 CLK_LSI>;
|
assigned-clock-parents = <&rcc 1 CLK_LSI>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&spi5 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-0 = <&spi5_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
cs-gpios = <&gpioc 1 GPIO_ACTIVE_LOW>, <&gpioc 2 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
|
l3gd20: l3gd20@0 {
|
||||||
|
compatible = "st,l3gd20-gyro";
|
||||||
|
spi-max-frequency = <10000000>;
|
||||||
|
st,drdy-int-pin = <2>;
|
||||||
|
interrupt-parent = <&gpioa>;
|
||||||
|
interrupts = <1 IRQ_TYPE_EDGE_RISING>,
|
||||||
|
<2 IRQ_TYPE_EDGE_RISING>;
|
||||||
|
reg = <0>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
display: display@1{
|
||||||
|
/* Connect panel-ilitek-9341 to ltdc */
|
||||||
|
compatible = "st,sf-tc240t-9370-t";
|
||||||
|
reg = <1>;
|
||||||
|
spi-3wire;
|
||||||
|
spi-max-frequency = <10000000>;
|
||||||
|
dc-gpios = <&gpiod 13 0>;
|
||||||
|
port {
|
||||||
|
panel_in_rgb: endpoint {
|
||||||
|
remote-endpoint = <<dc_out_rgb>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&usart1 {
|
&usart1 {
|
||||||
pinctrl-0 = <&usart1_pins_a>;
|
pinctrl-0 = <&usart1_pins_a>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue