Repository navigation
DT: Leave upstream Raspberry Pi DT files unmodified - #7795
Conversation
Move the downstream changes out of the upstream DT files and into downstream ones, so that rebases only have to carry small hooks: - bcm2711-rpi-4-b.dts: an include at the top (bcm2711-rpi-4-b-ds-pre.dtsi, the i2c0 label rename) and at the end (bcm2711-rpi-4-b-ds.dtsi). - bcm2711-rpi-400.dts: an include at the end (bcm2711-rpi-400-ds.dtsi), which recreates led_act deleted by the upstream file. - bcm283x.dtsi, bcm2711.dtsi, bcm2711-rpi.dtsi: overrides moved to bcm270x.dtsi and bcm2711-rpi-ds.dtsi. - bcm2835-common.dtsi, bcm2835-rpi.dtsi: the moves of vc4, firmware and power under /soc are done in bcm270x.dtsi and the new bcm2835-rpi-ds.dtsi. The downstream dtbs keep the same nodes, properties and labels; only node order and phandle values change. The upstream-only dtbs (bcm2835-*, bcm2836-*, bcm2837-*, bcm2711-rpi-cm4-io) now match upstream exactly. Signed-off-by: Dom Cobley <popcornmix@gmail.com>
The downstream bcm2712-rpi-5-b.dts replaced the upstream file entirely and deleted bcm2712-rpi-5-b-base.dtsi. Move the downstream content to bcm2712-rpi-5-b-ds.dtsi, restore both upstream files, and hook the downstream file in with an #include and an #if 0 around the upstream body. The resulting dtbs are byte-identical. Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
There are some (to me) unexpected changes as a result of the first commit: |
|
Yes, that's intended. Those are the upstream-only dtbs (the firmware loads the bcm27xx-* names). Before this PR they picked up the downstream changes through the shared bcm283x/bcm2835-rpi/bcm2835-common .dtsi files. Now those files match upstream, so these dtbs are identical to a plain v7.4-rc4 build. The downstream dtbs keep the same content. Should the upstream-named dtbs keep the downstream fixes (DSI0 PLLD clock, /soc/firmware, PWM 50 MHz), or is matching upstream preferred? |
|
Matching upstream is preferred, but it's clear that I need to improve the ovmerge parser to cope with the LED_FUNCTION_LAN defines (which are awful because the literal "lan" is perfectly descriptive enough). |
|
I've fixed ovmerge and now the overlaycheck passes. I'd merge this as-is. |
|
I'll try to follow this scheme for future major kernel bumps. |
Keep the upstream Raspberry Pi DT files (arch/arm*/boot/dts/broadcom) as close to upstream as possible, so rebases only carry small hooks. The downstream changes move into downstream files.
Upstream files still changed (vs v7.4-rc4):
bcm2711-rpi-4-b.dts: +3 lines (include at top for the i2c0 label rename, include at end)bcm2711-rpi-400.dts: +2 lines (include at end)bcm2712-rpi-5-b.dts: +3 lines (include downstream file,#if 0around upstream body)bcm2712.dtsi: MIP1 msi-ranges fix (left as is; it belongs upstream)Now unchanged:
bcm283x.dtsi,bcm2835-common.dtsi,bcm2835-rpi.dtsi,bcm2711.dtsi,bcm2711-rpi.dtsi.bcm2712-rpi-5-b-base.dtsiis restored.Testing:
Note:
bcm2835-rpi-ds.dtsicopies the upstream firmware/clocks/power/gpio/reset nodes to recreate them under /soc, so upstream changes to those nodes need copying by hand.