From patchwork Mon Oct 2 23:28:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9981367 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 AAE4D602A0 for ; Mon, 2 Oct 2017 23:59:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CBCB20243 for ; Mon, 2 Oct 2017 23:59:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FEEE28334; Mon, 2 Oct 2017 23:59:26 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 35C0220243 for ; Mon, 2 Oct 2017 23:59:26 +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:References: In-Reply-To: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:List-Owner; bh=+13/DvyXfDOcKIqxK9G10ctuX425L8mVv6hqU5mKX9M=; b=bT1VLgetjysS9xTfn5SfnfjzXX f6Cq5Ay4B6wJkANgZl10oMhuenoRp3VUEFiJoFPIEdR1I6ybUJTWDaKkCoDO7trWuwlvVaQYYrDca Xe4eWYwy5TAel8+y03rTgfCKMkl/3n+8Ur4zqD40fm85EcPcOxV5TwoMEpidw3RBPiCuTzvLmsL4U DGQilKwAuXsn8MpII9G7U4d/PotVIbGwTtL5IEUOGFqjc95DBwpvcb06p83PJy7FTfkztegZRZwRl bE+2D7Jo2z1Od8/YZ7bX5wW1JS0nDf/Wo7rrbFbzXIMNZ6WpJFa1w+rLwEhDHL4MCPRsIeRIq4aII 4RnZVXwA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dzAcO-0007Oi-NM; Mon, 02 Oct 2017 23:59:24 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dzA8r-0007ft-5A; Mon, 02 Oct 2017 23:28:56 +0000 Received: by mail-wm0-x244.google.com with SMTP id 196so4116925wma.1; Mon, 02 Oct 2017 16:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Sk1nOU5DkQXON4a7AV/Mnk9GJqyoCEK6D18jKbv9SOo=; b=e/jPXZpyxvEwNNvMC0tB4kCFk1G3VuMcHd8n3iLSZE/MCi5O3p2nC9jc6Zmo8m3Pmc ESLjMlWVwhUAtIXG1jaOjPpYHUkty7vaPdl2LlCUBezvum3yum5cw4t7J1XIAC2k5V5t u/ihSeWomG9dWQCVCydxUQYrAvgpGkrLEo+7cft1GHkJnXe+UgkRWUkD0Bwm2cSJwsLE drDpid2TQAjqpeu8hADK5fKa/tVPEqtSUdfwm7XmpXcNMMiARQi5nk66muUk03MasPn7 rSt70fl/ymiHXAdvf6EZ5XvjRJGMhSZV4WFq5FkKalmZnK9kwaNZndig4u7JlkLTzkBX caOw== 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:in-reply-to :references; bh=Sk1nOU5DkQXON4a7AV/Mnk9GJqyoCEK6D18jKbv9SOo=; b=NabVNIvXz7wSjxAm9fAWCRcQLdQwLu6ePgooSIiP0DF2+mhVuQ/+3HbrJA42wfAQe8 f3NpSlJtBGM0+n2FzhA5peYWbKCwF2LFpw5RP0MX/iCFy7iHwLd/hXPEXD80+OPDN41y FaOU4tbHKgGxr0W1hYklqIXIFXqTqAMVWARZmTNzMsbo2mpBEBGb804u7oY68Fnt+MLL 4oY09+AmdcVgPzZesiKeDAPI7VE4+qLxgFHmsvKTTh2zdK4nAnh+UB1u97SDXtHt4kVB 73/FW/IIGhZJkg5sZPLp5uBPH4fEBbcTzK30brjWo6cm87DVrP66Jj9B32aI77uwe4yd hrKg== X-Gm-Message-State: AHPjjUje6xb+m5lsCt+Rzowq3R/TAwQfUBxRufWdaU5T2RJN4TC5T89n 1+lEXdj2GJBdQmf/igv2VWM= X-Google-Smtp-Source: AOwi7QAM8doybB+/38T1Ak2gxtCifTfE5yzc2dSAbHTdLLOL+e+a1HOyF2WDg/g7nPrDsaeRuFOkaw== X-Received: by 10.28.14.144 with SMTP id 138mr12272589wmo.110.1506986913952; Mon, 02 Oct 2017 16:28:33 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3D31604C9CF4E7982D353EE.dip0.t-ipconnect.de. [2003:dc:d3d3:1604:c9cf:4e79:82d3:53ee]) by smtp.googlemail.com with ESMTPSA id b190sm11211179wma.41.2017.10.02.16.28.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Oct 2017 16:28:33 -0700 (PDT) From: Martin Blumenstingl To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, carlo@caione.org, khilman@baylibre.com, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: [PATCH v2 4/4] ARM: dts: meson: add the efuse node Date: Tue, 3 Oct 2017 01:28:04 +0200 Message-Id: <20171002232804.20042-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171002232804.20042-1-martin.blumenstingl@googlemail.com> References: <20171002232804.20042-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171002_162853_367785_288335E6 X-CRM114-Status: GOOD ( 10.09 ) 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: Martin Blumenstingl , linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org 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 Meson6, Meson8 and Meson8b use a similar IP block which has access to 512 bytes of efuse data. During SoC manufacturing some calibration settings for the CVBS connector and the internal temperature sensor are written to this efuse. On some boards it additionally stores for example the MAC addresses. The efuse is enabled on Meson8 and Meson8b but kept disabled on Meson6 since we do not have a clock driver there (which is required to read data from the efuse). Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson.dtsi | 15 +++++++++++++++ arch/arm/boot/dts/meson6.dtsi | 3 +++ arch/arm/boot/dts/meson8.dtsi | 6 ++++++ arch/arm/boot/dts/meson8b.dtsi | 7 +++++++ 4 files changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index 163dac42bf2e..9e9c1f752f4e 100644 --- a/arch/arm/boot/dts/meson.dtsi +++ b/arch/arm/boot/dts/meson.dtsi @@ -262,5 +262,20 @@ compatible = "amlogic,meson-mx-bootrom", "syscon"; reg = <0xd9040000 0x10000>; }; + + secbus: secbus@da000000 { + compatible = "simple-bus"; + reg = <0xda000000 0x6000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0xda000000 0x6000>; + + efuse: nvmem@0 { + compatible = "amlogic,meson6-efuse"; + reg = <0x0 0x2000>; + #address-cells = <1>; + #size-cells = <1>; + }; + }; }; }; /* end of / */ diff --git a/arch/arm/boot/dts/meson6.dtsi b/arch/arm/boot/dts/meson6.dtsi index ef281d290052..9b463211339f 100644 --- a/arch/arm/boot/dts/meson6.dtsi +++ b/arch/arm/boot/dts/meson6.dtsi @@ -84,6 +84,9 @@ }; }; /* end of / */ +&efuse { + status = "disabled"; +}; &uart_AO { clocks = <&xtal>, <&clk81>, <&clk81>; diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 2095a002ea8d..dad8b234c172 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -275,6 +275,12 @@ }; }; +&efuse { + compatible = "amlogic,meson8-efuse"; + clocks = <&clkc CLKID_EFUSE>; + clock-names = "core"; +}; + ðmac { clocks = <&clkc CLKID_ETH>; clock-names = "stmmaceth"; diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 111e01809ad7..4f8fc01ee0f0 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -183,6 +183,13 @@ }; }; + +&efuse { + compatible = "amlogic,meson8b-efuse"; + clocks = <&clkc CLKID_EFUSE>; + clock-names = "core"; +}; + ðmac { clocks = <&clkc CLKID_ETH>; clock-names = "stmmaceth";