_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://libera.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
acathla has quit [Ping timeout: 256 seconds]
acathla has joined #litex
linear_cannon has quit [Quit: linear_cannon]
nelgau has joined #litex
nelgau has quit [Ping timeout: 256 seconds]
Degi_ has joined #litex
Degi has quit [Ping timeout: 256 seconds]
Degi_ is now known as Degi
peeps has joined #litex
nelgau has joined #litex
nelgau has quit [Ping timeout: 240 seconds]
nelgau has joined #litex
Wolfvak has quit [*.net *.split]
SpaceCoaster has quit [*.net *.split]
peeps[zen] has quit [*.net *.split]
Finde has quit [*.net *.split]
DoubleJ has quit [*.net *.split]
nelgau has quit [Ping timeout: 240 seconds]
SpaceCoaster has joined #litex
Wolfvak has joined #litex
DoubleJ has joined #litex
Finde has joined #litex
<geertu> somlo: The actual voltage will depend on the board (e.g. 1.8V-only eMMC), so DT is the right place.
FabM has joined #litex
FabM has quit [Changing host]
FabM has joined #litex
nelgau has joined #litex
nelgau has quit [Ping timeout: 256 seconds]
cr1901_ has joined #litex
cr1901 has quit [Ping timeout: 240 seconds]
cr1901_ has quit [Read error: Connection reset by peer]
Melkhior_ has joined #litex
Melkhior has quit [Ping timeout: 240 seconds]
cr1901 has joined #litex
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #litex
mupuf has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mupuf has joined #litex
nelgau has joined #litex
nelgau has quit [Ping timeout: 256 seconds]
<somlo> geertu: huh, ok then -- v13 coming out later today, with REGULATOR and DT voltage config support :)
<somlo> I'll send another update to litex_json2dts_linux, too
zjason` is now known as zjason
Melkhior_ has left #litex [Leaving]
Melkhior_ has joined #litex
Melkhior_ has quit [Quit: Leaving]
Melkhior_ has joined #litex
Melkhior_ is now known as Melkhior
<shorne> somlo: there are hardly andy drivers depending on REGULATOR_FIXED_VOLTAGE, interesting
<geertu> shorne: That's why everybody has CONFIG_REGULATOR_FIXED_VOLTAGE=y in his defconfig file?
<geertu> some platforms do select REGULATOR_FIXED_VOLTAGE (if REGULATOR)
<shorne> I guess so, we could also 'select REGULATOR_FIXED_VOLTAGE' insteaed of depends
<shorne> I am just looking at some drivers that use regulators/power-supplies
<cr1901> shorne: Not related to anything, but congrats on getting openrisc merged into glibc
<geertu> yes, and better than using depends, as that might create a circular dependency
<geertu> cr1901: +1
<shorne> drivers/gpu/drm/panel/panel-sitronix-st7789v.c: ctx->power = devm_regulator_get(&spi->dev, "power");
<geertu> cr1901: 7-8 years after I last played with OpenRISC on a de0-nano (before FLOSS FPGA toolchains emerged)
<shorne> cr1901: thanks, doing that work has made the whole toolchain improve. Now I can get back to hardware projects :)
<cr1901> The more CPUs we have, the merrier
<shorne> geertu: it probably took me 3 years to get the glibc port upstreamed :)
<cr1901> (Which reminds me, at some point soon, need to add Cora to LiteX)
<shorne> just looking more, almost all mmc host dirvers use: mmc_regulator_get_supply, but nothing about dependencies in Kconfig that I see
<geertu> shorne: So mmc_regulator_get_supply() would return -EPROBE_DEFER? Or device links even prevents getting that far?
<shorne> maybe an oversight? I see select REGULATOR_FIXED_VOLTAGE if REGULATOR in some arch/*/Kconfig too
<shorne> it looks like its returning -EPROBE_DEFER to me.
<shorne> we could test when driver v13 comes out
<shorne> but, device links only would fail if the dependency is specified. If you lave out the regulator from dts it will not defer calling probe.
<geertu> shorne: true
<shorne> this is the only commit I find: 26c2b19e9daf ("mmc: mtk-sd: select REGULATOR")
<shorne> thats related to mmc and regulators config
nelgau has joined #litex
nelgau has quit [Ping timeout: 240 seconds]
nelgau has joined #litex
nelgau has quit [Remote host closed the connection]
nrossi[m] has quit [Quit: You have been kicked for being idle]
<a3f> geertu: Great! Should import them back into barebox now ^^
<somlo> geertu, shorne: my plan is to "ret = mmc_regulator_get_supply(mmc); if (ret || mmc->ocr_avail == 0) mmc->ocr_avail = MMC_VOD_32_33 | MMC_VOD_33_34;"
<somlo> i.e., fall back to 3.3V if anything at all smells wrong
FabM has quit [Quit: Leaving]
<somlo> we can definitely "select CONFIG_REGULATOR_FIXED_VOLTAGE" in Kconfig as well
<somlo> I think most of the other existing drivers using mmc_regulator_get_supply() simply blindly assume CONFIG_REGULATOR_* is enabled, tbh
nelgau has joined #litex
nelgau has quit [Ping timeout: 256 seconds]
colton has joined #litex
colton has quit [Client Quit]
coco3431 has joined #litex
coco3431 has quit [Quit: Client closed]
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #litex
indy_ has joined #litex
alanvgreen_ has joined #litex
cr1901 has quit [*.net *.split]
simeonm has quit [*.net *.split]
indy has quit [*.net *.split]
yootis has quit [*.net *.split]
mtretter has quit [*.net *.split]
alanvgreen has quit [*.net *.split]
guan has quit [*.net *.split]
philpax_ has quit [*.net *.split]
bjonnh has quit [*.net *.split]
tpw_rules has quit [*.net *.split]
david-sawatzke[m has quit [*.net *.split]
bluecmd has quit [*.net *.split]
willcode4[m] has quit [*.net *.split]
leons has quit [*.net *.split]
jryans has quit [*.net *.split]
_franck_ has quit [*.net *.split]
shenki has quit [*.net *.split]
oter has quit [*.net *.split]
x56 has quit [*.net *.split]
tucanae47_ has quit [*.net *.split]
esden has quit [*.net *.split]
CarlosEDP has quit [*.net *.split]
Crofton[m] has quit [*.net *.split]
mntmn has quit [*.net *.split]
G33KatWork has quit [*.net *.split]
keesj has quit [*.net *.split]
mithro has quit [*.net *.split]
_florent_ has quit [*.net *.split]
tnt has quit [*.net *.split]
RaYmAn has quit [*.net *.split]
kgugala has quit [*.net *.split]
zyp has quit [*.net *.split]
promach[m] has quit [*.net *.split]
Stary has quit [*.net *.split]
novenary has quit [*.net *.split]
benh has quit [*.net *.split]
toshywoshy has quit [*.net *.split]
jevinskie[m] has quit [*.net *.split]
CarlFK has quit [*.net *.split]
lambda has quit [*.net *.split]
key2 has quit [*.net *.split]
eigenform has quit [*.net *.split]
anuejn has quit [*.net *.split]
vup has quit [*.net *.split]
shoragan has quit [*.net *.split]
r4d10n[m]1 has quit [*.net *.split]
mikolajw has quit [*.net *.split]
kbeckmann has quit [*.net *.split]
pavelow has quit [*.net *.split]
sorear has quit [*.net *.split]
dcallagh has quit [*.net *.split]
DerekKozel[m] has quit [*.net *.split]
shoragan[m] has quit [*.net *.split]
gatecat has quit [*.net *.split]
shorne has quit [*.net *.split]
tumbleweed has quit [*.net *.split]
felix_ has quit [*.net *.split]
hexagon5un has quit [*.net *.split]
Melkhior has quit [*.net *.split]
vomoniyi[m] has quit [*.net *.split]
Las[m] has quit [*.net *.split]
a3f has quit [*.net *.split]
amstan has quit [*.net *.split]
sajattack[m] has quit [*.net *.split]
somlo has quit [*.net *.split]
mupuf has quit [*.net *.split]
peeps has quit [*.net *.split]
Degi has quit [*.net *.split]
tpb has quit [*.net *.split]
TMM_ has quit [*.net *.split]
geertu has quit [*.net *.split]
lexano has quit [*.net *.split]
Peanut has quit [*.net *.split]
alanvgreen_ is now known as alanvgreen
mtretter_ has joined #litex
yootis has joined #litex
philpax_ has joined #litex
eigenform has joined #litex
TMM_ has joined #litex
geertu has joined #litex
Peanut has joined #litex
tnt has joined #litex
mikolajw has joined #litex
jevinskie[m] has joined #litex
r4d10n[m]1 has joined #litex
CarlFK has joined #litex
amstan has joined #litex
a3f has joined #litex
willcode4[m] has joined #litex
Las[m] has joined #litex
bluecmd has joined #litex
vomoniyi[m] has joined #litex
Crofton[m] has joined #litex
promach[m] has joined #litex
CarlosEDP has joined #litex
DerekKozel[m] has joined #litex
dcallagh has joined #litex
david-sawatzke[m has joined #litex
sajattack[m] has joined #litex
shoragan[m] has joined #litex
jryans has joined #litex
leons has joined #litex
tucanae47_ has joined #litex
esden has joined #litex
oter has joined #litex
x56 has joined #litex
_franck_ has joined #litex
shenki has joined #litex
mithro has joined #litex
keesj has joined #litex
mntmn has joined #litex
G33KatWork has joined #litex
kgugala has joined #litex
RaYmAn has joined #litex
_florent_ has joined #litex
toshywoshy has joined #litex
zyp has joined #litex
novenary has joined #litex
benh has joined #litex
Stary has joined #litex
shoragan has joined #litex
vup has joined #litex
anuejn has joined #litex
truc has joined #litex
Degi has joined #litex
Melkhior has joined #litex
guan has joined #litex
tpb has joined #litex
lexano has joined #litex
peeps has joined #litex
mupuf has joined #litex
sorear has joined #litex
key2 has joined #litex
tumbleweed has joined #litex
lambda has joined #litex
gatecat has joined #litex
pavelow has joined #litex
kbeckmann has joined #litex
somlo has joined #litex
felix_ has joined #litex
shorne has joined #litex
hexagon5un has joined #litex
tpw_rules has joined #litex
Martoni has joined #litex
cr1901 has joined #litex
Martoni has quit [Ping timeout: 250 seconds]
zjason` has joined #litex
zjason has quit [Ping timeout: 240 seconds]
Guest8 has joined #litex
<shorne> somlo: if we do anything I think "select REGULATOR" would be it. But I am fine with leaving it out as we have the fallback
Guest8 has quit [Client Quit]
<shorne> cavium.c does something similar:
<shorne> if (IS_ERR(mmc->supply.vmmc))
<shorne> mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
<shorne> so does drivers/mmc/host/dw_mmc.c, drivers/mmc/host/mxcmmc.c
<shorne> All others seem to use one or the other
<shorne> git grep -C4 'mmc_regulator_get_supply\|ocr_avail.*VDD' -- drivers/mmc/
<shorne> to see the details
linear_cannon has joined #litex