From patchwork Sun Feb 17 16:23:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10817157 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 67FF8139A for ; Sun, 17 Feb 2019 16:23:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50C542A28F for ; Sun, 17 Feb 2019 16:23:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41E4D2A29A; Sun, 17 Feb 2019 16:23:42 +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 EFC612A28F for ; Sun, 17 Feb 2019 16:23:41 +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=1/DziZi4IvpCJyuV734hsx9kCTbDbtTu1CPO7w1xueQ=; b=clscpTSYnAF7mhBMX2qPAxW6r5 prUs8mG9y8+vYjQxXZt0HbNCvGHpLAiRGDMjJmPI/v18ojYsa2hZqcCEstvmunGtvaJfx9oKmWxJz rxFuokta9pHjegXiX1rPDqRSBoza/QAUt2eAguDH8EUh9RqfTsK/H+PF+XO5KoIqk/mlcQmEIfhT4 94JlqVJEQ2h4cNNGV/iMCueuz2HxWfbhoBB0ECK7hRYg0bTHR84WmI/eU4rav/eNTTidCiSZoIg+o VMjRHyA5Xm1ZhBDS8JO671P1pQ/OiANDRU3ak8ttjf1tIclkZd5Ao/KINhzsz4IwczW6WhZmrJWxd QuSA7mhw==; 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 1gvPEC-0002Jq-5n; Sun, 17 Feb 2019 16:23:40 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gvPE2-00027I-9l for linux-arm-kernel@lists.infradead.org; Sun, 17 Feb 2019 16:23:32 +0000 Received: by mail-pf1-x442.google.com with SMTP id b7so7286653pfi.8 for ; Sun, 17 Feb 2019 08:23:29 -0800 (PST) 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=EPBS2GhpwmpEDgTVr1WkimnFnbT2vpcS3OkFjG9Zg54=; b=Sr4lF3z8Eo0Yjl+jXh463UV/0xgjxSvWVaxWccrn8/t2BlKS3+NU3uAPnFngoNNJwo elfzOoAfOvf+85iumwEi63sApLylsD/KCPHPtXyY9723O2RQUtfrTCNAxQkxOuHbt6jr ldqrpQ01Nz/Xwy/Z01a+zhldxkTT1tEvsxgtPB6KXeD60ppfYv6C5kFhq/BJQ+MOQFNA IAeUDtaFwC1yCS/czWFtPK2zEEHjLHssbKowVuJIxylvA1PkllB8zHkDxD7lJqhN5llH 1a37IlIPcBEkhjoA5x5KwuQmuwYOlGesg9I/UBwYt4Th8l70Ht1RqGoTi4K+7HUCNc3z il1g== 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=EPBS2GhpwmpEDgTVr1WkimnFnbT2vpcS3OkFjG9Zg54=; b=DpX00kzMlAaeApMLPeEmds0Nx1DE78f5D9PXP7ZxXqiGqvJihmOaxh/r2RnYL5Ymm4 46lWCpbWJ7U0OH6Ek0oNsJcUwKMuV4iPIbJSCVIKHAdSI83oeDdWj9nTQRuUG2wegZpl 9AKi7ZsZXcxHsEuDtXJQacOguuuZfLbWhpsSEQAXXl3G6u6hBkIzwXOMA+gbChUzIzc1 zvwtJ4vrT3VfJdgzJ4IAmIdRyr0P8ToMGmixAwA4z8z5K+eajraISXJTJF4tTxywCmIu cA35H55w+MeKwCrYt6tP8L9bz22uggIVQTXW/H7CECQ9UCeDc1qNLsKWrCEhoTDwKTHJ LRRg== X-Gm-Message-State: AHQUAuZw46uU7K/cuHylA5R10hfjZX85fYOTev7NH8DPphuqnidvvpP4 nFdT7eVqRmPG9QX8nUp1jNU= X-Google-Smtp-Source: AHgI3IbTN4cYherFmGvph39bWwD1EtdaeRVZCpQV3H51+TIeDB0ZWYBPmaHvkENyPWilGd6s89koYg== X-Received: by 2002:a62:f51d:: with SMTP id n29mr12736853pfh.21.1550420609462; Sun, 17 Feb 2019 08:23:29 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id l28sm18060247pfi.178.2019.02.17.08.23.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Feb 2019 08:23:28 -0800 (PST) From: Yangtao Li To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH 1/5] nvmem: sunxi-sid: fix wrong description in kernel doc Date: Sun, 17 Feb 2019 11:23:12 -0500 Message-Id: <20190217162316.14111-2-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190217162316.14111-1-tiny.windzz@gmail.com> References: <20190217162316.14111-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190217_082330_584488_BED53BD8 X-CRM114-Status: GOOD ( 12.83 ) 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 qfprom->sunxi-sid Signed-off-by: Yangtao Li Acked-by: Maxime Ripard Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt index 99c4ba6a3f61..d37017e343b1 100644 --- a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt @@ -12,7 +12,7 @@ Required properties: - reg: Should contain registers location and length = Data cells = -Are child nodes of qfprom, bindings of which as described in +Are child nodes of sunxi-sid, bindings of which as described in bindings/nvmem/nvmem.txt Example for sun4i: From patchwork Sun Feb 17 16:23:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10817159 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 91855922 for ; Sun, 17 Feb 2019 16:23:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80AD02A28F for ; Sun, 17 Feb 2019 16:23:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7459D2A29E; Sun, 17 Feb 2019 16:23:51 +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 197852A28F for ; Sun, 17 Feb 2019 16:23:51 +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=1FRbC4KBq9NlxOINLiF1L0DdFkb/lpBwYYjcV2eieHE=; b=WVfJ5exM0mV81gJetMn/lbvTOR rLIFpaZN7ZXd3/T0WT/jbErJQO0rovOjytDUnvCduLjivktG8aLkI4KXleNnuLFpbarcGPXfGrRXu VTjprwiC4hCNqOCF55RDng4zI+ZTwNDFiD8qF+6nCVRzmkIbE2q0BMZMbJ0sneHx+DmguL2gyXDxK b/dI3GbpSemhd4X/yv4UZGXyqUbRjBMvdfivE8W0e9k1IsPHqFVHywp254K/ghGDGquMyJoGqdL2h wubMa/0RQT5cfsxxOoy8AfokhWb/KjGWNE/mlogPTRKQepYoegNmqLdG6rLlp6nRAcAcp+zoksyaP Ze6F0xEA==; 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 1gvPEL-0002Wp-8x; Sun, 17 Feb 2019 16:23:49 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gvPE7-0002DU-4u for linux-arm-kernel@lists.infradead.org; Sun, 17 Feb 2019 16:23:37 +0000 Received: by mail-pl1-x643.google.com with SMTP id y10so7513719plp.0 for ; Sun, 17 Feb 2019 08:23:34 -0800 (PST) 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=l0Z1b8BC2pttHCDOIu6v+lf74XsTzc0qioBaG3nshfk=; b=H1RNXBQyWwvUvFimsnQaKsApwBgZZRoA48sVue+RJ/bohxA/tPVw/7Wu68+shB4ytR IkztkblLHEI3PV0Qm7JY+0kMgUz4Wc0N0PH0HfJjF8yDSxyFg2ZVl845X4H2iFyTSfZO ZUOs9+EYZJJ1eASZQW+LE2Zy7RmHZpzQ2VsrbHOnk/5XPD347SuQ7QG3MDrXgPmaIqeP 2yulNvyME88OSBPdqtVcqhHW9WiUUBqS6J1AiNLaAdEF/8cVf1LJH79Ihiai3xD+MP2L PZ54teH89F+2KnLwrp28Pi58fZRGTn4DS+TPK/q0n0F05VbnsfOM3D7YQG+UFMlTkbxr A68g== 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=l0Z1b8BC2pttHCDOIu6v+lf74XsTzc0qioBaG3nshfk=; b=Fc56SvPhoCuJO0QtdyIWVXpGLfN3FK4kELxwkeHrMvmg74lcwNfOzvCe3X1lEiaQSX xS4Zm/fQ64VWa1lIt97VY735lHqlBeSYmuWpYQ9chcss2rSqGWfAJC0M6/3smIkVFjnz XBbDidoAe3EoiPp2W4OoXgRdTMJGDDOk+/S6A0qtzGVNXceL477E8llS8/Nw2V4W/iQG +noOoqxSbQ4WIw2f1N4I2+Eq0hOrU9VZlSDRd73OtgXe4Hky1efhxOG+QPh+SWiwhblc sEzLtK+WJ/wMSLbM2FzNXaAChn8gIk8C7Jv5WYNzsK8i76xgCJIyYm5cVGJK254bsO00 4E0A== X-Gm-Message-State: AHQUAuabn7D6LZbRi+LI0CGlKnfsoKcmRlj+6YwkgNYRmN/iIDd55aY5 /0BYTP4za2MDMWwdzM+TF7U= X-Google-Smtp-Source: AHgI3IatCozi52BBjxYj9wpcWegsHycTPpd+H3xV8EpBNaBUTb92zGixVALQES0YRocPtZTjcjg/fg== X-Received: by 2002:a17:902:2aa8:: with SMTP id j37mr19969310plb.226.1550420614357; Sun, 17 Feb 2019 08:23:34 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id x11sm12541697pgp.88.2019.02.17.08.23.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Feb 2019 08:23:33 -0800 (PST) From: Yangtao Li To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH 2/5] nvmem: sunxi-sid: add support for H5's SID controller Date: Sun, 17 Feb 2019 11:23:13 -0500 Message-Id: <20190217162316.14111-3-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190217162316.14111-1-tiny.windzz@gmail.com> References: <20190217162316.14111-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190217_082335_381817_34D6E06F X-CRM114-Status: GOOD ( 11.97 ) 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 H5's SID controller. Signed-off-by: Yangtao Li --- 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 570a2e354f30..036029e90921 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -219,11 +219,17 @@ static const struct sunxi_sid_cfg sun50i_a64_cfg = { .size = 0x100, }; +static const struct sunxi_sid_cfg sun50i_h5_cfg = { + .value_offset = 0x200, + .size = 0x100, +}; + 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-h3-sid", .data = &sun8i_h3_cfg }, { .compatible = "allwinner,sun50i-a64-sid", .data = &sun50i_a64_cfg }, + { .compatible = "allwinner,sun50i-h5-sid", .data = &sun50i_h5_cfg }, {/* sentinel */}, }; MODULE_DEVICE_TABLE(of, sunxi_sid_of_match); From patchwork Sun Feb 17 16:23:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10817161 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 CA71D139A for ; Sun, 17 Feb 2019 16:24:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B81D528685 for ; Sun, 17 Feb 2019 16:24:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC99F2A30C; Sun, 17 Feb 2019 16:24:14 +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 629B428685 for ; Sun, 17 Feb 2019 16:24:14 +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=1306JkzmNSMUK7u7UEyC+LqQSVm2wQVGcGNpguF7VoY=; b=mMPxW38LCmBkm2NmXJ0K9joU1q leCSir/8C4nqNsSo5g1wt4aakSJEtLx8E2e8bTaRWw8bVNRRS4WIVbJJTQcle03uPovsG/Fsx+rXl XSW8cxgSmy0u3lYWnS+yOV7SuRFDK2e8edEGOJ+bZ4onjFBngx/7LhVBmPqgMDunar+bmiKbKd9jl YP5Vy1ppxgkbTy+itoGqyVmgpGyDU53pp6epbd9V2AE6OOhKGYCF0NAPKymjOuNP/kb+b2PBJHBRd cUBuYee5X6mD/SMazS3X1aACi3fExnRhFdoYN3ncsNm3kPtvcWMCCC8hYtrSbXhaR1HcQrKL+xHNv ZQmg338w==; 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 1gvPEj-0002xs-Ny; Sun, 17 Feb 2019 16:24:13 +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 1gvPEG-0002NP-Ca for linux-arm-kernel@lists.infradead.org; Sun, 17 Feb 2019 16:23:48 +0000 Received: by mail-pg1-x543.google.com with SMTP id y1so7196701pgk.11 for ; Sun, 17 Feb 2019 08:23:42 -0800 (PST) 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=v77WHuWVJ9n6wbtheA1rJs8RZVqdPCnng0NLiMUvMxQ=; b=tlSweSvVXkKcOP8R5lzLVzGKM9lPcWBl5axNcBu6LnPg6MmMyRXcezAGVKX3um7oul e1Bai21qB/EpeOV6kAKFRr505Qf+Zb8KxGGsKsrGllrJxoqe9gzWkOVuLAtjlYt4DIZc Hh9MjWa/WSYDAZREa2j70rohw1ai7ifDqxtonhbIitr2ypxMbqBOua7eZe9TqDMyDZug nAahWYq31pMHSd3BnquRY2BxfDGwCKbin4TQzzj87xMSsHJDtJwOt/QqGCvr5o92bz29 WBNqPLUuyBMXet/XDRqDGm4IeS8blwEszu3xgwYNlyYKAVJASvYMKNAIFTtwC3Mi/SrO amYw== 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=v77WHuWVJ9n6wbtheA1rJs8RZVqdPCnng0NLiMUvMxQ=; b=I36RxxTyu7JbP3c4iDhTRDnAZJvhTFNryCfocbvwNJyyVvFuxy0rK42++jDe6anzZM wMTroictUzJc53S8SSxszdgn6+n9dmTpFFTsEGXNnW3v8WrdvYlFl+Ax7D3cWxCibbi8 L0yxJ7RGFp3ARm3SLulDgU2bQXp8H0mQ1Qr+vJVfBXAw8j1SeJodvhRMe7EHdNZjQI1x yxMqWwqaQ+6Wy2abCc8+Weq4i70P1PfA/qujciE7ENUGCo1uH/F7iX77bBzpOeu/R0to SHb5/z/LWPGVJlnorvHTCgQyXeLcdlsEHk/7YnOEEgAPofApcQ/7Sqk4eYEk3L12vHzA HwWA== X-Gm-Message-State: AHQUAuaKPEGjbbZcU5EYcTN4+Tsh6rKaEtoo+WAt3sZ6frm+AjZzrDDa ewx3eVKd5nBLeaOeeYhftLA= X-Google-Smtp-Source: AHgI3Ib6zA9gcfCmqIwqd3zxgOlw4olUhTSpcqMgWWdRR+1C5plksRvth5wOy7EXDl7l17ylLEphbg== X-Received: by 2002:a62:8a57:: with SMTP id y84mr19714966pfd.197.1550420622343; Sun, 17 Feb 2019 08:23:42 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id b26sm17874576pfe.91.2019.02.17.08.23.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Feb 2019 08:23:41 -0800 (PST) From: Yangtao Li To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH 3/5] nvmem: sunxi-sid: add binding for H6's SID controller Date: Sun, 17 Feb 2019 11:23:14 -0500 Message-Id: <20190217162316.14111-4-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190217162316.14111-1-tiny.windzz@gmail.com> References: <20190217162316.14111-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190217_082344_774435_2E8057D5 X-CRM114-Status: GOOD ( 11.54 ) 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 a binding for H6's SID controller. Signed-off-by: Yangtao Li Acked-by: Maxime Ripard Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt index d37017e343b1..cfb18b4ef8f7 100644 --- a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt @@ -8,6 +8,7 @@ Required properties: "allwinner,sun8i-h3-sid" "allwinner,sun50i-a64-sid" "allwinner,sun50i-h5-sid" + "allwinner,sun50i-h6-sid" - reg: Should contain registers location and length From patchwork Sun Feb 17 16:23:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10817163 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 880F813A4 for ; Sun, 17 Feb 2019 16:24:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7573B28685 for ; Sun, 17 Feb 2019 16:24:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6992C2A30C; Sun, 17 Feb 2019 16:24:33 +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 24A7A28685 for ; Sun, 17 Feb 2019 16:24:33 +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=mcjmYblUaiGUcWX1Fi0LjA8ck6I7nv670cg0ND+3B5o=; b=lKgy90puru+C0Lz+y07cFQ2QcL 0O4A58DAtInEukwZUNz4R0JUVMutVohH3p452NKVnJrQd2JfwcuZrJrMH4RTGk/DmLNbcWAw+sQnq UcesaIYM/TtnZOuxKY/umg5mWtEjv/tjfZY0ZzgwBn63DgZLggNUdx94tb85O0XcfjlqBlaMIEw3u 4+gUxlqEfWBT6VUC/DR+Hg6ZH4arU3iZlRMXEmNyv9pD3By4029dV1l/gHqJGM2noQwSFLnC7lBvD oUpgdgY+o3TdUjPoMGBG+/iJlg/rUiEvU5x0A9VYlgP+QjUKm3oSWKLFXPkAZTi1l6EcDzDlX3deO omRV9aNA==; 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 1gvPEt-00038e-9O; Sun, 17 Feb 2019 16:24:23 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gvPEJ-0002V4-ER for linux-arm-kernel@lists.infradead.org; Sun, 17 Feb 2019 16:23:52 +0000 Received: by mail-pl1-x643.google.com with SMTP id e5so7493102plb.5 for ; Sun, 17 Feb 2019 08:23:47 -0800 (PST) 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=bohSFX1l++RtGX/SzC4HgfDL1CVVoHjCGwPOHLnV08I=; b=FdyNqe7Zqiv7AeFHDpDUYcffaOGYduDvgb0wLI6n1R/tuQJy2GysI0crXRY7Gywwre yHguCo6IucwQTPIuTBFtew41UjCFZwgvoWyQtzZPeEM7eZYnloaHu4m1OaX2q9cTXKed xXLaDaZ7KPo2GenVRx4jlGw0ucQM7A/warcTvfl1eGrjWbmPqC7ds1kz4VvYy1Yvb4XA BZG8LkENFKm7VD4XpxjLnc2JLn/j08cQqj0JZXaTnPh+JvDhC1+TznBdlTtxupzFHaYU gpOSSV38EjmIWqDclIifY01MUTO8FNtWN6bl1jKNIEkkD3mRJRKxSJT7FPjWmLNrz1wn idIA== 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=bohSFX1l++RtGX/SzC4HgfDL1CVVoHjCGwPOHLnV08I=; b=E2Jc2M4Bu49f+a5xuaSe0hJujkbfz8zzvaYIy0nvWxvw19jjAVh2iNa5XTUAOtqco2 X5O8ykzYBV4YkvdBOZip6/ao5dyvyRpeY7sbxWtmLnuUBxCtYx07a5fFjdcHmydchk2I kFKCev0gT1EbCHOiPukXT1lysyipWtMCfI8+yTjWdu42LJtjrcOtCl0ScTU6T0TlvLJt b1vh/BxqXYCDtGEM35GU26y/zkKKLtECdgqhIz230+qqlflh28ZqnNCTkjr59n5tZeL/ 8JHjtnuTIijZiUJKlQjl8tm77+Au0kgAHkQg8cscNNxtQ2AUivbkkU5TK7N627h7LD1g kw5A== X-Gm-Message-State: AHQUAuZTWQ9ItRx7aRfMZQvpwOPQemoeKdC9q+8vAbXPLAd5MY25ZxKc WqMkNcOfsH3Njn5w9zDbqRI= X-Google-Smtp-Source: AHgI3IbvkHI8z7+rkzYw+0QcRf3Wx+2QccS2MFjpth5+eOo6amuKe3CqaP0bHv6NTmlJ/1j7JVjx5g== X-Received: by 2002:a17:902:7b85:: with SMTP id w5mr16073456pll.288.1550420627046; Sun, 17 Feb 2019 08:23:47 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id 27sm13317054pgn.56.2019.02.17.08.23.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Feb 2019 08:23:46 -0800 (PST) From: Yangtao Li To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH 4/5] nvmem: sunxi-sid: add support for H6's SID controller Date: Sun, 17 Feb 2019 11:23:15 -0500 Message-Id: <20190217162316.14111-5-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190217162316.14111-1-tiny.windzz@gmail.com> References: <20190217162316.14111-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190217_082347_910513_C2AE762E X-CRM114-Status: GOOD ( 11.97 ) 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 --- 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 036029e90921..8692b58d76ce 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -224,12 +224,18 @@ static const struct sunxi_sid_cfg sun50i_h5_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 }, { .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_h5_cfg }, + { .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg }, {/* sentinel */}, }; MODULE_DEVICE_TABLE(of, sunxi_sid_of_match); From patchwork Sun Feb 17 16:23:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10817165 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 6118E922 for ; Sun, 17 Feb 2019 16:24:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F1B928685 for ; Sun, 17 Feb 2019 16:24:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4383B2A30C; Sun, 17 Feb 2019 16:24:37 +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 1CDA228685 for ; Sun, 17 Feb 2019 16:24:36 +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=/xtnLJOmLSRzlKNwi4yCwLh9RirEtqpxI2NVDgW/ovY=; b=EtP5mcafDkvX3Qg5kpoDbhqL7f i9gw4LzjYk18RCxmb8sifjJDlMpFWqM1CSwf192ZjKhGGlu6hCnCxAVzi+cJsSqgZk8ClykY50/oV wbcDwMOXgZui84H7hfwbp8uZyrIrMcBaDu+7woYwKuHyTbmiU6Q02zlzyKGIvmBZiii9lw5Aw1lqS 1SXWUTu+WKXwgfGbJClLjA4lRKjkD6g1SWei3CAaQrdjw+l/CTITNMOdI1BnvvOFp+a7VP3qDxWOd uu2M5UVzt2hza1d9l6JV1oY3JyHGcgjSuoemLPrNLreyL69Uo9zmgteoskCl8ymVEEcdHe2Jna0XV uVF0IKrg==; 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 1gvPF4-0003N0-0B; Sun, 17 Feb 2019 16:24:34 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gvPEN-0002aF-0V for linux-arm-kernel@lists.infradead.org; Sun, 17 Feb 2019 16:23:59 +0000 Received: by mail-pl1-x643.google.com with SMTP id r14so7480332pls.12 for ; Sun, 17 Feb 2019 08:23:50 -0800 (PST) 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=TmLBhkcwf93Bo4/fPKHDPdkbWpR65IQ7m7Ea6pG7oSE=; b=lv7C30IaiATp0u5N16KjreOaS2GcPSSYdyWlSvAY+yYDY0gFvHcS9MSRU5W+7pbHaQ vOVpYgfkeMGo4n2WCfVAaqcMtYeSIiiykov4/aITxWy31kc0cvVTGl2VEE1+h1M71k72 Gkajh+LDUbL/xpEB+gnghnTprn3v/ccxe4XIKhjpYYQJRPt0h8toyL11kKeA34+bDnum 52wL4AibfdBlpgo+8jn/jDF8L6xQskiJywOsuuvJNIUs/5g6cA8eaXXFmRAA5BM8h1nW aco/sZ5zQYzdqh1o1pWqO/ZcMs29yGBy4hmzjXxzqQ0pD4Wt4TrtDtihcAtZPaVpc8mv T0ug== 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=TmLBhkcwf93Bo4/fPKHDPdkbWpR65IQ7m7Ea6pG7oSE=; b=m1nvpCEhzUDY2forP/I8wi0S+bS7twVtokkgtETEyzoShlkLavhz+0HoxnahZ7BwYW dRYsidvpSkiaOL8m6nXk37KuuRJ93atuNHJdt/TCQgNmBa0V0RvsXdacEeXuIyoAPyba dzBOHjzIvmvkvMs39OnSrwEWCMbWts4IcT9ZbE9l9GWfxlA/fUwxroR7WU9ppz8Q6KuV Zh+/p6pqdSaf1l+XuPOX+j095N1RrmaqN+jBUoBvt9J/uvLWpCF582+RupDw44UZAspr PUoGVjeQ5vbwASfA32aeIwVxpdkDLoSdFFdUuJYCoJ3SPd7M9MGbmw12cQzSTXnblnVm jMwg== X-Gm-Message-State: AHQUAuaXttbALlYWwWcAH/0ixtxCq+b5988kXQDED3fachFLogbJVQbw wmHSp9QSJAJm38PHI5t7WwiL9pkd9ec= X-Google-Smtp-Source: AHgI3Ibsn22Xygm1ibYW5QODahFc//NMQiQJ1c5JMNPNaSKAUDCDzxZXG3dWNqGc3/QgAlru5bkYvg== X-Received: by 2002:a17:902:2468:: with SMTP id m37mr20776467plg.314.1550420630579; Sun, 17 Feb 2019 08:23:50 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id q21sm32884737pfq.138.2019.02.17.08.23.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Feb 2019 08:23:49 -0800 (PST) From: Yangtao Li To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH 5/5] nvmem: sunxi-sid: convert to SPDX license tags Date: Sun, 17 Feb 2019 11:23:16 -0500 Message-Id: <20190217162316.14111-6-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190217162316.14111-1-tiny.windzz@gmail.com> References: <20190217162316.14111-1-tiny.windzz@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190217_082351_830774_F744E661 X-CRM114-Status: GOOD ( 13.27 ) 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 Updates license to use SPDX-License-Identifier. Signed-off-by: Yangtao Li Acked-by: Maxime Ripard --- drivers/nvmem/sunxi_sid.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index 8692b58d76ce..f56c9f713cb4 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -1,18 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Allwinner sunXi SoCs Security ID support. * * Copyright (c) 2013 Oliver Schinagl * Copyright (C) 2014 Maxime Ripard - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. */ #include