ls7366r started

This commit is contained in:
2025-06-06 21:59:16 +01:00
parent 31e308efe9
commit 17ad8044fb
2 changed files with 44 additions and 19 deletions

View File

@ -6,11 +6,36 @@
target-path = "/";
__overlay__ {
status = "okay";
counter {
compatible = "hottis,counter";
leds {
compatible = "hottis,leds";
red-led-gpio = <&gpio 26 0>;
blue-led-gpio = <&gpio 21 0>;
};
};
};
fragment@1 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@2 {
target = <&spi0>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
ls7366r: ls7366r0@0 {
compatible = "hottis,counter";
reg = <0x0>;
spi-max-frequency = <1000000>;
spi-bits-per-word = <8>;
status = "okay";
};
};
};
};