ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion
crabbedhaloablut has quit [Ping timeout: 258 seconds]
crabbedhaloablut has joined #linux-rockchip
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #linux-rockchip
stikonas has quit [Ping timeout: 268 seconds]
lurchi_ is now known as lurchi__
<wens> naoki: why would you need to define the pin function? it should be that when you request the GPIOs, they are automatically muxed to the proper GPIO functions
lorenzb has quit [Quit: Gateway shutdown]
hexdump0815 has quit [Ping timeout: 250 seconds]
hexdump0815 has joined #linux-rockchip
<naoki> well
<naoki> xxx {
<naoki> gpio_pins: gpio-pins {
<naoki> <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>,
<naoki> <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>,
<naoki> rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>,
<naoki> <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
<naoki> };
<naoki> };
<naoki> I'm using linux/tools/gpio/gpio-hammer.c for testing
<naoki> without this hack, nothing is changed with gpio-hammer
<naoki> wens: if pin function is not GPIO, user(land) cannot change pin state. am I wrong?
<naoki> (these are RK3399 SPI1 pins)
<naoki> I'm sure spi1 is disabled in dts
<naoki> and on running machine
<naoki> ah... user(land) cannot change pin state _as GPIO_
<naoki> I have no idea why these pins are not GPIO by default
<naoki> maybe maskrom/bootloader change function?
Daanct12 has joined #linux-rockchip
lurchi__ has quit [Ping timeout: 244 seconds]
lurchi_ has joined #linux-rockchip
lurchi_ is now known as lurchi__
<underpantsgnome[> <amstan> "underpantsgnome: i'm willing..." <- Thanks, but my main question was about non-video I/O like ethernet... I guess keyboard + mouse would just need USB hub passed along via USB-C port but I want to know if these and especially ethernet work independently of the proprietary blob required for USB-C Alt Mode DP video output... can I have ethernet + USB hubs (also TF cards on hubs) without the DP Alt Mode blob?
<underpantsgnome[> <phh> "hanetzer: you already tried..." <- phh: when you say there are "@rock-chips.com developers there" does this mean official Rockchip employees? Not sure because the domain is registered but no host is up there.
<underpantsgnome[> <phh> "hanetzer: you already tried..." <- hmmm HTTP on port 443 for lists.infradead.org redirects to some openwrt thing
<underpantsgnome[> <hanetzer> "mmind00: also Mr. Glass said you..." <- hanetzer: What are you trying to do, get serial input/output via a USB-C port?
<hanetzer> underpantsgnome[: if that would work, sure, but my reading of the docs is that the type c are not 2.0, which is where the usb2uart redir works on. my current attempt is uart via sdcard
<underpantsgnome[> > <@tinybronca:sibnsk.net> > <@amstan:hypertriangle.com> underpantsgnome: i'm willing to bet vga, hdmi and dvi are just using DP alt mode with a converter
<underpantsgnome[> >
<underpantsgnome[> > Thanks, but my main question was about non-video I/O like ethernet... I guess keyboard + mouse would just need USB hub passed along via USB-C port but I want to know if these and especially ethernet work independently of the proprietary blob required for USB-C Alt Mode DP video output... can I have ethernet + USB hubs (also TF cards on hubs) without the DP Alt Mode blob?
<underpantsgnome[> this ethernet / keyboard/mouse/USB-hub / TF card question via USB-C is about RK3399 variants btw
<hanetzer> input works. not output tho.
<underpantsgnome[> hanetzer: via sdcard? Have a foto of what that looks like physically connector style? :)
<hanetzer> sparkfun microsd breakout. nothing worth the hassle of getting my phone out and uploading to $image_sharing_site.com
<underpantsgnome[> hanetzer: search term is enough, thanks!
<underpantsgnome[> also hanetzer, since you seem to have RK3399 hardware on hand, can you get ethernet + extra USB port functionality via a USB-C hub without that DP Alt Mode blob?
<hanetzer> np.
<hanetzer> no idea. I'm more concerned with why its simply not booting ;P
<underpantsgnome[> Oh wow I had no idea it was not booting, wellll
<underpantsgnome[> is higher important
<hanetzer> I mean. it may be booting.
Daaanct12 has joined #linux-rockchip
<hanetzer> but idk, becuase all I see is about an inch of the bottom of the screen glitch/corrupt and then nothin :P
<underpantsgnome[> Hmm, curious how it got in that state. You may need to rewrite contents of SPI flash
Daanct12 has quit [Read error: Connection reset by peer]
<underpantsgnome[> assuming your board boots from there first?
<hanetzer> oh, u-boot is fine. its at the point of bootm/booti that it borks.
<underpantsgnome[> I'm not even sure what bootm/booti are, sorry
<hanetzer> commands you execute from u-boot to boot two kinds of kernel images
repk_ has joined #linux-rockchip
<underpantsgnome[> hanetzer: Okay well it sounds like part of u-boot? You don't think recompiling and replacing the entire thing would help?
hanetzer has quit [Ping timeout: 252 seconds]
hanetzer has joined #linux-rockchip
repk_ has quit [Ping timeout: 248 seconds]
<wens> naoki: how are you using the GPIOs from userspace exactly? as soon as you request the GPIOs, either from sysfs or the gpio chardev, the gpio driver should mux the pins properly
<naoki> wens: I just use gpio-hammer
<naoki> I think, if I request the GPIO which is used as another function, gpio driver should not override pin mux configuration...
<naoki> ah, well
<naoki> what happen is something strange
<naoki> those pins are displayed as "unused" from userspace
<naoki> so gpio-hammer doesn't return error
<naoki> gpio-hammer is running, but pin state is not changed
<naoki> sorry, it's too complicated to explain... :(
repk_ has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
stikonas has joined #linux-rockchip
Daaanct12 has quit [Remote host closed the connection]
<naoki> $ grep interrupts.*GPIO_ACTIVE_ *dts
<naoki> rk3399-eaidk-610.dts:interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
<naoki> rk3399-rock-pi-4b-plus.dts:interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
<naoki> hmm...
lorenzb has joined #linux-rockchip
naoki has quit [Remote host closed the connection]
naoki has joined #linux-rockchip
camus has quit [Quit: camus]
matthias_bgg has quit [Read error: Connection reset by peer]
matthias_bgg has joined #linux-rockchip
jagan has joined #linux-rockchip
jagan has quit [Ping timeout: 244 seconds]
<robmur01> yeah, that's a funny way to say IRQ_TYPE_NONE :)
<robmur01> FWIW I had a funny thing on my Nanopi R2S where the pinmux doesn't get set properly if GPIOs are claimed too early (for some indeterminate value of "early") - I had to manually unbind and rebind the leds-gpio driver to make the LEDs actually behave properly
<robmur01> been a while since I last fired that one up though
<robmur01> ha, I see patches on the list specifically fixing userspace GPIOs, so that's clearly its own thing :)
hanetzer has quit [Ping timeout: 244 seconds]
hanetzer has joined #linux-rockchip
matthias_bgg has quit [Quit: Leaving]
<naoki> "fix gpio-sysfs/libgpiod for rockchip"
<naoki> I have to throw away my crazy hack happily!
specing has quit [Ping timeout: 268 seconds]
vagrantc has joined #linux-rockchip
minimal has joined #linux-rockchip
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #linux-rockchip
f476 has quit [Quit: Lost terminal]
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #linux-rockchip
f476 has joined #linux-rockchip
macromorgan has quit [Read error: Connection reset by peer]
macromorgan_ has joined #linux-rockchip
crabbedhaloablut has quit [Ping timeout: 258 seconds]
crabbedhaloablut has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
vagrantc has joined #linux-rockchip
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #linux-rockchip
specing has joined #linux-rockchip
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #linux-rockchip
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #linux-rockchip
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #linux-rockchip
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #linux-rockchip
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #linux-rockchip
macromorgan has quit [Remote host closed the connection]
macromorgan has joined #linux-rockchip
macromorgan has quit [Quit: Leaving]
minimal has quit [Read error: Connection reset by peer]
minimal has joined #linux-rockchip