LiquidAcid has quit [Quit: Leaving]
krzk has quit [Ping timeout: 255 seconds]
krzk has joined #linux-exynos
_whitelogger has joined #linux-exynos
nighty has quit [Quit: Disappears in a puff of smoke]
paulk-blaze has joined #linux-exynos
isaque has joined #linux-exynos
paulk-blaze has quit [Ping timeout: 264 seconds]
amitk_ has joined #linux-exynos
amitk has quit [Ping timeout: 260 seconds]
paulk-blaze has joined #linux-exynos
paulk-blaze has quit [Ping timeout: 268 seconds]
Wizzup has quit [Quit: leaving]
Wizzup has joined #linux-exynos
paulk-collins has joined #linux-exynos
Vasco_O is now known as Vasco
Vasco has quit [Quit: changing servers]
Vasco has joined #linux-exynos
Vasco has quit [Client Quit]
Vasco has joined #linux-exynos
amitk_ has quit [Quit: leaving]
wwilly has joined #linux-exynos
<wwilly> hi, I'm using odroid-xu3 board, with the 4.10-rc6 kernel, I would like to use the gpio port, I use the "datasheet" provided by hardkernel at http://odroid.com/dokuwiki/doku.php?id=en:xu3_hardware_gpio to get the port mapping, but since I'm not using hardkernel kernel, I don't have the right mapping like this http://odroid.com/dokuwiki/doku.php?id=en:xu3_enhancement_gpio30
<wwilly> how can I know the right mapping? from the dts definition or there is a better way?
leandrosansilva has joined #linux-exynos
<krzk> wwilly: you could get this from the kernel itself. You have the friendly name (e.g. gpx1-2) and then look for it in /sys/kernel/kernel/debug/pinctrl/11000000.pinctrl/
<krzk> wwilly: GPIOLIB also provided a way to match the name to gpiochip and then you got the base. Just add the index to the base and voila... except GPIOLIB is deprecated
LiquidAcid has joined #linux-exynos
<wwilly> krzk, thanks
<wwilly> by cat /sys/kernel/debug/pinctrl/*.pinctrl/pinconf-pins
<wwilly> I get 231 pins, is it normal?
<wwilly> is the actual pin from the cpu itself?
<krzk> the number is reasonable
<krzk> wwilly: but I do not remember if these numbers match the gpios seen by gpiochip
<wwilly> uhm ok
<wwilly> I don't know either if gpio port pin 13 gpx1.5 #21 (from http://odroid.com/dokuwiki/doku.php?id=en:xu3_hardware_gpio) is really mapped to /sys/kernel/debug/pinctrl/13400000.pinctrl/ stuff
<wwilly> the purpose is to connect a thermal sensor DS18B20
<wwilly> it's a dallas 1 wire
<wwilly> if I plug in the right pin, and load w1-gpio w1-therm
<wwilly> I should not care anyway wich gpio it is, because I will see it in /sys/bus/w1/devices/
<wwilly> right?
beeno has quit [Ping timeout: 255 seconds]
<krzk> wwilly: not really, I doubt it is plug and play :)
<wwilly> :)
<krzk> wwilly: usually you have to configure it in DTS, e.g. provide the GPIO used by sensor (or by buys etc)
<krzk> s/buys/bus/
<wwilly> ok, I have solder everything, and boot, at least it's not explosing in my face :)
<krzk> wwilly: that's a progress :)
<krzk> bye, have a nice evening
<wwilly> uhm ok
<wwilly> thanks for your help
Vasco is now known as Vasco_O
paulk-collins has quit [Remote host closed the connection]
wwilly has quit [Quit: Leaving]
leandrosansilva has quit [Ping timeout: 260 seconds]
isaque has quit [Ping timeout: 240 seconds]
LiquidAcid has quit [Quit: Leaving]