This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Copyright (c) 2024 Randy Lai | |
# Copyright (c) Weida | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
&i2c0 { | |
touchscreen@2c { | |
compatible = "hid-over-i2c"; | |
reg = <0x2c>; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&touchscreen_pins>; | |
interrupts-extended = <&pio 155 IRQ_TYPE_LEVEL_LOW>; | |
post-power-on-delay-ms = <200>; | |
hid-descr-addr = <0x0020>; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(terminal):/sys/bus/usb/drivers/usbhid$ echo "1-11:1.0" | sudo tee -a bind | |
(terminal):/sys/bus/usb/drivers/usbhid$ echo "1-11:1.0" | sudo tee -a unbind |