ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
radxanaoki has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
hexdump01 has joined #linux-sunxi
hexdump02 has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
juanesf91 has joined #linux-sunxi
<juanesf91> Hi
<juanesf91> The A523 doesn't have HDMI, a second ETH port, NPU, or DSP. The A527 has HDMI, a second ETH port, but no DSP or NPU. The T527 has everything, so to speak. It would be feasible to separate the DTS.
<juanesf91> a523 have gpadc 4-ch and a527/t527 24-ch. T527 have can x2
hexdump02 has joined #linux-sunxi
<wens> juanesf91: not all T527s have NPU
<wens> juanesf91: see https://linux-sunxi.org/A523
<wens> juanesf91: you can edit the wiki and add your findings to the table
hexdump0815 has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
juanesf91 has quit [Quit: Connection closed for inactivity]
smaeul_ has quit [Ping timeout: 480 seconds]
smaeul has joined #linux-sunxi
apritzel has joined #linux-sunxi
aggi has quit [Read error: Connection reset by peer]
aggi has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
gsz has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
tnovotny has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has joined #linux-sunxi
tnovotny has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<apritzel> juanesf91: are you suggesting we should have different per-SoC .dtsi files, one for each SKU?
<apritzel> because this wouldn't be necessary, I think: we believe they probably use the same die, just in a different package, and naturally not connect all the peripherals
<apritzel> take the 2nd Ethernet port, for instance: the A523 silicon most likely has that 2nd GMAC, it's just not connected to any pins/pads (for once because the A523 just had 522 pads, where the A527/T527 have 644)
<apritzel> so an A523 system is conceptually not different from an A527 where you just don't connect a PHY to the 2nd GMAC. That's why we have: status = "disabled"; for most peripherals (those with pins) in the .dtsi
<apritzel> and then put: status = "okay"; in the board .dts, depending on whether this peripheral is used
<apritzel> also having multiple .dtsi creates a lot of churn and confusion, and descends into a proper nightmare when you see that for instance the Radxa board comes with both the A527 and T527, depending on what you order, exactly
<paulk> it's a bit weird that some have the npu and others not if it's the same die though
<apritzel> paulk: it all looks like it's fused off
<paulk> mhh sad
<apritzel> the reset and clock gates are there, at least
<paulk> sometimes they just don't mention it but it's still functional
<paulk> like isp on h3
<apritzel> yes, that was mostly the case on the H616 family as well, I think
<apritzel> given how expensive TSMC masks are, that's the most economical move, though, and you don't run into problems where you run out of one die when you still have plenty of closely related ones
<wens> rockchip has these -base.dtsi -extra.dtsi splits
<wens> I don't think we have split .dtsi files for any of the arm64 stuff
<apritzel> wens: yeah, and I find the Rockchip .dtsi split the most confusing ever, honestly
<wens> yeah, that's like two levels of splitting
<apritzel> one could argue that naming it a523.dtsi is not accurate, and I started to think if we should adopt Allwinner's die names, so sun55iw3 or something
<wens> maybe, but it would be harder for casual folks and non-sunxi kernel developers to follow
tnovotny has joined #linux-sunxi
mripard has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
dsimic is now known as Guest26188
dsimic has joined #linux-sunxi
Guest26188 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<apritzel> wens: did you ever send a U-Boot defconfig for the OrangePi 4A? Since the .dts is in the DT rebasing repo, you can cherry-pick it: ./tools/update-subtree.sh pick dts <rebasing commit id>
<wens> apritzel: not yet
radxanaoki has quit [Quit: radxanaoki]
Daanct12 has quit [Quit: WeeChat 4.7.1]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<wens> apritzel: I see a "audio1pll-4x" clock in the clock tree diagram. obviously this clock doesn't exist.
<wens> apritzel: and I see you corrected it to audio0pll-4x in our upstream version?
<apritzel> wens: yeah, it's unclear indeed. I am not even sure I spotted the "1" at all, since I was just aware of that one main audio PLL
<apritzel> I wonder since the timers can be muxed to that, we can probably even run an experiment to prove what it is and also the exact frequency or dividers used
<wens> the "ahb" parent for the timers suggests something at 200 MHz
<wens> it seems we're not configuring the r-ahb and r-apb* clocks? they are all at 24 MHz on by board
<apritzel> quite possible, that's typically a U-Boot task. We model the clocks, and can read them from Linux, but I think there is nothing that would ever program or change that
<apritzel> also I figured that one of the APB clocks is still at 24 MHz, where it should be much higher: the manual says APB1 should be "max 160 MHz"
<wens> I guess we can force something with assigned clock rates?
palmer_ has left #linux-sunxi [#linux-sunxi]
<apritzel> this is used for UART and I2C, which are probably fine with 24 MHz (although that limits the UARTs to 1.5 Mbps), but also for the PWMs, where we want something higher than 24 MHz
<apritzel> maybe, though traditionally we just set something reasonable in U-Boot and never bothered. I would treat this like a U-Boot bug, really
<wens> I think there's no harm forcing it at the dtsi level
<wens> U-boot could even use that?
<apritzel> we set up the bus blocks in the SPL, with just a per-SoC #define, so .dtsi won't help
<apritzel> I guess it doesn't hurt to have the bus clocks configured in the DT using assigned-clock-rates, though. But it might become interesting if the U-Boot default and this rate differs, and we switch at runtime
<apritzel> it might temporarily break the serial console used by earlycon?
<wens> I think we left all the apb clocks with uart/i2c alone on previous SoCs
<wens> they were always on a separate apb bus, and we kept them at 24 MHz
<wens> whereas the other apb bus with stuff like I2S we increased
<wens> anyway, this might be why my audio stuff isn't working
JohnDoe_71Rus has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
colinsane has quit []
colinsane has joined #linux-sunxi
colinsane has quit []
colinsane has joined #linux-sunxi
<wens> apritzel: could you check if the h728 tv box has a 32k crystal or not? it should be obvious as the two crystals are probably side by side
<apritzel> wens: ah, just saw your patch. Will do once home ...
<wens> I have patches for the dev boards
<wens> nope, dma still doesn't run :(
apritzel has quit [Ping timeout: 480 seconds]
psydroid|2 has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
apritzel has joined #linux-sunxi
<apritzel> wens: checked the board, but it's hard to say, as I don't see the 24 MHz crystal either: I guess it's all hidden under this rather large heat sink
<apritzel> I see a crystal oscillator right next to the WiFi chip, but I guess that's the private one for the AIC
gsz has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
linkmauve has left #linux-sunxi [Disconnected: closed]
linkmauve has joined #linux-sunxi
psydroid|2 has quit []
ftg has joined #linux-sunxi
immibis has joined #linux-sunxi
immibis has quit [autokilled: point. - Contact support@oftc.net for help. (2025-09-09 22:32:24)]
jkrhlkerv has joined #linux-sunxi
jader242 has joined #linux-sunxi
jader242 has quit []
<apritzel> does anyone know how to change the "initial view" settings in a pdf file to collapse the bookmarks/outlines by default? The new generation of Allwinner user manuals always expands them, which is a pain with all the thousands of registers being a separate bookmark item
gsz has quit [Ping timeout: 480 seconds]
<dlan> I have no such problem with qpdfview here
<apritzel> dlan: interesting, I am using xpdfreader, and it expands. Was never a problem with the older docs, say the H616 manual
Hypfer has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Hypfer has joined #linux-sunxi