From patchwork Thu Apr 4 16:57:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10885967 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 C90F51708 for ; Thu, 4 Apr 2019 16:57:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1445286C6 for ; Thu, 4 Apr 2019 16:57:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5C4828AB3; Thu, 4 Apr 2019 16:57:47 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 3AA1D286C6 for ; Thu, 4 Apr 2019 16:57:47 +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=irhJ94nvaO+YZNs6QkzSfLS4xllLM8FB176LL/VtQjM=; b=eCvzH9VWfo/t5LZUwQK7NMFBMe bjgCxp9owH+bsKZcSiApOcbjo0eHKfnIjVdcxTBuP7pfUfYR+QO+xMuWuobRnVWnUSXJwl+8tOrt9 FmLpizYD94toHQ0jJiaK6425RO3Bxm5ojNAioJ+HruUeXSXqXb8WI8MIkIQdgWLcbwRZ8QdKCdhz7 00C1uVFowRfrOvgq43NIp3aQc7lvgyXSmxTfyGFlS2VNub9tqu01HLhEf1XW99/gCztCDv0fYd0hF q5EEX/W7br7oi04mL9Zu3c14cFtlB4fM+4uH478ywqrXXJLpqBBnhTa7DXXsq7DzQ7FYF8eyg4jwd TwjhOx1A==; 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 1hC5gO-00078F-Iq; Thu, 04 Apr 2019 16:57:44 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC5gF-0006zc-Kd for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 16:57:36 +0000 Received: by mail-pg1-x543.google.com with SMTP id k19so1541715pgh.0 for ; Thu, 04 Apr 2019 09:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ehyl5UZ+tyostJdkwWdGz1fU3mPnH2bSVKNeEhhJzVw=; b=S+LGCG6lozColhzJJvjSCO0u1KBuBYUWpmcnC1XSGoEgdw+UewhzCBg0My4xps3iRk 3s0cJGeFuATMWHXl9kiMi3Mst/fF9eZZSrBQiFtMtcOd4MQTypOAcBEqXwGLTNP6wgCk i37zvarzyImb5gDzVUMv5rlOMPUZMRfPppdoHTYeQijFa3m8wJEzRERJwxQ5B2Y2TGYZ MWSS9yao4S2i8rdC3nP4MdDzG/F1afeR98eca3lxrhIEeECmLwn8icRD6WYPJQn7bNgH k+ivetv2kZgm8x/1SgNSCttmQiDOpAo63YthNzYoeOsGpfglrvaFmgHZUepw+irc2h6Q AMCg== 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=ehyl5UZ+tyostJdkwWdGz1fU3mPnH2bSVKNeEhhJzVw=; b=Pl3riGS07FuEOXw/pRJSQhkC5YNNMk08Z+vsCpJhepRAkRUr0ooRs6L37MoqldndXh wAl80G5HrIbcB30pAqWuVrXGirvZdFI0B3SZ2NO/palbSEsw6bUkucTvSXG43e10CwCJ 3pkdq86Z67/nV0kRzsZrnfkAh7CgPngxJf80dGWWMLPozMYmx/+Dp9j9fpS29zoBD1Hs zhAH71869/feVvOYZh9jjqiWwVAU2xYYZew7XCvOTYrEY2fgrRn0goLRUW9Vg/hcdGqx 3PdwszYNSzhaj8IA7ffsgRmYys7e2s6P3pMlhCfUK1GghhXDCcYeK2ldOCdZUl2nFLzi Ry2w== X-Gm-Message-State: APjAAAVSa3mSTv+M+jTnK4lC0CvrG5AsTZCqrCa7ORyH6p/pLMrUUWXg yeo/tM4xvHqTuTXCYdbv/9I= X-Google-Smtp-Source: APXvYqzEsBpNqnjFsQuMbFpos8hNvvTkRfxufvfxQ1PcQCiRsGTK0NzcpbAOuCR8RbOWEwBekPIfZw== X-Received: by 2002:a63:6f0a:: with SMTP id k10mr6821263pgc.78.1554397055110; Thu, 04 Apr 2019 09:57:35 -0700 (PDT) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id 25sm24127789pfo.96.2019.04.04.09.57.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 09:57:34 -0700 (PDT) From: Yangtao Li To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org, mark.rutland@arm.com, srinivas.kandagatla@linaro.org Subject: [RESEND 1/2] nvmem: sunxi_sid: Support SID on H6 Date: Thu, 4 Apr 2019 12:57:25 -0400 Message-Id: <20190404165726.13149-2-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190404165726.13149-1-tiny.windzz@gmail.com> References: <20190404165726.13149-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_095735_671557_B8861EF8 X-CRM114-Status: GOOD ( 11.10 ) 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: Yangtao Li , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 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 Add support for H6's SID controller. It supports 4K-bit EFUSE, bigger than before. Signed-off-by: Yangtao Li Acked-by: Maxime Ripard --- drivers/nvmem/sunxi_sid.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 7013f9cc43c7..a079a80ddf2c 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -188,6 +188,11 @@ static const struct sunxi_sid_cfg sun50i_a64_cfg = { .size = 0x100, }; +static const struct sunxi_sid_cfg sun50i_h6_cfg = { + .value_offset = 0x200, + .size = 0x200, +}; + static const struct of_device_id sunxi_sid_of_match[] = { { .compatible = "allwinner,sun4i-a10-sid", .data = &sun4i_a10_cfg }, { .compatible = "allwinner,sun7i-a20-sid", .data = &sun7i_a20_cfg }, @@ -195,6 +200,7 @@ static const struct of_device_id sunxi_sid_of_match[] = { { .compatible = "allwinner,sun8i-h3-sid", .data = &sun8i_h3_cfg }, { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg }, { .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_a64_cfg }, + { .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg }, {/* sentinel */}, }; MODULE_DEVICE_TABLE(of, sunxi_sid_of_match); From patchwork Thu Apr 4 16:57:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10885973 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 0851E1708 for ; Thu, 4 Apr 2019 16:58:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCB79286C6 for ; Thu, 4 Apr 2019 16:58:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD59128AB3; Thu, 4 Apr 2019 16:58:01 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 88456286C6 for ; Thu, 4 Apr 2019 16:58:01 +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=jdAuwFQPWtJFbhFwBa4N1Q9rz0UMahQhRIYByMPbVgk=; b=QoAlCXW06lvf5fQxHVLxZfzi5D TeCJ6lch/sGUeXWBwDwQuAOEfwl+0rer5yUk+qGqERPWm5QCNKyBdFbz9wB4HWtWAANmUBicdg7sg 24AxLlhfh0BDK1jDjgqA+ir/d1vJTdZX+wSCk+GO6dOdm9Zw7mDRSUyAfvbhdYDW+5DpRBTMpDGZv A+a7u6XLYOZTtr+FAXRFKkksOcIgv6TeVxiS2NfFiqzai1V1rA2vDzqBjApBbYI07DjRcoKg8gdiA DwuU7nirm6xuW3BHopy9SOv5tH7Aa5yrLf8fGATaZUlXo8sZiAawh7VsMMckCl2/J/ptfXBgReD5N Tv6P8XCg==; 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 1hC5gc-0007Rv-UY; Thu, 04 Apr 2019 16:57:58 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC5gI-000717-94 for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 16:57:41 +0000 Received: by mail-pl1-x642.google.com with SMTP id y6so1445389pll.13 for ; Thu, 04 Apr 2019 09:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nN+9+tvHnXI0jG1JTz3yCZcoQzjtz9zADSIXD+s5sGk=; b=pro6QmwgP+rwFtaYgYKoLYsUXNXHrtCtQyLgnNU154LiK0IT7dgwyMI3MUI3zVpO2f M6kxR+cjW/+9ICx31RlM5YU0HTEv/nRAot9UzH4bnhgoBjJIY3N5pOLxh++gutwjv+yP ddvfygijSWvn3FenJ7GIApRPqt834xx2wbMJiFDSAkanzZvyaloSsRoRYfm6NWLVcyGC IapzbamDV6suHjh8wVxp4wIGHEwRO3OIBanBd1wcx7gvJzYbZkjXBDLOA4PZNjuHNx9N eUgMMfG9EXNiZeL9HO2EwVPLgSRZemPnVOA3PNCGq8YzpeDSUH26OSgC6kjKICnWWZgK C8Wg== 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=nN+9+tvHnXI0jG1JTz3yCZcoQzjtz9zADSIXD+s5sGk=; b=OtU5AA4DeUxkFq/uh/Qn0jV3so7sDWGh3x7OOuAp7Ye85vhLNXmDiPJ/WIZ0nYaqq7 oHHGdHMee9zdtF4t9nycqSyXHthQMUAfOrf0r+LHqGwXqmMjEiJ0DFDrI7SstuYBLMMm xuHYTlL8UR1PhbwZDeRfz1+F74cDU/5jEQzNC0TIB1G1+XoaC9A4VDypoGy+hmczW2D6 T46yYMyzAXXoQBIHMo/KGd6b+keFIQnzhH7hbjyW5ACWHkOBESQ1uD6x1n2IIUAwLzPw xrSxGoKiM4uDZCiLAbSql+eBNmFoTuLsusnL/du0qcDN/SOcd//8thpL7H+9Jfewp31j P++A== X-Gm-Message-State: APjAAAU7zwYWf7PE2LdqDCdelBGa/yKU9NNlrXdOfB3+P5CPZz1JGkiE iSLv1K9KuKsxm/f/YGy0Yps= X-Google-Smtp-Source: APXvYqys2T1Yqbjee26mJ7ydNa5a7rQcEhvw8oyk7aDPi1GXhVmRyPW6KUprRBXBUqF1zRtND+LGuA== X-Received: by 2002:a17:902:f81:: with SMTP id 1mr7639948plz.216.1554397057854; Thu, 04 Apr 2019 09:57:37 -0700 (PDT) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id v19sm27320826pfn.62.2019.04.04.09.57.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 09:57:37 -0700 (PDT) From: Yangtao Li To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org, mark.rutland@arm.com, srinivas.kandagatla@linaro.org Subject: [RESEND 2/2] arm64: dts: sunxi: h6: Add device node for SID Date: Thu, 4 Apr 2019 12:57:26 -0400 Message-Id: <20190404165726.13149-3-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190404165726.13149-1-tiny.windzz@gmail.com> References: <20190404165726.13149-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_095738_667626_CE33E491 X-CRM114-Status: GOOD ( 11.11 ) 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: Yangtao Li , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 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 The device tree binding already lists compatible strings for H6 SoCs, so add a device node for iy. Signed-off-by: Yangtao Li --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index c9e861a50a63..cbeb587d2eed 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -192,6 +192,11 @@ #reset-cells = <1>; }; + sid: sid@3006000 { + compatible = "allwinner,sun50i-h6-sid"; + reg = <0x3006000 0x400>; + }; + pio: pinctrl@300b000 { compatible = "allwinner,sun50i-h6-pinctrl"; reg = <0x0300b000 0x400>;