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: 10287675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0766B602C2 for ; Fri, 16 Mar 2018 14:51:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA4C528F8F for ; Fri, 16 Mar 2018 14:51:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8AE228F82; Fri, 16 Mar 2018 14:51:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 59DAF28FC4 for ; Fri, 16 Mar 2018 14:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=OVU9oHPkkLTgUn2QP6MQ1aisZrmAc/YnVWves1/e4W4=; b=bN1 WQgghApqjA8gK+k8wC2UOSIQMe+YV52NMnMaOZq6aNR1ANNg6mIREQQ7mwjx5eLyGmHd1cgg2kovu fWt7OpP+jqCIC3rNpKbsZCanXjXDU8/0DdDtm+mOqaUal85VXDaFODRXSpKtWcvuwsZME4R1xgWdP tl9O9dE8cpH3F0fjZqPvZSjS05/4BD3WTR5/aooYDu23cowEbavIW/HTbpnIu0FMjaWVZv/Ue9hZm QDnNzcUaIdQFvs2Hq5XVVicQaDUaZZR0SNmHmcs4TSvMJ5qb7bguEg6NfC4rOqL3wATPmYcjklP/g WKcvvujUCzyKwXeRar9xFSotVzI59NQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewqhR-0007C8-FO; Fri, 16 Mar 2018 14:51:17 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewqgp-0006Sr-AP for linux-arm-kernel@lists.infradead.org; Fri, 16 Mar 2018 14:50:43 +0000 Received: by mail-wm0-x243.google.com with SMTP id h76so3528726wme.4 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=QD2JKOtdvxoZBAA1BqnT41NcUD3Do1Cph8TQUvsO5Htj2aA4aCfaY0EgrguSoY1mlh MfRzoel/tItBFNCCrshnYsgDQVQiiE0NzNeZO9vZ9+56KfmvySWDdqTNLKhtvbHD9Chp v+msuBRPR5R8k68IaLIXizssMO6ah3C8A2IubRFx9W0FQQKsU/YifplMDObC2sG9kg0h TAXLs52gbs4qyCPhyWpYFF2KZDUuSe5seK6Tn595FD5ZepHsJGrs8Y/Hln6OXtWl1hBf BFgvcCroxNk5bqSzvk6ahEY9cW4bAaJMVzIMiQV2QGizH4qcZrkJPFF1Kw5ctgmkxMPC hRWw== X-Gm-Message-State: AElRT7FAy4k2LIC4ya3qxPw6pAZwDea5y+xVKbd1utuxZUBRZbzwytk2 ltt4RIi59XkmXlaj7YRe8mJskA== X-Google-Smtp-Source: AG47ELtDk6w0C8Pzo9ZiVDASYmGyj/ufQJmOMZGgjbYwZooIHZlkmJc0oTmRsf1pjS2+sopHUWGdLw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180316_075039_716715_D812A02D X-CRM114-Status: GOOD ( 10.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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>;