From patchwork Fri Jun 9 09:59:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 103449 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp128035qgd; Fri, 9 Jun 2017 03:00:21 -0700 (PDT) X-Received: by 10.84.245.2 with SMTP id i2mr35966279pll.284.1497002421728; Fri, 09 Jun 2017 03:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497002421; cv=none; d=google.com; s=arc-20160816; b=uJUQ/KzUHRQjFBkEM0cS0jeq7KeokUDImlvznk2Sw0bcd6jAiB2e7phpD9whuk/22L /f0jRgTTNVuYDLbmcNzv/Nw7QPWO0E+GL16/+iHvEPqu229FdvP/1dpGFc0r3WXCO/I3 ksIsOp6ArbIKsFNDLr5pKL8w0AnTvnXcwEcHkgy27FdMoDwjxaWNUxoz1aYjpammH7wZ CBVPo0naGje11J6/eazqLS7ja4Kl0odvM4zoqKD4u7DBrhjxUGiQ8LrRi25yE597WiqZ BRlzTnY7WhKFKFoPCh0+VlTwRYVOLmJ3aVTpeyQF/1w8untia7nZqW3vd+f3T/30ODkt nBlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=c+/3/vnryXz+gm9O3Nmbno263QYB+u/ydclzKMo9pGo=; b=XidmiCZnuTqNlElb2V+C2Ib1E/d/j8EBM90rtvrsHqH4VOZix1QcIeU1OYdPVoItyO HaewemT0M2yMGEAJG9I9qnRWtsvnInpu+In3tQHqSXplYPAg6+PcOzApfi9EVPGIXaco vgS9zodKZLa3LaCPg9kUtA5wgPwiAy7nWUyAMLsFxr5ES8lVtug8ZmMv/p9fU9zsD7W/ lK3RE1Dau1udJtJ5QepaCKpZe0dzr+2k6giIzH3R1tqnf6TodH08ztqhMBhc3dxST2ut 1c//ak0dVRjrHLBryv6MEnfJi48HBRPrApxFSRYk56AXV8R/ZzWzB9sF1VfHB/PrIcNb Be/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d82si605134pfl.148.2017.06.09.03.00.21; Fri, 09 Jun 2017 03:00:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751698AbdFIKAK (ORCPT + 25 others); Fri, 9 Jun 2017 06:00:10 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:33157 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbdFIJ7q (ORCPT ); Fri, 9 Jun 2017 05:59:46 -0400 Received: by mail-wr0-f181.google.com with SMTP id v104so28251529wrb.0 for ; Fri, 09 Jun 2017 02:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c+/3/vnryXz+gm9O3Nmbno263QYB+u/ydclzKMo9pGo=; b=h+o5rK3dFCnerfv6FV+DeXNKh0JW8Qt6ILOKqK/RQqYGurnqDbfEyF6GED5+heqHNL VrbAmQXQl0x1Ddqee8iRre7ykz+o0e1h0u+01e0XV32dF3l2LIJHu7CbbSz4/6lBMX1r MS9O2N5lNvo7RiVLttPdcLjBGbS/5uiMpDSs0= 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=c+/3/vnryXz+gm9O3Nmbno263QYB+u/ydclzKMo9pGo=; b=gol65d349va8rikCSqzMxm2x10d5j5FGbq0Db9TDhrssXPYM9O/tIE/BiLphroLtk9 QHjvua/qEgEssb2UFIfR27tOAJqPtD9CqURkr1xu/jV+CkduOzad0fqLWbgPWugcyy1F bgYBKpFzkh2FESwFVegyRSkJl4CTejeUQxlvOqpevAPl1T3GQQskl+cLGIp1P/4HSgo3 0fQ63fFJQuRC5RgzWUKDfdrQhdZIRazvIQPBJDK9QQZHketTQZ9PUktU+OzwdyHlH08l q73WZMTrc5VWond4WFA8gLBdEGOk0oaZ3TJtgPZbQ61iTkkUK2T3+xcO94evw4+VO+nc +uag== X-Gm-Message-State: AODbwcBY8yODj5YpLTs9Z3bSZQVM3zFXeWXHIIeHR443LUzEcsu1x1MY sE0VhkLdqqi9u/+M X-Received: by 10.223.154.15 with SMTP id z15mr31238144wrb.136.1497002384645; Fri, 09 Jun 2017 02:59:44 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id g46sm1031207wrg.69.2017.06.09.02.59.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 02:59:43 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: srinivas.kandagatla@linaro.org, linux-kernel@vger.kernel.org, Finley Xiao Subject: [PATCH 5/5] nvmem: rockchip-efuse: add support for rk322x-efuse Date: Fri, 9 Jun 2017 10:59:10 +0100 Message-Id: <20170609095910.4090-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170609095910.4090-1-srinivas.kandagatla@linaro.org> References: <20170609095910.4090-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Finley Xiao This adds the necessary data for handling eFuse on the rk322x. Signed-off-by: Finley Xiao Acked-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt | 1 + drivers/nvmem/rockchip-efuse.c | 4 ++++ 2 files changed, 5 insertions(+) -- 2.11.0 diff --git a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt index 94aeeeabadd5..194926f77194 100644 --- a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt +++ b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt @@ -4,6 +4,7 @@ Required properties: - compatible: Should be one of the following. - "rockchip,rk3066a-efuse" - for RK3066a SoCs. - "rockchip,rk3188-efuse" - for RK3188 SoCs. + - "rockchip,rk322x-efuse" - for RK322x SoCs. - "rockchip,rk3288-efuse" - for RK3288 SoCs. - "rockchip,rk3399-efuse" - for RK3399 SoCs. - reg: Should contain the registers location and exact eFuse size diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c index 423907bdd259..a0d4ede9b8fc 100644 --- a/drivers/nvmem/rockchip-efuse.c +++ b/drivers/nvmem/rockchip-efuse.c @@ -170,6 +170,10 @@ static const struct of_device_id rockchip_efuse_match[] = { .data = (void *)&rockchip_rk3288_efuse_read, }, { + .compatible = "rockchip,rk322x-efuse", + .data = (void *)&rockchip_rk3288_efuse_read, + }, + { .compatible = "rockchip,rk3288-efuse", .data = (void *)&rockchip_rk3288_efuse_read, },