From patchwork Sun Mar 29 22:14:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 6117871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 526089F1BE for ; Sun, 29 Mar 2015 22:18:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C96520263 for ; Sun, 29 Mar 2015 22:18:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B57EF202BE for ; Sun, 29 Mar 2015 22:18:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YcLUO-00014u-Oj; Sun, 29 Mar 2015 22:15:28 +0000 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YcLUM-0000Y5-8i for linux-arm-kernel@lists.infradead.org; Sun, 29 Mar 2015 22:15:26 +0000 Received: by wiaa2 with SMTP id a2so101250045wia.0 for ; Sun, 29 Mar 2015 15:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=uzasxOeT3IHww9grVueBm3LWQR5nfulzveyBgVRXvoc=; b=MNsHgUDgIO0YsfLeHjWhTxq/xP1X3Xu5ID/eibfRrZXCh+6DdLN6bu15weSvmptMDu omgco3hzcFSP+9MPXNuVVvCWKixKt664Tv2IFLM/9thwm0u2DF97scFLYdJ7RFRVt3St AWniaV6K09BE5P4vB9w+Lxp6T0sAc0dscPEFknXls73j/lAnXyQiju3nXxGGoX3Z2lBg /JNgVh+ExbceWt0FHy9+1I3S3VQc9ZXMwexQA4ORhhkFBa6bLMQh6z413QGl/Or4QOqI LjX1WxqpOWMxQ/xELInWAiwiW3axPkbiD8/gufUV9wbBGV66cOLAPzt+jpjfEM9oSQtB xeGA== X-Received: by 10.195.13.104 with SMTP id ex8mr56215122wjd.12.1427667303920; Sun, 29 Mar 2015 15:15:03 -0700 (PDT) Received: from linux-tdhb.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by mx.google.com with ESMTPSA id n3sm12930464wja.36.2015.03.29.15.15.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2015 15:15:03 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH RFC] ARM: BCM5301X: Add /device_id property including device ID string Date: Mon, 30 Mar 2015 00:14:48 +0200 Message-Id: <1427667288-23903-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150329_151526_456961_AC551A2C X-CRM114-Status: GOOD ( 12.50 ) X-Spam-Score: -0.6 (/) Cc: Hauke Mehrtens , Florian Fainelli , Russell King , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Arnd Bergmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Device vendors often assign IDs to their devices to allow comparing firmware image with device model. This is required to prevent users from flashing incompatible image and soft-bricking device. Add device_id property to DTs to allow user space (and optionally bootloader) verifying firmware images. Signed-off-by: Rafa? Mi?ecki --- Hi guys, I think my commit message explains pretty well what I'm trying to do, however I'm not sure if I'm using a right place for that. I also didn't document this news property, as I can't find a place where root-properties are currenty described. Is there any such place? I couldn't find a file describing e.g. "model" property. --- arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts | 1 + arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 1 + arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 1 + arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 1 + arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 1 + 5 files changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts index 8b62836..9d2fac4 100644 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts @@ -14,6 +14,7 @@ / { compatible = "asus,rt-ac68u", "brcm,bcm4708"; model = "Asus RT-AC68U (BCM4708)"; + device_id = "RT-AC68U"; chosen { bootargs = "console=ttyS0,115200"; diff --git a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts index 2ed9e57..98c8d63 100644 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts @@ -14,6 +14,7 @@ / { compatible = "netgear,r6250v1", "brcm,bcm4708"; model = "Netgear R6250 V1 (BCM4708)"; + device_id = "U12H245T00_NETGEAR"; chosen { bootargs = "console=ttyS0,115200"; diff --git a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts index 3991042..c43173a 100644 --- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts @@ -14,6 +14,7 @@ / { compatible = "netgear,r6300v2", "brcm,bcm4708"; model = "Netgear R6300 V2 (BCM4708)"; + device_id = "U12H240T00_NETGEAR"; chosen { bootargs = "console=ttyS0,115200"; diff --git a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts index 0ee85ea..876e2c0 100644 --- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts +++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts @@ -14,6 +14,7 @@ / { compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708"; model = "Asus RT-N18U (BCM47081)"; + device_id = "RT-N18U"; chosen { bootargs = "console=ttyS0,115200"; diff --git a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts index ea26dd3..129df9a 100644 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts @@ -14,6 +14,7 @@ / { compatible = "netgear,r8000", "brcm,bcm4709", "brcm,bcm4708"; model = "Netgear R8000 (BCM4709)"; + device_id = "U12H315T00_NETGEAR"; chosen { bootargs = "console=ttyS0,115200";