Danct12 has quit [Remote host closed the connection]
pg12 has quit [Remote host closed the connection]
pg12 has joined #linux-msm
pg12 has quit [Remote host closed the connection]
pg12 has joined #linux-msm
Danct12 has joined #linux-msm
pg12 has quit [Remote host closed the connection]
pg12 has joined #linux-msm
pg12 has quit [Remote host closed the connection]
pg12 has joined #linux-msm
pg12 has quit [Remote host closed the connection]
pg12 has joined #linux-msm
strongtz[m] has joined #linux-msm
<strongtz[m]>
Hi everyone. I'm trying to bring up display on a SM8550 device, but I encountered disp_cc_mdss_mdp_clk_src: rcg didn't update its configuration and disp_cc_mdss_ahb_clk status stuck at 'off'. Any advice maybe?
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #linux-msm
<strongtz[m]>
btw I'm compiling everything as built-in
flto_ has joined #linux-msm
flto has quit [Read error: Connection reset by peer]
flto_ has quit []
flto has joined #linux-msm
<z3ntu>
Anybody got some knowledge on lpg with mpp pins and the pwm behind it? I'm trying to get it working on some old-school msm8226 device but having some troubles wrapping my head around it.
<z3ntu>
For sure I know the two leds are connected to mpp4 and mpp6 (and pulling them low makes the led on, used as current sink then). Downstream dts suggests mpp4 somehow uses pwm channel 0 and mpp6 pwm channel 5 e.g. for blinking (I'm sorta assuming those pwm channels are the ones from lpg block). Also I'm quite sure mpp4 is configured to use the dtest1, and mpp6 the dtest2 in downstream.
<z3ntu>
So far my theory is that I configure lpg led@1 and led@6 to produce some pwm signal, lpg is configured to connect(?) led@1 (=pwm0) to dtest1 and led@6 (=pwm5) to dtest2, and the mpp I have a pinctrl state also with qcom,dtest = <1> and <2> respectively.
<z3ntu>
Also fwiw I believe downstream only uses the pwm for blinking (on-off), not for dimming to lower brightness. Worst case I make it a gpio led with the mpp pin and that should work also, but would be nice to configure this fully
<konradybcio>
lpg should eat way less power than cortex a7
pespin has quit [Remote host closed the connection]
<HappY[m]>
<z3ntu> "Also I've been looking at..." <- `[ 1.509422] arm-smmu 15000000.iommu: Unhandled context fault: fsr=0x402, iova=0x9bc3f000, fsynr=0x200011, cbfrsynra=0x1c00, cb=10` dear are you solve this issue ? with panel i am receving this errors..
srinik has quit [Killed (NickServ (Too many failed password attempts.))]
srinik has joined #linux-msm
<z3ntu>
bamse: in case you're not reading all messages, ping. Maybe you have some ideas about the mpp/dtest/lpg thing from some hours ago :)
<bamse>
z3ntu: what pmic is that?
<z3ntu>
pm8226 (used with msm8226, Snapdragon 400 from many years ago)
<bamse>
z3ntu: quite likely you don't need to resort to the (undocumented) dtest feature...
<z3ntu>
I'm pretty sure downstream sets some registers regarding dtest if I followed the code correctly
<bamse>
hmm, so we have the function "sink" on db820c mpp2...that's odd, or just too long since i looked at this mess
<z3ntu>
sink does get selected from qcom,mode-ctrl which sets the bit 7-4 of LED_MPP_MODE_CTRL
<z3ntu>
from my understanding on this device the led is always connected to power, and when the led is off, the mpp is high so no current flows, and only when the mpp is low then current flows and the led is on
<z3ntu>
so it makes sense to switch the mpp into sink mode
<bamse>
right
<bamse>
i just didn't expect "function" to be "mode"
<z3ntu>
the naming downstream->mainline is really messed up, nothing matches really... but after comparing the code for register writes I'm half sure my theory is correct :P
<bamse>
but, as you say...the pwm will output a signal on some internal pin, which can be used as control signal for the mpp
<bamse>
i think downstream dts might be inherited from the pm8921-era, and i just ignored that when i did the upstream stuff
<bamse>
so the qcom,dtest on the lpg side is supposedly denoting how the invidiual pwm channels are connected to the dtest lines...and then the qcom,dtest on the mpp is used to connect input signal to that same line
<z3ntu>
that's kind of what I thought.. but I honestly didn't find any writes to the register that qcom,dtest in lpg writes to in downstream
<bamse>
in sc8280xp-lenovo-thinkpad-x13s.dts you find edp_bl_pwm, which just says function = "func1", to select the pwm-input...i was expecting to see the same here...but i guess the mpp is different
<bamse>
and looking at the register docs for pmi8994 seems to confirm that, and confirm that i had to do that crazy hack on db820c
<z3ntu>
fun ^^
<z3ntu>
I'm honestly considering just making it a gpio led for now to not have to bother with all of this
<z3ntu>
already spent too much time on this haha
<bamse>
z3ntu: but it's not that they poke some magic value into MODE_CTL bits 3:0?
<z3ntu>
apart from setting dtest, don't think so
<z3ntu>
qcom,source-sel (source_sel) => b0000XXXX of LED_MPP_MODE_CTRL (0x40) -- e.g. dtest1-x/paired/normal
<z3ntu>
so it's just setting the 8 or 10 value from qcom,source-sel which I think is just dtest1 & dtest2
<bamse>
sounds like it...but do you have a similar write on the lpg side?
<bamse>
(and yeah, i can see why you're leaning towards a gpio-led)
<z3ntu>
this drivers/leds/leds-qpnp.c driver is an all-in-1 magic box but at least I didn't see it doing something there too
<z3ntu>
in led_blink_do_work it does pwm_config_us (with duty & period), then pwm_enable, small sleep, then pwm_enable again(?), then only writes LED_MPP_MODE_CTRL and LED_MPP_EN_CTRL
nashpa has joined #linux-msm
dliviu has quit [Read error: Connection reset by peer]