<javier__>
afaerber: yes, Lee didn't want the dev->of_node check since now the devices will be populated by DT
<javier__>
but that is not true with the latest series that add support for the cros_ec user-space interface since that is not represented in DT
<afaerber>
javier__, if I add an i2c-tunnel node for Spring, should linux-next be okay or do I need that patch?
<javier__>
afaerber: so I decided to drop the patch and will post it once "[PATCH v5 0/7] platform/chrome: Add user-space dev inferface support
<javier__>
is merged
<afaerber>
the issue I'm seeing is that if I add both the tunnel with google,limited-passthrough support and the sbs-battery it doesn't boot
<afaerber>
if I drop the sbs-battery it boots but I'm unsure whether it's picking it up the tunnel correctly
* afaerber
will test with that patch then
* javier__
looks at i2c-tunnel support in spring
<afaerber>
javier__, btw I got the mwifiex firmware to load if I make it a module - but not built-in ;)
<afaerber>
it shows up as mlan0 in ip a, but I didn't manage to really test it
<javier__>
afaerber: so you shouldn't need that patch for spring (at least for the device registration)
<afaerber>
javier__, specifically because of the cros ec register code for cros-ec-i2c-tunnel? i.e., will I need it for the tpc65090?
<afaerber>
*tps
ssk has quit [Remote host closed the connection]
<javier__>
afaerber: no, because the "cros-ec-i2c-tunnel" is registered as an i2c bus so *I think* the i2c subsystem takes care of traverse the tree and register each child device
James_T has quit [Quit: Ohh Noes i dieded :'(]
James_T has joined #linux-exynos
<javier__>
afaerber: so you only need to add as mfd cells, the devices that are connected to the cros ec "bus" (i.e: the i2c tunnel and keyboard)
<afaerber>
hm, I thought that the tpc65090 was not on the i2c bus, therefore the separate driver needed, only the sbs-battery is located there DT-wise
<afaerber>
*tps65090
<javier__>
afaerber: yes it is, in the i2c bus in the EC like in the peach pit/pi boards
<javier__>
afaerber: cool, then you should be able to use the standard tps65090 driver right?
<afaerber>
javier__, why? that's not what Doug writes. it only handles sbs-battery 0xb
<javier__>
afaerber: what doug wrote (afaiu) is that the i2c-tunnel driver has to be extended to translate between i2c writes and reads to smbus (if that is possible) or use custom EC commands like vincent does for the sb battery (EC_CMD_SB_*) but also for the tps65090 regulators (EC_CMD_LDO_*)
<javier__>
afaerber: so you can use the standard sb battery and tps65090 drivers and make the i2c-tunnel to translate to what the EC supports
<javier__>
so vincent's patch is just a reference but more work is needed
<javier__>
afaerber: I may had missunderstood though
<afaerber>
I'm taking one step at a time, trying to fix my dark display - right now I can say that at least with your patch my i2c-tunnel gets initialized and correctly picks up the google,limited-passthrough setting
<afaerber>
the tps65090's lcd_vdd vfet6 is my hope there
<afaerber>
the only thing of note in dmesg otherwise is vdd_g3d getting turned off, which I guess is okay since I don't have Mali/Lima drivers
<javier__>
afaerber: yeah, you do have backlight though right? do you know what is the power supply for that?
<javier__>
on peach pit/pi is fet2 the power supply for backlight and fet6 for the display
<afaerber>
javier__, no, my problem is that the display more often than not stays dark when I power-on the device. I see on USB when to press Ctrl+d and then previously the display went on either in U-Boot or when the kernel was at a certain point. now it stays dark, no backlight and said "unable to config video" on next-20150218
<afaerber>
I already read the non-external-pwm code path in ps8622 with no insights
<afaerber>
if it's a regression in the bridge patches, it must've happened between v7 and the merged v9
<afaerber>
change log was not telling
<javier__>
afaerber: I see :-/
<javier__>
afaerber: btw, you can change the Google Binary Block (GBB) flags to avoid the need to press Ctrl + d
<javier__>
but need to remove the write protect screw or whatever the wp mechanism is used on Spring
* afaerber
is not aware of such a mechanism for Spring, only for Snow
<javier__>
afaerber: sylwester's answer about setting the CLKOUT parent in DT is very interesting btw
<afaerber>
yeah, slightly complicated though ;) at least lots of clocks for exynos4 odroid
gautam__ has quit [Ping timeout: 244 seconds]
<javier__>
yeah, but I think is because they are using "simple-audio-card" which is generic so you need to describe more
<javier__>
I'll look if I can come up with something for snow and peach pit/pi that avoids needing tushar's patch to reparent XCLKOUT
ard has joined #linux-exynos
<afaerber>
just verified that the old next-20141124 still enables the backlight and screen, so no hardware defect :)
<afaerber>
(other than a vertical dark pixel line across the screen)
<javier__>
afaerber: it may be interesting to diff the drm bridges patches to see what broke on spring
gautam__ has joined #linux-exynos
<afaerber>
javier__, hah, the C code is 100% identical :/
<afaerber>
Doug's i2c-tunnel autodetection did not work on Spring, I am now rebasing to next-20150220 where your clk fixes seem to be applied already
* javier__
nods
<afaerber>
javier__, no assigned-clock-rates = <0>; necessary?
Tenkawa has joined #linux-exynos
Tenkawa has joined #linux-exynos
<javier__>
afaerber: afaiu from the binding doc is only necessary if you want to have a rate != 0 for an assigned clock
<afaerber>
okay
<javier__>
afaerber: but since the xclout is registered with CLK_SET_RATE_PARENT then it will set the parent rate
Tenkawa has quit [Quit: leaving]
afaerber_ has joined #linux-exynos
afaerber has quit [Ping timeout: 244 seconds]
afaerber_ is now known as afaerber
<afaerber>
javier__, confirmed that the i2c-tunnel now gets initialized without your sub-devices patch.
ssk has joined #linux-exynos
prahal has joined #linux-exynos
<afaerber>
javier__, frequency is 24MHz with your patch, but no sound
<afaerber>
javier__, also it looks kind of weird: either the driver code should map between its clocks property and exposed clocks, or the board should wire them up as appropriate, no?
prahal has quit [Ping timeout: 246 seconds]
<javier__>
afaerber: yeah, I still not sure if that clock hierarchy is a property of the platform or the board...
aballier has quit [Quit: leaving]
<afaerber>
javier__, hierarchy is soc where applicable, but choices are boards' afaiu
<afaerber>
at least that's what I've seen on stm32 and other platforms, with choices depending on whether there is an external clock or not etc.
zombah has joined #linux-exynos
<tyler-baker>
javier__, sjoerd great work on the peach pi/pit btw. I build upstream uboot/linux and ran the debian installer, worked great. only issue I have to resolve is why X is not starting. I see a 'atmel_mxt_ts 8-004b: Invalid object type T9.' Looks like there are patches posted for T100 touch object, should I give those a try?
<tyler-baker>
javier__, sjoerd while I'm asking, if there are other patches I should use let me know. :)
* afaerber
has enabled debugfs, but nothing totally obvious in the clk summary
ssk has quit [Ping timeout: 250 seconds]
<sjoerd>
tyler-baker: Do you have a pi or a pit? The pi touch stuff still needs some patches i think
<tyler-baker>
sjoerd, pi
ssk has joined #linux-exynos
<tyler-baker>
sjoerd, ok I'm patching things now
<sjoerd>
You'll have to ask Javier for the state
ssk has quit [Client Quit]
<tyler-baker>
sjoerd, ack sounds good
<sjoerd>
the atmel touchpad maintainer doesn't push very hard unfortunately
Tenkawa has joined #linux-exynos
Tenkawa has joined #linux-exynos
ssk has joined #linux-exynos
<tyler-baker>
sjoerd, I notice those patches have been sitting there for quite some time :\
<sjoerd>
Nod
ssk has quit [Quit: Leaving]
<javier__>
tyler-baker: yeah, I posted http://comments.gmane.org/gmane.linux.kernel.samsung-soc/40927 a couple of months ago but the atmel touchpad maintainer said that posted another version that superseded my series and that should be applied instead
<javier__>
then got feedback on his patch and disappeared...
<javier__>
tyler-baker: I'll address the issues pointed out on nick patch, rebase and repost next week, will cc you
<javier__>
tyler-baker: I've also a DT patch from Samsung and an ucm profile for audio playback and capture on peach pit/pi
<javier__>
the mainline ASoC driver seems to be a little buggy but that is orthogonal so I'll post that next week as well
<javier__>
tyler-baker: and then the only peripheral missing is wifi which I already have DT support for it but there is a bug in the dw_mmc driver that we are looking to fix
Tenkawa has quit [Quit: leaving]
<javier__>
tyler-baker: tl; dr there aren't any in-flight patches that you have to apply now but expect some soon :)
<tyler-baker>
javier__, sounds good, more than will to help test :) great information, thanks!
<tyler-baker>
s/will/willing/g
prahal has joined #linux-exynos
<tyler-baker>
I disabled the atmel mxt driver, and I'm booted into xcfe now, cool
<javier__>
tyler-baker: awesome
<tyler-baker>
enabled UVC and I'm taking selfie's now, so it must be a real computer now :)