Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #linux-amlogic
vagrantc has joined #linux-amlogic
<webczat>
and again, is there any reason as to why there is no support for environment on emmc on uboot?
wens has quit [Ping timeout: 255 seconds]
wens has joined #linux-amlogic
<afaerber>
webczat, I guess someone just needs to implement it - would you be willing to?
<webczat>
afaerber: well I would rather have problems implementing things I do not understand. like from what I can see it only requires some defines?
<webczat>
oh also btw how do i know which pin is which? there is a table on odroid c2 wiki, but it is not compatible with mainline kernel naming and stuff. not quite sure how would I go about mapping between these
<afaerber>
haven't needed it myself, so not sure if driver is prepared, but yes, there will be a few defines for eMMC env presence and location
<afaerber>
(or possibly Kconfig settings these days?)
<webczat>
not sure
<webczat>
heard that nope
<webczat>
what about pin stuff?
<lvrp16>
webczat: or you can just create a FAT partition and have u-boot load/save env to that
<webczat>
o rly? can it even do that?
<lvrp16>
mainline u-boot definitely can
<webczat>
does that include stuff like boot delays?
<lvrp16>
boot delay is programmable, you can just change a define
<webczat>
yes. but i may want to set it without recompile
tingoose has quit [Ping timeout: 256 seconds]
mag has quit [Ping timeout: 260 seconds]
mag has joined #linux-amlogic
mag is now known as Guest81268
Guest81268 is now known as mag
tingoose has joined #linux-amlogic
tingoose has quit [Ping timeout: 256 seconds]
tingoose has joined #linux-amlogic
<webczat>
and for curiosity how do you enable adc? i don't understand much but I do not see adc pins in dtb
<xdarklight>
webczat: loook at meson-gxbb-nanopi-k2.dts and use it as reference
<xdarklight>
webczat: the ADC pins are not in the dts/dtb because the ADC pins are not configurable (they're fixed, always routed to the ADC and cannot be used for anything else)
<webczat>
like you just enable saradc
<webczat>
i mean, set status to enabled and be done with it?
<xdarklight>
you also need to specify a 1.8V regulator as voltage reference
<xdarklight>
but that's it
<webczat>
well.
<xdarklight>
(I just checked Odroid-C2 schematics: it routes VDDIO_AO1V8 to pin 38 on the header, VDDIO_AO1V8 itself is provided by a fixed regulator just like on the nanopi k2)
<webczat>
I do not need this actually. what I am trying to do is understanding things like mapping between stuff in upstream and in amlogic/hardkernel kernel. especially that I am not into electronics at present and may have difficulties
<webczat>
like the topic interests me, the problem is mostly understanding stuff. including basics
<webczat>
well i know enough to know that I need voltage reference. :) just didn't know i have to specify it, but my actual question is about mapping everything from one kernel to another, as in, names differ. so adc, i2c, uart... which is which and how do I know...
<webczat>
adc made me wonder only because I thought I saw all pins in the gpio controller line names for c2, but there was no pinmux block for adc.
sputnik_ has quit [Ping timeout: 240 seconds]
sputnik_ has joined #linux-amlogic
<webczat>
xdarklight: like i thought that those pins marked j2 pin number are all on the header, + all 4 i2c pins, + 2 pwm pins, and + 5v, 3.3v gnd and 1.8v reference pins, that gave 40. is adc specified there even though it cannot be used as gpio? or I misunderstand?
<webczat>
ah, I believe those p2m's are not those exposed?
<webczat>
*pwm's
<webczat>
but then for example why both i2c's are marked as i2c and stuff like potential pwms/uarts are marked by their pin numbers... seems weird to me
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
indy has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
lissyx has quit [Ping timeout: 250 seconds]
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
afaerber has quit [Remote host closed the connection]
<xdarklight>
webczat: well, there are more pins one header which cannot be used as GPIOs: 5V0, 3V3, GND, the ADC pins, ...
<xdarklight>
webczat: regarding the naming: I have no idea why hardkernel labeled them this way
afaerber has joined #linux-amlogic
Barada has joined #linux-amlogic
trem has quit [Quit: Leaving]
dsd_ has quit [Quit: Lost terminal]
tingoose has quit [Ping timeout: 240 seconds]
Barada1 has joined #linux-amlogic
Barada has quit [Read error: Connection reset by peer]
Barada1 is now known as Barada
indy has quit [Ping timeout: 240 seconds]
Elpaulo1 has joined #linux-amlogic
Elpaulo has quit [Remote host closed the connection]