File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -1237,6 +1237,43 @@ _EOF_
12371237 G_CONFIG_INJECT ' user_overlays=' ' user_overlays=dietpi-usb-otg' /boot/dietpiEnv.txt
12381238 G_EXEC apt-mark auto device-tree-compiler
12391239
1240+ elif (( $G_HW_MODEL == 83 ))
1241+ then
1242+ G_AGI device-tree-compiler
1243+ G_EXEC mkdir -p /boot/overlay-user
1244+ cat << '_EOF_ ' > /boot/overlay-user/dietpi-spi1_1.dts
1245+ /dts-v1/;
1246+ /plugin/;
1247+ / {
1248+ compatible = "allwinner,sun50i-h616";
1249+ fragment@0 {
1250+ target-path = "/aliases";
1251+ __overlay__ {
1252+ spi1 = "/soc/spi@5011000";
1253+ };
1254+ };
1255+ fragment@1 {
1256+ target = <&spi1>;
1257+ __overlay__ {
1258+ #address-cells = <1>;
1259+ #size-cells = <0>;
1260+ pinctrl-0 = <&spi1_pins>,<&spi1_cs1_pin>;
1261+ pinctrl-names = "default";
1262+ spidev1_1: spidev@1 {
1263+ compatible = "armbian,spi-dev";
1264+ reg = <1>;
1265+ spi-max-frequency = <1000000>;
1266+ status = "okay";
1267+ };
1268+ status = "okay";
1269+ };
1270+ };
1271+ };
1272+ _EOF_
1273+ G_EXEC dtc -I dts -O dtb -o /boot/overlay-user/dietpi-spi1_1.{dtbo,dts}
1274+ # G_CONFIG_INJECT 'user_overlays=' 'user_overlays=dietpi-spi1_1-otg' /boot/dietpiEnv.txt
1275+ G_EXEC apt-mark auto device-tree-compiler
1276+
12401277 # Workaround for NanoPi R1 failing boot: https://github.com/MichaIng/DietPi/issues/5927
12411278 elif (( $G_HW_MODEL == 48 ))
12421279 then
You can’t perform that action at this time.
0 commit comments