[PATCH] Fix for missing possibility to power on GSM in om-gta02-2.6.34

Timo Juhani Lindfors timo.lindfors at iki.fi
Fri Aug 20 09:33:11 CEST 2010


Hi,

Lars-Peter Clausen <lars at metafoo.de> writes:
> I think using
> /sys/bus/platform/devices/neo1973-pm-gsm.0
> and
> /sys/bus/platform/devices/gta02-pm-gsm.0
> would be the best.
> All other paths with the same basename should only be symlinks to one of these two.

Thanks. However, since I can't easily test the older kernel versions I
don't feel confident in changing the old legacy paths. However, I'm
sure we can make the paths that are currently in use more sane. Here's
a list of /sys paths used by omhacks grouped by the command(s) that
access them. It tries these in order and picks the first one that is
found.

om battery
==========

/sys/class/power_supply/battery
/sys/class/power_supply/bat

om backlight
============

/sys/class/backlight/gta02-bl/brightness
/sys/devices/virtual/backlight/acpi_video0/brightness
/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-backlight.0/backlight/pcf50633-backlight/brightness
/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-backlight/backlight/pcf50633-backlight/brightness

om battery charger-limit [0-500]
================================

/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/chg_curlim
/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/pcf50633-mbc/chg_curlim

om resume-reason
================

/sys/class/i2c-adapter/i2c-0/0-0073/neo1973-resume.0/resume_reason
/sys/class/i2c-adapter/i2c-0/0-0073/resume_reason

om bt power
===========

/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.6/neo1973-pm-bt.0
/sys/devices/platform/gta02-pm-bt.0

om gps power
============

/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.7/neo1973-pm-gps.0
/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.7/gta02-pm-gps.0
/sys/devices/platform/gta02-pm-gps.0

(and /keep_on_in_suspend here for om gps [--swap] keep-on-in-suspend [1/0])

om gsm power
============

/sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-gsm.0
/sys/class/i2c-adapter/i2c-0/0-0073/gta02-pm-gsm.0
/sys/bus/platform/devices/gta02-pm-gsm.0

om usb mode [device|host]
=========================

/sys/devices/platform/s3c-ohci/usb_mode

om usb charger-mode [charge-battery|power-usb]
==============================================

/sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-host.0/hostmode

om usb charger-limit [0|100|500]
================================

/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-mbc/usb_curlim

om wifi keep-bus-on-in-suspend [1/0]
====================================

/sys/module/s3cmci/parameters/persist

om wifi power
=============

/sys/bus/platform/drivers/s3c2440-sdi




More information about the openmoko-kernel mailing list