From patchwork Tue Oct 31 02:07:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 1857295 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=feathertop.org header.i=@feathertop.org header.a=rsa-sha256 header.s=fm2 header.b=Kjhe0pWs; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=Q2+mnrSd; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SKD7F2X4xz1yQ4 for ; Tue, 31 Oct 2023 13:07:50 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8AA2F8754F; Tue, 31 Oct 2023 03:07:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=feathertop.org header.i=@feathertop.org header.b="Kjhe0pWs"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="Q2+mnrSd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 789878754D; Tue, 31 Oct 2023 03:07:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5E64087548 for ; Tue, 31 Oct 2023 03:07:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tim@feathertop.org Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 32FE632009CB; Mon, 30 Oct 2023 22:07:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 30 Oct 2023 22:07:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=feathertop.org; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm2; t=1698718044; x=1698804444; bh=0y 5gE+i8ZA3PB+NeKWXddD/GXO0RYVFXkOvYvBhSjCc=; b=Kjhe0pWsP6aH5Ia5jf YPxb/GzvufJHMMjSjMrqnYKUPqv+/n8gYPedu6a0qsjDZU3AWnVM8SefvMoVPdYw mt9zQ3HrfPNNye4UMO+TOGjZH9qsTraVj06hUd+u2vEkTqrsxaMISkJoSEQ5M2RL C3Pagpv0ZuxhH21gfVcq4yrom5r2c3xhVRboidRu88jooEvHyVVZG/80D83q83Pe XDxRP5mH+rN1KduiTGmdm2Mh3xYApSiMeOJsMMtWs4a0m2FkkjxT9/gzheze6Xdh +/QXNXPMYjhz74LERAG8muh2Hu+SseMvEXsAD3O1FPDsSTT88QYCRR1oLdNKpez2 SwmA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1698718044; x=1698804444; bh=0y5gE+i8ZA3PB +NeKWXddD/GXO0RYVFXkOvYvBhSjCc=; b=Q2+mnrSddmgS9suEOS0JXp9/eIEmV eIjfTQSohrwaAEPmVgsQo390OYa/ZOhuVkKzuAxwbGt56JHQ+sT5fdP+hzsXnizg PfJAWf5Zk+VbiAatDzbuyJn4bFUlhuZ2iVqrAtpEPuz6ULVUDOFcbBgOIGYUNwhm tReCb1gdUP+asNjEgZKAXFyZBR9e14j2GgV/5EY+geg6P3XeQDchkYV35G3omVuz wsgQnBhTWsAjqLLvdvCyZ8LmzcV3CfkLeSg9msTCx2My5iFlK/CYS9k2JsUrlokv Xrxflt9CJbHOfQpcfxMrDVQkyK9DFjH00po9TqaYEk7NUS1iFQDFxXffA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddtuddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepvfhimhcunfhu nhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrhhnpe duhfdtveeujeejjeffieevgfdtudegfeffvedugfetteehudevteehtefgieeitdenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmsehfvg grthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 30 Oct 2023 22:07:19 -0400 (EDT) Received: by feathertop.org (sSMTP sendmail emulation); Tue, 31 Oct 2023 13:07:15 +1100 From: Tim Lunn To: u-boot@lists.denx.de Cc: Simon Glass , Philipp Tomsich , Kever Yang , Tim Lunn Subject: [PATCH 0/2] rockchip: Support otp on rv1126 Date: Tue, 31 Oct 2023 13:07:13 +1100 Message-Id: <20231031020715.684460-1-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This series adds support for reading the otp on rv1126 and then uses this to generate a persistant MAC address from cpuid. Tim Lunn (2): rockchip: otp: Add support for RV1126 rockchip: rv1126: Read cpuid from otp and set ethaddr arch/arm/dts/rv1126-u-boot.dtsi | 12 ++++++ arch/arm/mach-rockchip/Kconfig | 2 + drivers/misc/rockchip-otp.c | 76 +++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) base-commit: cbba1b7766bd93d74e28202c46e69095ac13760b