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 has quit [Ping timeout: 480 seconds]
Mangy_Dog has quit [Remote host closed the connection]
cnxsoft has joined #linux-sunxi
rajkosto has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
rajkosto has quit [Read error: Connection reset by peer]
rajkosto has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
rajkosto has quit [Ping timeout: 480 seconds]
rajkosto has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
Rajko has joined #linux-sunxi
rajkosto has quit [Ping timeout: 480 seconds]
Rajko has quit []
rajkosto has joined #linux-sunxi
rajkosto has quit []
rajkosto has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
rajkosto has quit [Read error: Connection reset by peer]
rajkosto has joined #linux-sunxi
rajkosto has quit [Ping timeout: 480 seconds]
rajkosto has joined #linux-sunxi
Rajko has joined #linux-sunxi
rajkosto has quit [Ping timeout: 480 seconds]
Rajko has quit []
rajkosto has joined #linux-sunxi
<rajkosto> whats the default cpu frequency and voltage if the kernel doesnt have cpufreq for sunxi ? tho its a bit weird considering its 5.10.87
<rajkosto> on allwinner H5
Rajko has joined #linux-sunxi
rajkosto has quit [Read error: Connection reset by peer]
Rajko has quit []
rajkosto has joined #linux-sunxi
ftg has joined #linux-sunxi
rajkosto has quit [Read error: Connection reset by peer]
rajkosto has joined #linux-sunxi
apritzel has joined #linux-sunxi
rajkosto has quit [Quit: Leaving]
rajkosto has joined #linux-sunxi
<apritzel> rajkosto: that would be set in U-Boot, to 816 MHz: https://github.com/u-boot/u-boot/blob/master/arch/arm/mach-sunxi/Kconfig#L589-L598
<rajkosto> because you need to change the voltage regulator via i2c for more ?
<rajkosto> im running openwrt on the thing and i want to use the highest frequency, but it shows no cpufreq stuff in /sys/devices even though the kernel is 5.10.87, CPU_FREQ in kernel config is enabled, and so is the sy i2c, and ive replaced the dtb with the armbian one (because openwrt dtb is missing the operating points, i2c enablement, and thermal zones)
<apritzel> that's a safe value we know works without extra cooling or DVFS
<rajkosto> armbian comes with a bunch of dtb overlays regarding cpufreq though, what are they for since all the frequencies are already enabled in the base dtb ?
<rajkosto> all the cpufreq stuff should be mainline by 5.10 right
<apritzel> rajkosto: I don't think there is much actual kernel support needed for the H5, it's mostly data for the clock and regulator in the DT
<rajkosto> and im using armbian's DT now (no overlays tho)
<rajkosto> but cpufreq /sys entries are not showing up
<rajkosto> and overlays arent enabled by default, right ?
rajkosto has quit [Ping timeout: 480 seconds]
rajkosto has joined #linux-sunxi
<apritzel> rajkosto: I don't know these details about Armbian, you have to ask them
<rajkosto> they are disabled, and dvfs works fine in armbian
<apritzel> you need some kernel config options enabled for DVFS to work, though
<rajkosto> pretty sure they are
<rajkosto> CPUFREQ_DT and all the governors are =y
<apritzel> and you have CONFIG_REGULATOR_SY8106A as well?
<apritzel> any hints in dmesg?
<rajkosto> yeah sy8106a is =y too
<rajkosto> nothing in dmesg
<rajkosto> cpufreq folder in sys is empty, cpu0 etc have no cpufreq folder
<rajkosto> i know im using the armbian dtb because it doesnt use correct LED names for openwrt to turn them on
<apritzel> you can double check for the nodes in /sys/firmware/devicetree/base/...
<gamiee> Hi, when you're talking about regulators, I have Banana Pi M2+, which have this switchable regulator on the board.
<gamiee> The configuration is in device-tree, so I expect that the dynamic frequency regulation works with this, although,
<gamiee> the SoC even with passive heatsink gets too hot (might be also some heat from WiFi & BT chip and RAMs). My question is,
<gamiee> is there any other way, that I can make the SoC make less heat? Or only fan?
<gamiee> (The SoC is H3)*
rajkosto has quit [Ping timeout: 480 seconds]
rajkosto has joined #linux-sunxi
Rajko has joined #linux-sunxi
rajkosto has quit [Read error: Connection reset by peer]
Rajko has quit []
rajkosto has joined #linux-sunxi
<rajkosto> the opp table is there that wasnt there with the openwrt dtb so yes
<rajkosto> i added "cpuidle" pm support to the kernel and that folder is showing but nothing in cpufreq
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
<rajkosto> cpufreq should work, as the dt contains the required fields on each cpu
<rajkosto> mv64xxx_i2c 1f02400.i2c: deferred probe timeout, ignoring dependency
<rajkosto> 1f02400 is the voltage controller i2c
rajkosto has quit [Read error: Connection reset by peer]
Mangy_Dog has joined #linux-sunxi
cnxsoft1 has quit []
ftg has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
hexdump01 has quit []
rajkosto has joined #linux-sunxi
tllim has joined #linux-sunxi
<rajkosto> does "mv64xxx_i2c 1f02400.i2c: deferred probe timeout, ignoring dependency" mean pinctrl did not set up i2c properly ?
vagrantc has joined #linux-sunxi
<apritzel> rajkosto: yeah, those message are often misleading
<rajkosto> i get no i2c devices so i think thats why dvfs isnt working, just no i2c buses working
<apritzel> do you see the regulator /sys/kernel/debug/regulator/regulator_summary
<rajkosto> nope
<rajkosto> only regulator-dummy and 3v3s
<apritzel> do you see both pin controllers in /sys/kernel/debug/pinctrl/pinctrl-devices
<rajkosto> name [pinmux] [pinconf]
<rajkosto> 1c20800.pinctrl yes yes
<apritzel> so nothing at 0x1f02c00?
<rajkosto> the one that works is compatible = "allwinner,sun50i-h5-pinctrl";, the one that doesnt is sun8i-h3-r-pinctrl
<rajkosto> maybe just needs a driver enabled
<apritzel> do you have CONFIG_SUN8I_R_CCU enabled?
<rajkosto> yes
<apritzel> what does /sys/kernel/debug/devices_deferred say?
<rajkosto> one that works is in pinctrl-sun50i-h5.c the one that doesnt is in pinctrl-sun8i-h3-r.c
<apritzel> I know, but we need to find out why ;-)
<apritzel> do you have CONFIG_RTC_DRV_SUN6I?
<rajkosto> PINCTRL_SUN8I_A83T_R [=y]
<rajkosto> CONFIG_RTC_DRV_SUN6I = n
<rajkosto> will try with = y
<apritzel> you need CONFIG_PINCTRL_SUN8I_H3_R also
<rajkosto> thats =y
<apritzel> it's a bit counter-intuitive, but the internal oscillator is routed through the RTC (because it can be gated there)
<rajkosto> theres no way to just jump to a search result entry in kernel menuconfig is there
<apritzel> there is
<apritzel> there is a number in parentheses on the left
<apritzel> second line from the bottom in this case, if there is only one hit then it's just (1)
<rajkosto> there sure was
<rajkosto> it goes to the parent menu first that i had to enable then jump again to the allwinner one
<apritzel> yeah, this direct jump goes wrong if a prerequisite is disabled
<apritzel> since in this case the menu entry is hidden, so the search can't take you there
rajkosto has quit [Read error: Connection reset by peer]
rajkosto has joined #linux-sunxi
tllim has quit []
rajkosto has quit [Read error: Connection reset by peer]
rajkosto has joined #linux-sunxi
<rajkosto> well that didnt help
<apritzel> any change in debugfs? does the pinctrl show up now? less output in devices_deferred?
<rajkosto> exactly the same
<rajkosto> probably because of this https://pastebin.com/K53VPxDR
<apritzel> what is your kernel, exactly?
<rajkosto> openwrt is mainline Linux OpenWrt 5.10.87 #0 SMP
<apritzel> and the DT is one from a newer kernel, I guess, post 5.13?
<rajkosto> nope, armbian is also 5.10
<rajkosto> different minor ver
<apritzel> what does "hexdump /sys/firmware/devicetree/base/soc/interrupt-controller@1f00c00/\#interrupt-cells" give you?
<rajkosto> 0000 0200
<apritzel> ok, that should work
<apritzel> (there was an incompatible DT change in 5.13, which changed this number to 3, which older kernels don't understand)
<rajkosto> im only trying this because the armbian stable and openwrt kernel trunk are same minor ver
Mangy_Dog has quit [Ping timeout: 480 seconds]
<apritzel> yeah, but I think Armbian backports stuff from time to time, or they carry extra patches
<apritzel> the WARN message you posted points to some interrupt number misread, which could be due to a wrong #interrupt-cells number
<apritzel> yes, the DVFS itself is not the real problem, but you are apparently missing one of its prerequisites
<apritzel> I guess the OpenWRT .config is a custom (minimal) one made by them?