From patchwork Tue Mar 13 12:00:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 885084 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="V1a3SFyX"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 400tly1yS2z9sTH for ; Tue, 13 Mar 2018 23:03:08 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 457CEC21E1E; Tue, 13 Mar 2018 12:03:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CF4E7C21C6A; Tue, 13 Mar 2018 12:01:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4E442C21DFD; Tue, 13 Mar 2018 12:01:51 +0000 (UTC) Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) by lists.denx.de (Postfix) with ESMTPS id D4DAAC21C2F for ; Tue, 13 Mar 2018 12:00:30 +0000 (UTC) Received: by mail-wr0-f175.google.com with SMTP id m4so9065980wrb.7 for ; Tue, 13 Mar 2018 05:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=NX8xGBIk6PY0bMohOziII0kO/kKtuLh7GTExIjycj5I=; b=V1a3SFyXdzzlb7PT4W7WO/8oiBYE5zMzK5t4CYh92KwMVjACy2jwah3hSPcd5UGYls d2blICwDMoQDfAzXdoHT702lU47L9TVVsIpaW0yqq7ctTjZvlg1oDru2Yxel3/Y5qgee oL/dKcyvxpSqHZjKsW6X/g0rKZF5l4sa17ARs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NX8xGBIk6PY0bMohOziII0kO/kKtuLh7GTExIjycj5I=; b=gW2U3jTRQlWYPTNYEKk2l/sD5YEHUpbRDc8mEA++2KcX6WgHyMnmSGBhrmvbr9tZU7 9d0XDkeh6ySmuq6Bk+PnQkA4X5P41W/s2nHfCUEiGYiBe1eBR/r+beMnpPqv2zqVpsLf uuhTXkVBK0WGqx73fjw5NerTAIR6SaHfpCNOMjY8c1uKonbtn+mcyWJEwNOfES4zEBXZ WIZV5oD/qY8NBwpg5F66qlaphGIwMAV/4l5LswLfPOSmnzaifpA7hM9u260cxLK5W6nA Ca2xH82pSVmWZW1y472MkqN8ArZT1at+97RzQ09gQrgIWJtumeATWfMyt/tjqE/IjEh6 IPcA== X-Gm-Message-State: AElRT7ElTTGlMqmuklLQ+V2bTL4+HdqzYdom6pDRVAtZ9H7lZQU1UX8e tdVxv1KCZvu6GPKP8RvdnXCIl20VGvw= X-Google-Smtp-Source: AG47ELsjGY36kz1oyIrZeQxhSDAI1kYj+orjhK86TBWsDViPX32IMChpHRex8qVQdOBLC7sb9ORUjw== X-Received: by 10.80.137.12 with SMTP id e12mr613690ede.13.1520942430196; Tue, 13 Mar 2018 05:00:30 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id t23sm39130edb.54.2018.03.13.05.00.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Mar 2018 05:00:29 -0700 (PDT) From: Bryan O'Donoghue To: U-Boot@lists.denx.de Date: Tue, 13 Mar 2018 12:00:25 +0000 Message-Id: <1520942427-7366-1-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 Cc: fabio.estevam@nxp.com, rui.silva@linaro.org Subject: [U-Boot] [PATCH 0/2] NXP WaARP7 set serial# from OTP fuses for USB iSerial X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Greetings. These two patches add support for automatic setting of the serial# environment variable based on OTP fuse settings. Once the serial# field is set then subsequent USB gadget mode instances of WaARP7 will export the serial number based on the OTP fuse settings. This feature gives a handy output like this: usb 1-1.1.1: new high-speed USB device number 17 using xhci_hcd usb 1-1.1.1: New USB device found, idVendor=0525, idProduct=a4a5 usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1.1.1: Product: USB download gadget usb 1-1.1.1: Manufacturer: FSL usb 1-1.1.1: SerialNumber: WaRP7-0xf42400d3000001d4 The 64 bit value post-fixed to the WaARP7 string is based on OTP fuses which provide a unique serial number for each NXP i.MX7 SoC. We make use of this feature when discerning a unique identifier for WaARP7 boards in our automated LAVA testing environment, hopefully its useful and acceptable to others. Bryan O'Donoghue (2): warp7: usb: Introduce a get method for serial number warp7: usb: Set u-boot serial# based on OTP value board/warp7/warp7.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+)