Compare commits

...

2 Commits

Author SHA1 Message Date
Heinrich Toews
8328b1fbb4 dts: lime2: enable spi0 serial flash and 1-wire leds
Signed-off-by: Heinrich Toews <ht@twx-software.de>
2025-06-11 13:32:54 +02:00
Heinrich Toews
7e80751d33 dts: a20-lime: add roaddi light qx defconfig
Signed-off-by: Heinrich Toews <ht@twx-software.de>
2025-01-23 16:48:13 +00:00
3 changed files with 2810 additions and 0 deletions

@ -46,6 +46,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
/ {
model = "Olimex A20-OLinuXino-LIME2";
@ -78,6 +79,7 @@ leds {
led {
label = "a20-olinuxino-lime2:green:usr";
gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
default-state = "on";
};
};
@ -126,6 +128,7 @@ hdmi_out_con: endpoint {
};
};
/* This is TWI0-SCK/SDA */
&i2c0 {
status = "okay";
@ -134,6 +137,13 @@ axp209: pmic@34 {
interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
};
ns2009: touchscreen@48 {
compatible = "nsiway,ns2009";
reg = <0x48>;
touchscreen-fuzz-x = <8>;
touchscreen-fuzz-y = <8>;
};
};
&i2c1 {
@ -146,6 +156,81 @@ eeprom: eeprom@50 {
};
};
&spi0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi0_pc_pins>, <&spi0_cs0_pc_pin>;
spi-nor@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
status = "okay";
};
};
&spi1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi1_pi_pins>, <&spi1_cs0_pi_pin>;
led-controller@0 {
compatible = "worldsemi,ws2812b";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <2850000>;
multi-led@0 {
reg = <0>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
function-enumerator = <0>;
};
multi-led@1 {
reg = <1>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
function-enumerator = <1>;
};
multi-led@2 {
reg = <2>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
function-enumerator = <2>;
};
multi-led@3 {
reg = <3>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
function-enumerator = <3>;
};
multi-led@4 {
reg = <4>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
function-enumerator = <4>;
};
multi-led@5 {
reg = <5>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
function-enumerator = <5>;
};
multi-led@6 {
reg = <6>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
function-enumerator = <6>;
};
multi-led@7 {
reg = <7>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
function-enumerator = <7>;
};
};
};
&lradc {
vref-supply = <&reg_vcc3v0>;
};
@ -265,6 +350,18 @@ &uart0 {
status = "okay";
};
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pi_pins>;
status = "disabled";
};
&uart7 {
pinctrl-names = "default";
pinctrl-0 = <&uart7_pi_pins>;
status = "okay";
};
&usb_otg {
dr_mode = "otg";
status = "okay";

@ -1004,6 +1004,18 @@ spdif_tx_pin: spdif-tx-pin {
bias-pull-up;
};
/omit-if-no-ref/
spi0_pc_pins: spi0-pc-pins {
pins = "PC0", "PC1", "PC2";
function = "spi0";
};
/omit-if-no-ref/
spi0_cs0_pc_pin: spi0-cs0-pc-pin {
pins = "PC23";
function = "spi0";
};
/omit-if-no-ref/
spi0_pi_pins: spi0-pi-pins {
pins = "PI11", "PI12", "PI13";

File diff suppressed because it is too large Load Diff