<Tony_>
naobsd, and rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;
<naobsd>
Tony_: you need to fix both vcc_{otg,host} block and pinctrl block
<naobsd>
both need to be matched
<naobsd>
both -> vcc_otg and otg_vbus_drv for OTG / vcc_host and host_vbus_drv for HOST
ssvb has joined #linux-rockchip
<naobsd>
about HOST, probably actual ports will be under usb hub. you need to make sure that all root HOST port, hub chip, HOST ports under hub need to be powered
<naobsd>
I think only "ports under hub" is not powered (by dmesg)
<naobsd>
+OTG
<Tony_>
naobsd, I've seen DTS for while, it is a little difficult for me now. ;) Maybe I should learn about dts more detail at first.
<Tony_>
naobsd, I noted what you said.
<naobsd>
Tony_: just change GPIO# for now...
<naobsd>
I don't know what number is for your board
<Tony_>
naobsd, I just use such as RK30_PIN2_PD7 for a GPIO's name.
<Tony_>
before.
<Tony_>
naobsd, is that ture the dts just need the two number ?
<Tony_>
naobsd, thank you very much, it worked. ;) :) :) :)
<naobsd>
you can do same on 3.0 kernel but number must be +160 (e.g. PIN0_PA0 is 160)
<Tony_>
naobsd, ah, I know how to control GPIO first time, you teach me, thank you!!!! so cool, I have just imagine this before.
<Tony_>
naobsd, is there a mistake on 3.0 kernel ? so need +160 ?
<naobsd>
no idea why RK guys did +160... maybe there is 160 IRQs?
<Tony_>
naobsd, got it.
<naobsd>
it's just my guessing, and there is no relation between irq# and gpio#... I just guessed someone might want to use gpio# as irq# on 3.0 kernel
nighty-_ has joined #linux-rockchip
<Tony_>
naobsd, ah, 3.0 version kernel was gone almost. ;)
<naobsd>
in your project?
<Tony_>
naobsd, yes, It's stable already, I'm almost never modify it for long time.
<Tony_>
naobsd, I have a question, to control the GPIO is safe ?
<Tony_>
naobsd, I think it is not safe, do you think so ?
premoboss has joined #linux-rockchip
nighty-_ has quit [Ping timeout: 255 seconds]
<naobsd>
GPIO should be designed to be controlled...
<naobsd>
you shouldn't touch any GPIO _pin_ which is used for some specific purpose
<naobsd>
(you cannot touch it by regular way)
<Tony_>
ah, it is safe now. ;)
VargaD has joined #linux-rockchip
nighty-_ has joined #linux-rockchip
<Tony_>
naobsd, last question, where I change to "28" from DTS.
field^Mop has quit [Ping timeout: 250 seconds]
<Tony_>
naobsd, gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>; right ?