From patchwork Sun Oct 1 12:57:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9979693 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 7D29E602A0 for ; Sun, 1 Oct 2017 12:59:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 684C6269A3 for ; Sun, 1 Oct 2017 12:59:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D1D227FA5; Sun, 1 Oct 2017 12:59:18 +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 144B0269A3 for ; Sun, 1 Oct 2017 12:59:18 +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=kSFWc1hmr62kqJZr1E2aXCTa9y7ZpTn6e8feRn26HRw=; b=mcTyi/4qer2mpWahMGGUJrdJoX smr+04foUe+X3yhwQLkmxDcSOEq8hlnzB0hFqDAGXD5wML9zZNtZzrtgy36aayZof3FGsqYAjgCAb 5yPItcbW4IoZ2qY6+m0BaWVMB0YU+yiZvTQlJZeYOEp3GbRlMhq/WVDaOsdH2csl+HMJqaGbmsp1n 9xRxNaAU168PRIjyEXtD0GP8hicyqGhSiWM+3C9aHT4gqtuAT8uayTCCIVT8sSdHTcH70mjgoqlkE EVKeaqtAJVSNz4YC19yizv5R0w8IM0TrQ5ahLoH3IJjr8xeRNbhrjcrGgZVTC928R+UBvEIeVUgSG hM451v3Q==; 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 1dydpu-0007Qs-B5; Sun, 01 Oct 2017 12:59:10 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dydoc-0006I6-As; Sun, 01 Oct 2017 12:57:55 +0000 Received: by mail-wr0-x244.google.com with SMTP id z96so809832wrb.0; Sun, 01 Oct 2017 05:57:29 -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=JezqwZMhl2BXlbSgwHBHdBkTGK1T4sOnMgAeXBoeB2U=; b=EeKk9XXY0i2MmywhcSVLVEU9SsV9XcBMYDx+3G9pofh7ZV95R4+CpPwA3WMjoVF8Ze j6CIGQkqw0HR3F1s8cKgBdp1kimqFLAQGKbl2zCd+6JOdnUe19DOxYxzBaAtYHW228ak sysUnW5Py8PQ/clV9buo2ZOjVJqEhpZqIRDZfDlGrxSBYwHvfmOeZQPax/BZUOYAB/ut Wn9X1VKdHTT4nRhDG1hfY/Gv81WX9IN7S1GDkwZVamB0uLrkQ82GWPp7Jf8E99YRr3wS eLJwv0TKADDa6Z7JlaHMPHFQ9IxTOAf3gzbsBQYEKPAsK8zspF3ELSqmJea75YYq941Z CnkA== 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=JezqwZMhl2BXlbSgwHBHdBkTGK1T4sOnMgAeXBoeB2U=; b=Qz8EqAF9gVu35mVMpcE2oe8++IdelVneDdJ7GHtdEiopxxSD1y+zKJovIh2cbnTXxS LGXlmhCCuZgyTLWx6nSpohrGncBiUha3gTNaqg/vzyv9XdY8vGrfHlSi9uUrpYeMwJs8 w5K08bWMmOaD6cWDt91nSI8ErirUAZoTDvpWiwJFHi8eOcg9nWK4jTgj6RqjeBKQgiyW t7cjOw3Kc/xf0mRCfcmnw9BkhpXRiEQqUMOWpfgQwm7HMdtDPf2rBYqJHLgSgruIDm8C wyyRDxgwz7GUgB4aOW3hi4Aq2WV1b+vUqbMxEkoWfHRS/U+geQgJtdOSMuNeQUkM7i2w lj0A== X-Gm-Message-State: AMCzsaUfDjkRwzi+AMKOcG0HxX/p+7Pw0VziCC78GPmmiTeiV2SC2dWk PykA0nRyKrIA0vJO3VQa2uY= X-Google-Smtp-Source: AOwi7QCAl5V58+gtTnvdXrH7nNaodBJHN2NPk2A+jowEFRRt+oYsgVEjINf/TVI1Wdl+6j6TnC4JdQ== X-Received: by 10.223.172.228 with SMTP id o91mr2832217wrc.259.1506862647845; Sun, 01 Oct 2017 05:57:27 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3F6440490069A26044A7BC0.dip0.t-ipconnect.de. [2003:dc:d3f6:4404:9006:9a26:44a:7bc0]) by smtp.googlemail.com with ESMTPSA id x11sm4278413wrb.26.2017.10.01.05.57.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Oct 2017 05:57:27 -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 4/4] ARM: dts: meson: add the efuse node Date: Sun, 1 Oct 2017 14:57:00 +0200 Message-Id: <20171001125700.1520-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171001125700.1520-1-martin.blumenstingl@googlemail.com> References: <20171001125700.1520-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171001_055750_909164_AA04E227 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. 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 | 13 +++++++++++++ arch/arm/boot/dts/meson6.dtsi | 3 +++ arch/arm/boot/dts/meson8.dtsi | 6 ++++++ arch/arm/boot/dts/meson8b.dtsi | 7 +++++++ 4 files changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index 163dac42bf2e..9c1b21be94f4 100644 --- a/arch/arm/boot/dts/meson.dtsi +++ b/arch/arm/boot/dts/meson.dtsi @@ -262,5 +262,18 @@ 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>; + }; + }; }; }; /* 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";