Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 12-Chrdev/2019-01-21 13_53_10-Window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12-Chrdev/20190121_134920.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 12-Chrdev/GLLinux2.bmp
Binary file not shown.
16 changes: 16 additions & 0 deletions 12-Chrdev/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
obj-m += tic120bmp.o

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean


install:
sudo cp tic120bmp.ko /lib/modules/4.14.84-sunxi/kernel/drivers/i2c/
sudo depmod -a




1 change: 1 addition & 0 deletions 12-Chrdev/dt/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dtc -I dts -O dtb tic120.dts > tic120.dtbo
Binary file added 12-Chrdev/dt/tic120.dtbo
Binary file not shown.
20 changes: 20 additions & 0 deletions 12-Chrdev/dt/tic120.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/dts-v1/;
/plugin/;

/ {
compatible = "allwinner,sun8i-h3";

fragment@0 {
target = <&i2c0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
tic120@3C {
compatible = "tic120";
reg = <0x3C>;
status = "okay";
};
};
};
};
Loading