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
<apritzel> smaeul: so with your RTC series, for adding support for such fancy RTC clocks, I just need to have the RTC part in rtc-sun6i.c?
<apritzel> and then can skip the whole clock code in that file, and the new extra clock gets picked up automatically?
<apritzel> by virtue of: "if (IS_REACHABLE(CONFIG_SUN6I_RTC_CCU)) {ret = sun6i_rtc_ccu_probe(dev, chip->base); ...} ?
<smaeul> yes
<apritzel> and 5.17-rc2 is the base to go with?
<smaeul> that is what I am using, though rc3 is out now
<apritzel> I understand, but you mentioned a prerequisite is in -rc2?
<apritzel> typically I would base on -rc1, since that's what's most maintainers use as a base for -next
<apritzel> Or was that just the latest HEAD at the time? "Rebase on v5.17-rc2 (CCU module support series was merged)"
<smaeul> right, it was just the latest tag. I generally rebase at every rc to minimize the delta between my patch branches and my working branches
<apritzel> I see, thanks
<apritzel> *compiling*
<apritzel> smaeul: what's the bus clock for the H616 RTC? CLK_R_APB1? Or is there some gate that we don't define yet?
<smaeul> there is a gate at 0x20c (and we define it already for a100 and d1 :)
<apritzel> is that just in the H616, or in the H6 as well?
<smaeul> also technically in the H6
<smaeul> if we expose it there, we'd have to mark it CLK_IGNORE_UNUSED or CLK_IS_CRITICAL, since we can't change the RTC binding
vagrantc has quit [Quit: leaving]
<smaeul> not just for cross-version compatibility, but also because the existing Linux driver does unsafe things with the number of clock references: `init.num_parents = of_clk_get_parent_count(node) + 1;`
<apritzel> expose as in: mention in the DT, you mean?
<smaeul> as in register it in the clock driver
<apritzel> I was just asking because the -r clock driver is shared between H6 and H616, so I would just add the gate there, but only reference it in the h616.dtsi
<apritzel> ah, I see
<apritzel> but that should be no problem, since we have separate structs for both SoCs already, so I just put it in sun50i_h616_r_ccu_clks?
<smaeul> right, just omit it from `sun50i_h6_r_hw_clks` and you will be fine
<apritzel> what's this SYSTEM_PLL_32K? I see it only mentioned once in the manual, on the RTC page, but cannot find it on the CCU pages
<apritzel> if I get this correctly, that's "32 kHz clock from the CCU" aka pll-32k, which is now mandatory as per your new binding?
aggi has quit [Remote host closed the connection]
apritzel has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
aggi has joined #linux-sunxi
mripard_ has joined #linux-sunxi
mripard has quit [Ping timeout: 480 seconds]
landnode has joined #linux-sunxi
landnode has quit []
JohnDoe_71Rus has joined #linux-sunxi
mehdix has quit []
mehdix has joined #linux-sunxi
ftg has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
libv_ has joined #linux-sunxi
libv has quit [Ping timeout: 480 seconds]
gsz has quit [Ping timeout: 480 seconds]
ad__ has joined #linux-sunxi
apritzel has joined #linux-sunxi
libv_ is now known as libv
aedancullen has quit [Server closed connection]
aedancullen has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
maz_ is now known as maz
ad__ has quit []
ad__ has joined #linux-sunxi
obbardc has joined #linux-sunxi
obbardc has quit []
obbardc has joined #linux-sunxi
ad__ has quit []
ad__ has joined #linux-sunxi
obbardc has quit []
obbardc has joined #linux-sunxi
ad__ has quit []
ad__ has joined #linux-sunxi
tnovotny has joined #linux-sunxi
tnovotny has quit [Remote host closed the connection]
tnovotny has joined #linux-sunxi
ad__ has quit []
ad__ has joined #linux-sunxi
ad__ has quit []
ad__ has joined #linux-sunxi
apritzel has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
ad__ has quit []
ad__ has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
narmstrong has quit [Read error: Connection reset by peer]
narmstrong has joined #linux-sunxi
DuClare has quit [Server closed connection]
DuClare has joined #linux-sunxi
apritzel has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
paulk3 has quit []
paulk has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
bauen1 has joined #linux-sunxi
jernej has quit [Server closed connection]
jernej_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
megi1 has quit [Server closed connection]
megi1 has joined #linux-sunxi
karlp has quit [Server closed connection]
karlp has joined #linux-sunxi
JohnDoe_71Rus has quit []
bauen1_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
bauen1_ has quit [Read error: Connection reset by peer]
bauen1 has joined #linux-sunxi
sunshavi has quit [Ping timeout: 480 seconds]
bauen1_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
cnxsoft has quit []
prefixcactus has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
tnovotny has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
sunshavi has joined #linux-sunxi
paulk1 has joined #linux-sunxi
paulk has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
sunshavi has quit [Remote host closed the connection]
apritzel_ has joined #linux-sunxi
benettig has quit []
evgeny_boger has joined #linux-sunxi
benettig has joined #linux-sunxi
evgeny_boger has quit []
evgeny_boger has joined #linux-sunxi
MangyDog has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
ftg has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
jemk has joined #linux-sunxi
apritzel_ has left #linux-sunxi [#linux-sunxi]
apritzel has joined #linux-sunxi
<apritzel> smaeul: so I eventually found this "... or 32K divided by PLL_PERI(2X)" in the RTC section of the H616 manual
<apritzel> however in contrast to the D1 manual there are no gates mentioned (@0xf30) in the CCU registers
<apritzel> do you know more about this?
<apritzel> smaeul: and where does this "pad" go to? Is this some (possibly not connected) pin on the die?
rtp has joined #linux-sunxi
tnovotny has quit [Ping timeout: 480 seconds]
ats has joined #linux-sunxi
<apritzel> ah, found it in the datasheet, I guess it's PG10, function 011: "X32KFOUT"
<apritzel> and that actually provides a clock to the WiFi/BT chip on the OrangePi Zero2
<apritzel> but 0x3001f30 stays at 0, so no gates, I guess
milek7 has joined #linux-sunxi
ynezz has joined #linux-sunxi
ynezz is now known as Guest2275
Jacmet has joined #linux-sunxi
plaes has joined #linux-sunxi
psydroid has quit [Server closed connection]
psydroid has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
MatrixTravelerbot[m] has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
MangyDog has quit [Ping timeout: 480 seconds]
megi1 has quit []