EdSaGfmvA/boards/nucleo_wl55jc.overlay
2025-07-09 16:25:13 +02:00

59 lines
1.6 KiB
Plaintext

/*
* Copyright (c) 2024 Marvin Herold
*
* SPDX-License-Identifier: Apache-2.0
*
* Finale, funktionierende Konfiguration: Wir weichen dem LED-Konflikt
* auf Port B aus, indem wir den sauberen SPI1-Port auf Port A verwenden.
*/
/ {
aliases {
oled = &oled;
display = &oled;
};
};
// Wir aktivieren SPI1, das auf konfliktfreien Pins liegt.
// Keine LED-Deaktivierung mehr nötig!
&spi1 {
// Wir referenzieren die Standard-Pins für SPI1
// MISO (PA6) und NSS (PA4) brauchen wir nicht, also lassen wir sie weg.
pinctrl-0 = <&spi1_sck_pa5 &spi1_mosi_pa7>;
pinctrl-names = "default";
status = "okay";
// Unser Display hängt jetzt an SPI1
oled: oled@0 {
compatible = "marvin,oled128x64";
reg = <0>;
spi-max-frequency = <2000000>;
// Die anderen GPIOs bleiben unverändert, sie sind nicht im Konflikt.
dc-gpios = <&gpiob 8 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpioc 1 GPIO_ACTIVE_LOW>;
cs-gpios = <&gpiob 10 GPIO_ACTIVE_LOW>;
label = "OLED";
};
};
/*&spi1{
status = "okay";
pinctrl-0 = < &spi1_nss_pa4 &spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7 >;
pinctrl-names = "default";
epd: epd@0 {
compatible = "solomon,ssd1680";
reg = <0>;
spi-max-frequency = <2000000>;
mipi-max-frequency = <2000000>;
width = <250>;
height = <122>;
rotation = <0>;
dc-gpios = <&gpiob 8 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpioc 1 GPIO_ACTIVE_HIGH>;
busy-gpios = <&gpiob 10 GPIO_ACTIVE_HIGH>;
cs-gpios = <&gpioa 4 GPIO_ACTIVE_HIGH>;
};
};*/