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
6 changes: 0 additions & 6 deletions kernel/configs/vamos.config
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@ CONFIG_SENSORS_INA2XX=y
CONFIG_TOUCHSCREEN_EDT_FT5X06=y
CONFIG_TOUCHSCREEN_S6SY761=y

# GPIO
# TODO: migrate gpio.sh, lte.sh, and power_drop_monitor.py to chardev (libgpiod)
# and remove GPIO_SYSFS (deprecated)
CONFIG_EXPERT=y
CONFIG_GPIO_SYSFS=y

# EROFS
CONFIG_EROFS_FS=y
CONFIG_EROFS_FS_ZIP=y
Expand Down
155 changes: 155 additions & 0 deletions kernel/dts/sdm845-comma-mici.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,158 @@
remote-endpoint = <&panel_in>;
data-lanes = <0>;
};

&tlmm {
gpio-line-names = "", /* GPIO_0 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_10 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_20 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_30 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_40 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"LTE_RST_N", /* GPIO_50 */
"",
"LTE_BOOT",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_60 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_70 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_80 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_90 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_100 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_110 */
"",
"",
"",
"",
"",
"LTE_PWRKEY",
"",
"",
"",
"", /* GPIO_120 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_130 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_140 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
""; /* GPIO_150 */
};

155 changes: 155 additions & 0 deletions kernel/dts/sdm845-comma-tizi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,158 @@
remote-endpoint = <&panel_in>;
data-lanes = <0 1 2 3>;
};

&tlmm {
gpio-line-names = "", /* GPIO_0 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_10 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_20 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_30 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_40 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"LTE_RST_N", /* GPIO_50 */
"",
"LTE_BOOT",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_60 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_70 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_80 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_90 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_100 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_110 */
"",
"",
"",
"",
"",
"LTE_PWRKEY",
"",
"",
"",
"", /* GPIO_120 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_130 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* GPIO_140 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
""; /* GPIO_150 */
};

2 changes: 1 addition & 1 deletion tools/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ RUN mkdir -p /root/.config

# Enable runit services
RUN for svc in \
ipa_fws brightnessd fs_setup gpio init-qcom lte \
ipa_fws brightnessd fs_setup init-qcom lte \
avahi-ssh-publish power_monitor power_drop_monitor \
screen_calibration serial-hostname \
sound varwatch busybox-ntpd \
Expand Down
2 changes: 1 addition & 1 deletion userspace/base_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ xbps-install -y \
libarchive-devel \
libcurl-devel \
libffi-devel \
libgpiod \
libgpiod-tools \
liblzma-devel \
libomp-devel \
libtool \
Expand Down
3 changes: 0 additions & 3 deletions userspace/root/etc/sv/gpio/finish

This file was deleted.

4 changes: 0 additions & 4 deletions userspace/root/etc/sv/gpio/run

This file was deleted.

3 changes: 0 additions & 3 deletions userspace/root/etc/sv/lte/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# lte - LTE modem management
exec 2>&1

# Wait for gpio setup to finish exporting all pins
while [ ! -f /run/gpio.ready ]; do sleep 0.1; done

# Run the lte script (stays running)
/usr/comma/lte/lte.sh start

Expand Down
Loading
Loading