<CounterPillow>
If you're trying to do this from userspace, use the actual kernel your OS has to abstract this away from you and simply toggle the LED through the sysfs or what have you.
psydroid has joined #linux-rockchip
Livio has quit [Ping timeout: 255 seconds]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Livio has joined #linux-rockchip
Livio has quit [Ping timeout: 255 seconds]
System_Error has quit [Remote host closed the connection]
raster has quit [Quit: Gettin' stinky!]
System_Error has joined #linux-rockchip
System_Error has quit [Read error: Connection reset by peer]
tarel2 has joined #linux-rockchip
<tarel2>
I have only programmed the pi and pico microcontroller. What is gpio muxes?
System_Error has joined #linux-rockchip
Livio has joined #linux-rockchip
<CounterPillow>
functions can be assigned to different pins depending on what the pin mux is set to.
stikonas has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
<CounterPillow>
If you are not writing a low level tiny boot blob, you should not be touching the registers to blink an LED, but use the existing abstractions implemented by the drivers.
<tarel2>
I know you don't have to do such . I have been programming my raspberry pi pico microcontroller in arm 32 bit assembly and got my pi blinking led with the help of the firmware and making a small bare metal app so I thought why not try the phone.
<tarel2>
any maybe one day help with the power management so I can switch to the pine phone pro all the time.
<tarel2>
My Android device are the last not running Linux
<CounterPillow>
Ok, then grab the RK3399 TRM from http://opensource.rock-chips.com/ and the PinePhone Pro schematics from Pine's website and check which pin is hooked up to the LED, and then check the GRF section of the TRM for the pinmux setting registers and the GPIO section for how the GPIO controller works
<tarel2>
so you had to look at the schematics and the datasheet of the cpu to figure out , what the gpio is?
System_Error has joined #linux-rockchip
<CounterPillow>
Yes?
<CounterPillow>
If you want to know which registers to poke at in the SoC, the technical reference manual is the resource to consult
<tarel2>
I looked for while I did not find that page