Wednesday, 2022-01-12

*** tpb <[email protected]> has joined #litex00:00
*** acathla <[email protected]> has quit IRC (Ping timeout: 256 seconds)00:04
*** acathla <[email protected]> has joined #litex00:16
*** linear_cannon <[email protected]> has quit IRC (Quit: linear_cannon)00:57
*** nelgau <[email protected]> has joined #litex01:23
*** nelgau <[email protected]> has quit IRC (Ping timeout: 256 seconds)01:28
*** Degi_ <[email protected]> has joined #litex04:48
*** Degi <[email protected]> has quit IRC (Ping timeout: 256 seconds)04:49
*** Degi_ is now known as Degi04:49
*** peeps <peeps!~peepsalot@openscad/peepsalot> has joined #litex05:25
*** nelgau <[email protected]> has joined #litex05:27
*** nelgau <[email protected]> has quit IRC (Ping timeout: 240 seconds)05:32
*** nelgau <[email protected]> has joined #litex05:34
*** Wolfvak <Wolfvak!~Wolfvak@user/wolfvak> has quit IRC (*.net *.split)05:35
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has quit IRC (*.net *.split)05:35
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has quit IRC (*.net *.split)05:35
*** Finde <[email protected]> has quit IRC (*.net *.split)05:35
*** DoubleJ <DoubleJ!~DoubleJ@user/doublej> has quit IRC (*.net *.split)05:35
*** nelgau <[email protected]> has quit IRC (Ping timeout: 240 seconds)05:38
*** Wolfvak <Wolfvak!~Wolfvak@user/wolfvak> has joined #litex05:40
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has joined #litex05:40
*** Finde <[email protected]> has joined #litex05:40
*** DoubleJ <DoubleJ!~DoubleJ@user/doublej> has joined #litex05:40
geertusomlo: The actual voltage will depend on the board (e.g. 1.8V-only eMMC), so DT is the right place.07:21
*** FabM <[email protected]> has joined #litex07:30
*** nelgau <[email protected]> has joined #litex07:31
*** nelgau <[email protected]> has quit IRC (Ping timeout: 256 seconds)07:37
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:911:8103:4bc0:4ebb:e3a4> has joined #litex08:36
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:6ce3:c0c5:783e:b45a> has quit IRC (Ping timeout: 240 seconds)08:37
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:911:8103:4bc0:4ebb:e3a4> has quit IRC (Read error: Connection reset by peer)08:46
*** Melkhior_ <[email protected]> has joined #litex08:54
*** Melkhior <Melkhior!~Melkhior@2a01:e0a:1b7:12a0:225:90ff:fefb:e717> has quit IRC (Ping timeout: 240 seconds)08:54
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:b055:b2d4:d40a:a103> has joined #litex09:02
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:b055:b2d4:d40a:a103> has quit IRC (Remote host closed the connection)09:04
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:b055:b2d4:d40a:a103> has joined #litex09:04
*** mupuf <[email protected]> has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)10:46
*** mupuf <[email protected]> has joined #litex10:46
*** nelgau <[email protected]> has joined #litex10:52
*** nelgau <[email protected]> has quit IRC (Ping timeout: 256 seconds)10:58
somlogeertu: huh, ok then -- v13 coming out later today, with REGULATOR and DT voltage config support :)12:35
somloI'll send another update to litex_json2dts_linux, too 12:36
*** zjason` is now known as zjason13:24
*** Melkhior_ <[email protected]> has left #litex (Leaving)13:59
*** Melkhior_ <[email protected]> has joined #litex13:59
*** Melkhior_ <[email protected]> has quit IRC (Quit: Leaving)13:59
*** Melkhior_ <Melkhior_!~Melkhior@2a01:e0a:1b7:12a0:225:90ff:fefb:e717> has joined #litex13:59
*** Melkhior_ is now known as Melkhior14:00
shornesomlo: there are hardly andy drivers depending on REGULATOR_FIXED_VOLTAGE, interesting14:07
geertushorne: That's why everybody has CONFIG_REGULATOR_FIXED_VOLTAGE=y in his defconfig file?14:12
geertusome platforms do select REGULATOR_FIXED_VOLTAGE (if REGULATOR)14:12
shorneI guess so, we could also 'select REGULATOR_FIXED_VOLTAGE' insteaed of depends14:13
shorneI am just looking at some drivers that use regulators/power-supplies14:14
cr1901shorne: Not related to anything, but congrats on getting openrisc merged into glibc14:14
geertuyes, and better than using depends, as that might create a circular dependency14:14
geertucr1901: +114:14
shornedrivers/gpu/drm/panel/panel-sitronix-st7789v.c:  ctx->power = devm_regulator_get(&spi->dev, "power");14:15
geertucr1901: 7-8 years after I last played with OpenRISC on a de0-nano (before FLOSS FPGA toolchains emerged)14:16
shornecr1901: thanks, doing that work has made the whole toolchain improve.  Now I can get back to hardware projects :)14:16
cr1901The more CPUs we have, the merrier14:16
shornegeertu: it probably took me 3 years to get the glibc port upstreamed :)14:16
cr1901(Which reminds me, at some point soon, need to add Cora to LiteX)14:17
shornejust looking more, almost all mmc host dirvers use: mmc_regulator_get_supply, but nothing about dependencies in Kconfig that I see14:24
geertushorne: So mmc_regulator_get_supply() would return -EPROBE_DEFER? Or device links even prevents getting that far?14:25
shornemaybe an oversight? I see select REGULATOR_FIXED_VOLTAGE if REGULATOR in some arch/*/Kconfig too14:26
shorneit looks like its returning  -EPROBE_DEFER to me.14:27
shornewe could test when driver v13 comes out14:27
shornebut, device links only would fail if the dependency is specified.  If you lave out the regulator from dts it will not defer calling probe.14:28
geertushorne: true14:34
shornethis is the only commit I find: 26c2b19e9daf ("mmc: mtk-sd: select REGULATOR")14:34
shornethats related to mmc and regulators config14:35
*** nelgau <[email protected]> has joined #litex14:55
*** nelgau <[email protected]> has quit IRC (Ping timeout: 240 seconds)15:01
*** nelgau <[email protected]> has joined #litex15:20
*** nelgau <[email protected]> has quit IRC (Remote host closed the connection)15:46
*** nrossi[m] <nrossi[m]!~nrossimat@2001:470:69fc:105::1:4527> has quit IRC (Quit: You have been kicked for being idle)16:00
a3fgeertu: Great! Should import them back into barebox now ^^16:13
somlogeertu, 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;"16:19
somloi.e., fall back to 3.3V if anything at all smells wrong16:20
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving)16:20
somlowe can definitely "select CONFIG_REGULATOR_FIXED_VOLTAGE" in Kconfig as well16:20
somloI think most of the other existing drivers using mmc_regulator_get_supply() simply blindly assume CONFIG_REGULATOR_* is enabled, tbh16:21
*** nelgau <[email protected]> has joined #litex16:55
*** nelgau <[email protected]> has quit IRC (Ping timeout: 256 seconds)17:01
*** colton <[email protected]> has joined #litex17:22
*** colton <[email protected]> has quit IRC (Client Quit)17:23
*** coco3431 <coco3431!~coco3431@76-214-251-181.lightspeed.livnmi.sbcglobal.net> has joined #litex17:23
*** coco3431 <coco3431!~coco3431@76-214-251-181.lightspeed.livnmi.sbcglobal.net> has quit IRC (Quit: Client closed)17:44
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:b055:b2d4:d40a:a103> has quit IRC (Read error: Connection reset by peer)18:23
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:b055:b2d4:d40a:a103> has joined #litex18:23
*** yootis_ <[email protected]> has joined #litex18:27
*** philpax__ <[email protected]> has joined #litex18:27
*** guan_ <[email protected]> has joined #litex18:27
*** tpw-rules <[email protected]> has joined #litex18:29
*** truc <[email protected]> has joined #litex18:30
*** mtretter_ <[email protected]> has joined #litex18:30
*** tpw-rules <[email protected]> has quit IRC (Ping timeout: 256 seconds)18:34
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:b055:b2d4:d40a:a103> has quit IRC (*.net *.split)18:34
*** simeonm <[email protected]> has quit IRC (*.net *.split)18:34
*** yootis <[email protected]> has quit IRC (*.net *.split)18:34
*** indy <[email protected]> has quit IRC (*.net *.split)18:34
*** mtretter <[email protected]> has quit IRC (*.net *.split)18:34
*** guan <[email protected]> has quit IRC (*.net *.split)18:34
*** alanvgreen <[email protected]> has quit IRC (*.net *.split)18:34
*** philpax_ <[email protected]> has quit IRC (*.net *.split)18:34
*** bjonnh <bjonnh!~jo@about/aquilenet/bjonnh> has quit IRC (*.net *.split)18:34
*** tpw_rules <[email protected]> has quit IRC (*.net *.split)18:34
*** Wolfvak <Wolfvak!~Wolfvak@user/wolfvak> has quit IRC (*.net *.split)18:34
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has quit IRC (*.net *.split)18:34
*** Finde <[email protected]> has quit IRC (*.net *.split)18:34
*** DoubleJ <DoubleJ!~DoubleJ@user/doublej> has quit IRC (*.net *.split)18:34
*** acathla <[email protected]> has quit IRC (*.net *.split)18:34
*** zjason <[email protected]> has quit IRC (*.net *.split)18:34
*** _whitelogger <[email protected]> has quit IRC (*.net *.split)18:34
*** gruetzkopf <gruetzkopf!~quassel@wireguard/tunneler/gruetzkopf> has quit IRC (*.net *.split)18:34
*** Emantor <[email protected]> has quit IRC (*.net *.split)18:34
*** Xesxen <Xesxen!~cyber@hackalot/deelnemer/xesxen> has quit IRC (*.net *.split)18:34
*** MoeIcenowy <[email protected]> has quit IRC (*.net *.split)18:34
*** rektide <[email protected]> has quit IRC (*.net *.split)18:34
*** nats` <nats`!~nats@2001:41d0:8:c634::1> has quit IRC (*.net *.split)18:34
*** trabucayre <[email protected]> has quit IRC (*.net *.split)18:34
*** tcal <[email protected]> has quit IRC (*.net *.split)18:34
*** yootis_ is now known as yootis18:34
*** guan_ is now known as guan18:34
*** philpax__ is now known as philpax_18:34
*** alanvgreen <[email protected]> has joined #litex18:38
*** indy_ <[email protected]> has joined #litex18:38
*** DoubleJ <DoubleJ!~DoubleJ@user/doublej> has joined #litex18:38
*** Finde <[email protected]> has joined #litex18:38
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has joined #litex18:38
*** Wolfvak <Wolfvak!~Wolfvak@user/wolfvak> has joined #litex18:38
*** acathla <[email protected]> has joined #litex18:38
*** zjason <[email protected]> has joined #litex18:38
*** _whitelogger <[email protected]> has joined #litex18:38
*** gruetzkopf <gruetzkopf!~quassel@wireguard/tunneler/gruetzkopf> has joined #litex18:38
*** Emantor <[email protected]> has joined #litex18:38
*** Xesxen <Xesxen!~cyber@hackalot/deelnemer/xesxen> has joined #litex18:38
*** MoeIcenowy <[email protected]> has joined #litex18:38
*** rektide <[email protected]> has joined #litex18:38
*** nats` <nats`!~nats@2001:41d0:8:c634::1> has joined #litex18:38
*** trabucayre <[email protected]> has joined #litex18:38
*** tcal <[email protected]> has joined #litex18:38
*** tpw_rules <[email protected]> has joined #litex18:38
*** Martoni <Martoni!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has joined #litex18:48
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:a4f9:ea5a:b2da:64df> has joined #litex18:57
*** Martoni <Martoni!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has quit IRC (Ping timeout: 250 seconds)20:00
*** zjason` <zjason`[email protected]> has joined #litex20:03
*** zjason <[email protected]> has quit IRC (Ping timeout: 240 seconds)20:04
*** Guest8 <[email protected]> has joined #litex20:56
shornesomlo: if we do anything I think "select REGULATOR" would be it.  But I am fine with leaving it out as we have the fallback20:56
*** Guest8 <[email protected]> has quit IRC (Client Quit)20:57
shornecavium.c does something similar:20:59
shorne        if (IS_ERR(mmc->supply.vmmc))20:59
shorne                mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;20:59
shorneso does drivers/mmc/host/dw_mmc.c, drivers/mmc/host/mxcmmc.c21:04
shorneAll others seem to use one or the other21:04
shornegit grep -C4 'mmc_regulator_get_supply\|ocr_avail.*VDD' -- drivers/mmc/21:08
shorneto see the details21:08
*** linear_cannon <[email protected]> has joined #litex23:37

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!