#
#asahi-dev · 2025-09-26 08:11
jannauu.adt["/arm-io/wdt"].get_reg(0)[0] to get the translated 1st register value from the wdt node
#asahi-dev · 2025-09-26 08:09
auscyber_what do i pass in to that?
#asahi-dev · 2025-09-26 08:09
auscyber_wait i see u.adt.get_reg
#asahi-dev · 2025-09-26 08:08
auscyber_im in the shell theres no get_reg
#asahi-dev · 2025-09-26 08:06
jannaualso the adt python and c (rust) code does this if you use get_reg()
#asahi-dev · 2025-09-26 08:04
chaos_princesswill work for almost everything
#asahi-dev · 2025-09-26 08:04
chaos_princessin your case, it is simple, just add 0x200000000 to everything
#asahi-dev · 2025-09-26 08:04
auscyber_ahh
#asahi-dev · 2025-09-26 08:03
auscyber_https://pastebin.com/uQLG1eDB
#asahi-dev · 2025-09-26 08:03
chaos_princesswell, yes, do the thing that janne said, but i wanted to demonstrate on a specific example
#asahi-dev · 2025-09-26 08:03
jannauif the value is in [bus_addr, bus_addr + size] add parent_addr
#asahi-dev · 2025-09-26 08:03
auscyber_oh yes
#asahi-dev · 2025-09-26 08:02
chaos_princessi meant regs
#asahi-dev · 2025-09-26 08:02
chaos_princessregs
#asahi-dev · 2025-09-26 08:02
auscyber_wdt doesn't have any ranges on it
#asahi-dev · 2025-09-26 08:02
auscyber_https://pastebin.com/yFnVYc0R
#asahi-dev · 2025-09-26 08:00
chaos_princessalso the wdt ranges
#asahi-dev · 2025-09-26 08:00
chaos_princesspastebin it.
#asahi-dev · 2025-09-26 08:00
auscyber_them*
#asahi-dev · 2025-09-26 08:00
auscyber_cause obviously like a lot of theme
#asahi-dev · 2025-09-26 07:59
auscyber_which one do i use
#asahi-dev · 2025-09-26 07:59
auscyber_wait no found it
#asahi-dev · 2025-09-26 07:59
chaos_princessi think you can get it via `u.adt['/arm-io'].ranges`
#asahi-dev · 2025-09-26 07:57
auscyber_im not seeing it in my adt
#asahi-dev · 2025-09-26 07:55
jannau/arm-io/ranges
#asahi-dev · 2025-09-26 07:54
auscyber_ranges property where?
#asahi-dev · 2025-09-26 07:53
jannaueither here or in #asahi-re
#asahi-dev · 2025-09-26 07:53
auscyber_s/[//, s/](https://matrix//
#asahi-dev · 2025-09-26 07:52
auscyber_are my m4 attempts better in this chat or [#asahi](https://matrix.to/#/%23irc_irc.oftc.net_%23asahi:faggot.sh)
#asahi-dev · 2025-09-26 07:51
jannauchadmed: why are "AC Input Voltage / Current" in hwmon-common.dtsi? At least based on the name they make no sense on laptops
#asahi-dev · 2025-09-25 21:14
chadmedthe voltage sensors are all called in*_input in sysfs too
#asahi-dev · 2025-09-25 21:12
chadmedand ofc we cant break userspace
#asahi-dev · 2025-09-25 21:11
chadmedi can only assume that the subsystem waaay back when was designed around some piece of hardware that only did voltage monitoring and so "in" was just the input
#asahi-dev · 2025-09-25 21:11
chadmedyeah idk its dumb
#asahi-dev · 2025-09-25 21:11
chadmedoh you mean why is it called that
#asahi-dev · 2025-09-25 21:09
chadmediirc
#asahi-dev · 2025-09-25 21:09
chadmedHWMON_C_ is current
#asahi-dev · 2025-09-25 21:09
chadmedI is IN not current
#asahi-dev · 2025-09-25 21:07
jannauwhy does hwmon use HWMON_I_* for voltage
#asahi-dev · 2025-09-25 20:33
jannausent
#asahi-dev · 2025-09-25 20:16
jannauwe do not care that much and there are hopefully not many upstream users (if at all)
#asahi-dev · 2025-09-25 20:13
svenit’ll go into some -rc anyway
#asahi-dev · 2025-09-25 20:12
jannauI'm also surprised it only fails occasionally
#asahi-dev · 2025-09-25 20:12
jannauI'll send a fix probably too late for v6.17 though
#asahi-dev · 2025-09-25 20:11
svenkinda surprised it even worked without that
#asahi-dev · 2025-09-25 20:10
sventhat’s not great :D
#asahi-dev · 2025-09-25 20:10
jannaumacsmc.c never calls mutex_init()
#asahi-dev · 2025-09-25 20:07
svenfor my tbt hack I have to manually call of_platform_populate iirc
#asahi-dev · 2025-09-25 20:04
jannaualso afaik core isn't supposed to probe childrens before the their parent's probe finished
#asahi-dev · 2025-09-25 20:03
jannauit's not unset drvdata

plus ›