From patchwork Tue Apr 16 08:19:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Mei X-Patchwork-Id: 10902131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A38F1823 for ; Tue, 16 Apr 2019 08:20:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DE9C28947 for ; Tue, 16 Apr 2019 08:20:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 023E32894B; Tue, 16 Apr 2019 08:20: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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY 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 5133128942 for ; Tue, 16 Apr 2019 08:20: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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=5aJtEf2gbXxZlj3W+KR4xHdnyebjY5dQkxM7nn57ZB0=; b=knCb/wWCd3KQGt NYOM40FNS9N7ktmTMQlRvSjf98MAZ0GUzb61t2FqC4EJ9vE5fpTUdDnE+sEpW1ZJ8YZ/9ms2IeO/g YI2CqRXI4NYHIc/5ymJ4mZ+ldlXgPfbrfFxFmKcQrqTxTYej3nnQe/ylnRgzRnIgOvpboLBIcX8Nr Qb35rQ6vfiRvI4EA+wrArWaACMGY5fTQRtjIAzMDD0BZWKJLZUWu4W5j+W9adwVBGQ0ks5VPZzBRs nzZOFW5p+MzdbQaUvz/3ZQ30GCSYOV/3PoUyMDtAl7lhgcwPos57OnXAi6T8fp65mJmIoqdZEQiPA O+pw5DM82ZFkzr2+YSoQ==; 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 1hGJKL-0000AA-IC; Tue, 16 Apr 2019 08:20:25 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGJKI-000093-30 for linux-mediatek@lists.infradead.org; Tue, 16 Apr 2019 08:20:23 +0000 X-UUID: 29f6d9b30a944cd698a70c3d8486c832-20190416 X-UUID: 29f6d9b30a944cd698a70c3d8486c832-20190416 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1333218016; Tue, 16 Apr 2019 00:20:18 -0800 Received: from MTKMBS02N2.mediatek.inc (172.21.101.101) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 16 Apr 2019 01:20:16 -0700 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 16 Apr 2019 16:20:14 +0800 Received: from mtkslt207.mediatek.inc (10.21.15.94) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 16 Apr 2019 16:20:15 +0800 From: To: Subject: [PATCH 1/2] arm64: dts: mt8183: add efuse and Mediatek Chip id node to read Date: Tue, 16 Apr 2019 16:19:21 +0800 Message-ID: <20190416081922.21711-4-michael.mei@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190416081922.21711-1-michael.mei@mediatek.com> References: <20190416081922.21711-1-michael.mei@mediatek.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: 6972D3984EE493EC0CF92700C149AABD4507C37CE4B696D8532AA2532C79D7B02000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190416_012022_131663_7CD5F5B9 X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, Michael Mei Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Michael Mei support for reading chip ID and efuse Signed-off-by: Michael Mei --- This patch is based on v5.1-rc1 and these patches: https://patchwork.kernel.org/patch/10856987/ https://patchwork.kernel.org/patch/10839021/ https://patchwork.kernel.org/patch/10879015/ https://patchwork.kernel.org/patch/10878999/ https://patchwork.kernel.org/patch/10858941/ https://patchwork.kernel.org/patch/10846685/ https://patchwork.kernel.org/patch/10893519 --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index b36e37fcdfe3..405cd7e2ca4b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -148,6 +148,15 @@ compatible = "simple-bus"; ranges; + soc_data: soc_data@08000000 { + compatible = "mediatek,mt8183-efuse", + "mediatek,efuse"; + reg = <0 0x08000000 0 0x0010>; + #address-cells = <1>; + #size-cells = <1>; + status = "disabled"; + }; + gic: interrupt-controller@c000000 { compatible = "arm,gic-v3"; #interrupt-cells = <4>; @@ -353,6 +362,12 @@ status = "disabled"; }; + efuse: efuse@11f10000 { + compatible = "mediatek,mt8183-efuse", + "mediatek,efuse"; + reg = <0 0x11f10000 0 0x1000>; + }; + mfgcfg: syscon@13000000 { compatible = "mediatek,mt8183-mfgcfg", "syscon"; reg = <0 0x13000000 0 0x1000>; From patchwork Tue Apr 16 08:19:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Mei X-Patchwork-Id: 10902133 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7E4D1800 for ; Tue, 16 Apr 2019 08:20:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB4D928942 for ; Tue, 16 Apr 2019 08:20:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF23F2894C; Tue, 16 Apr 2019 08:20:27 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY 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 6252F28942 for ; Tue, 16 Apr 2019 08:20:27 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=osUl12yG5ot5i3WvZBKarwEfUFkfW9wcndXjWgI7g3I=; b=Hq80e2qzoyb3DP LSDI8LS2F7QMVjTVacgZZTwvjYQGFlONTwd9ym95WPeYIZX50WLANGN9epefBWXirhjWuMl68JG8s TPjA76KZfK5i6GOLP0GH0lwqaJMax5GCm+2F5GoxNA3HGjtBTeqeUMufzjodYevwURkbVT9FyGEq4 ho+YKUhfvBMbZEcfWGqvEcwTXEcXDHdhD3Buo0C0wIBIQgUtzaRCiwSIcVkwOnkWVU3XfL0N0wSl2 GTk7Ri+f0PhRa+T1xgcST5yktvEScqjToww4pMCdZocPuEgNK9wLMpS4QXl80iBUiHEnbswn2FXS0 M6XMaGFGHTUjsVKA1LGw==; 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 1hGJKN-0000BG-1Z; Tue, 16 Apr 2019 08:20:27 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGJKJ-000093-Rq for linux-mediatek@lists.infradead.org; Tue, 16 Apr 2019 08:20:25 +0000 X-UUID: f9301ad38efb4727a247c4ac8771642b-20190416 X-UUID: f9301ad38efb4727a247c4ac8771642b-20190416 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1755123446; Tue, 16 Apr 2019 00:20:17 -0800 Received: from mtkmbs03n2.mediatek.inc (172.21.101.182) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 16 Apr 2019 01:20:17 -0700 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 16 Apr 2019 16:20:14 +0800 Received: from mtkslt207.mediatek.inc (10.21.15.94) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 16 Apr 2019 16:20:14 +0800 From: To: Subject: [PATCH 2/2] dt-bindings: nvmem: mediatek: add support for MediaTek mt8183 SoC Date: Tue, 16 Apr 2019 16:19:20 +0800 Message-ID: <20190416081922.21711-3-michael.mei@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190416081922.21711-1-michael.mei@mediatek.com> References: <20190416081922.21711-1-michael.mei@mediatek.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: 54D6F3AC9C9BA168175E16892BBCC5A1AC8CD48E728C520792DE1A85DE23B0622000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190416_012023_898073_44A23DB0 X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, Michael Mei Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Michael Mei This updates dt-binding documentation for MediaTek mt8183 For the both SoCs supported all rely on the fallback binding of the generic case with "mediatek,efuse". Signed-off-by: Michael Mei Reviewed-by: Matthias Brugger --- This patch is based on v5.1-rc1 and these patches: https://patchwork.kernel.org/patch/10856987/ https://patchwork.kernel.org/patch/10839021/ https://patchwork.kernel.org/patch/10879015/ https://patchwork.kernel.org/patch/10878999/ https://patchwork.kernel.org/patch/10858941/ https://patchwork.kernel.org/patch/10846685/ https://patchwork.kernel.org/patch/10893519 --- Documentation/devicetree/bindings/nvmem/mtk-efuse.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/mtk-efuse.txt b/Documentation/devicetree/bindings/nvmem/mtk-efuse.txt index 0668c45a156d..b4d448bb60ce 100644 --- a/Documentation/devicetree/bindings/nvmem/mtk-efuse.txt +++ b/Documentation/devicetree/bindings/nvmem/mtk-efuse.txt @@ -7,6 +7,7 @@ Required properties: "mediatek,mt7622-efuse", "mediatek,efuse": for MT7622 "mediatek,mt7623-efuse", "mediatek,efuse": for MT7623 "mediatek,mt8173-efuse" or "mediatek,efuse": for MT8173 + "mediatek,mt8183-efuse" or "mediatek,efuse": for MT8183 - reg: Should contain registers location and length = Data cells =