IRC log for #maemo-ssu on 20131006

01:25.15*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
01:27.16*** join/#maemo-ssu dos11 (~dos@unaffiliated/dos1)
01:28.30*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@116.253.118.61)
01:41.16*** join/#maemo-ssu dos11 (~dos@unaffiliated/dos1)
02:13.28*** join/#maemo-ssu MetalGearSolid (~quassel@115.134.194.93)
02:25.33*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@116.253.118.61)
02:46.46*** join/#maemo-ssu amiconn_ (amiconn@rockbox/developer/amiconn)
07:16.05*** join/#maemo-ssu Pali (~Pali@Maemo/community/contributor/Pali)
07:24.21*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
07:34.36Palifreemangordon: any news why rtcom-call-ui crashing?
07:35.01Palimaybe it can be that gpio switch which is already used by snd driver?
07:51.57*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
08:01.06*** join/#maemo-ssu discopig (~discopig@unaffiliated/discopig)
08:06.01*** join/#maemo-ssu Martix_ (~martix@2001:718:2:2905:a288:b4ff:fe50:a6a4)
08:20.23*** join/#maemo-ssu discopig (~discopig@unaffiliated/discopig)
08:29.51*** join/#maemo-ssu discopig (~discopig@unaffiliated/discopig)
08:57.35freemangordonPali: didn't have time to debug it
08:58.33freemangordonbut there are more sound switches related errors
09:00.29freemangordonJan  1 08:02:30 Nokia-N900 pulseaudio[1547]: voice-sidetone.c: Cannot open /sys/devices/platform/omap-mcbsp.2/st_enable
09:00.31freemangordonJan  1 08:02:30 Nokia-N900 pulseaudio[1547]: module-alsa-sink-volume.c: hw:0: Bad mixer mode entry Headphone:off
09:00.33freemangordonJan  1 08:02:30 Nokia-N900 pulseaudio[1547]: module-alsa-sink-volume.c: hw:0: Bad mixer mode entry Earphone:off
09:01.06freemangordonPali: ^^^
09:09.24*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
09:23.36*** join/#maemo-ssu NIN101 (~NIN@p5DD2A091.dip0.t-ipconnect.de)
09:35.43*** join/#maemo-ssu Martix_ (~martix@2001:718:2:2905:a288:b4ff:fe50:a6a4)
09:40.18*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
09:50.15*** join/#maemo-ssu M4rtinK (~M4rtinK@mail.melf.eu)
10:00.40*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
10:17.36*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
10:19.52*** join/#maemo-ssu kolp (~quassel@212.255.244.88)
11:10.36*** join/#maemo-ssu int_ua (~int_ua@ip-602f.proline.net.ua)
11:16.00*** join/#maemo-ssu dos11 (~dos@unaffiliated/dos1)
11:48.04*** join/#maemo-ssu Martix_ (~martix@2001:718:2:2905:a288:b4ff:fe50:a6a4)
12:05.25*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
13:51.40*** join/#maemo-ssu Martix_ (~martix@2001:718:2:2905:a288:b4ff:fe50:a6a4)
14:19.45FatPhilwould any of you hackers have any use for a proto with a broken USB, a slightly duff screen (not actually missing any pixels though), and a finnish keyboard
14:21.00FatPhilI've converted 3 slightly broken devices into 2 perfect ones, and a "junker".
14:21.52FatPhilWell, I've not actually done it, as I can't get a couple of the screws out, but will buy a decent screwdriver set ASAP to complete the swaps I need to so.
14:22.19FatPhiland then the junker should be usable for a developer, just not for your daily device.
14:26.30ShadowJKhow broken is the usb?
14:26.57ShadowJKtraces lifted/missing?
14:29.34FatPhilTo be honest, I didn't even look. It didn't charge, and the socket was visably out of kilter, so presume lifted
14:30.31ShadowJKaw
14:30.42ShadowJKI've got two modem-dead devices
14:31.39FatPhilwhere in the world are you?
14:32.04jonwilI am on my 3rd N900 (2 were replaced way back when under warranty)
14:32.05ShadowJK.fi
14:32.32jonwilFirst one had a broken display flex PCB (the one with the status multicolor LED and the front camera on it)
14:32.50jonwilThen the replacement for that ended up with broken USB
14:32.52FatPhilHelsinki area?
14:32.55ShadowJKnop
14:33.06jonwilthen that was replaced under warranty with the third one which I still have
14:34.19FatPhilI will be in .fi next weekend, and I know a mate has a lab with screwdrivers that will take most of my devices apart (as I did part of the switcheroo last weekend there, before I got the third device).
14:35.15FatPhilone of the problem with good screwdrivers is that they will strip shitty screws (which did happen, pliers were needed to complete the job)
14:35.46ShadowJKWell also the philips heads are designed to slip and strip
14:36.08FatPhilyeah, I have a conical indentation that proves that
14:36.55ShadowJKtorx makes more sense, but I suspect some greenpeace hippies drove through philips :P
14:37.52ShadowJKor hex, when hex goes bad you take torx bit and hammer it in
14:38.31jonwilhas run out of things he can reverse engineer :(
14:38.44jonwilAnyone with suggestions on what to reverse engineer next please feel free to suggest them :)
14:39.45FatPhiljonwil: what's the story on rtcom-call-ui?
14:39.55jonwilwhat about it specifically?
14:40.08jonwilIts closed source and its doing a lot of stuff which I have never been able to fully work out
14:40.20jonwilmostly because I dont have any knowledge of telepathy
14:41.47jonwilShort of hell freezing over and the source code for it appearing somehow (or some genius with both skills in telepathy AND skills in reverse engineering showing up) I dont think we will ever truly know everything that its doing
14:42.49jonwilis there anything specific you want to know about it?
14:43.26FatPhilI was just told that it was crashing with a new kernel, so was a candidate for reverse engineering
14:44.04jonwilok, well as I said, its very complex and hard to reverse engineer
14:45.16jonwilI need something simpler to fiddle with
14:48.46jonwilI would fiddle some more with the cellular services daemon but that has been frustrating me too much :(
14:49.15jonwilEspecially since the cellular modem docs I have are quite a few revisions ahead of the cellmo in the N900
14:51.32jonwiland since I still cant figure out most of the interface for libisi
14:54.00jonwilmaybe I will go back and take another crack at liblocation...
14:58.34*** join/#maemo-ssu Martix_ (~martix@2001:718:2:2905:a288:b4ff:fe50:a6a4)
15:01.16*** join/#maemo-ssu dhbiker (~dhbiker@95.87.145.172)
16:26.08*** join/#maemo-ssu lenoch (~chatzilla@88.103.110.54)
17:09.58*** join/#maemo-ssu dos11 (~dos@unaffiliated/dos1)
17:40.14*** join/#maemo-ssu discopig (~discopig@unaffiliated/discopig)
17:41.35*** join/#maemo-ssu Pali (~Pali@Maemo/community/contributor/Pali)
17:50.33freemangordonPali: can't we just rename "avdet-gpio" to "headphone" in rx51.c and solve our problem?
17:52.33freemangordonFatPhil: any good idea how to create 'virtual" gpios in the kernel? I was told something like that will be needed in order to have cameras working with DT
17:53.29Palifreemangordon: it is not about name but about gpio number
17:53.48freemangordon#define RX51_GPIO_HEADPHONE177
17:54.11freemangordon#define RX51_JACK_DETECT_GPIO177
17:54.22freemangordonwhat is wrong with the number?
17:54.25Palifreemangordon: still "virtual gpios" needs to be in board data or somwhere... so it will be deleted in DT
17:54.45Palifreemangordon: renaming is not enough
17:55.00freemangordonPali: ok, please, explain what is the peoblem, I don;t get it
17:55.20Palionly one can use gpio
17:55.21freemangordonsound driver opens gpio 177
17:55.33freemangordonwho else need gpio 177?
17:55.51Paliand for maemo compatibility you need gpios in omap gpio driver
17:56.02Paliomap gpio switch driver
17:56.16freemangordonPali: thus my point
17:56.29freemangordonmaemo needs "headphone" gpio, ain't?
17:56.32Paliand in upstream kernel sound driver it using too (for jack detection?)
17:56.55Paliand maemo needs that gpio exported via omap switch driver
17:57.15freemangordonoh, I see
17:57.19Palibut only one driver can use it (snd or omap)
17:57.23freemangordonwell, we'll need "virtual gpio" driver then
17:57.39Palibut I patched omap driver to do not fail if cannot open gpio
17:57.40freemangordonfor sound and for cameras iiuc
17:57.47Paliand provide fake data to userspace
17:57.50freemangordoncorrect?
17:58.03Paliso apps will see them...
17:58.08freemangordonok, got it
17:59.22freemangordonPali: where in /sys maemo looks for gpios?
17:59.51freemangordon"/sys/devices/platform/gpio-switch" ?
18:00.17Paliyes
18:00.34Palibut there is already some generic gpio sysfs
18:00.42freemangordonhmm, can;t we patch omap-gpio driver to make gpios "sharable"?
18:01.00Paliso maybe we should change omap gpio driver to use that generic sysfs and create symlinks
18:01.27Palifreemangordon: this is what we should do, but I do not know gpio framework
18:01.52freemangordonhmm, making symlinks should be easy
18:02.07freemangordonwhich driver is "ours"?
18:02.26freemangordongpio-omap?
18:03.57freemangordonoh, it is gpio-switch
18:04.02freemangordonlemme see what it does
18:08.17freemangordonPali: hmm, and how this work in Nokia kernel?
18:13.22freemangordonPali: WTF, rx51.c in upstream is missing half of the stuff in KP? who and how upstreamed that?!?
18:13.53Palino idea...
18:14.01*** join/#maemo-ssu amizraa (~amizraa@gateway/tor-sasl/amizraa)
18:14.17freemangordonOMG: "* n810.c  --  SoC audio for Nokia RX51"
18:14.20freemangordon:D:D:D
18:14.29Palibut snd rx51.c using other separate drivers...
18:14.42Palisee SELECT in Kconfig
18:16.43freemangordonthe one in KP has select SND_OMAP_SOC_MCBSP more compared to upstream
18:16.52freemangordonthe others are the same
18:17.42freemangordonhmm, not, equal thing selected
18:17.51freemangordonno difference
18:18.00Paliso all subdrivers are similar and main driver rx51.c is smaller?
18:18.06freemangordonyep
18:18.23Palihm, then we maybe missing something
18:19.05Paliand need to check if tvout detection driver (it is separate in KP) is integrated into rx51.c in upstream or not
18:19.07freemangordonhmm, I don;t think so
18:19.33freemangordonseems like upstream has less functionality
18:19.43Paliah
18:20.53freemangordonPali: http://pastebin.com/2pSFh79f
18:21.33freemangordonRX51_JACK_MIC and RX51_JACK_ECI are missing from upstream
18:22.23Palialso need to look at ECI support which Doc wrote...
18:23.49freemangordonPali: I guess we should port KP driver
18:24.02freemangordonand upstream it :(
18:27.55freemangordonPali: and it seems upstream is missing fmtx support
18:28.25freemangordonPali: http://pastebin.com/1nDCfPrP
18:30.42Palifreemangordon: when I have notebook back I can look at it :-)
18:30.52freemangordonok :)
18:31.12freemangordonbut deffinitely upstream is missing half of the functionality
18:31.20Palidoc: I do not have any ECI multibutton headset so I cannot do anything :-(
18:32.32dos1freemangordon: https://github.com/torvalds/linux/blame/master/sound/soc/omap/rx51.c
18:32.42dos1https://github.com/torvalds/linux/commit/49100c98359a56ea4e8c9a76e3d625cdb25f25f5
18:32.53dos1"This is a cut down version based on Maemo kernel sources and earlier patchset by Eduardo Valentin et al."
18:33.15Palifreemangordon: need to look at meego 2.6.37+ kernel if there are not some patches we need
18:33.26freemangordonPali: :nod:
18:33.33freemangordondos1: yeah :(
18:33.33Paliso we will not create new patches which already exists...
18:33.40freemangordonPali: ok
18:33.47freemangordonmakes lots of sense :)
18:34.16*** join/#maemo-ssu M4rtinK (~M4rtinK@ip-37-188-230-228.eurotel.cz)
18:37.30dos1freemangordon: some fmtx code is there - https://github.com/torvalds/linux/commit/9d7e584b3fb4d9f581b83c0916e10b91de78e663
18:38.15freemangordonyep, but it is different in nokia kernel aiui
18:38.54dos1most likely, it seems like updates on that first cut down commit were done independently
18:40.35freemangordonPali: I think we can remove that "jack gpio" from rx51.c, I guess it is not the driver to decide where to route the sound
18:41.40freemangordonI wonder why only limited functionality was upstreamed
18:45.09Paliok
18:49.14freemangordonPali: ok, I'll focus on bridgedriver while waiting for your laptop :)
18:49.30Paliok :-)
18:49.56freemangordonBTW I almost got it working, but unfortunately as long as it loads baseimage.dof, it spits SYSERROR -102
18:50.34freemangordonit is something with the voltages I guess, if I remember correctly what I had to do in KP to have it working
18:50.54freemangordonDSP doesn't work if OPP < 3
18:51.01freemangordon(500 MHz)
18:53.14Palifreemangordon: can you look at firsts patches in 3.12-rc1-n900 tree? there are some which chaning omap clocks...
18:53.23Paliand patches are from Skry
18:57.10Palifreemangordon: and somebody should write some info to LKML about charger patch series, that we really need board hook functions for charger
18:57.31Paliwhich is needed for charger detection
18:58.00Paliand this cannot be in DT, because in DT cannot be C/ASM function
18:58.18freemangordonPali: hmm, I tend to agree with the guys that isp1704 could be treated as regulator
18:58.56Palithis is still not enough... you need to control gpio plus handle boost mode
18:59.19freemangordonPali: can't we do regulator_enable/disable?
18:59.44Palibut this regulator again must be in board code
18:59.49Palias new function
19:00.06freemangordonwhy in board code? it can be in bq driver
19:00.12Palibecause it is board n900 specific
19:00.44freemangordonPali: see how ISP deal with vaux3
19:00.46Paliyou need to get data from isp parse them a tell bq2415x what to do
19:00.48*** join/#maemo-ssu nox- (noident@freebsd/developer/nox)
19:01.03Paliand plus enable/disable one gpio
19:01.03freemangordonin bq driver there could be a check if there is a regulator assigned
19:01.17freemangordonfrom DT
19:01.23freemangordonand enable/disable it
19:01.25Paliand parsing output from isp to bq format is n900 specific
19:01.29freemangordonthe same for gpio I guess
19:01.33Paliand gpio too
19:02.13freemangordonPali: you can have that gpio in DT
19:02.17freemangordoncorrect?
19:02.26freemangordonalong with the regulator
19:02.58freemangordonPali: maybe I should look at the code first :D
19:04.10*** join/#maemo-ssu Martix_ (~martix@static-84-242-103-180.net.upcbroadband.cz)
19:04.18freemangordonPali: I will check if I can convert isp to regulator framework
19:05.34*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
19:05.37freemangordonPali: I don;t think we have an option but to do that if we want bq/isp drivers upstreamed
19:14.13Paliok
19:15.37Paliand need to check if wl1251 fw is in linux-firmware git tree...
19:16.15freemangordonit is, but in a different location :D
19:16.31freemangordoniiuc
19:16.34Palican you give me link?
19:16.48Palior check if it is same version as in maemo?
19:17.37Paliand... need to check licence of bluetooth firmware
19:17.57freemangordonhttps://lkml.org/lkml/2013/9/24/316
19:18.03Palianybody here with law skills?
19:21.39freemangordonPali: hmm, isp1704_charger already using power supply framework, correct?
19:25.37Paliyes
19:25.43Palibq2415x too
19:26.22Palimaybe we can create new driver rx51_charger and move there functions from board code
19:26.55freemangordonI think there is an easier way, gimme a second
19:26.59Paliso board charger code will be in new driver rx51_charger
19:27.11Palithis could be easy
19:27.53Palijust initialization of charger drivers (platform data) will be in rx51_charger too
19:35.06freemangordonPali: see http://lxr.free-electrons.com/source/drivers/power/power_supply_core.c#L497
19:35.45freemangordonwe can define in dt that isp supplies bq
19:35.49*** join/#maemo-ssu okias (d9c3a136@gateway/web/freenode/ip.217.195.161.54)
19:36.14DocScrutinizer05[2013-10-06 20:31:20] <Pali> doc: I do not have any ECI multibutton headset so I cannot do anything :-(
19:36.39DocScrutinizer05mere luck that I noticed that, "doc" is nothing that my IRC client highlights
19:37.35freemangordonand it bq set a listener for POWER_SUPPLY_PROP_CURRENT_MAX prop change
19:37.39freemangordon*and in
19:39.04freemangordonPali: that way no external driver needed iiuc
19:39.23PaliDocScrutinizer05: if you have some ECI headset, you can try to patch kernel too...
19:39.24DocScrutinizer051704 a regulator? LOL
19:39.42freemangordonDocScrutinizer05: my bad, I meant a power supply
19:39.49DocScrutinizer05neither
19:39.56Palifreemangordon: can you pass mA from isp to bq?
19:40.16DocScrutinizer05Pali: I don't have any such headset
19:40.32Paliok, then nothing to do...
19:41.12freemangordonPali: you can pass a "property change" event I guess, and you can do power_supply_get_by_name("isp1704") (suppplied from dt) and then you can do get_property()
19:41.36freemangordonPali: sounds sane to you?
19:42.05*** join/#maemo-ssu LauRoman (~LauRoman@5-14-91-21.residential.rdsnet.ro)
19:43.30Paliok, waiting for property mA event and reading it is OK
19:43.41DocScrutinizer05watches his toe nails curl
19:43.48Palibut still we need to enable gpio
19:44.26freemangordonfrom bq?
19:44.45Palinow isp calling board function set_power
19:45.01Paliand it is already in upstream kernel
19:45.16freemangordonPali: leaving for a while, ,will check what can be done in 15 minutes
19:46.34DocScrutinizer05isp1707 (1704) is a PHY, not a power supply
19:47.43DocScrutinizer05those kernel freaks. vibrator is a LED, PHY is a power supply. I wait for CPU becoming a battery
19:48.22PaliI think that vibrator is LED is only in nokia kernel...
19:48.26DocScrutinizer05and possibly LCD a audio device
19:49.27Paliand I bet that isp driver is written by that mr usb man
19:53.42DocScrutinizer05you know what I'm missing in kernel? A *tiny* bit of decent OO and class hierarchy understanding. Like e.g. it's missing "actor_generic" and "sensor_generic" as basic "object types", and other stuff inheriting from that
19:55.42DocScrutinizer05but noooo, when we don't have a object class "vibrator2 we look for anything similr, like LED and rape it to service a motor
19:56.24DocScrutinizer051704 even worse, this has ZILCH in common with a power supply, ABSOLUTELY nothing at all
19:57.11Paliit is charger...
19:57.15DocScrutinizer05NO
19:57.27DocScrutinizer05it is a PHY
19:58.34DocScrutinizer05it's hardly _connected_ to any charger
19:58.49DocScrutinizer05nor any power supply
19:59.11DocScrutinizer05it's a USB bus driver
19:59.36DocScrutinizer05you as well could call a NIC a charger or power supply
20:00.43Palidescription:    ISP170x USB Charger driver
20:00.45DocScrutinizer05even more since it *might* provide PoE and thus actually would supply power, though to external world, not to circuit
20:01.01Palithis is written in modinfo...
20:01.02DocScrutinizer05yeah, terrible absolute BULLSHIT
20:01.21Paligoing to look who wrote that driver
20:01.38DocScrutinizer05an idiot
20:03.48okiasDocScrutinizer05: I see lot of optimism :D
20:04.45DocScrutinizer05eh?
20:04.49PaliISP1704 USB Charger Detection driver
20:05.00PaliCopyright (C) 2010 Nokia Corporation
20:05.05Paliname is hidden
20:05.08DocScrutinizer05charger DETECTION
20:05.15Paliand we know why :D
20:05.32okiastime to git blame :D
20:05.37DocScrutinizer05it detects wallcharger
20:05.50DocScrutinizer05that doesn't make it a charger, nor a power supply
20:06.04Palido you have full git repo of kernel near?
20:06.41okiasno :(
20:07.43Paliok, going to look at linus git web log
20:07.45DocScrutinizer05confirms my take that it must have been an idiot who reads "charger detection" and thinks "duh, a charger that does detect, so it's >>description:    ISP170x USB Charger driver<<"
20:08.39DocScrutinizer05with this logic ALS is a LED
20:09.01Palipower_supply: Add isp1704 charger detection driver
20:09.02DocScrutinizer05since it's light detection
20:09.11PaliNXP ISP1704 is Battery Charging Specification 1.0 compliant USB transceiver. This adds a power supply driver for ISP1704 and ISP1707 USB transceivers.
20:09.36PaliHeikki Krogerus <ext-heikki.krogerus@nokia.com>
20:10.05Palicommit: ec46475f3e3163dd80bfee086fa71b36455ecc0b
20:10.15Paliyou can contact that person :-)
20:10.28DocScrutinizer05to do what?
20:11.15DocScrutinizer05tell him that ISP170x do not supply power?
20:11.49DocScrutinizer05or tell him that it definitely doesn't CHARGE
20:12.13Paliwhatever you want :P
20:12.19DocScrutinizer05meh
20:12.42Paliso because of nokia...
20:12.50DocScrutinizer05not because of nokia
20:13.22DocScrutinizer05>>ISP1704 USB Charger Detection driver<< sounds correct
20:13.49DocScrutinizer05but been already too long and complicated for ADHS of those other guys
20:14.49DocScrutinizer05ISP1704 USB Charger Detection driver   does exactly one thing: detect Nokia fastcharger via D+/- short
20:14.53DocScrutinizer05NOTHING else
20:15.12DocScrutinizer05well, s/driver//
20:15.31DocScrutinizer05I dunno what the driver does, but I know what charger detection in 1707 does
20:16.32DocScrutinizer05>>description:    ISP170x USB Charger driver<<"  !=  >>ISP1704 USB Charger Detection driver<<
20:17.14DocScrutinizer05first one suggests 1707 is a battery charger, which it clearly isn't
20:17.47DocScrutinizer05it's not a charger, it's a detector
20:18.49DocScrutinizer05basically a derived object of class sensor_generic
20:20.03freemangordonDocScrutinizer05: kowing what it is doesn't help much with the upstreaming :)
20:20.11freemangordonknowing even
20:20.14DocScrutinizer05not any member of class internal_function_generic, and particularly not of the subclass of that called power_management
20:20.49freemangordonhmm, where's pali gone?
20:21.01DocScrutinizer05Pali has left this server (Quit: xchat sucks and needs a kick).
20:21.02freemangordonDocScrutinizer05: any clue what GPIO was Pali talking about?
20:21.10DocScrutinizer05when?
20:21.31freemangordon<Pali> but still we need to enable gpio
20:22.30DocScrutinizer05maybe he meant the output of 1707?
20:22.41DocScrutinizer05err nope that is always active afaik
20:22.45freemangordonDocScrutinizer05: which IC is that on the schematic?
20:22.55DocScrutinizer05maybe he meant the input of bq24150
20:23.09freemangordonN1140?
20:23.14DocScrutinizer05which one? 1707?
20:23.30freemangordonbq24150
20:23.38freemangordonand 1707 as well
20:24.06freemangordonI want to look at how are thoose connected before making conclusions/taking decisions
20:24.15DocScrutinizer0524150 = N1140
20:24.41freemangordonhmm, I see no input gpio there
20:25.43DocScrutinizer051707 = D4280
20:26.02freemangordonthanks
20:26.03DocScrutinizer05CHRG_DET
20:26.15DocScrutinizer05-> OTG
20:26.38DocScrutinizer0524150 OTG can be set to different modes
20:27.08DocScrutinizer05you +could* call bq24150 OTG a GPIO
20:27.20freemangordonhmm, ok, makes sense then
20:28.18DocScrutinizer05funny enough on 1707 the CHGR_DET is marked as IO ( <> )
20:28.26freemangordonyep
20:28.30DocScrutinizer05I wouldn't know how that can act as input
20:28.57DocScrutinizer05afaik it's an (open collector?) output only
20:28.59*** join/#maemo-ssu lenoch (~chatzilla@88.103.110.54)
20:29.35DocScrutinizer05but you also can program it maybe, to either stay inactive or actually signal D+- short
20:30.07DocScrutinizer05all this is only used during emergency charge anyway
20:30.16DocScrutinizer05so you basically can ignore it
20:30.54DocScrutinizer051707 sends "D+- short" message via ULPI bus to musb-hdrc core
20:31.05freemangordongpio_set_value(RX51_USB_TRANSCEIVER_RST_GPIO, on);
20:31.16freemangordon#define RX51_USB_TRANSCEIVER_RST_GPIO67
20:31.34DocScrutinizer05ooh, PHY reset
20:31.56freemangordon"ISP_RST"
20:32.18DocScrutinizer05I don't see such reset on 1707
20:32.57freemangordonCHIP_SEL
20:33.20freemangordonor DIR?
20:33.42freemangordonyep, CHIP_SEL
20:34.40freemangordonthis should be a part of ISP driver IMO
20:34.57DocScrutinizer05chip_sel is not reset
20:35.05DocScrutinizer05afaik
20:35.07freemangordonwell, don;t ask me
20:35.10freemangordon:)
20:35.18freemangordonI didn't write that code
20:35.59DocScrutinizer05NB schem tells "GAIA HS-USB transceiver" which is bogus legacy
20:36.26DocScrutinizer05nah, schem as well has "ISP_RST"
20:36.34freemangordondo you have the datasheet? (I guess you have it)
20:37.00DocScrutinizer05which might have been the case when it been GAIA's PHY and not a dedicated 1707
20:37.08freemangordonok, so for the log:
20:37.37DocScrutinizer051707 datasheet not available, you need to use 1704 and keep in minf that one pin has switched active polarity
20:37.53DocScrutinizer05mind*
20:38.15freemangordonISP1707 CHIP_SEL GPIO could be provided for either board code or DT, and set_power board function actually has to be in the ISP driver code
20:38.54DocScrutinizer05http://www.google.de/search?q=isp1704
20:39.23freemangordonso, if we have that provided (by either board code or DT), set it in the driver, instead of calling set_power
20:40.20freemangordonyep, deffinitely CHIP_SEL
20:41.49DocScrutinizer05<PROTECTED>
20:42.04freemangordonhmm, putting pins in high-impedance is not a reset in my book
20:42.18DocScrutinizer05nope
20:42.20freemangordonhowever
20:42.22DocScrutinizer05definitely not
20:42.42freemangordonoh, power-down
20:43.10freemangordonwell, we can fix the naming
20:44.30DocScrutinizer05yep, the schematics has an erratum there
20:46.40DocScrutinizer05CHGR_DET_EN_N is at gnd level, hardwired
20:47.06DocScrutinizer05<PROTECTED>
20:47.12freemangordonhmm, this time it seems uptream devs have a point
20:47.57*** join/#maemo-ssu M4rtinK (~M4rtinK@ip-89-177-124-88.net.upcbroadband.cz)
20:48.04DocScrutinizer05hmm?
20:48.10freemangordonisp driver has (or can acwuire) all the needed data without having to call the board code
20:48.22freemangordon*acquire
20:49.14DocScrutinizer05nfc
20:49.47DocScrutinizer05CHGR_DET   active-HIGH signal to start high current charging; when not in use, leave this pin ope n   active-HIGH output; 5 V tolerant; external 100 kΩ pull-down resistor
20:50.04freemangordonwill discuss it with Pali when he is back online
20:50.17DocScrutinizer05again, this is only relevant for emergency-charging
20:51.52DocScrutinizer051707 sends "D+- short" message via ULPI bus to musb-hdrc core
20:52.21DocScrutinizer05and this is what you see in the sysnode for "charger"
20:53.15DocScrutinizer05>> /sys/devices/platform/musb_hdrc/charger  (SIC!)
20:53.46DocScrutinizer05musb_hdrc is the only correct location for this
20:54.19DocScrutinizer05no friggin powersupply or even charger
20:57.37DocScrutinizer05and this is the reason why musb-hdrc driver needs to be monolithic (no module), since charger detect aka D+- short detect needs to get done very early in boot to not interrupt charging
20:57.53freemangordoncool https://lkml.org/lkml/2013/10/6/127
21:02.25DocScrutinizer05sounds good
21:02.39DocScrutinizer05they finally noticed how cmt_speech works
21:02.57DocScrutinizer05at least whicj interface it's using
21:24.35*** join/#maemo-ssu Martix_ (~martix@static-84-242-103-180.net.upcbroadband.cz)
21:31.03*** join/#maemo-ssu dreamer (~henk@melange.soleus.nu)
21:32.25dreamerlo all. just did a reinstall of my n900, after cssu and powerkernel and such I installed the 'advanced power' application and now the backlight selector has disappeared from the status menu
21:32.38dreameranyone have an idea where it could have gone?
21:35.08*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
22:31.56DocScrutinizer05advanced power application? sounds like you better steer clear of it
22:33.24DocScrutinizer05oh, it's just a battery indicator
22:33.46DocScrutinizer05it messed up your status bar settings I guess
22:34.00DocScrutinizer05tricky stuff
22:36.10DocScrutinizer05http://talk.maemo.org/showthread.php?t=66251
22:39.59DocScrutinizer05or you simply didn't scroll down the menu?
22:41.21DocScrutinizer05btw what's backlight-selector?
22:43.10DocScrutinizer05dreamer: ^^^
22:43.12psycho_oreosI was sort of wondering about that, could it be that simple backlight applet where one can tweak backlight brightness from the drop down menu and/or set backlight to be either permanently on or not.
22:43.44DocScrutinizer05thought as much
22:45.07psycho_oreosIn any case I'm pretty sure installing advanced power daemon (that battery monitor thingy) would restart hildon-ui and force a whole bunch of 'applets' to not get loaded. The best idea (imo) is to restart the device so that advanced power monitor daemon would work with the rest of the other hildon 'applets'.
22:46.45DocScrutinizer05I wonder if it simply has gone "off-screen" into row#6 of the menu
22:47.24DocScrutinizer05I got it in row#1, anything else is unbearable ;-D
22:48.23psycho_oreosI'm not sure but I'm sure I have had setup advanced power daemon in the past whereby it restarts hildon-ui and a whole bunch of little 'applets' fail to load (things like even the notable cpuload-applet go missing).
22:48.36DocScrutinizer05I should get rid of the tweaks profile-button
22:49.24DocScrutinizer05yeah, for sure you need a reboot after messing with status-bar or status-menu config
22:49.28psycho_oreosiinm, advanced power daemon monitor should stick in row one, it replaces that standard battery monitor with a user 'press-able' button along with more information about the battery life, etc.
22:49.47psycho_oreos*nods*
22:49.54DocScrutinizer05yeah, sounds plausible
22:50.14psycho_oreosMine is messy as hell, I have a huge drop down list but I'm not particularly fussy about it. :D To each their own.
22:52.34DocScrutinizer05psycho_oreos: yeah (about advanced power) http://talk.maemo.org/showpost.php?p=884348&postcount=8
22:56.12psycho_oreosDocScrutinizer05, I guess that's one way to simplify things. I thought the advanced power monitor daemon was made by some other guy. In any case yeah the advanced power monitor daemon is on the top left, row #1, that simple backlight applet thingy is second last on bottom right.
22:56.49DocScrutinizer05not here :-)
22:56.52psycho_oreosI also suppose that program MohammadAG made was to allow one to customise the list of applets from drop down menu.
22:57.17psycho_oreosWell yeah, seeing as how it's not part of cssu package. :D
22:57.40DocScrutinizer05nah, it's on row#1 right here
22:57.50psycho_oreosAhh yeah on the picture.
22:58.07psycho_oreosI have that installed (even though it can be buggy as hell).
22:58.30DocScrutinizer05buggy?
22:59.33DocScrutinizer05simple brightness never failed for me
22:59.40psycho_oreosI don't know, it could just be me. I have on certain (or almost every) reboots, apmd shows grey battery bar (meaning battery is either not detected or something). I've had to restart apmd via killing it and letting it redetect the battery.
22:59.50psycho_oreosNah, the advanced power monitor daemon.
23:00.16DocScrutinizer05aaah
23:01.05psycho_oreosSimple backlight applet never fails me, apart from that instance when I installed some other applets (like say apmd) made it disappear but hey, that could almost be equated to user error. :D
23:01.35DocScrutinizer05oh, that's the idiocy about the exclusive opening of the sysnode, or rather the  failure to do so, or whatever
23:01.49*** join/#maemo-ssu int_ua (~int_ua@ip-602f.proline.net.ua)
23:03.15psycho_oreosThe apmd? I haven't dug far in (and with limited knowledge I'm restricted to "certain level") I thought it was just an issue with python or something. Though I've made an ugly hack to fix apmd, via a small bash script along with queen beecon widget.
23:05.01DocScrutinizer05I never looked into apmd, but I guess it's the usual problem with bme and stuff exclusively opening some sysnode, and so other apps can't access it
23:05.25DocScrutinizer05could of course also be related to python
23:06.08DocScrutinizer05or you even got KP and that battery kernel module
23:06.12psycho_oreos*nods* plausible with sysnode stuff but I have to admit, it's really beyond my depth. I simply resorted to quick (and usually dirty) hacks and be done with it.
23:06.27DocScrutinizer05that's known to conflict with bme
23:06.28psycho_oreosHmm I do have KP but not Pali's BME replacement.
23:07.10DocScrutinizer05lsmod|grep bq27
23:07.13DocScrutinizer05I guess
23:07.30psycho_oreosI can imagine if I were to have Pali's BME replacement along with apmd, it would no doubt make a huge mess. ;) figuratively speaking.
23:08.15DocScrutinizer05dunno what apmd uses to acquire battery data
23:08.20psycho_oreosHmm crap, and my main N900 is still getting it's battery charged. *sigh* I'll just make do with the other N900 on much older kp and potentially apmd.
23:10.18psycho_oreosI just ran that command on my other N900 and they have returned nothing. I'm guessing bq27 would no doubt be the BME replacement.
23:10.30DocScrutinizer05wait, it's only the bq27xxx.ko module that does harm when bme starting after it
23:11.11*** join/#maemo-ssu piscodig (~discopig@unaffiliated/discopig)
23:11.31psycho_oreosAlso thinking about it, bq27xx.ko module was probably available/included into kp50. My spare N900s are running on kp47.
23:11.43DocScrutinizer05no, it's not exactly bme replacement, it's a deprecated and basically buggy kernel module that apps like apmd use to read out the bq27200 chip
23:11.56psycho_oreosAhh. hmm.
23:12.27DocScrutinizer05it's usually blacklisted since it makes bme fail when bme starts after that module got loaded -> reboot
23:15.24psycho_oreosCorrection (on my part), I have kp49 not kp47 on spares. I've couldn't find bq27xx.ko but instead found bq27x00_battery.ko
23:15.25DocScrutinizer05power monitor apps should never use that bq27-battery sysnode, they should either use hal or direct access to bq27200 via i2c, like bq27k-detail.sh does
23:16.43psycho_oreosI'm guessing that's probably where apmd fails, because it probably makes use of sysnode. I've dug into the python script awhile back, though yeah that's ages ago when I did that.
23:16.53DocScrutinizer05probably apmd is broken in that it's using the bq27x00_battery/* sysnodes
23:21.50psycho_oreosThough wouldn't that be likely cause if say bq27x00_battery.ko is still loaded? I mean in my case bq27x00_battery.ko isn't loaded though it's available.
23:22.19psycho_oreosI just had a quick peek at some of the apmd python stuff, I couldn't quite make sense from out of it.
23:22.54psycho_oreosIt doesn't appear to be apmd is making use of bq27x00.ko but I could also be wrong on that part.

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.