From patchwork Fri Sep 2 09:14:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 9310623 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 62D7460865 for ; Fri, 2 Sep 2016 09:16:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49AB829726 for ; Fri, 2 Sep 2016 09:16:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DAE3296AB; Fri, 2 Sep 2016 09:16:53 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8013B296AB for ; Fri, 2 Sep 2016 09:16:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfkYu-0000F0-EW; Fri, 02 Sep 2016 09:15:00 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfkYp-0000B6-2W for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2016 09:14:56 +0000 Received: by mail-wm0-x230.google.com with SMTP id w207so10137533wmw.1 for ; Fri, 02 Sep 2016 02:14:33 -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; bh=60dTHTjfAis3YDzzydjVjBgqPxgbn22arvlOC78ypz8=; b=VshUx5uvam/wmJbVChC25aSuUjmb+euGGCigXVd243t8GOeIvUn6xeIhW4kJBnJZwD r1WUjC0GfujBxNbroOtlELikCWfEjVlbIgrwSeIXzqRKrCX3peKm6BHF537NYbCovzwJ ObrexZKcCBxawCGfNHBDOr9t+/KlDAZN28mFE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=60dTHTjfAis3YDzzydjVjBgqPxgbn22arvlOC78ypz8=; b=QgMEo+6O2GfKlHxQK4K5wcGQaSUDjInBd0rQAmvSMkQpienPFHSTj0HJos5uiu56Fy 2zfaSPi2Uyn92+qhJTuYYKrq0ojAQl8UwsIMoXdEXn28NodxVLA6dFP7BkLm/Ojgi69o Lwt0w6v62rWCvJ/RxSIotO5UzepkSeShFLzRbyeA/vdMf0TlIZj3qsYtz6LoEcGF4qiG kv7yO5AP7YC+B0ZjoB/NY6ThmZVaBgjvSeGREykhSL5f41416MFsLODTVbjOuSDFSaXf xzP3PQdyd8Br7eUwhJRrtPAO9RAq060w6143MH5uuTBTa3SSONOUM1taejDnhy/t109a 1L+g== X-Gm-Message-State: AE9vXwOL6exE0i0xoOE8xSqqPzapqKPJRydS6znowvzzNoNHce0aSoyPr+Cqb39gJoTpe+9w X-Received: by 10.28.232.15 with SMTP id f15mr2099957wmh.51.1472807671720; Fri, 02 Sep 2016 02:14:31 -0700 (PDT) Received: from localhost.localdomain (host-2-103-180-164.as13285.net. [2.103.180.164]) by smtp.gmail.com with ESMTPSA id r67sm2615471wmb.14.2016.09.02.02.14.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Sep 2016 02:14:30 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Subject: [PATCH 1/2] nvmem: rockchip-efuse: update compatible strings for Rockchip efuse Date: Fri, 2 Sep 2016 10:14:26 +0100 Message-Id: <1472807667-26782-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160902_021455_321421_EF6AC783 X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Srinivas Kandagatla , maxime.ripard@free-electrons.com, finley.xiao@rock-chips.com, 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 From: Finley Xiao Rk3399-efuse is organized as 32bits by 32 one-time programmable electrical fuses. The efuse of earlier SoCs are organized as 32bits by 8 one-time programmable electrical fuses with random access interface. Add different device tree compatible string for different SoCs to be able to differentiate between the two. The old binding is of course preserved, though deprecated. Signed-off-by: Finley Xiao Reviewed-by: Heiko Stuebner Reviewed-by: Douglas Anderson Signed-off-by: Srinivas Kandagatla --- Hi Greg, Could you pick these two nvmem patches for 4.9 which extends rockchip efuse support. Thanks, srini Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt index 8f86ab3..94aeeea 100644 --- a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt +++ b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt @@ -1,11 +1,20 @@ = Rockchip eFuse device tree bindings = Required properties: -- compatible: Should be "rockchip,rockchip-efuse" +- compatible: Should be one of the following. + - "rockchip,rk3066a-efuse" - for RK3066a SoCs. + - "rockchip,rk3188-efuse" - for RK3188 SoCs. + - "rockchip,rk3288-efuse" - for RK3288 SoCs. + - "rockchip,rk3399-efuse" - for RK3399 SoCs. - reg: Should contain the registers location and exact eFuse size - clocks: Should be the clock id of eFuse - clock-names: Should be "pclk_efuse" +Deprecated properties: +- compatible: "rockchip,rockchip-efuse" + Old efuse compatible value compatible to rk3066a, rk3188 and rk3288 + efuses + = Data cells = Are child nodes of eFuse, bindings of which as described in bindings/nvmem/nvmem.txt @@ -13,7 +22,7 @@ bindings/nvmem/nvmem.txt Example: efuse: efuse@ffb40000 { - compatible = "rockchip,rockchip-efuse"; + compatible = "rockchip,rk3288-efuse"; reg = <0xffb40000 0x20>; #address-cells = <1>; #size-cells = <1>;