#asahi-dev · 2021-01-14 16:22
agrafyou can for example define a ranges property that says "PIO on this PCI device behind a bridge goes to MMIO from the point of view of the PCI bridge's parents"#asahi-dev · 2021-01-14 16:21
agrafbut it allows you to do super crazy things#asahi-dev · 2021-01-14 16:21
agrafyeah, the fun bit about ranges is that it works recursively#asahi-dev · 2021-01-14 16:20
agrafmarcan: in your case, you're hitting the first line#asahi-dev · 2021-01-14 16:20
agrafmarcan: https://paste.opensuse.org/view/raw/65937354#asahi-dev · 2021-01-14 16:17
agrafmarcan: and convert accordingly#asahi-dev · 2021-01-14 16:17
agrafmarcan: so to convert the regs you have in wdt, you need to take the value and check if it fits in any of the /arm-io ranges#asahi-dev · 2021-01-14 16:17
agrafmarcan: IIRC :)#asahi-dev · 2021-01-14 16:17
agrafmarcan: ranges basically has an array of <(u64)child> <(u64)parent> <(u64>size) elements#asahi-dev · 2021-01-14 16:15
agraf2 means u64#asahi-dev · 2021-01-14 16:15
agrafmarcan: either way, you can tell what to convert from what by looking at #address-cells and #size-cells#asahi-dev · 2021-01-14 16:14
agrafI might be behind? :)#asahi-dev · 2021-01-14 16:14
agrafmarcan: in this case you're lucky because you convert from (base=u64, size=u64) to (base=u64, size=u64)#asahi-dev · 2021-01-14 16:14
agrafmarcan: so I just heard you ask :D#asahi-dev · 2021-01-14 16:13
agrafmarcan: yeah, there's also a bit of delay on the stream :)#asahi-dev · 2021-01-14 16:13
agrafmarcan: https://elinux.org/Device_Tree_Usage#Ranges_.28Address_Translation.29