From patchwork Fri Mar 16 14:50:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 131925 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp848715ljb; Fri, 16 Mar 2018 07:50:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELsdb35Cq3U0tZ3rsEM4CSq3dQ9eOJFsF85vprD7BuqryPPJK+ZMtT0ZWoz6ZWOSlib5PTwa X-Received: by 2002:a17:902:4222:: with SMTP id g31-v6mr2493831pld.335.1521211833042; Fri, 16 Mar 2018 07:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521211833; cv=none; d=google.com; s=arc-20160816; b=wFdcAS4FFd+9Pmy+XpIZNm851tU3r/fgvFVTXERheGaUqhYjj2TAeWKI0ldkIw6Ubq bXRlAyi0z8IHGKhg+3ZEnE+fNY7k5TyXOpCjfInmpPBETUXhaXmlrd7RoyZUm3SOzlvJ 9fkmenG+4yHnqpUcsIXPkNftzgT3ElWikCostPlG8GfHUc8nxp7f0Z0s6fddd/XPOmfC 8184njJFIJ/oWoU4KRT9POG8YWkE2pfxokDAQaUxDadtLw9zphkGIX6AN1IKPGGNyQgZ jjxWpbplleGkceuTGhazEHsZafId/FhU4rYLx1TbNH7MRndWgLyxoOVkTquM1mNDxTEj 6WqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=4V+k+0cbfPNXPGeRo5Lq8EVo75pGKYtRgTTN3bZA+0k=; b=SmUEwtIFgrDmBS0f8zt8dDkw2h0qPV+I95VGzOwcSJefx1SSd0z5/3zNWfr9D5p/Gx kqr/sjFKfKcCfNQx82h8hNmgwusuz6Pm7SGxBUO5lglUSdtcTZP6sacI8LcwEglpR91D CXzGz2h0odLbSYCqOgYiHY/aadg8sUQKqPZDluZP+OS7oGkdqJaxkMIcskOj47ybAndb TxzBGpVqc21igCNwPPJCWKFPHqpttJ+k3pGDphRVRO3ItPrJV/4x1fefNaQyvlwqASAR IdOL9baYlAvyxCj7JtginQjBmX/vMS63KhtAG0L0Hx0gbsJS0n8ePGTcEgXJhgfj5FDz ZYXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gQ1IsSuk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10-v6si2671213plo.536.2018.03.16.07.50.32; Fri, 16 Mar 2018 07:50:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gQ1IsSuk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753450AbeCPOua (ORCPT + 28 others); Fri, 16 Mar 2018 10:50:30 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40019 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753083AbeCPOu1 (ORCPT ); Fri, 16 Mar 2018 10:50:27 -0400 Received: by mail-wm0-f67.google.com with SMTP id t6so3546802wmt.5 for ; Fri, 16 Mar 2018 07:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=4V+k+0cbfPNXPGeRo5Lq8EVo75pGKYtRgTTN3bZA+0k=; b=gQ1IsSukmfUjuzYSjCbqlEAEKr/AgvooEiRnE7V3CbxxPnZRBKMtyv0QWYYpBD5U/v dcXWS8Dz+zk46DKJqxtZr9y/XLd6UwC+jHEUhR5iso7+j/BzcJ+7JC68QuiLz++qTymK FUt601jRBC6m1180BYf/rCpPEDbd+z9MXMRRj8Yn9DVUihllf7tsFbYdVLPoH21PJ26i 9U0/K9qjfQEKk4+nnZv+pxZC9SEF3zgoS2gTWA+U3/hvJkf9ciwk9hMprh+X8H8EqFAQ Zhs7Mi77MqpdjxG8gZeIS96rzA62jBJ5SITFzxk/Y9+uwW9Y1QPmTHdkp3hAQGerCM+q js+A== 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=4V+k+0cbfPNXPGeRo5Lq8EVo75pGKYtRgTTN3bZA+0k=; b=qR7Uuavml5yyXXaimBIveAxfwXzMk5XAQMwhzUbSj4IVkjsIWkvDqMXKbfpfgeBb5M gx/Z8HSuNBnlRJDOL7ciFebN/oYmO8e3+lIdWN7/jnlUsuyP7WVHbrjhcjzkNwZtJLbk RKrxGlg2oX3QcMW+6xWEjISkh9njrqOaOp0f3kbFYwfxWoG+1uH9V3KRsCdh6ZUl0TdT j8pQQRfHVH83408S9Xat2XmJABplX6FKeGWfOE8yiKBMY1y5wC3dN11mrYmEJ320epxi YbM+cs6XA7jDYn9Cugg3JzsW5FPq39qOnZg32DQJiAvBSxpCBf5lFIbAQKzxGWET2lhj 14/A== X-Gm-Message-State: AElRT7EBRgES5LDkVts97RNq1OMQWaQAXmqqBtQO+pCUKbI9E+OvdDAR 8obCiJra/71p3NVAOOfjTxbo+8Oi X-Received: by 10.28.88.211 with SMTP id m202mr2195594wmb.160.1521211826430; Fri, 16 Mar 2018 07:50:26 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 7sm10564349wry.18.2018.03.16.07.50.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 07:50:25 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Cc: Jerome Brunet , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM64: dts: meson-gx: make efuse read-only Date: Fri, 16 Mar 2018 15:50:21 +0100 Message-Id: <20180316145021.8517-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org efuse is one time programmable, so it is safer to deny write request to this memory, unless the user is savvy enough to remove the read-only flag from DTB Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 1 + 1 file changed, 1 insertion(+) -- 2.14.3 diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 2d51ccd60628..3c31e21cbed7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -132,6 +132,7 @@ compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse"; #address-cells = <1>; #size-cells = <1>; + read-only; sn: sn@14 { reg = <0x14 0x10>;