rm gpio udev rules

This commit is contained in:
Adeeb Shihadeh
2026-05-02 13:56:12 -07:00
parent 548b09f15a
commit d1e8ba7ab6
3 changed files with 9 additions and 11 deletions
@@ -1,2 +0,0 @@
SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c 'find -L /sys/class/gpio/ -maxdepth 2 -exec chown root:gpio {} \; -exec chmod 770 {} \; || true'"
SUBSYSTEM=="gpio", KERNEL=="gpiochip[0]", GROUP="gpio", MODE="660"
@@ -1,3 +1,2 @@
# Create Android-style boot partition links for vendor services.
KERNEL=="mmcblk[0-9]*p[0-9]*", SUBSYSTEM=="block", ACTION=="add", RUN+="/etc/udev/scripts/bootdevice-by-name.sh %k"
KERNEL=="[hs]d[a-z][0-9]*", SUBSYSTEM=="block", ACTION=="add", RUN+="/etc/udev/scripts/bootdevice-by-name.sh %k"
+9 -8
View File
@@ -25,19 +25,20 @@ pins=(
for p in ${pins[@]}; do
echo $p
# this is SSD_3v3 EN on tici
if [ "$p" -eq 41 ] && grep -q "comma tici" /sys/firmware/devicetree/base/model; then
echo "Skipping $p"
continue
fi
echo $p > /sys/class/gpio/export
until [ -d /sys/class/gpio/gpio$p ]
do
until [ -d /sys/class/gpio/gpio$p ]; do
sleep .05
done
done
# still needed on devices after comma three?
HUB_RST_N=30
gpio $HUB_RST_N 1
# add gpio sysfs nodes to gpio group
find -L /sys/class/gpio/ -maxdepth 2 -exec chown root:gpio {} \; -exec chmod 770 {} \;
# setup gpiochip for the gpio group
chgrp gpio /dev/gpiochip0
chmod 660 /dev/gpiochip0