linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: Expose Raspberry Pi revision code in /proc/cpuinfo
@ 2024-07-07 23:08 Jonathan Neuschäfer
  2024-07-07 23:08 ` [PATCH 1/2] dt-bindings: arm: bcm2835: Specify /system/linux,revision property Jonathan Neuschäfer
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jonathan Neuschäfer @ 2024-07-07 23:08 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Eric Anholt, Stefan Wahren, Russell King
  Cc: devicetree, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	Jonathan Neuschäfer

Raspberry Pi boards have a "revision code", documented here:

  https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#new-style-revision-codes

This patch copies what the downstream kernel does and reads it from the
devicetree property /system/linux,revision. This enables some software
to work as intended on mainline kernels:

  https://github.com/hzeller/rpi-rgb-led-matrix/blob/a3eea997a9254b83ab2de97ae80d83588f696387/lib/gpio.cc#L247

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
Jonathan Neuschäfer (2):
      dt-bindings: arm: bcm2835: Specify /system/linux,revision property
      ARM: bcm2835: Detect system revision

 Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml | 12 ++++++++++++
 arch/arm/mach-bcm/board_bcm2835.c                      | 11 +++++++++++
 2 files changed, 23 insertions(+)
---
base-commit: 22a40d14b572deb80c0648557f4bd502d7e83826
change-id: 20240707-raspi-revision-84dffdfaebce

Best regards,
--
Jonathan Neuschäfer <j.neuschaefer@gmx.net>



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-10 22:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-07 23:08 [PATCH 0/2] ARM: Expose Raspberry Pi revision code in /proc/cpuinfo Jonathan Neuschäfer
2024-07-07 23:08 ` [PATCH 1/2] dt-bindings: arm: bcm2835: Specify /system/linux,revision property Jonathan Neuschäfer
2024-07-08 14:13   ` Krzysztof Kozlowski
2024-07-09 19:52     ` J. Neuschäfer
2024-10-10 22:51       ` Florian Fainelli
2024-07-07 23:08 ` [PATCH 2/2] ARM: bcm2835: Detect system revision Jonathan Neuschäfer
2024-07-08 16:14 ` [PATCH 0/2] ARM: Expose Raspberry Pi revision code in /proc/cpuinfo Stefan Wahren
2024-07-09 19:56   ` J. Neuschäfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).