<wens>
and the pmic is close to axp223 & axp809 iirc
<wens>
btw i'm in japan on vacation
lordlod has quit [Ping timeout: 260 seconds]
lordlod has joined #linux-sunxi
<vishnup>
wens: sure, thanks
FlorianH has joined #linux-sunxi
<vishnup>
It'll be easy now :)
FlorianH has quit [Ping timeout: 272 seconds]
<swiftgeek>
how can i access PMIC's gpio? (axp209)
<wens>
for now? no driver exists in mainline
leviathancn_szu has joined #linux-sunxi
<swiftgeek>
can i just enable it in u-boot?
<swiftgeek>
(it's for wifi)
<swiftgeek>
*toggle
<wens>
depending on which gpio it is, you can hack-ishly enable it by using the gpioldo[01] regulators
<wens>
disabled == 0, 3.0/3.3v == 1
<swiftgeek>
port:power203
<swiftgeek>
(not sure yet how in mainline uboot)
<wens>
swiftgeek: check drivers/pinctrl/pinctrl-axp.h in allwinner's 3.4 kernel
<swiftgeek>
sigh i remember setting gpio from uboot, now i'm not seeing any command to do that
<swiftgeek>
wasn't there a 'gpio' command?
<swiftgeek>
hmm not compiled in by default, weird
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
IgorPec has quit [Ping timeout: 246 seconds]
p1u3sch1 has quit [Ping timeout: 276 seconds]
p1u3sch1 has joined #linux-sunxi
<wens>
swiftgeek: there's probably no support for that in mainline u-boot anyway
<swiftgeek>
i have AXP-0 to 5 in mainline uboot
vishnup has quit [Ping timeout: 260 seconds]
vishnup has joined #linux-sunxi
kivutar has quit [Ping timeout: 260 seconds]
<swiftgeek>
how can i set gpioldo?
<swiftgeek>
found /sys/class/regulator/regulator.
lemonzest has quit [Quit: Leaving]
<swiftgeek>
it would be indeed ldo
cnxsoft has quit [Quit: cnxsoft]
<swiftgeek>
just no idea how to enable :D
<swiftgeek>
LDO3 according to pinout
<swiftgeek>
ohhh
<swiftgeek>
i need option for that :D
<swiftgeek>
in uboot config
<swiftgeek>
to specify voltage on ldo3
diego_r has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 256 seconds]
hipboi has joined #linux-sunxi
hipboi has quit [Client Quit]
staplr has quit [Remote host closed the connection]
IgorPec has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
leviathancn has quit [Ping timeout: 256 seconds]
leviathancn_szu has quit [Ping timeout: 256 seconds]
leviathancn_szu has joined #linux-sunxi
leviathancn has joined #linux-sunxi
MY123 has quit [Quit: Leaving]
swiftgeek has left #linux-sunxi ["WeeChat 1.3"]
MY123 has joined #linux-sunxi
naobsd has joined #linux-sunxi
domidumont has quit [Ping timeout: 246 seconds]
vinifr has joined #linux-sunxi
MY123 has quit [Quit: Leaving]
ricardocrudo has joined #linux-sunxi
vishnup has quit [Ping timeout: 240 seconds]
vishnup has joined #linux-sunxi
vishnup has quit [Remote host closed the connection]
<vinifr>
mripard, hi. The driver sun4i-ts.c supports the functionalities of touch screen and temperature sensor. To add the A/D converter functionality, we should create a new driver?
<vinifr>
mripard, Or we should add code to existing driver?
Gerwin_J has joined #linux-sunxi
<mripard>
vinifr: we should create an IIO driver, and make the touchscreen and sensor drivers use iio
leviathancn_szu has quit [Remote host closed the connection]
leviathancn has quit [Ping timeout: 240 seconds]
<vinifr>
mripard, That means we must put everything on the same code? :D
<mripard>
?
<mripard>
no
<mripard>
that means we have to introduce a new driver and swtich the existing to use the IIO in-kernel interface
Nacho_ has joined #linux-sunxi
power-inside has joined #linux-sunxi
<power-inside>
Hello guys, I booted my device in FEL mode, and I see "Onda (unverified) V972 tablet in flashing mode
<TheLinuxBug>
thanks for the info, good story
<power-inside>
.. from lsusb, but my tablet has A13 SoC. How is that possible.
<power-inside>
I mean, Onda V972 has A31 chip (according to google).. but mine is A13
<KotCzarny>
could be fake device
<KotCzarny>
chinese are known to sell counterfeits
<NiteHawk>
power-inside: that's totally normal and nothing to worry about. it's just what libusb labels the specific device ID (1f3a:efe8). apparently this ID is always the same across various Allwinner FEL implementations
<NiteHawk>
(my A20 device is displaying exactly the same via lsusb)
<TheLinuxBug>
ah
<KotCzarny>
but yeah, cat /proc/cpuinfo to be sure
<TheLinuxBug>
ya
<TheLinuxBug>
what I found in that article was
<TheLinuxBug>
"I have a China Tablet, Allwinner A13"
<power-inside>
NiteHawk: Ah okay. Thanks.
<TheLinuxBug>
nice to know NiteHawk ;)
bonbons has joined #linux-sunxi
<NiteHawk>
basically: if you see that ID it's a good sign. if you want to know details / the specific SoC information (from the USB host), then use "sunxi-fel ver" - see https://linux-sunxi.org/FEL#Verifying_FEL_mode
deskwizard has quit [Ping timeout: 240 seconds]
<NiteHawk>
..from the USB host side. (where cat /proc/cpuinfo would be meaningless)
<power-inside>
NiteHawk: :) Yeah I figured. cat /proc/cpuinfo shows the host's cpu info!
_massi has quit [Quit: Leaving]
<power-inside>
Yup! Just confirmed. ./sunxi-fel version shows me A13 as the SoC.
<NiteHawk>
fine. so everything works out as expected
<vinifr>
mripard, Sorry, i didn't understand. In order to make sun4i-ts.c use IIO, it's not put all on same code?
<mripard>
it's my turn to not understand then.
<mripard>
what do you mean by "put all on same code" ?