libera/#devuan-arm/ Sunday, 2021-06-06

tuxd3vseems that by attempt to discover a new pwm channel on h2+/H3 is not going well... I setup the PWM to 1khz, duty cycle 0.3 ms on PA603:29
tuxd3vacording to a specific revision of the datasheet PWM1 would be function 303:30
tuxd3vits a port alternate function03:30
tuxd3vI setup pinctrl to have function 3 on PA603:31
tuxd3vapritzel went further he tried function 4 and function 5, to no avail..03:31
tuxd3vbut the interesting thing is that the PWM1 registers are there in the Chip!!03:32
tuxd3vI am acquiring the signal using sigrok on desktop, and using a logic analyzer to retrieve the signal, but till now seems dead jimmy!! :(03:33
tuxd3vAnd the problem is that a lot of Allwinner vendors are using indeed PA6 to route the suposed pwm1 signal to the GPIO...its not only bananapi, orangepi does the same..03:34
tuxd3vwell, its a dead end :(04:35
tuxd3vafter some time here playing with signal acquisition..I found no pwm1 on GPIO7( SoC pin PA6 ) on bananapi m2 zero..04:37
tuxd3vif its not there, we will not support pwm via GPIO, on bananapi m2 zero, very unfortunately...04:38
tuxd3vthe GPIO has right now, 1 SPI, 2x I2C, 2xUSART04:39
tuxd3vthis should work04:39
tuxd3vbut no PWM :/04:40
tuxd3vc0rnelius, does you have a OrangePi Zero?04:43
c0rneliusNo sir06:34
tuxd3vc0rnelius, thanks, that is one of the boards afected too :/15:58
tuxd3vbut I believe all  boards that have h2+/h3 are afected by not having the 2 channel pwm, only 1 channel, and I don't know about H5 because its pin compatible with h315:59
tuxd3vbut I believe h5 provides 2 pwm channels on PA5/PA6..16:00
tuxd3vthis boards maker copy a lot o f things without questioning its functionality and then the boards end without pwm..16:01
tuxd3vthe pnlçy pwms are in PA5, or PL1016:01
tuxd3vPA5 is used by uart0, and PL10 they put the led there...puff, no pwm on gpio :/16:02
tuxd3vc0rnelius, your nanopi neo2, is probably also afected by this..16:09
Tenkawatuxd3v: nope.. read this post:16:10
Tenkawahttps://forum.armbian.com/topic/14596-pwm1-on-h5/16:10
Tenkawathe 2nd pwm has been replaced16:11
Tenkawait is just a uart16:11
tuxd3vTenkawa, yeah that is the problem :/16:13
tuxd3vpeople end without pwm in the GPIO16:13
Tenkawaits designed that way.. no way around it16:13
tuxd3vso Orange Pi Zero Plus, is another board with this problem..16:15
* tuxd3v is looking and probably there are dozens of boards with this problem..16:15
Tenkawadefinitely... very many boards with the "design choice"16:16
tuxd3vTenkawa, its a pitty situation..16:17
Tenkawayes.. but.. not our choice right?16:17
tuxd3vThis guys try to be RaspberryPi competitiors, but end up delivering boards without some functionality16:17
tuxd3vTenkawa, yeah you right, I just invested a lot of time in trying to convince the Soc to give me 1 channel on PA6, and I failled :(16:18
Tenkawatuxd3v: these boards are made by companies that are building these, then moving on and never looking at them again16:19
Tenkawathats what makes boards like RPI, and BeagleBoard and a few others different16:20
tuxd3vTenkawa, yeah, it seems to be that way indeed :/16:20
Tenkawathey want tontinue growth of the existing product16:20
Tenkawaer to continue16:20
Tenkawasad that some of these other companies are like that... but it is the way it is :(16:21
tuxd3vyeah, the problem is that we only later discover the missing functionalities :(16:22
tuxd3vbut at that time.. its already too late.16:22
Tenkawaindeed16:22

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!