From patchwork Wed May 6 10:36:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11531007 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3603081 for ; Wed, 6 May 2020 10:36:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B51F20663 for ; Wed, 6 May 2020 10:36:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sY+tPXzF"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gdwOuImm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B51F20663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=A12J0Zj7IxXPtyIgZcy/y/3yUtq3PBFn4P0sHNznRBk=; b=sY+tPXzFuB/SfhMTKcnUQFKyah q9q2TPtQiyId5yrHj5y2hjr+acKQ83+xWmDwsR64Gdu+s9H72A4UZ4J/TzaZrZM7/k8V2PPIPjvuE WBdAb6BA/ufm61LfJWdis1Dk9eqZxjSDpcd4ZeR76CN796BpzfWyH9g8VxrF43Vn6l4812YbWccfE UVnaVElD/Vlp/AuHzkWILrELx42PSdXOPYtXrymgomfQIzEsN2lDB+5nO+4atp5LHpbxUafq13KJy W+FJZNrDoaxfRiO40RhnTdp/FIrUzSj3h6LsReI+0bAHk1q+a99SXZogSPt2MUoZQdkp/ae6AQ3sK F6VCmz5Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHPu-0005rV-H8; Wed, 06 May 2020 10:36:42 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHPl-0005hg-U1; Wed, 06 May 2020 10:36:35 +0000 Received: by mail-pf1-x444.google.com with SMTP id z1so784040pfn.3; Wed, 06 May 2020 03:36:33 -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=HFpcgU1nGmiRP0+54g0zuPXHEdqiV8xYolaZNPO82Ng=; b=gdwOuImmAqQhFu+Ap1qpg9CgRhvTdqd/DKQasuVCGHpKGQL2agS9/BljsLhHgAFAW6 F04PfPExlmMsiBbA2JW+Wc1HgXj6fcaNfzZGe81Fu81wo9162cIo7V/tmRaPx9+GNhZ0 3qAysfD5vtYLU5+txOoFM/J9nhdjyurnXooFJmt4aixnOF7ErpL73hcm2lV7w0u5WZVu Nxv+iR4aNwesRYz6VO2poZJQ8g/Qt+h2XfLsnhYuNqC6IbbbdfC1wZRT9pNHvGibtA0B /4yBJe5NRDBC5zCo5NiN7KlvUK0nTYI8WbQWlWhAUaDVLG4MDJOVeMviJcVSXhdeD2oP kmBg== 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=HFpcgU1nGmiRP0+54g0zuPXHEdqiV8xYolaZNPO82Ng=; b=XmKqpBFl6qrS4cpeZoJA5OpZPZ1wZEENCjpsMBN6VXDOE4WGEmQ9Y8/5czM7sgILcq ofiHFHCAKPEFXFYfu86GAo8EjRFv9mSsmYxHaXnlLMJZgM5ch4ux99JB3vVO1vGk+3tN DxC4ohEt6VeFaKYmSzqUFU4t6DrFLSQqDejKZy9EjmQ92axG5MLv3m7ILYPMj2j2aHqR tGa0s1Qz9VqUTy7t+Pyyml6WLv/O7DvBXJ8QYYkI+249j6oC1Chrp/Y6pIi7twmT/yaZ tzqDhiw5EpI+dmscI3h1U/Do324IOd73XmbU025q0+9VS2lHSZX9UkfFfsOsdyjuNysA Kolg== X-Gm-Message-State: AGi0PuYebr4P4mNIbmuBHoW9ytNWnS1bhW9f+mlLIv3tw4HRL+LBy8C5 kM9LmUfe4jdMuzSViziZFv4= X-Google-Smtp-Source: APiQypKSMIfjxq6/2Pq+wXux9SSxrE+CSejlhakPh5O4JUlKSdHhyEdkmr4DKcGweqHN2a3ACFaCDg== X-Received: by 2002:a63:1d54:: with SMTP id d20mr6576617pgm.286.1588761393159; Wed, 06 May 2020 03:36:33 -0700 (PDT) Received: from localhost.localdomain ([106.215.43.48]) by smtp.gmail.com with ESMTPSA id i72sm1601582pfe.104.2020.05.06.03.36.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2020 03:36:32 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, vkoul@kernel.org, afaerber@suse.de, manivannan.sadhasivam@linaro.org Subject: [PATCH RFC 1/8] dmaengine: Actions: get rid of bit fields from dma descriptor Date: Wed, 6 May 2020 16:06:03 +0530 Message-Id: <1588761371-9078-2-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> References: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_033634_072056_4986A712 X-CRM114-Status: GOOD ( 16.97 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, dan.j.williams@intel.com, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org At the moment, Driver uses bit fields to describe registers of the DMA descriptor structure that makes it less portable and maintainable, and Andre suugested(and even sketched important bits for it) to make use of array to describe this DMA descriptors instead. It gives the flexibility while extending support for other platform such as Actions S700. This commit removes the "owl_dma_lli_hw" (that includes bit-fields) and uses array to describe DMA descriptor. Suggested-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- drivers/dma/owl-dma.c | 77 ++++++++++++++++++++++----------------------------- 1 file changed, 33 insertions(+), 44 deletions(-) diff --git a/drivers/dma/owl-dma.c b/drivers/dma/owl-dma.c index c683051257fd..b0d80a2fa383 100644 --- a/drivers/dma/owl-dma.c +++ b/drivers/dma/owl-dma.c @@ -120,30 +120,18 @@ #define BIT_FIELD(val, width, shift, newshift) \ ((((val) >> (shift)) & ((BIT(width)) - 1)) << (newshift)) -/** - * struct owl_dma_lli_hw - Hardware link list for dma transfer - * @next_lli: physical address of the next link list - * @saddr: source physical address - * @daddr: destination physical address - * @flen: frame length - * @fcnt: frame count - * @src_stride: source stride - * @dst_stride: destination stride - * @ctrla: dma_mode and linklist ctrl config - * @ctrlb: interrupt config - * @const_num: data for constant fill - */ -struct owl_dma_lli_hw { - u32 next_lli; - u32 saddr; - u32 daddr; - u32 flen:20; - u32 fcnt:12; - u32 src_stride; - u32 dst_stride; - u32 ctrla; - u32 ctrlb; - u32 const_num; +/* Describe DMA descriptor, hardware link list for dma transfer */ +enum owl_dmadesc_offsets { + OWL_DMADESC_NEXT_LLI = 0, + OWL_DMADESC_SADDR, + OWL_DMADESC_DADDR, + OWL_DMADESC_FLEN, + OWL_DMADESC_SRC_STRIDE, + OWL_DMADESC_DST_STRIDE, + OWL_DMADESC_CTRLA, + OWL_DMADESC_CTRLB, + OWL_DMADESC_CONST_NUM, + OWL_DMADESC_SIZE }; /** @@ -153,7 +141,7 @@ struct owl_dma_lli_hw { * @node: node for txd's lli_list */ struct owl_dma_lli { - struct owl_dma_lli_hw hw; + u32 hw[OWL_DMADESC_SIZE]; dma_addr_t phys; struct list_head node; }; @@ -351,8 +339,9 @@ static struct owl_dma_lli *owl_dma_add_lli(struct owl_dma_txd *txd, list_add_tail(&next->node, &txd->lli_list); if (prev) { - prev->hw.next_lli = next->phys; - prev->hw.ctrla |= llc_hw_ctrla(OWL_DMA_MODE_LME, 0); + prev->hw[OWL_DMADESC_NEXT_LLI] = next->phys; + prev->hw[OWL_DMADESC_CTRLA] |= + llc_hw_ctrla(OWL_DMA_MODE_LME, 0); } return next; @@ -365,8 +354,7 @@ static inline int owl_dma_cfg_lli(struct owl_dma_vchan *vchan, struct dma_slave_config *sconfig, bool is_cyclic) { - struct owl_dma_lli_hw *hw = &lli->hw; - u32 mode; + u32 mode, ctrlb; mode = OWL_DMA_MODE_PW(0); @@ -407,22 +395,22 @@ static inline int owl_dma_cfg_lli(struct owl_dma_vchan *vchan, return -EINVAL; } - hw->next_lli = 0; /* One link list by default */ - hw->saddr = src; - hw->daddr = dst; - - hw->fcnt = 1; /* Frame count fixed as 1 */ - hw->flen = len; /* Max frame length is 1MB */ - hw->src_stride = 0; - hw->dst_stride = 0; - hw->ctrla = llc_hw_ctrla(mode, - OWL_DMA_LLC_SAV_LOAD_NEXT | - OWL_DMA_LLC_DAV_LOAD_NEXT); + lli->hw[OWL_DMADESC_CTRLA] = llc_hw_ctrla(mode, + OWL_DMA_LLC_SAV_LOAD_NEXT | + OWL_DMA_LLC_DAV_LOAD_NEXT); if (is_cyclic) - hw->ctrlb = llc_hw_ctrlb(OWL_DMA_INTCTL_BLOCK); + ctrlb = llc_hw_ctrlb(OWL_DMA_INTCTL_BLOCK); else - hw->ctrlb = llc_hw_ctrlb(OWL_DMA_INTCTL_SUPER_BLOCK); + ctrlb = llc_hw_ctrlb(OWL_DMA_INTCTL_SUPER_BLOCK); + + lli->hw[OWL_DMADESC_NEXT_LLI] = 0; + lli->hw[OWL_DMADESC_SADDR] = src; + lli->hw[OWL_DMADESC_DADDR] = dst; + lli->hw[OWL_DMADESC_SRC_STRIDE] = 0; + lli->hw[OWL_DMADESC_DST_STRIDE] = 0; + lli->hw[OWL_DMADESC_FLEN] = len | 1 << 20; + lli->hw[OWL_DMADESC_CTRLB] = ctrlb; return 0; } @@ -754,7 +742,8 @@ static u32 owl_dma_getbytes_chan(struct owl_dma_vchan *vchan) /* Start from the next active node */ if (lli->phys == next_lli_phy) { list_for_each_entry(lli, &txd->lli_list, node) - bytes += lli->hw.flen; + bytes += lli->hw[OWL_DMADESC_FLEN] & + GENMASK(19, 0); break; } } @@ -785,7 +774,7 @@ static enum dma_status owl_dma_tx_status(struct dma_chan *chan, if (vd) { txd = to_owl_txd(&vd->tx); list_for_each_entry(lli, &txd->lli_list, node) - bytes += lli->hw.flen; + bytes += lli->hw[OWL_DMADESC_FLEN] & GENMASK(19, 0); } else { bytes = owl_dma_getbytes_chan(vchan); } From patchwork Wed May 6 10:36:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11531009 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D341881 for ; Wed, 6 May 2020 10:37:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B11FC20663 for ; Wed, 6 May 2020 10:37:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cbQfSrvP"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Juk8aX+/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B11FC20663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=CrebhPWl+9f3vt/tY6WwtgoEkxAC+FI91lj2AI7HS+E=; b=cbQfSrvPmTd0ZsoIht0W8tUkdb m8utRzH827p+S6AeL7M3JIta40uHQoeXMCX43KAh5W8WveJhTsW9nXgsgbZgLccC0s2RYOLi0EXRC msdDNSxdE24y8IuwvTdPkh6fesaXr2naEYYbb79Xc/4ZxCsqFxioxrlXq/6aBBcFMXf9OO7FKl76+ W54fEAoXgh52QUwfe2jAsLLA46tNnWAexZ/pLo7U5v1dktMRjRQqCeqyzuzbkRvJoZIgWxbEP8p/5 oUHJgm11GhfcZQEklhMOUFey3jOKgY5A/GioMWEH9Ipk9py1ZfGPHsbSjDuxd2Vc0GkzoahjCsXHC F+siyhNw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHQE-0006A1-9G; Wed, 06 May 2020 10:37:02 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHPr-0005mg-Mp; Wed, 06 May 2020 10:36:41 +0000 Received: by mail-pj1-x1043.google.com with SMTP id a5so667647pjh.2; Wed, 06 May 2020 03:36:38 -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=thaTuz023J24mmfYx9WFuNUVR4uqDSDs4hd6xiMs2HQ=; b=Juk8aX+/Z6K3rUR9tShvSf8QO/59KmTN6rxhKB9Mt4roYZzLAXhkMmBse1u1uy3wZ6 gO067Y5vaMP4NzmZLRT7RmHI90eBWk5MWMP0MSO/95TSkr0AuE5y2EtBsHVGLQZY2PHc IGVSWhhtgGZFi/GZzLsTjBkeJBD8AFb/6kxSQ4gi2eX0C0xkDgpof43hu+ce1jZaIFUP +asKdgFD7Invze3lbGALkogLgrEY5LNYsAVh40x/YNlhuiYkvt7RVlzhKbODkyBpRYNr LSA++b17xQQ47DHfvQmKRy2iXyM5w3z+CVBXPrOe9BUjnMLpmLPit523/sXEYoUybQDa eTIw== 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=thaTuz023J24mmfYx9WFuNUVR4uqDSDs4hd6xiMs2HQ=; b=eP8YBfrnCE4gXSmLmHMk7+KWu9/aVZYBwytFQ3oBTuElaYiJeBmuryuCX2CStXL7Xm QB1UutTRC4+xJlIyhn2O+XvjJ9/fLsrY3HorZWXMcqYZLj9De+XuRxwTtWoX7YOQItMx ZsS41dZgshABy16KUjs6ddFsTEdFudYPr7mmKNPmL3uqjLpSETLQxlUyQszVK22Tfr50 71EDshqgbZq+t0m2SLVO3cdOy8M4vGReRvISNS4YxDFvxlwoaluVgnMa+yXU+JB/Bqyk pA0n/PS6uuaiVDTEbJsLAGWkw2Gg4GSzjSZhnz6FfHaVKNQfj7Ne06NeqNklDlzX/vna k+ww== X-Gm-Message-State: AGi0PubMVtgqBTkyIhYiBkw6U0UKcf/4ywHWpNjcS1BNy0sNwI2t9L6V NpEbF/ZBk1Fmzn4Fr3kDGzg= X-Google-Smtp-Source: APiQypIYqg3kBltw6m7Zi9HbaL4qr5KxUh+1Z/pssRv1XSrG6qmz4S7b5jJZQF5wtZ3ECdo0GdkPWQ== X-Received: by 2002:a17:90a:d56:: with SMTP id 22mr8227363pju.187.1588761397235; Wed, 06 May 2020 03:36:37 -0700 (PDT) Received: from localhost.localdomain ([106.215.43.48]) by smtp.gmail.com with ESMTPSA id i72sm1601582pfe.104.2020.05.06.03.36.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2020 03:36:36 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, vkoul@kernel.org, afaerber@suse.de, manivannan.sadhasivam@linaro.org Subject: [PATCH RFC 2/8] dmaengine: Actions: Add support for S700 DMA engine Date: Wed, 6 May 2020 16:06:04 +0530 Message-Id: <1588761371-9078-3-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> References: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_033639_753082_0423B8EF X-CRM114-Status: GOOD ( 19.54 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1043 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, dan.j.williams@intel.com, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DMA controller present on S700 SoC is compatible with the one on S900 (as most of registers are same), but it has different DMA descriptor structure where registers "fcnt" and "ctrlb" uses different encoding. For instance, on S900 "fcnt" starts at offset 0x0c and uses upper 12 bits whereas on S700, it starts at offset 0x1c and uses lower 12 bits. This commit adds support for DMA controller present on S700. Signed-off-by: Amit Singh Tomar --- drivers/dma/owl-dma.c | 99 ++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 70 insertions(+), 29 deletions(-) diff --git a/drivers/dma/owl-dma.c b/drivers/dma/owl-dma.c index b0d80a2fa383..6c2f0d0aad4c 100644 --- a/drivers/dma/owl-dma.c +++ b/drivers/dma/owl-dma.c @@ -134,6 +134,11 @@ enum owl_dmadesc_offsets { OWL_DMADESC_SIZE }; +enum owl_dma_id { + S900_DMA, + S700_DMA, +}; + /** * struct owl_dma_lli - Link list for dma transfer * @hw: hardware link list @@ -200,6 +205,7 @@ struct owl_dma_vchan { * @pchans: array of data for the physical channels * @nr_vchans: the number of physical channels * @vchans: array of data for the physical channels + * @devid: device id based on OWL SoC */ struct owl_dma { struct dma_device dma; @@ -214,6 +220,7 @@ struct owl_dma { unsigned int nr_vchans; struct owl_dma_vchan *vchans; + enum owl_dma_id devid; }; static void pchan_update(struct owl_dma_pchan *pchan, u32 reg, @@ -354,6 +361,7 @@ static inline int owl_dma_cfg_lli(struct owl_dma_vchan *vchan, struct dma_slave_config *sconfig, bool is_cyclic) { + struct owl_dma *od = to_owl_dma(vchan->vc.chan.device); u32 mode, ctrlb; mode = OWL_DMA_MODE_PW(0); @@ -409,8 +417,14 @@ static inline int owl_dma_cfg_lli(struct owl_dma_vchan *vchan, lli->hw[OWL_DMADESC_DADDR] = dst; lli->hw[OWL_DMADESC_SRC_STRIDE] = 0; lli->hw[OWL_DMADESC_DST_STRIDE] = 0; - lli->hw[OWL_DMADESC_FLEN] = len | 1 << 20; - lli->hw[OWL_DMADESC_CTRLB] = ctrlb; + + if (od->devid == S700_DMA) { + lli->hw[OWL_DMADESC_FLEN] = len; + lli->hw[OWL_DMADESC_CTRLB] = 1 | ctrlb; + } else { + lli->hw[OWL_DMADESC_FLEN] = len | 1 << 20; + lli->hw[OWL_DMADESC_CTRLB] = ctrlb; + } return 0; } @@ -562,26 +576,35 @@ static irqreturn_t owl_dma_interrupt(int irq, void *dev_id) dma_writel(od, OWL_DMA_IRQ_PD0, pending); /* Check missed pending IRQ */ - for (i = 0; i < od->nr_pchans; i++) { - pchan = &od->pchans[i]; - chan_irq_pending = pchan_readl(pchan, OWL_DMAX_INT_CTL) & - pchan_readl(pchan, OWL_DMAX_INT_STATUS); - - /* Dummy read to ensure OWL_DMA_IRQ_PD0 value is updated */ - dma_readl(od, OWL_DMA_IRQ_PD0); + if (od->devid == S900_DMA) { + for (i = 0; i < od->nr_pchans; i++) { + pchan = &od->pchans[i]; + chan_irq_pending = pchan_readl(pchan, + OWL_DMAX_INT_CTL) & + pchan_readl(pchan, + OWL_DMAX_INT_STATUS) + ; + + /* Dummy read to ensure OWL_DMA_IRQ_PD0 value is + * updated + */ + dma_readl(od, OWL_DMA_IRQ_PD0); - global_irq_pending = dma_readl(od, OWL_DMA_IRQ_PD0); + global_irq_pending = dma_readl(od, + OWL_DMA_IRQ_PD0); - if (chan_irq_pending && !(global_irq_pending & BIT(i))) { - dev_dbg(od->dma.dev, - "global and channel IRQ pending match err\n"); + if (chan_irq_pending && !(global_irq_pending & + BIT(i))) { + dev_dbg(od->dma.dev, + "global and channel IRQ pending match err\n"); - /* Clear IRQ status for this pchan */ - pchan_update(pchan, OWL_DMAX_INT_STATUS, - 0xff, false); + /* Clear IRQ status for this pchan */ + pchan_update(pchan, OWL_DMAX_INT_STATUS, + 0xff, false); - /* Update global IRQ pending */ - pending |= BIT(i); + /* Update global IRQ pending */ + pending |= BIT(i); + } } } @@ -720,6 +743,7 @@ static int owl_dma_resume(struct dma_chan *chan) static u32 owl_dma_getbytes_chan(struct owl_dma_vchan *vchan) { + struct owl_dma *od = to_owl_dma(vchan->vc.chan.device); struct owl_dma_pchan *pchan; struct owl_dma_txd *txd; struct owl_dma_lli *lli; @@ -741,9 +765,15 @@ static u32 owl_dma_getbytes_chan(struct owl_dma_vchan *vchan) list_for_each_entry(lli, &txd->lli_list, node) { /* Start from the next active node */ if (lli->phys == next_lli_phy) { - list_for_each_entry(lli, &txd->lli_list, node) - bytes += lli->hw[OWL_DMADESC_FLEN] & - GENMASK(19, 0); + list_for_each_entry(lli, &txd->lli_list, node) { + if (od->devid == S700_DMA) + bytes += + lli->hw[OWL_DMADESC_FLEN]; + else + bytes += + lli->hw[OWL_DMADESC_FLEN] & + GENMASK(19, 0); + } break; } } @@ -756,6 +786,7 @@ static enum dma_status owl_dma_tx_status(struct dma_chan *chan, dma_cookie_t cookie, struct dma_tx_state *state) { + struct owl_dma *od = to_owl_dma(chan->device); struct owl_dma_vchan *vchan = to_owl_vchan(chan); struct owl_dma_lli *lli; struct virt_dma_desc *vd; @@ -773,8 +804,13 @@ static enum dma_status owl_dma_tx_status(struct dma_chan *chan, vd = vchan_find_desc(&vchan->vc, cookie); if (vd) { txd = to_owl_txd(&vd->tx); - list_for_each_entry(lli, &txd->lli_list, node) - bytes += lli->hw[OWL_DMADESC_FLEN] & GENMASK(19, 0); + list_for_each_entry(lli, &txd->lli_list, node) { + if (od->devid == S700_DMA) + bytes += lli->hw[OWL_DMADESC_FLEN]; + else + bytes += lli->hw[OWL_DMADESC_FLEN] & + GENMASK(19, 0); + } } else { bytes = owl_dma_getbytes_chan(vchan); } @@ -1031,11 +1067,20 @@ static struct dma_chan *owl_dma_of_xlate(struct of_phandle_args *dma_spec, return chan; } +static const struct of_device_id owl_dma_match[] = { + { .compatible = "actions,s900-dma", .data = (void *)S900_DMA,}, + { .compatible = "actions,s700-dma", .data = (void *)S700_DMA,}, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, owl_dma_match); + static int owl_dma_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; struct owl_dma *od; int ret, i, nr_channels, nr_requests; + const struct of_device_id *of_id = + of_match_device(owl_dma_match, &pdev->dev); od = devm_kzalloc(&pdev->dev, sizeof(*od), GFP_KERNEL); if (!od) @@ -1060,6 +1105,8 @@ static int owl_dma_probe(struct platform_device *pdev) dev_info(&pdev->dev, "dma-channels %d, dma-requests %d\n", nr_channels, nr_requests); + od->devid = (enum owl_dma_id)of_id->data; + od->nr_pchans = nr_channels; od->nr_vchans = nr_requests; @@ -1192,12 +1239,6 @@ static int owl_dma_remove(struct platform_device *pdev) return 0; } -static const struct of_device_id owl_dma_match[] = { - { .compatible = "actions,s900-dma", }, - { /* sentinel */ } -}; -MODULE_DEVICE_TABLE(of, owl_dma_match); - static struct platform_driver owl_dma_driver = { .probe = owl_dma_probe, .remove = owl_dma_remove, From patchwork Wed May 6 10:36:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11531011 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1441192A for ; Wed, 6 May 2020 10:37:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E55842070B for ; Wed, 6 May 2020 10:37:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RNZbYlDx"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OrYPcwD+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E55842070B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=Bncl/e7Y8q2cSmMS8oFFNzMXndR7TK50av9XasMVyzs=; b=RNZbYlDxGFUO3e0Xz3PPkH/gPT EYQKd/CPfrArG3/aqyctM1RLaIWhMqnaB8ue/NCwQRPy/9UngFhvdCyVmGqyyUoFu+CcI/cO9VmTr ZjMWEgaDRijv4qc6xWoQMrFXlKlsowfGlkn5R+UJsb+VLuYVVIhfW7q1+IB560d1mNqSTA5teLC5E NrPmb0vG3CMO/9JfJMIElTabN/bcS55iV3iugdhE6UNCn00cBMLP7TtPTUjRaB8pZtG4E5Hukf0Yw r1kk/3PRGgy99jzvczMN9aRJCqUACt3RjQMqHj0ST8ahV3ORWsryp38L3EzqMYKQ5ott06RNzWP4F dYn+ShQg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHQU-0006NX-U4; Wed, 06 May 2020 10:37:18 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHPt-0005qH-I8; Wed, 06 May 2020 10:36:43 +0000 Received: by mail-pj1-x1043.google.com with SMTP id a7so654091pju.2; Wed, 06 May 2020 03:36:41 -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=NyozxmGDg+giy1dPqoD+2PoBf4fR9y0vmi25F8uvJJI=; b=OrYPcwD+g+rTxvilBLPovopSPpzM7Pk64Ckwvykk4+zHjktmSoEJhDIJWlpkC+epqL bvJiNB85Zn0sLzn1SOlsydwYDgikcf1mWoo1QViOajVjEJiGX9kFkH0LpY1KiL0XV6i+ /f4HzSoxDU/swAc9wkv3BElyVduAPe7ElvxxN523QRvKWtH1IbsY/ziopkQH88reRLlZ UA5B23Co4HdgGhiQMKHv33ooCP2twFLScH7T7yTc6c0dAqd73b6PkSS8WWYsHMfmSRnA P2n7CaaNs44/ArfpaO1iWOMEdaSPlZpz3rF3mZ0AJLglmyPc/muT1sxZnilKutEXhExT uFZw== 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=NyozxmGDg+giy1dPqoD+2PoBf4fR9y0vmi25F8uvJJI=; b=o4KS2sZKZAvpclnwZBxPj4izrUlvImWUfmgXCZBPX+u7dV1+5WQPOMCBRcRBW3alzx 07vMMIcab+kAUEYAtFlFcRSzvGZOzR4LTKSnAW45wezj4mwHOp6iZI30ouaaoLRTMT9W wka5OsC5o8Smve1c9bFH4JkLqZAqhO43A6ePVIIj5aEFYi2/YimXG3NHu/pwW2wstF7k zGdh6EHYVEGm35+qEPaIU8rGCOaxSJfGPS2cQdZoaN6K6e6013yOjEiIiXAfzQ7QYBIw /Rk0a1APSGGAKIhgpy6mOw20mdbxalDbeZGpvNeTPx+Y4u+uL4QbCb936a/1rSm6Yx2P gZVw== X-Gm-Message-State: AGi0PuaoYLecFQIfL2x+k6GkKa3j6x1GoIsIVVq77cNiywWAiJs+gvQC U2xc4ujKrGrdU/DAYCR4zXE= X-Google-Smtp-Source: APiQypI+4Rnh5eau9+gOQ4Kh0IaW1n+l/2ytpEFcgHRoRBYd4Ylj5DjDU/1xAoTEhYu5zqg5nVcIhA== X-Received: by 2002:a17:902:5a84:: with SMTP id r4mr7082721pli.314.1588761400877; Wed, 06 May 2020 03:36:40 -0700 (PDT) Received: from localhost.localdomain ([106.215.43.48]) by smtp.gmail.com with ESMTPSA id i72sm1601582pfe.104.2020.05.06.03.36.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2020 03:36:40 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, sboyd@kernel.org Subject: [PATCH RFC 3/8] clk: actions: Add MMC clock-register reset bits Date: Wed, 6 May 2020 16:06:05 +0530 Message-Id: <1588761371-9078-4-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> References: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_033641_631264_FB8587F3 X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1043 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This commit adds reset bits needed for MMC clock registers present on Actions S700 SoC. Signed-off-by: Amit Singh Tomar --- drivers/clk/actions/owl-s700.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/actions/owl-s700.c b/drivers/clk/actions/owl-s700.c index a2f34d13fb54..cd60eca7727d 100644 --- a/drivers/clk/actions/owl-s700.c +++ b/drivers/clk/actions/owl-s700.c @@ -577,6 +577,9 @@ static const struct owl_reset_map s700_resets[] = { [RESET_DSI] = { CMU_DEVRST0, BIT(2) }, [RESET_CSI] = { CMU_DEVRST0, BIT(13) }, [RESET_SI] = { CMU_DEVRST0, BIT(14) }, + [RESET_SD0] = { CMU_DEVRST0, BIT(22) }, + [RESET_SD1] = { CMU_DEVRST0, BIT(23) }, + [RESET_SD2] = { CMU_DEVRST0, BIT(24) }, [RESET_I2C0] = { CMU_DEVRST1, BIT(0) }, [RESET_I2C1] = { CMU_DEVRST1, BIT(1) }, [RESET_I2C2] = { CMU_DEVRST1, BIT(2) }, From patchwork Wed May 6 10:36:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11531013 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2883D81 for ; Wed, 6 May 2020 10:37:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 063D520663 for ; Wed, 6 May 2020 10:37:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tUs7Fgaw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MhKsPiyT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 063D520663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=3kFci080V72lPAwD9nK7s9YI8yIg6gwsLUs5IKxBfW0=; b=tUs7FgawQkVicnN3dOo7ZNqo9G sVXS2SlvjhHMnVnT9x3o2W43GNxKRO/e7hmswCRdmshmPldxB70BnrB3oC1JvawkVztNz07D6qf7f +mP0hDg4jMDpb2OYu6kEU+CupeWQTkSFMyCI0XiNkhqz1zWU8nSMH+LrQDIDHnTA8QjpZG3PEWdLw 3EOjY5Kx+T67s44HW5HsPwmdyXuQrczgoArjAP/Wu1IwrmDVotSXEdvs8T8mxGS9lDfaVaqMqgD9R wMPemffOX+CNd8xOqa95O9GHWl/hk9oTpeYCg8txP1i/kpgskwxuR5Cc6GSEFSMMbNW/An9nKns3O RwFCKUig==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHQj-0006gk-1S; Wed, 06 May 2020 10:37:33 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHPy-0005va-63; Wed, 06 May 2020 10:36:47 +0000 Received: by mail-pl1-x641.google.com with SMTP id u22so307445plq.12; Wed, 06 May 2020 03:36:45 -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=HiC/C0Co97PBF6CFHJsgZ2D4kseEIIqvn91LAyLhM+w=; b=MhKsPiyTEkP7v61CqxNhA5hm394wgnMINyQcsl9zKZ31EprkeryNXrojvKTSj1jY8o llhb/v34ImKJtwjV3Z8R8+jm5tQSu8Rc2wvCCAsKF4pLP4xm8upcAlMd6lxtD57oXbiy oldal6H3WGo2EPasu/R6F6yjmJbawEVPUbO+GIckptGw+vMC6qIxDTZan4nBqmCl3yNh 9eQHCJSSGHDimr3r0QCauZ4WOP90YFv8JANVrK8OfVREipMdLwaM6/XY7FyMocINO4th Rf/xumEp3mpePbUX0EzBPlQ+Y2l1bOgQkNEFigGzFiGL1ldwd/NOul6bCL1y3Y+S3/IG d1aw== 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=HiC/C0Co97PBF6CFHJsgZ2D4kseEIIqvn91LAyLhM+w=; b=K+SEOTLj72xGsOnaKvLwU/EbehF+UaqmHsvs8In9Jw8dy6xskE7wQcIbPbmseUnbBu H2VgrGHTuw4nVIM4P8ephqkM2ccSMk9f3F2jxNr2pqr9m/6Tp3hxRtKtBPz+0Pn/OqaY cf2iOY6lS9SEIlZhidZ0oqmtcUGzX1ILpAb/4F0076vmABdAVKLfXGpEdkQrY6aju5F7 CwByHPskpytRYStDpMtKzE8WmjdiUAVD+ZPmB/hinxqfzY6zoYL5V4UY8SW7vn0HbitQ +eQIBb1JyjEjwaWr11MgNMCqqwExL2ayteLAGQVNHkBf5aRb1pHWEj5TTiahC5OAhfTI 2syQ== X-Gm-Message-State: AGi0PuYjxKmfwURI3H5V7eBj2BAnyUSBELxQP1JbFIKb1YpF5hvGqexF arGoIObn1cIGwEaqU7TH9mE= X-Google-Smtp-Source: APiQypJdhBuVsxVsAq0zyvGoSszqpLIfvIi54LZSqULmnpZvksNO4TKsokSuKUsMt0+VFll3X4EJzw== X-Received: by 2002:a17:902:b417:: with SMTP id x23mr7060948plr.51.1588761404736; Wed, 06 May 2020 03:36:44 -0700 (PDT) Received: from localhost.localdomain ([106.215.43.48]) by smtp.gmail.com with ESMTPSA id i72sm1601582pfe.104.2020.05.06.03.36.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2020 03:36:44 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH RFC 4/8] arm64: dts: actions: disable sps node from S700 Date: Wed, 6 May 2020 16:06:06 +0530 Message-Id: <1588761371-9078-5-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> References: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_033646_293372_C67E2919 X-CRM114-Status: GOOD ( 11.73 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:641 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org After commit 7cdf8446ed1d ("arm64: dts: actions: Add pinctrl node for Actions Semi S700") following error has been observed while booting Linux on Cubieboard7-lite(based on S700 SoC). [ 0.257415] pinctrl-s700 e01b0000.pinctrl: can't request region for resource [mem 0xe01b0000-0xe01b0fff] [ 0.266902] pinctrl-s700: probe of e01b0000.pinctrl failed with error -16 This is due to the fact that memory range for "sps" power domain controller clashes with pinctrl. This commit fixes it by disabling "sps" node, it is safe as "sps" is not being used at the moment. Fixes: 7cdf8446ed1d ("arm64: dts: actions: Add pinctrl node for Actions Semi S700") Signed-off-by: Amit Singh Tomar --- arch/arm64/boot/dts/actions/s700.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 2006ad5424fa..0397c5dd3dec 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -220,6 +220,7 @@ compatible = "actions,s700-sps"; reg = <0x0 0xe01b0100 0x0 0x100>; #power-domain-cells = <1>; + status = "disabled"; }; timer: timer@e024c000 { From patchwork Wed May 6 10:36:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11531015 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C09EA81 for ; Wed, 6 May 2020 10:37:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9E2F920714 for ; Wed, 6 May 2020 10:37:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rWHGDsWs"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ryLcfp51" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E2F920714 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=gKiE2+YTHFxUh+jEkbk3pRQ1VkTy2z6DtpV1sM6bLBs=; b=rWHGDsWsIn8+NzntZHZtjX2RGv oyPkeIkYFoQGnfqZ/IxZG23OxWv950y/MC59c2ADnzQ6kFBnNqMJmaUUZoRWB+rTDetTE4+TDZEzk ubV+20m05mh7qaFuhARscoBAm1mhQVxwdHFh33X8R6wAVcAoMrge/6gM+Kith89XpCTu53Rwhd5Pa +nMvccq9qSCC54tRikljDA5uWCU7qRU20ge8w0EbU24MP1dvs+zRnDisLoIdkyr4WXJa7EGpscPFp C2csAp0NQw3ea+tTWUKCwhI7Nxw+wEHMW4mj4kmGJwRSDVyLMHYNuBjokqvETsxW4AlPsJpRgHPb+ Z66TOfSQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHR3-0006xE-JB; Wed, 06 May 2020 10:37:53 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHQ1-0005zO-Ct; Wed, 06 May 2020 10:36:52 +0000 Received: by mail-pl1-x642.google.com with SMTP id x10so321110plr.4; Wed, 06 May 2020 03:36:49 -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=vEDmWehMN/OIIrM/DKtPb1UlmBRTwVcciQ9VU68K/2M=; b=ryLcfp51SykLd9eefw2sS9ewCxi+++Zq5sX+EjkbRb7WOUQ1qANVnDpeQmvvde/GVw Ccxp+sXYLk82A+UuVx1FAN7GKEwl9ozaYECReDZWh+av7GNTvC+7vx98bSt9sJDw6T73 0STo/RwhuSm/UdmKfd9Syn7YsZ5DAsFtZNXJJMi3wirfJ3WR6X9ed8m4j6nceNOjR+t/ 3XofwEa2xMwX6Ma6CJMMPxJYwIOjhiiO/LU61iQywxHcZTaXHPCDPJ7J5j8Zn31AwdNU j/RL5soUEBHIIfELLknip3S3wqiOX8C+bfhGNet8LpLde4PWw8YnSPzB6e8E9/hTUQAr CgEw== 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=vEDmWehMN/OIIrM/DKtPb1UlmBRTwVcciQ9VU68K/2M=; b=oAZu/VP14+Y3/rLnB07Fql+kAkltL3vj+CdjTYcdHq5+PXMnOMdio7heDIUEBQjYIS PQlFAB0CP+erACqKApVTmsxIgi7JSWDoMnJSoDqkf8MXCP5ceJWyX2OIMSAxl0ZXWqmj 5iDInc1l9IFWfb5YQFe+RIKgt+VjdUp8nRforWxhB9WwEUfzViGEyyH2TeL60xSnuzbg dBuH9yKUbnrV2JbC/I+17mVP2KP7rI0cM0br+SWRWNtflfo/VDqq32u0mDwJ+PjOSirY eS2F4wyDp9U11V+n0+RBKOVamAZ+X9AJkr1grF7aCJnV9HAc2VRs4wKU5MQJ1idqu0C/ jpJw== X-Gm-Message-State: AGi0Pua7zXMTGER5pMkrsp8+2jUdrcuE1EWEb0pyNDv6dGk9NLCpjsDu 2HHOBKTWNZhplVjQknB+Ly4= X-Google-Smtp-Source: APiQypJs8QJWPtZF/NlFI0/mIfFH2Iqo0osSzXmtIRNQXtI6a6a8ii7XMBdpbp1MgbdmgT189WJ/VQ== X-Received: by 2002:a17:90a:2e82:: with SMTP id r2mr8158837pjd.128.1588761408522; Wed, 06 May 2020 03:36:48 -0700 (PDT) Received: from localhost.localdomain ([106.215.43.48]) by smtp.gmail.com with ESMTPSA id i72sm1601582pfe.104.2020.05.06.03.36.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2020 03:36:47 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH RFC 5/8] arm64: dts: actions: Add DMA Controller for S700 Date: Wed, 6 May 2020 16:06:07 +0530 Message-Id: <1588761371-9078-6-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> References: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_033649_452646_AA33F4E6 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:642 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This commit adds DAM controller present on Actions S700, it differs from S900 in terms of number of dma channels and requests. Signed-off-by: Amit Singh Tomar --- arch/arm64/boot/dts/actions/s700.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 0397c5dd3dec..56f2f84812cb 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -245,5 +245,18 @@ , ; }; + + dma: dma-controller@e0230000 { + compatible = "actions,s700-dma"; + reg = <0x0 0xe0230000 0x0 0x1000>; + interrupts = , + , + , + ; + #dma-cells = <1>; + dma-channels = <10>; + dma-requests = <44>; + clocks = <&cmu CLK_DMAC>; + }; }; }; From patchwork Wed May 6 10:36:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11531017 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 77BA592A for ; Wed, 6 May 2020 10:38:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55C0220663 for ; Wed, 6 May 2020 10:38:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Hg4/1tz5"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="om4uVtV4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55C0220663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=VS2CrrVNMLxh2ZBtIiOZZm6ntYezlOobBONM1wlLoCs=; b=Hg4/1tz588ju1z4yBiMsOFeq5L WNhio5fP6Lxq2wwAoKVYbN5aerdxBOBecyyP26/H5V6pVfDe+pYYiJ27uzoUH/D1toB4GsnMO2liT wzXXKGejbP9KBMw25nn6smnvs2+TM0da2pU+47QxfBoTqThBRoPSJfVxp7KooTp/pUhLUFIE5xXtx YYMbJ0h8itoR1Dn1waRIn/5d9F4shnxsMC2pwAPfhcb19z1e4C1qe3umEcvFWOCEYx+IwCsV4zV9r pQs0sRuVA1DNw7PSqtgzMn2Fy/tt9a0UjlZO+Wz+vUdcbM8X5vb3EAoQV+TfYok0gQWNpqW8HV7G6 4pCT4HGw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHRG-0007Ay-Q1; Wed, 06 May 2020 10:38:06 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHQ6-00063S-7y; Wed, 06 May 2020 10:37:01 +0000 Received: by mail-pj1-x102e.google.com with SMTP id ms17so657069pjb.0; Wed, 06 May 2020 03:36:53 -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=NyUfCa4vJCe68eCfNgGfux9KsQ2+gDDMK2mefVqlCAw=; b=om4uVtV4ScdAbAbqXOFUyoy1ztwGhbwiIexBYNcdLG+KgjsQfosXFHDf3hbIMXvoyZ lDaxKjhfrGMGyOpT/qoFx/UjK5pHgafg4FFAKEXwZXyMyWLOq/+iXRL6nSXcVeZ6A7ah +CB4o3/G0eiKwlP9V4yiWA56Pq11Evg37fD4IWUL4MraywLVT9AsVrJidVl8ofeo9+Vc mh18GCTsHqRqcTKWTQI/s309UE00a25SI/ypFmSSbp72+T1TGlbrwEjgcpv4qemJOSbX /KbBv768cYRUdc8kD/Jo0Z0quZr3hbP0wKAoyXkQbHcL4aVpfL2IV583zgwdqiXERkl1 uymA== 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=NyUfCa4vJCe68eCfNgGfux9KsQ2+gDDMK2mefVqlCAw=; b=WhCapbKB7XRy+18mQwn2XwEyryCJ2gQd4oORNJXkHhgJrFoTrd+1lxLPS1m9zoktyy QWMVzvIZXBbxV0A5j1Ht2HPQl4nqIy+C/+HflNEzVcYepfTKNMzC+QzjxSkXYkchItad ZDqPDZW7uO7Ps4Y87A/3yTp82ryjmq+19UFibkhUH0yraM0/ilTtC1ZuEqlmEupFWyVz szCFRsbH3E0SAjyGiy9TD+8gg8nkh3Z0snycitEMU6R9Uhdt9/wY1mLNcIR5uG5Q6uau NGliIhvfSc1wzkmRQRdSd5yI7HEcRkU07dJDolMyTYYBijo35hM8gGPEzd5sdYDVzT0G XERw== X-Gm-Message-State: AGi0PuaIraAIWaG672VRZYLbiqA/nlmrMY91vxaIySCg5Fv/oZj+lO/o QKi62wTLk2j8xl65eCsAeNp+Puchmfl4/Q== X-Google-Smtp-Source: APiQypJ8UpWJLNv2ibr8GmkStj1YLbGnyIzwVViF+uWsg3JwYZsuzqOvITZy3G/+FWnKiLA4H8gbmQ== X-Received: by 2002:a17:90a:bc8c:: with SMTP id x12mr1316647pjr.114.1588761412427; Wed, 06 May 2020 03:36:52 -0700 (PDT) Received: from localhost.localdomain ([106.215.43.48]) by smtp.gmail.com with ESMTPSA id i72sm1601582pfe.104.2020.05.06.03.36.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2020 03:36:51 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH RFC 6/8] dt-bindings: reset: s700: Add binding constants for mmc Date: Wed, 6 May 2020 16:06:08 +0530 Message-Id: <1588761371-9078-7-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> References: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_033654_339678_86571FF5 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:102e listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This commit adds device tree binding reset constants for mmc controller present on Actions S700 Soc. Signed-off-by: Amit Singh Tomar Acked-by: Rob Herring --- include/dt-bindings/reset/actions,s700-reset.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/reset/actions,s700-reset.h b/include/dt-bindings/reset/actions,s700-reset.h index 5e3b16b8ef53..a3118de6d7aa 100644 --- a/include/dt-bindings/reset/actions,s700-reset.h +++ b/include/dt-bindings/reset/actions,s700-reset.h @@ -30,5 +30,8 @@ #define RESET_UART4 20 #define RESET_UART5 21 #define RESET_UART6 22 +#define RESET_SD0 23 +#define RESET_SD1 24 +#define RESET_SD2 25 #endif /* __DT_BINDINGS_ACTIONS_S700_RESET_H */ From patchwork Wed May 6 10:36:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11531019 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E678D81 for ; Wed, 6 May 2020 10:38:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B672120663 for ; Wed, 6 May 2020 10:38:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="P+e+tIeQ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bbVhZ4DS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B672120663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=LncXrCUhgrt35qm/1AmGP02SYVeAFsPtd1GoBRH5NAs=; b=P+e+tIeQYEl/oW/zUOotLNsFUB uGoo9/sPWZX/x5651HPXjY6d7+X0MuogUS+iXAL2lHojdAczFD8llDPyrITW0mro+OmIWdkoUPiZ0 MapqAbTlszyDUnbPWsEHgwmAI4TzdsBo4ol/DSGdKNV2cNpgHrnCcv/RUMjOWsSG5btmQJ1I8Bi7g 90OZMTIRwWWVT9hC4vuUzCW8ZcOaDZNxSG37u1AKnSKCyR6mjxhaKM4GhjbIoffNnqMn8x8XN99pS fxslEmt9XKEx+g7i0fIlEvXXCvOlU7t/2saEyEH2KelhwuqNobmieL7D0E4oNOBZhbbhKpQUwk8X2 VxzgET3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHRX-0007SX-Ip; Wed, 06 May 2020 10:38:23 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHQ9-00066O-MB; Wed, 06 May 2020 10:37:03 +0000 Received: by mail-pl1-x62e.google.com with SMTP id x10so321241plr.4; Wed, 06 May 2020 03:36:57 -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=76eHOjGHMEgzX37Faryvon4g3SALJsaVuBiR0wCzH1s=; b=bbVhZ4DS9wqmaRlJjokLaRu4lxF8whWuQYaW/PZ0PAm/0oD4zzJepaXvrEYmIEAVBF 22YdCtTnlNpnVe/XnNAqzRFvHCi9ePePIkq1gfkKfZGHv0YzkbK1xPNfJ/8rg2wPz3G5 hKBWVSnAjBqnY9rxA1bPal6hkql7nuWiM4DmHSrFbspbtZbWnadqi/1LWjFXjwic1uNS W+obUW/OJ5im+ozRFgDSzdEexjj2cM19hQqixgQYfKp9zKNoKUmyC37Ov65oUGELlSkF 3KCp0Hfyr1Dx9yggrgKOXH72+OHr7jQ4YJj69aUyyM5JUignznBLmD6NPe+UFQgTXEGk REEQ== 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=76eHOjGHMEgzX37Faryvon4g3SALJsaVuBiR0wCzH1s=; b=DzFJ9CxNmFT4UBDp357OOK+fYWMwdAzRO244NotKkBRosud7FkPqwei5rHwbk6+DKq CH4faMKNcz5WuiKZGEyfgPFP4oJY4Kr+jpZZwhc9kxaWRiFY76GUhRHldd3G8j1VsNxL 35cPxch/DQekmT+15HkNNNmcUpahb1d3wR1gziJEOgr0VUNypCd3aeo7Ih4CjCO8UbFS UwBzosXcx4k9H3XiZAb6STu52L1HXwk/njjm43oFh8cOBD5oQVbv2XrQc2Y8g0yJ9NrP ATOxlQo6Z/lG7OaQiCFUtFRuJ8fCdU8+7WgaSiDmd3A73jaVMKiTonp4iL4N4BbWOQCq j96w== X-Gm-Message-State: AGi0PubD8ZVZgD/bL2B//0Vnb6AWXe/nilUA7HFj2bgwAbGsnXtUs4jA T26vgDENMrb7oIbBdNjFK4c= X-Google-Smtp-Source: APiQypIlm5ITusl54MJwIXCqwRSpoGSeJlra1vj/chEzhCyV5ADnxAyySg5sofguMnZFg8Zqk+B4aA== X-Received: by 2002:a17:90a:fd16:: with SMTP id cv22mr8361235pjb.169.1588761416194; Wed, 06 May 2020 03:36:56 -0700 (PDT) Received: from localhost.localdomain ([106.215.43.48]) by smtp.gmail.com with ESMTPSA id i72sm1601582pfe.104.2020.05.06.03.36.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2020 03:36:55 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH RFC 7/8] arm64: dts: actions: Add MMC controller support for S700 Date: Wed, 6 May 2020 16:06:09 +0530 Message-Id: <1588761371-9078-8-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> References: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_033657_743661_617F105F X-CRM114-Status: GOOD ( 10.91 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:62e listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This commits adds support for MMC controllers present on Actions S700 SoC, there are 3 MMC controllers in this SoC which can be used for accessing SD/EMMC/SDIO cards. Signed-off-by: Amit Singh Tomar --- arch/arm64/boot/dts/actions/s700.dtsi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 56f2f84812cb..3f1fc3e48415 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -258,5 +258,38 @@ dma-requests = <44>; clocks = <&cmu CLK_DMAC>; }; + + mmc0: mmc@e0210000 { + compatible = "actions,owl-mmc"; + reg = <0x0 0xe0210000 0x0 0x4000>; + interrupts = ; + clocks = <&cmu CLK_SD0>; + resets = <&cmu RESET_SD0>; + dmas = <&dma 2>; + dma-names = "mmc"; + status = "disabled"; + }; + + mmc1: mmc@e0214000 { + compatible = "actions,owl-mmc"; + reg = <0x0 0xe0214000 0x0 0x4000>; + interrupts = ; + clocks = <&cmu CLK_SD1>; + resets = <&cmu RESET_SD1>; + dmas = <&dma 3>; + dma-names = "mmc"; + status = "disabled"; + }; + + mmc2: mmc@e0218000 { + compatible = "actions,owl-mmc"; + reg = <0x0 0xe0218000 0x0 0x4000>; + interrupts = ; + clocks = <&cmu CLK_SD2>; + resets = <&cmu RESET_SD2>; + dmas = <&dma 4>; + dma-names = "mmc"; + status = "disabled"; + }; }; }; From patchwork Wed May 6 10:36:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11531021 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D70FD92A for ; Wed, 6 May 2020 10:38:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 80DB220663 for ; Wed, 6 May 2020 10:38:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ebdJfVGu"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GQtU4g1E" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80DB220663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=aZfLJdMVhhv1jGhHtSd1KgFfKEzppUldQbqLzZYCpKg=; b=ebdJfVGunuLINlAc460zsRuz+L dLrn1zPtPSU93vzQnR1N/bNt5n/8qTvyjxmkvuzfjdt7+hGNf6Xn69EBJCxTcOHITMqrObHXmO5dZ /hf7Ra7Q8I2LSQUedf4cox+wZ1YR1je/yM3VohA6skL5r5nptkuhKoqyRyyma2FSU608TQy89xKhO NGsyMVmfVrv65BeZv8OG/ASL3xaUaXYNIuH9Ms/iA0IAwc8oDJqqt1sc6wBY89U6+TvUx9hIF+afS Xhek1lKP2Q4VIrXQfqQL+6itDuhYfBW2BnMGmLXO5E+43Bm1cZ+qfnkLMkm4laMtwL99hlSeERGUJ McxkANsg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHRm-0007gU-6I; Wed, 06 May 2020 10:38:38 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWHQC-000696-Td; Wed, 06 May 2020 10:37:05 +0000 Received: by mail-pj1-x1042.google.com with SMTP id h12so2337976pjz.1; Wed, 06 May 2020 03:37:00 -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=GRl+cRuJItfX393h+k5FDOGSXXO3n1nRchoc5uvkFw0=; b=GQtU4g1Ef3lzCGVFsz5hJfhxLq/JbDHXq2Fnt5aY2jcoz6abJGFAl8TWSLvV5LAiCR xq2AIK1ypOIYFB3yKM+F3HTkIFVn1WFgMEoisAQKdN2QohM66H6clyjr7TVwk2x25Dm4 m2hFaKPGzJA8PoiDq96L1+rOiCe57zXAqqEtLyJ5fXF7wSDtegcXaK43a8I3cVufy7ut AkZcfFc1HWiBDfS2873H1l1xUK9a+0AN+PQqvwsjaN2Wakgc76c016kMAUENOIASFB7C vdrTnXT9nNVefEzuaYGIjVqfU6QHGPz1S2xqKc3ggSHrpFNOp83NDxaudqyoDzuM8LnS w8Pw== 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=GRl+cRuJItfX393h+k5FDOGSXXO3n1nRchoc5uvkFw0=; b=aksTluw110JPxDCNu5LUCHUWmhwtZtGL+qF3rXPsyi6h1RRzqbsXTuFHncleQpbznh +moMBBDLA0B0YSmZEGR+496g4Qdl5WF8HQdYIRg9YJkX9rtgPys22YL93U172X2KJkCi SvmH3b7hOHugART52e1d0QXXbkNrh4is0iTiaJaUekwoSAk7YB7yiwDBF0wDU6qb/zW4 cz7o7EBuIidTsj7RfM70B1klOnJMFXFE0X5M3Wqzb4UQxm8zm6UjWHfagD9GpIRmGanO dlsx5tWG+nVdB1fbs0w03BJuDDKsg357hZLtgUrKMG57xejPZp10xGPh3FUkTbApmbuK L3Uw== X-Gm-Message-State: AGi0PuZtqYAbaiQZdSXslGmUTck/HzQ3jkSvcyL206mtSzwPlWGM0jUW U5NnmEeRk1t7JFSlrYwcyjLNyLbLfrLHVw== X-Google-Smtp-Source: APiQypLpxk8AcJgk+dPBHwI9w4FC4I21Xkht0unu7Q97N9db1MwxkgDMsuJhQ7f45VVEMuVfF4YgCw== X-Received: by 2002:a17:90a:30a5:: with SMTP id h34mr8235042pjb.171.1588761419966; Wed, 06 May 2020 03:36:59 -0700 (PDT) Received: from localhost.localdomain ([106.215.43.48]) by smtp.gmail.com with ESMTPSA id i72sm1601582pfe.104.2020.05.06.03.36.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2020 03:36:59 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH RFC 8/8] arm64: dts: actions: Add uSD support for Cubieboard7 Date: Wed, 6 May 2020 16:06:10 +0530 Message-Id: <1588761371-9078-9-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> References: <1588761371-9078-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200506_033701_022625_C032AB17 X-CRM114-Status: GOOD ( 12.61 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1042 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-arm-kernel@lists.infradead.org, cristian.ciocaltea@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This commit adds uSD support for Cubieboard7 board based on Actions Semi S700 SoC. SD0 is connected to uSD slot. Since there is no PMIC support added yet, fixed regulator has been used as a regulator node. Signed-off-by: Amit Singh Tomar --- arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 41 ++++++++++++++++++++++++ arch/arm64/boot/dts/actions/s700.dtsi | 1 + 2 files changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts index 63e375cd9eb4..ec117eb12f3a 100644 --- a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts +++ b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts @@ -13,6 +13,7 @@ aliases { serial3 = &uart3; + mmc0 = &mmc0; }; chosen { @@ -28,6 +29,23 @@ device_type = "memory"; reg = <0x1 0xe0000000 0x0 0x0>; }; + + /* Fixed regulator used in the absence of PMIC */ + vcc_3v1: vcc-3v1 { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.1V"; + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3100000>; + }; + + /* Fixed regulator used in the absence of PMIC */ + sd_vcc: sd-vcc { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.1V"; + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3100000>; + regulator-always-on; + }; }; &i2c0 { @@ -81,6 +99,14 @@ bias-pull-up; }; }; + + mmc0_default: mmc0_default { + pinmux { + groups = "sd0_d0_mfp", "sd0_d1_mfp", "sd0_d2_d3_mfp", + "sd0_cmd_mfp", "sd0_clk_mfp"; + function = "sd0"; + }; + }; }; &timer { @@ -90,3 +116,18 @@ &uart3 { status = "okay"; }; + +/* uSD */ +&mmc0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_default>; + cd-gpios = <&pinctrl 120 GPIO_ACTIVE_LOW>; + no-sdio; + no-mmc; + no-1-8-v; + bus-width = <4>; + vmmc-supply = <&sd_vcc>; + vqmmc-supply = <&sd_vcc>; +}; + diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 3f1fc3e48415..8a541dd48f61 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include #include