Add patches to full support "Raspberry PI W2 2021". #132
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, "Archlinux ARM" images worked fine with your library and identified themselves correctly. With the advent of a distribution update, the operation of your library was disrupted.
According to the new changes to the device tree, devices now identify themselves as "raspberry pi,model-zero-2-w" and there is only one option in your library: "raspberry pi,model-zero-2". (see current rpios dts file)
Also, here's some debugging:
new_archarm current (0.15.0, Archlinux ARM, W2 2021):
[src/model.rs:173] &hardware[..] = ""
[src/model.rs:174] &revision[..] = "902120"
[src/model.rs:244] comp_id = "raspberrypi,model-zero-2-w"
[src/model.rs:244] comp_id = "brcm,bcm2837"
[src/model.rs:244] comp_id = ""
[src/model.rs:292] &base_model = "Raspberry Pi Zero 2 W Rev 1.0"
[src/model.rs:304] &base_model[..] = "Raspberry Pi Zero 2 W"
cdevice: Err(UnknownModel) <<
old_archarm (0.15.0, Archlinux ARM, W2 2021):
[src/model.rs:173] &hardware[..] = "BCM2835"
[src/model.rs:174] &revision[..] = "902120"
[src/model.rs:205] revision_type = 18
cdevice: Ok(DeviceInfo { model: RaspberryPiZero2W, soc: Bcm2837A1, peripheral_base: 1056964608, gpio_offset: 2097152, gpio_lines: 54, gpio_interface: Bcm }) <<
current (0.15.0, Archlinux ARM, RPI3):
[src/model.rs:173] &hardware[..] = ""
[src/model.rs:174] &revision[..] = "a02082"
[src/model.rs:244] comp_id = "raspberrypi,3-model-b"
cdevice: Ok(DeviceInfo { model: RaspberryPi3B, soc: Bcm2837A1, peripheral_base: 1056964608, gpio_offset: 2097152, gpio_lines: 54, gpio_interface: Bcm })
next (my_fork, Archlinux ARM, W2 2021):
[src/model.rs:173] &hardware[..] = ""
[src/model.rs:174] &revision[..] = "902120"
[src/model.rs:244] comp_id = "raspberrypi,model-zero-2-w"
[src/model.rs:244] comp_id = "brcm,bcm2837"
[src/model.rs:244] comp_id = ""
[src/model.rs:293] &base_model = "Raspberry Pi Zero 2 W Rev 1.0"
[src/model.rs:305] &base_model[..] = "Raspberry Pi Zero 2 W"
cdevice: Ok(DeviceInfo { model: RaspberryPiZero2W, soc: Bcm2837A1, peripheral_base: 1056964608, gpio_offset: 2097152, gpio_lines: 54, gpio_interface: Bcm })