Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp192979img; Mon, 18 Mar 2019 00:35:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtOfwSp/2S2kD6CDa3KNN5hAJDW8+0PhkqQCOGa96xO6GVplTgo2jAmrNxoGyvgeZGLTdD X-Received: by 2002:a17:902:7592:: with SMTP id j18mr18058578pll.300.1552894515192; Mon, 18 Mar 2019 00:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552894515; cv=none; d=google.com; s=arc-20160816; b=wUpoFKs9P6vCzdhxfOj6sQGX3t1rH5yulI/+LX+yARM8t4Ub1BOpSekIUnJ/d5V78K nkDNCxqeUfgljNyuo2BNqesBJe852d7+ao4MK6g+4cSxF2b5zva6AauzJre4wsZqR+L+ 9TatyTIAEFmnnN+nNA+3qs1zaxtbJKUrR9h/7VItU2C7o7e/wSu+yb3L0GQBeArwBMGZ Q2Q4lBoJvQW8TPksFcC6qaE4uwpfr3kBQSKV7qpGkc8kAvZ/rfC26I6+qzaAnnQ+1ohK xbRZmi5pKxcSBo17g+CxXPVDbtcMmJOqlun/swyU9AdFQiOcFE8WURhkzLG5kRxHWt9K RYUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=o0a1vt8UqO9794/867q+nCjxbzGqAUUWSzmbbMbq/lw=; b=VxvhPHymHErHpxHPZ/eiquJ64IfpsOvVJNI+CSpWb9AAQl2CFug76GhxGCnzIXNczW CIY6OBjzZoKaLf+iIP7BZzjjWStbwZdgEJTZ/59/mUggdLJe+AP3LY9vcJYnVGq4/25t 2qcoL3wfj83XcwKQA1aKtDHHR/P/5DdJvjRT9vLyIBcrmEcOigicyLVuS/RDZWdnH+lA NyHJJaVZXITq08tGwjVVD01HAyYdY1rmZhpEBvKXpwLQ9ZlrwaZa6EulX7OXJ2l9yFGC m8wxDArOTQnZNezRunyJEHjOw0QDbIrqZgliaHQrWi81G1QVtQXErHdP2vQWLB13mOVZ v+mQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si9057362pld.156.2019.03.18.00.35.00; Mon, 18 Mar 2019 00:35:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727495AbfCRHeT (ORCPT + 99 others); Mon, 18 Mar 2019 03:34:19 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:40926 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbfCRHeQ (ORCPT ); Mon, 18 Mar 2019 03:34:16 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id 142AE5FF03; Mon, 18 Mar 2019 15:34:12 +0800 (CST) From: Chen-Yu Tsai To: Srinivas Kandagatla , Maxime Ripard Cc: linux-sunxi@googlegroups.com, Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] nvmem: sunxi_sid: Support SID on A83T and H5 Date: Mon, 18 Mar 2019 15:33:53 +0800 Message-Id: <20190318073354.12151-6-wens@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318073354.12151-1-wens@kernel.org> References: <20190318073354.12151-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The device tree binding already lists compatible strings for these two SoCs. They don't have the defect as seen on the H3, and the size and register layout is the same as the A64. Furthermore, the driver does not include nvmem cell definitions. Add support for these two compatible strings, re-using the config for the A64. Signed-off-by: Chen-Yu Tsai --- drivers/nvmem/sunxi_sid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 14c114620ed6..e7936380ce89 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -200,8 +200,10 @@ static const struct sunxi_sid_cfg sun50i_a64_cfg = { 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 }, + { .compatible = "allwinner,sun8i-a83t-sid", .data = &sun50i_a64_cfg }, { .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 }, {/* sentinel */}, }; MODULE_DEVICE_TABLE(of, sunxi_sid_of_match); -- 2.20.1