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);