From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C12EFC3DA42 for ; Tue, 9 Jul 2024 19:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=X+Aym152/slUT1a8cnR0jcSyki1jKyW1FASNrMPLCdk=; b=z81laePzNbrda8mh6I/b9GuTax Oe6A+NsEvFAtOHw9wbrCNeCjj5ZnJp/PmHuGqA53gFQjB0ZRmdPfid7q4S8BTUgdknpI4i49ljMiQ Aynt71ishLLM330p4AUzcjZShcvYG1Wn/hmZSFvNN6vnouAC6LMfNj58mCZbxcShtjIZkasTADhkS jZSY+7vGx7DSjjDAvgrmbhN/go06ZwPkSN37lzEOGJwkTWxLljAnArGwyD2fo6remnh6Qp/f7GsSA RFHi66LW3+CIJnqdgPefxJFqAnS0EqdCu/BbLvu4GphMRYx1x4RapDNpaXLZHAXWYSD+Gu5C9QFii Y8VHYQPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRGxg-00000008ST9-0P6w; Tue, 09 Jul 2024 19:57:16 +0000 Received: from mout.gmx.net ([212.227.17.21]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRGxP-00000008SOn-1GnC; Tue, 09 Jul 2024 19:57:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1720555016; x=1721159816; i=j.neuschaefer@gmx.net; bh=X+Aym152/slUT1a8cnR0jcSyki1jKyW1FASNrMPLCdk=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=jzY1FJBdhCxT/HHU2tS+0TAm8kni7R9aeDkXMVQrIVDggCWa0GDCrrfuT+sF7caf FfcoskCpkhelDEQXs2cPV0yLU8b8n4RrGvlqm/0ATL6utfBSShYiwyiowshuwnuy6 kcL9bouaOG55N/otNU4OeLt3gFuxcU19alIdvIgSnURGBdFPtEWN75hbEdhzKhqnK eumCUBMyDoCz81Sl6qX4XXRsF29Zs0vvVBSB1bdWdJJ9UFANFJsrwaS9SOXlzG760 Vulowvw3I+mGbCOs6Q/OmudJ46ZRipJTQ8KEnDmSsi8VZTTfKuH/KeeXAX429VmMw b1iMwLWGOu7LKdw6sw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([5.145.135.151]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N7i8Y-1sNN0M0lwg-013BSB; Tue, 09 Jul 2024 21:56:56 +0200 Date: Tue, 9 Jul 2024 21:56:55 +0200 From: =?utf-8?Q?J=2E_Neusch=C3=A4fer?= To: Stefan Wahren Cc: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Eric Anholt , Russell King , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] ARM: Expose Raspberry Pi revision code in /proc/cpuinfo Message-ID: References: <20240708-raspi-revision-v1-0-66e7e403e0b5@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Provags-ID: V03:K1:HzpoMj+s7p1IKHbvapYEwrDBxL/rnbhNOt+116rouKn47XEs0yo 8eFyc7oKimyGRicJDYM44pFm22cf5XMalPjNMeSEvJTMf3AshQaQULxVhyCAVRe5V+g1dts hSrBc810lkQfc1Ii3cocFqhGQS0PZQR+4A9MappFR27Sm8LRlr5qJS0JDRD/rXDzFlHeUWa sNA8mImy8Rb0bCMwRDfXA== UI-OutboundReport: notjunk:1;M01:P0:vhGguK/+o90=;iWeMgc6cMgIrp8RBv+RDpYUhOAL xMjrm4wBWQSNkchJLWM8A62yLdMPGag4ylSfLt9PR2992H3Wporx7y6FKZ7I0ilFKw8YxktQq x9OWMI5XzTfxBWwrF+BPOH0/hKpONJ10+xSSc9MSv4263qUPT+q5n0kK3+nYkh196Y4/ZqTJb glfGgSCGHfTq+4EOy8YAtkACdhidwxM+C5x7bWul/g1gi5Ss64m5cW//tG5q0wYKPdtXyTUPG 2NtUVkt1RHYD/pYg5+CYrI4kj5Uu7pVxW/txQUlQVPwiA2Rl+pXYRAj8oGkgvUoqEfHbRC25C mTCC1SybGQhTxxxq8detQ2hOFsQUereDp8XphRqXQQJbzzw3VBRb90/xrhXwoQg9qWMPIfAIA ZGqapXSOEhr8eROkbOa6Xm63kKxsBv3k0zJMfrrhaQ60spnh3FIaCRNuoLdA3zuFYlbavafCW EPVqN7khRrfjniZuL9yNhzKCuXqiAXoWhr/X6+pifB5JYfDS0zSeKlBOdKEhSbfEXwfAoVi0M lfHZZHWZK08i5s8CmvYSbZGSiVefs0i3pqtNMSH+z6n9hQ7gVrqyrsp+hfKxra0YIBRk28BXc ZZELWyNrxGP4ZMNEA41cLlhWprQ0qyMB7mowC0/ob8NYUw8TAhp28rKUmpAbPeq3PtlYyheq3 Ao+qV3sUDDjFgYQ/NebnoGxeRxnKGE4VmT5xrA7qBV411vVhgslqmj29MpuLLl83xRbHMBhxl snrSUEPQpmvHakLhzdIgXBYt04yt48JwMkrXIAbL1fdGGhAusyhJiIqnrbY0e0G9NQyqen1kn M6vF87RmmrglNAWSwgtZYPKo4tkysacPnhIvFHXLj30ig= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240709_125659_653599_71510F56 X-CRM114-Status: GOOD ( 16.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jul 08, 2024 at 06:14:01PM +0200, Stefan Wahren wrote: > Hi Jonathan, > > Am 08.07.24 um 01:08 schrieb Jonathan Neusch=C3=A4fer: > > Raspberry Pi boards have a "revision code", documented here: > > > > https://www.raspberrypi.com/documentation/computers/raspberry-pi.ht= ml#new-style-revision-codes > AFAIK these revision codes mostly refer to the board and not to the CPU. True. > The abuse of /proc/cpuinfo has been rejected in the past and from my > understanding this applies also in this case. Alright > > This patch copies what the downstream kernel does and reads it from th= e > > 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/a3eea997a9254b83= ab2de97ae80d83588f696387/lib/gpio.cc#L247 > This is a bad example because the application doesn't really care about > the kernel and directly access the hardware registers via /dev/mem. A > proper application would use the dedicated userspace API (GPIO Character > Device or PWM). Right > I would bet that the application does not work with the Raspberry Pi 5. Probably, yeah. Jonathan