From patchwork Sun Jul 19 17:41:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11672559 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 C37DA14E3 for ; Sun, 19 Jul 2020 17:44:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 79B6320B1F for ; Sun, 19 Jul 2020 17:44:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="efNwgOoB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WAJ0vaNf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79B6320B1F 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=merlin.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=9Rq2P0BVM/UzLwIBrJ0TW35la8n5/pVSrpvTStHT3EE=; b=efNwgOoBR7M/q9uKNRlJuTT72p kmSRUw3I4mknuuD86ozn/xfgGdPbwvKsMnrxxcToLN09wgFa3XxEkAEp6+YSWuliyAkW40fpVuTnZ AApZGBwnTbsL1G+dyNTHzAP8FD0MSEQWOhBL7N0Hlqh4lJRbQ1zR0kEoWZCiaqELjbwLKMfk5upbH 6YZUdbZHGegacl1SC7Y8QEUTjVX7IHwtVbhfIzVABS1wvPrPPl+oIzO965V3hAGl2yXfWJttMwr3t ExsBVLb6iJ6Hj92SXwwkgPNEt0QLeA/s3IyWm7q/+DO3vYqoAcIVuKCRfcwAJ695k7YKKbFo3g5ci bIj3mw0w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDKn-0000an-SE; Sun, 19 Jul 2020 17:42:45 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDKh-0000Yb-CX; Sun, 19 Jul 2020 17:42:40 +0000 Received: by mail-pg1-x542.google.com with SMTP id o13so9237066pgf.0; Sun, 19 Jul 2020 10:42: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=yzbjFfaJs/MFsRpCaMHXJlGCvB9Qsqv8l66YZ1v9PZk=; b=WAJ0vaNfQ79aLVy+JrxT4z+mIq1Rb2ACQ77SdmdK4e4fr86H0sthDMM2Nh6iWGpz6V 6xXG4V0uMbv6Nnax/BainfcaP0MNodZlwnomuVleoKI+zgq4fs8uQPn5f7JSog5z2g6o defscOesLL0Fm9bGv0RDxqVZptj4GPaVQn0R+GigVdgqMD5y9QUILFhsHYty2W9yv8I0 35XInkHGEG9OSf6YssypNeL67ucfCJ+mom6BaO/iNnTPK+5HlR8fI645+8VKFJxAAvNT jQT2lrfi5bKNCgJelWgs4bnH9X8JfQOSo0+E4zYCWQzviRxXWyZbK6ajWZx5rxEotl7T C8pw== 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=yzbjFfaJs/MFsRpCaMHXJlGCvB9Qsqv8l66YZ1v9PZk=; b=MaSdE3XQOqySiy+ayNF7DPzpUZMNWYDmeXqvtzmyZydKbsIjC+//o37eugTVrCH7+i +WXq+/53Dxyjrs5Vr0jIMzmCwvPZspfYptwMPnY2tCAPFenc5q0s32T30IPsSOgtMIQ5 qItPe6WmDmEkpPlOihjx/MAjFR9IHxv6+Y6EoksJTRmnvMErbwBDr65IacoUoE9E3ULk rSAVp4TRhdhFTezg+qoLOPNIJMcvVhSfQIZGVPplZ5XQ46WPt0NO5lbQSIyFcFStGvIu TE40HhzlxQgwxFIF/kJ0HX7JqucPgKbHwn9ckZLQzCyM4kuAHpIW9jlc3qnoKatLjvgA zLsg== X-Gm-Message-State: AOAM532WiuH3vRXjwZyqJgRChu/Ipnly/4HhkKYJfeR5K+UCwVoTbIeZ GIAf/jzZGVqeCDZf3OK/iwo= X-Google-Smtp-Source: ABdhPJyjfCxfT0e+XoaE1dIzLI+XgLmOT0sqD2+4M7PZRlLgD987tRyjpT6QzmHkM0Y8cGnxulwzdg== X-Received: by 2002:a63:5d54:: with SMTP id o20mr15856803pgm.253.1595180557306; Sun, 19 Jul 2020 10:42:37 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.42.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:42:36 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, vkoul@kernel.org, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v7 01/10] dt-bindings: dmaengine: convert Actions Semi Owl SoCs bindings to yaml Date: Sun, 19 Jul 2020 23:11:58 +0530 Message-Id: <1595180527-11320-2-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134239_504757_B683E42C X-CRM114-Status: GOOD ( 18.81 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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:542 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.org, cristian.ciocaltea@gmail.com, dan.j.williams@intel.com, 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 Converts the device tree bindings for the Actions Semi Owl SoCs DMA Controller over to YAML schemas. It also adds new compatible string "actions,s700-dma". Signed-off-by: Amit Singh Tomar Reviewed-by: Rob Herring --- Changes since v6: * No change. Changes since v5: * Removed Rob's Reviewed-by tag as his bot found errors running 'make dt_binding_check'. * Fixed the errore reported by Rob's bot, adjusting the reg property in example. Changes since v4: * Added Rob's Reviewed-by tag. * Re-order it from 05/10 to 01/10. Changes since v3: * No change. Changes since v2: * Addressed Rob's comments: - removed unnecessary description. - added unevaluatedProperties - added relevant information about dma-channels and dma-request * Added power-domain property. Change since v1: * Updated the description field to reflect only the necessary information. * replaced the maxItems field with description for each controller attribute(except interrupts). * Replaced the clock macro with number to keep the example as independent as possible. --- Documentation/devicetree/bindings/dma/owl-dma.txt | 47 ------------- Documentation/devicetree/bindings/dma/owl-dma.yaml | 79 ++++++++++++++++++++++ 2 files changed, 79 insertions(+), 47 deletions(-) delete mode 100644 Documentation/devicetree/bindings/dma/owl-dma.txt create mode 100644 Documentation/devicetree/bindings/dma/owl-dma.yaml diff --git a/Documentation/devicetree/bindings/dma/owl-dma.txt b/Documentation/devicetree/bindings/dma/owl-dma.txt deleted file mode 100644 index 03e9bb12b75f..000000000000 --- a/Documentation/devicetree/bindings/dma/owl-dma.txt +++ /dev/null @@ -1,47 +0,0 @@ -* Actions Semi Owl SoCs DMA controller - -This binding follows the generic DMA bindings defined in dma.txt. - -Required properties: -- compatible: Should be "actions,s900-dma". -- reg: Should contain DMA registers location and length. -- interrupts: Should contain 4 interrupts shared by all channel. -- #dma-cells: Must be <1>. Used to represent the number of integer - cells in the dmas property of client device. -- dma-channels: Physical channels supported. -- dma-requests: Number of DMA request signals supported by the controller. - Refer to Documentation/devicetree/bindings/dma/dma.txt -- clocks: Phandle and Specifier of the clock feeding the DMA controller. - -Example: - -Controller: - dma: dma-controller@e0260000 { - compatible = "actions,s900-dma"; - reg = <0x0 0xe0260000 0x0 0x1000>; - interrupts = , - , - , - ; - #dma-cells = <1>; - dma-channels = <12>; - dma-requests = <46>; - clocks = <&clock CLK_DMAC>; - }; - -Client: - -DMA clients connected to the Actions Semi Owl SoCs DMA controller must -use the format described in the dma.txt file, using a two-cell specifier -for each channel. - -The two cells in order are: -1. A phandle pointing to the DMA controller. -2. The channel id. - -uart5: serial@e012a000 { - ... - dma-names = "tx", "rx"; - dmas = <&dma 26>, <&dma 27>; - ... -}; diff --git a/Documentation/devicetree/bindings/dma/owl-dma.yaml b/Documentation/devicetree/bindings/dma/owl-dma.yaml new file mode 100644 index 000000000000..256d62af2c64 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/owl-dma.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/owl-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Actions Semi Owl SoCs DMA controller + +description: | + The OWL DMA is a general-purpose direct memory access controller capable of + supporting 10 and 12 independent DMA channels for S700 and S900 SoCs + respectively. + +maintainers: + - Manivannan Sadhasivam + +allOf: + - $ref: "dma-controller.yaml#" + +properties: + compatible: + enum: + - actions,s900-dma + - actions,s700-dma + + reg: + maxItems: 1 + + interrupts: + description: + controller supports 4 interrupts, which are freely assignable to the + DMA channels. + maxItems: 4 + + "#dma-cells": + const: 1 + + dma-channels: + maximum: 12 + + dma-requests: + maximum: 46 + + clocks: + maxItems: 1 + description: + Phandle and Specifier of the clock feeding the DMA controller. + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - "#dma-cells" + - dma-channels + - dma-requests + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + dma: dma-controller@e0260000 { + compatible = "actions,s900-dma"; + reg = <0xe0260000 0x1000>; + interrupts = , + , + , + ; + #dma-cells = <1>; + dma-channels = <12>; + dma-requests = <46>; + clocks = <&clock 22>; + }; + +... From patchwork Sun Jul 19 17:41:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11672561 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 AD19C14E3 for ; Sun, 19 Jul 2020 17:44:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 83ED820B1F for ; Sun, 19 Jul 2020 17:44: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="uiCoBkzO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PD3Ai9DK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 83ED820B1F 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=merlin.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=hKQu91GP4n5/ThWQbL+PyYjS3/BWU61ZIBV/e4WkrhM=; b=uiCoBkzOZ2MmDl+E63HjPxJt7s YnV+si0DnczTsPiToXw+jKvy5kalllrINeWW/T6NaA3al0k34qvoSuohkjIUq6mtqVYFGt8T6u1OK 1D+uQr5yHzcupjKTmxg6Gbj3foh0DyrNeGcpmYwpezuhLtxnXTngPB2KMNUOprJvBG7QzTMEklen7 VLplDE+p9MqMLBRk+W56mu6Ce79r+i1XOAnq+TkdRPX0ZDF/uwDfRt6Dc31mYmV+4MOcmw4SoVaCW g64n9vgzoNAIbxaoExzW3xmFtF1rU6nrkzwcZjeWrAiGW0hGlwpZyxGBq4McjoFIHNsUWE12psQ14 FNxHbiIA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDKv-0000do-QK; Sun, 19 Jul 2020 17:42:53 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDKm-0000a8-I5; Sun, 19 Jul 2020 17:42:45 +0000 Received: by mail-pf1-x441.google.com with SMTP id a24so7919770pfc.10; Sun, 19 Jul 2020 10:42:44 -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=LQH58ofAqL6EsgiYQWV9GdL/4SoVc8ULbpDa6K3JLFw=; b=PD3Ai9DKB4jaP6cBFhJOupFjhJYzU8tV02qAbkWE5QQV4T1PxXaUMcnvKvw+tep+BE Z0NDV9Mw6+Qd3d5kqnmcUGd/zBZsjGrXx4Y7hMbJIbgnEoDKvJJBWVcETrcokHSajSyE lB6/z7XAFrzB0WZ89JE+KIZeqjbpX7xkY88ySIIMDbgtnFSgz/P4KKhVP8jR02XGvctl NvFQ72SZ51o0IFofwXlYxl2JS3fshxjYOXgrhD1uoyCGhvEcrymfoA67UC1+fg8xxUbF hbiKBIGGvMrHlPHDq7oqTpQ9gPS330SSaxrp40GoCN3wlRga+bG6E298WJrXF+DcBCAj fywA== 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=LQH58ofAqL6EsgiYQWV9GdL/4SoVc8ULbpDa6K3JLFw=; b=VaxNNC8Z6Z87tUx/R8eSvJaq68JNCcKWgTtej/qW4FnFWQf5yzBpbdtZF2b8UnPkaZ 0drK2edl2ib5GlhqaXg6creKU7nJeeDJlzOs1vKlXVXy1WGAVmMjj2M8AJmVVclE07k6 KvejCNnOMb6Dr80V5dGg/ols4Ito62Gq897OH0WbtlNwsL8whPlQPNa4bd/eySQfXmLn vJS8lVVSVSo2XhGSzBF68DgBdHAObWYoKMzXFzl3v7vE5MHcyJ5+tzKS/BJ481l5Vs/h MYAuSwitiAY6z8k1cF+jDpDQk+zypkRDyNhdaV4JaywiwkCpXSr4lMOIJsLUZTxwC8za 24Tw== X-Gm-Message-State: AOAM530XKs3dL/EhbC5RcoWFsMiTkeHWROa9SaNPAEKpCkwCrz9IiWzv EWoCdBs7lNGdw4av7ErruY4= X-Google-Smtp-Source: ABdhPJwe7j2SGHkKPOfUQCJJY0gwPACvVeurKGtb43VoTlb6JQDonhiQxILdqYeOUZjHO+B2xSVjZg== X-Received: by 2002:a05:6a00:2294:: with SMTP id f20mr16484147pfe.126.1595180562066; Sun, 19 Jul 2020 10:42:42 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.42.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:42:41 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, vkoul@kernel.org, afaerber@suse.de, manivannan.sadhasivam@linaro.org Subject: [PATCH v7 02/10] dmaengine: Actions: get rid of bit fields from dma descriptor Date: Sun, 19 Jul 2020 23:11:59 +0530 Message-Id: <1595180527-11320-3-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134244_663271_377ADEB0 X-CRM114-Status: GOOD ( 20.57 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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:441 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.org, cristian.ciocaltea@gmail.com, dmaengine@vger.kernel.org, dan.j.williams@intel.com, 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 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. Reviewed-by: Manivannan Sadhasivam Suggested-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v6: * No change. Changes since v5: * Added Mani's Reviewed-by: tag. Changes since v4: * Reordered it from 01/10 to 02/10. Changes since v3: * Added description for enum fields. * Restored the old comment. * Added detailed comment about, the way FLEN and FCNT values are filled. Changes since v2: * No change. Changes since v1: * Defined macro for frame count value. * Introduced llc_hw_flen() from patch 2/9. * Removed the unnecessary line break. Changes since rfc: * No change. --- drivers/dma/owl-dma.c | 98 +++++++++++++++++++++++++++++---------------------- 1 file changed, 56 insertions(+), 42 deletions(-) diff --git a/drivers/dma/owl-dma.c b/drivers/dma/owl-dma.c index 66ef70b00ec0..948d1bead860 100644 --- a/drivers/dma/owl-dma.c +++ b/drivers/dma/owl-dma.c @@ -120,30 +120,33 @@ #define BIT_FIELD(val, width, shift, newshift) \ ((((val) >> (shift)) & ((BIT(width)) - 1)) << (newshift)) +/* Frame count value is fixed as 1 */ +#define FCNT_VAL 0x1 + /** - * 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 + * owl_dmadesc_offsets - Describe DMA descriptor, hardware link + * list for dma transfer + * @OWL_DMADESC_NEXT_LLI: physical address of the next link list + * @OWL_DMADESC_SADDR: source physical address + * @OWL_DMADESC_DADDR: destination physical address + * @OWL_DMADESC_FLEN: frame length + * @OWL_DMADESC_SRC_STRIDE: source stride + * @OWL_DMADESC_DST_STRIDE: destination stride + * @OWL_DMADESC_CTRLA: dma_mode and linklist ctrl config + * @OWL_DMADESC_CTRLB: interrupt config + * @OWL_DMADESC_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; +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 +156,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; }; @@ -318,6 +321,11 @@ static inline u32 llc_hw_ctrlb(u32 int_ctl) return ctl; } +static u32 llc_hw_flen(struct owl_dma_lli *lli) +{ + return lli->hw[OWL_DMADESC_FLEN] & GENMASK(19, 0); +} + static void owl_dma_free_lli(struct owl_dma *od, struct owl_dma_lli *lli) { @@ -349,8 +357,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; @@ -363,8 +372,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); @@ -405,22 +413,28 @@ 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; /* One link list by default */ + 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; + /* + * Word starts from offset 0xC is shared between frame length + * (max frame length is 1MB) and frame count, where first 20 + * bits are for frame length and rest of 12 bits are for frame + * count. + */ + lli->hw[OWL_DMADESC_FLEN] = len | FCNT_VAL << 20; + lli->hw[OWL_DMADESC_CTRLB] = ctrlb; return 0; } @@ -752,7 +766,7 @@ 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 += llc_hw_flen(lli); break; } } @@ -783,7 +797,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 += llc_hw_flen(lli); } else { bytes = owl_dma_getbytes_chan(vchan); } From patchwork Sun Jul 19 17:42:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11672563 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 2DC6414E3 for ; Sun, 19 Jul 2020 17:44:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 065B120B1F for ; Sun, 19 Jul 2020 17:44:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ybblxZal"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hdtU74xI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 065B120B1F 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=merlin.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=PrVkdVG6CqL1+DctgNFPJKrZTXGkG4dUA+qeSgzz5HU=; b=ybblxZalgemeh/BktOwFtMFbPm l3us31o8xmupZero6jTKkwTwAwi41w58K8nNy23WB5SV4fS5WcyiBhyKmN4azVyIf1ASENyhg3PGu Xb3A9E7P+OAOY/0Mze8vwBs0QujOBFGsPDdsMMgA5l4lnK1mNrUjwec3lI///wjCPlvLeTwAWAsTC 9HbjNEKKYL2O0R0QXRaohYWQTxuwgBYFYWsuQz+kym4hs51cKI9D/+zw+a24YZN8lA8AD9LXFYKYu aDFDu0Xu9JL1VUCr5c+BrsT6OSCqPxi0PWazvXv7KhqoDB3oowDMyTsGcABivELfdI/nKTKE9XcUN J2ypv/cQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLA-0000j6-0g; Sun, 19 Jul 2020 17:43:08 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDKq-0000bO-Nt; Sun, 19 Jul 2020 17:42:50 +0000 Received: by mail-pf1-x444.google.com with SMTP id z3so7906589pfn.12; Sun, 19 Jul 2020 10:42:48 -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=ROpEia7dLWxAWmZl3nniROlyoR2ai/hdFalKlJ7+0r0=; b=hdtU74xI2PSJMrcR7eeB8YUz5ry5qBF15yjM8wzCRPOIusnVGDIG7Ik8wwD6PFQ+/6 rqHKysglE5Vjwq/7msvUlE7A992Az9DbRRvFtHLyQ7O+c+WagBonENthYPNggcZ9CVa9 1FqJgpn0sGGLWaLE+kdRwnAoTpH7P/mVI4+rKseTX8uqfcy6cf/p6nzyFYCq0nczPf4e 2eCc1Z0EW0N/NZhVuKa0L3NqO9p15dcwe+0/QPOeT4232DuhaalKnwEhqtJOWA9zXD6N rhcUA9DWas0ezXXTHG3yJDKjFp2jA+Ta0QdHG02OEmipxRXMGECvi+gOSPGOGhSkiKGY a4SQ== 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=ROpEia7dLWxAWmZl3nniROlyoR2ai/hdFalKlJ7+0r0=; b=n1G8vpBQTCrb1LvQ3Y/RvaiCcydXpOznbswG37ldIsJj6mSG1tjOXxrmducnoD6sHc 9tY5XMk5Xq+TR1PexDB2GkZYbOz/6Tqvvyc5ks3mB0UJ1kPxpxoLwkVQQ+ltlCUQbG+A TNbzlMENvz4TGNGceuQnKOSt+ri3NyFJYnrSmuX8TOdVCltnBZh/puxnLzoJqgf2+28l UM0SA4bz9k8MrBw7bMh9ry/dcT7Cabpw3aNligpzM99yvhy5SBlrvqGs/ORCZB7D9p8b /t9Md2j7+ogttK7zjcxxA21ndrI6tBzLfJMI0CxPubLibyazggLToYWZz3yy5ON1G9UV 02Zg== X-Gm-Message-State: AOAM533QC25WuVeVt4bfUc/Y6ARRRqj0gEl5kBYBfPX0KIFY7pGQUPFf 79I5Z0Qwp9vdJePKbItd7394HiL4tNxrNQ== X-Google-Smtp-Source: ABdhPJzfhaW8f+pame1Kwgve316NFtOVEkmo54YcyrsYmswFqGPhqJa6taOaIUK2JDd19E90nrvkZQ== X-Received: by 2002:a62:164a:: with SMTP id 71mr16773166pfw.266.1595180566550; Sun, 19 Jul 2020 10:42:46 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.42.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:42:45 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, vkoul@kernel.org, afaerber@suse.de, manivannan.sadhasivam@linaro.org Subject: [PATCH v7 03/10] dmaengine: Actions: Add support for S700 DMA engine Date: Sun, 19 Jul 2020 23:12:00 +0530 Message-Id: <1595180527-11320-4-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134248_887440_74E73346 X-CRM114-Status: GOOD ( 21.56 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.org, cristian.ciocaltea@gmail.com, dmaengine@vger.kernel.org, dan.j.williams@intel.com, 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 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 --- Changes since v6: * NO change. Changes since v5: * No change. Changes since v4: * Reordered it from 02/10 to 03/10. * Used of_device_get_match_data() instead of of_match_device(). * Removed the uintptr_t used for typecast. Changes since v3: * Added description for enum fields. * Restored the old comment. * Added detailed comment about, the way FLEN and FCNT values are filled. Changes since v2: * No change. Changes since v1: * Defined macro for frame count value. * Introduced llc_hw_flen() from patch 2/9. * Removed the unnecessary line break. Changes since rfc: * No change. --- drivers/dma/owl-dma.c | 57 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 42 insertions(+), 15 deletions(-) diff --git a/drivers/dma/owl-dma.c b/drivers/dma/owl-dma.c index 948d1bead860..331c8d8b10a3 100644 --- a/drivers/dma/owl-dma.c +++ b/drivers/dma/owl-dma.c @@ -149,6 +149,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 @@ -213,6 +218,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; @@ -227,6 +233,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, @@ -316,6 +323,10 @@ static inline u32 llc_hw_ctrlb(u32 int_ctl) { u32 ctl; + /* + * Irrespective of the SoC, ctrlb value starts filling from + * bit 18. + */ ctl = BIT_FIELD(int_ctl, 7, 0, 18); return ctl; @@ -372,6 +383,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); @@ -427,14 +439,26 @@ 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; - /* - * Word starts from offset 0xC is shared between frame length - * (max frame length is 1MB) and frame count, where first 20 - * bits are for frame length and rest of 12 bits are for frame - * count. - */ - lli->hw[OWL_DMADESC_FLEN] = len | FCNT_VAL << 20; - lli->hw[OWL_DMADESC_CTRLB] = ctrlb; + + if (od->devid == S700_DMA) { + /* Max frame length is 1MB */ + lli->hw[OWL_DMADESC_FLEN] = len; + /* + * On S700, word starts from offset 0x1C is shared between + * frame count and ctrlb, where first 12 bits are for frame + * count and rest of 20 bits are for ctrlb. + */ + lli->hw[OWL_DMADESC_CTRLB] = FCNT_VAL | ctrlb; + } else { + /* + * On S900, word starts from offset 0xC is shared between + * frame length (max frame length is 1MB) and frame count, + * where first 20 bits are for frame length and rest of + * 12 bits are for frame count. + */ + lli->hw[OWL_DMADESC_FLEN] = len | FCNT_VAL << 20; + lli->hw[OWL_DMADESC_CTRLB] = ctrlb; + } return 0; } @@ -596,7 +620,7 @@ static irqreturn_t owl_dma_interrupt(int irq, void *dev_id) global_irq_pending = dma_readl(od, OWL_DMA_IRQ_PD0); - if (chan_irq_pending && !(global_irq_pending & BIT(i))) { + if (chan_irq_pending && !(global_irq_pending & BIT(i))) { dev_dbg(od->dma.dev, "global and channel IRQ pending match err\n"); @@ -1054,6 +1078,13 @@ 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; @@ -1083,6 +1114,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_device_get_match_data(&pdev->dev); + od->nr_pchans = nr_channels; od->nr_vchans = nr_requests; @@ -1215,12 +1248,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 Sun Jul 19 17:42:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11672565 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 33CE013A4 for ; Sun, 19 Jul 2020 17:44:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 0D21920B1F for ; Sun, 19 Jul 2020 17:44:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W3hqF7ZJ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MS5hh0TG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D21920B1F 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=merlin.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=A67Jri1cMlpcdcuYJd9vSCmZFzJQICQt3fpFzu1XWnI=; b=W3hqF7ZJz4lTetOCnMyrkexNSM qVqH/3h1tVQsdcwrHwoaqUzkCjwbdJdJY2R3sXnP8ShIoP+SvVT0ub2MGDximqgxbVDsxx9cQIh2b ekS49X5Cs8IYcO01rzf37Y0quho2PF44bZS9tTa8PcMf0pjZFEIZy7ILUyzH5iyWfcsYmm+VcA0le SiSCSyZ2gbs3fLmvbLCIzA7ozOJbod556dMNtmJDBw+YLohld7mc+syOjCmcJ4YEostMzPUnTZvJF FpxdLzxaSIjG/6MGl/qPcT47RSg6Lz/lWGT/zNJ+PR+Jgzz6PT05/lAuzhvAtcEt/KmXP3xqAO3Lu T5dwl8ZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLL-0000oE-2s; Sun, 19 Jul 2020 17:43:19 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDKu-0000cn-Fm; Sun, 19 Jul 2020 17:42:53 +0000 Received: by mail-pl1-x641.google.com with SMTP id m16so7625589pls.5; Sun, 19 Jul 2020 10:42:52 -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=6JE4Y8SOsdCDMPXfyKKBh9zCPbo6gFTjnSOOmLpM6V0=; b=MS5hh0TG5Vs08iabbG/a42dRmmRFyOzi4QXmQo+wUXloRIQVnoVuAK3Z2zsY/+ARaS oyNuO7dNxVXgIlcvkTtBQkMzuexzLc0vK7bZm6au8ZEfIjgYXgMLWpmGzMcBfA6auhjR 6sTzneHtyuiEfVPasYlrp8NTcyzuKuSYWOrhEjWovXWaceeHcPvE6bJgGl4wd0iddHN4 clYNmZaQSBJoxvQCcO3M7J6hgQW5LbO6hZIDvAFTA9fwk9IAI/ziLUl4cdYB7mcGmAW3 4zXWnPGhH/kcbwhJ8QrbBskUhJKM/02UjD1TGaoearn+ir4oS7yAq3uFkl+A5yu9N2MK dIBg== 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=6JE4Y8SOsdCDMPXfyKKBh9zCPbo6gFTjnSOOmLpM6V0=; b=bQc7zO+nusdv7+NPPRObWoLFnF3GS07qmZ9E2fGoqtJfyqmlMFQgqUZeXkbjS7hIag B5TxEZnBKEawmAm2qFqFk/3i172vztE+Y4I6uD8StrlpfHpe9pacG43OxCMz0DH7OyL6 GkgJ3N4W2SYG9PP1GtywdwpNVbHMnYXfRv1srqso70Z7RYLSZ/bQGeNjvj/+av0eKuRr 93O1t6hBFzlt6aZaSvc4w7aYv5j3yQBZmtauQe12C0QSRq763dZ1n8CW4p4CST3/0Izd DHjE25QRk3qDSwM6FOj4xsvcsvRxfjVCkDj44MoLmL7ISDMeAT86HNbKkbmcvjdUv/Xx n0wA== X-Gm-Message-State: AOAM532WRj/XDLNSkR8vn+n5m4oytrERIVUb+MG/IkIuYJ44Hp9qoktg iYu6QLsBVMnOv50/LsLMmMU= X-Google-Smtp-Source: ABdhPJyK1AKNlRX1cZe556if4ywCezPWEg+1s/KZi2NofptJlUrsHTw3YNOcDnbYiQ4qXkvYU9zkmQ== X-Received: by 2002:a17:902:64c9:: with SMTP id y9mr15033909pli.289.1595180570389; Sun, 19 Jul 2020 10:42:50 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.42.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:42:49 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, sboyd@kernel.org Subject: [PATCH v7 04/10] clk: actions: Add MMC clock-register reset bits Date: Sun, 19 Jul 2020 23:12:01 +0530 Message-Id: <1595180527-11320-5-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134252_642615_DB247639 X-CRM114-Status: GOOD ( 12.89 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.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. Reviewed-by: Manivannan Sadhasivam Signed-off-by: Amit Singh Tomar --- Changes since v6: * No change. Changes since v5: * Added Mani's Reviewed-by: tag. Changes from v4: * Reordered it from 03/10 to 04/10. Changes from v3: * NO change. Changes from v2: * No change. Changes from v1: * No change. Changes from RFC: * No change. --- 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 Sun Jul 19 17:42:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11672567 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 867B860D for ; Sun, 19 Jul 2020 17:45:04 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 5128420B1F for ; Sun, 19 Jul 2020 17:45:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EMdVf6qO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qniJkCyp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5128420B1F 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=merlin.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=W0W99iohLBx6xdIT50w5rnyWluS3p08bqaajalrPTMo=; b=EMdVf6qO6ZAEQw1Pj7zVnpV4CT nBxR8A6wg2gFXK72hZ7HB2KiMRsN19NKyuWofmcZsElFuya6Oy2Ux8Qjm0dMV3X3zaWqNumYIwwJJ Nqy2Y18X546CIQlYxHWBXYtpwOIkvDZbN+k7CcdT6CdhcfPK3BI8yrICeCwWId5nfGqV/AWeMkc7u 82zbv9wqbrDjrdGD3kJhWItc668SOEaY552aCO4JaSKhAyY5BP/aLo6Ch8MnLBar/DAnknM49eOvX kyEv4gWME3gVkD5a5LK3PBd9KkBvmoqL0TwJonImBAK04iEapRFocppmvccTnrdrA1lsN4jO9hu7T XaSb77gQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLS-0000qh-DV; Sun, 19 Jul 2020 17:43:26 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDKy-0000fC-UC; Sun, 19 Jul 2020 17:42:59 +0000 Received: by mail-pg1-x541.google.com with SMTP id m22so9201212pgv.9; Sun, 19 Jul 2020 10:42:56 -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=bZxcR2KZzn+4XZ0ufduODiRcz7ZfigdmNagILQzXPSU=; b=qniJkCyp1nHKRjS4t75bL6r00uUD1VRlgUFg/d1qpq50yyoK/6XC/Ni5h+4Blm/ubE IqrXREPesdEnzkmGSxyt8BgMtvMM8etn8Ks9f/FrqFROsB+Fc/zY/I7DLF8vXV5bEEKz u4fyGV9n6yMy/KHffy27rq5VmtHMiK55R/o3+oqT8Tda/rNK8RiUSHOfACd7p5Gfxwow BlBicKHTPsC1oVNLR+RL7LHPvSMU72Zr6lLDwqyh4NyA9MWjvhFVKdAXiebP3AzkMGUq DabfV2TeAoygnwgP9cATknegkWln+stj3kHxi1ghEThV6DaEbcleojeEMCsagL8o4KQt bXNw== 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=bZxcR2KZzn+4XZ0ufduODiRcz7ZfigdmNagILQzXPSU=; b=UcwYPbYgnajyZGF3WsP/e3V02dgVUO2JXrUW+I7p45i4hTJ+g+eoN5Z+BhvQ+xLV88 n7aHovYFAQ27Yjr9ehnFD70YJbzbcKrbiOba6WePqknXcTrwSW79KALZWuuZgaHhtX69 9sm/7VO9PPfrPHAPLlTcHG92Jg3uQIXcQBDnAF8Xd/u8Kaxt1zAUfDpz6h1yT3myoJa2 JVPRs/DlTpKLdSoOK+YH7qkKYW2QlLQWGu6DG06aIbUOKFwp5YIR2lcuISrsSwBBpl1H gY41SuluRRthZ1gxg0A6ipjJfIEYJW8n3S8mtd17P9IQfprUFvK/gBHKnl8rBEc1CFDr p1fA== X-Gm-Message-State: AOAM530kdnZC4ueIYo5W56pWHVuOtVGQgt0NZ40jtvJQYmg/NmicV/YW 54ehVf6a3s4bTqbk67taGUE= X-Google-Smtp-Source: ABdhPJwTHRQChGBUhy+aOEq3A5g+j6eC9CZB7yP9nkAAjETquKlYP/Xx+R0WHz8fxyKyN91ctp2YHw== X-Received: by 2002:a62:4ec8:: with SMTP id c191mr15859767pfb.15.1595180574674; Sun, 19 Jul 2020 10:42:54 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.42.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:42:53 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v7 05/10] arm64: dts: actions: limit address range for pinctrl node Date: Sun, 19 Jul 2020 23:12:02 +0530 Message-Id: <1595180527-11320-6-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134257_112890_F407B272 X-CRM114-Status: GOOD ( 16.84 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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:541 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.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. One way to fix it, is to limit pinctrl address range which is safe to do as current pinctrl driver uses address range only up to 0x100. This commit limits the pinctrl address range to 0x100 so that it doesn't conflict with sps range. Fixes: 7cdf8446ed1d ("arm64: dts: actions: Add pinctrl node for Actions Semi S700") Reviewed-by: Manivannan Sadhasivam Suggested-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v6: * No change. Changes since v5: * Added Mani's Reviewed-by: tag. Changes since v4: * Reordered it from 04/10 to 05/10. Changes since v3: * No change. Changes since v2: * this is no more don't merge and fixed the broken S700 boot by limiting pinctrl address range. * Modified the subject to reflect the changes. Changes since v1: * No change. Changes since RFC: * kept as do not merge. --- arch/arm64/boot/dts/actions/s700.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 2006ad5424fa..f8eb72bb4125 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -231,7 +231,7 @@ pinctrl: pinctrl@e01b0000 { compatible = "actions,s700-pinctrl"; - reg = <0x0 0xe01b0000 0x0 0x1000>; + reg = <0x0 0xe01b0000 0x0 0x100>; clocks = <&cmu CLK_GPIO>; gpio-controller; gpio-ranges = <&pinctrl 0 0 136>; From patchwork Sun Jul 19 17:42: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: 11672569 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 2D8C060D for ; Sun, 19 Jul 2020 17:45:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 064D020B1F for ; Sun, 19 Jul 2020 17:45:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DdX8KC3n"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T4A14xNY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 064D020B1F 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=merlin.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=Qi9tSyGaElure3KNtPKfOophr9NhxQ11OanT0YeGjaw=; b=DdX8KC3n+2ApW2AmJhp2t1hR2b KGiFUOuM8+sX9kxeE5lhERz2U+JPZ8YlKzHYZoY6vyz8sLJx9ms5FkmrsIlL6AgdyX/NEupO2FbVJ TUikf6ntSm7P5y1hdcGDJ8WVdhc4DrCW6GIFt2An+zmmCADG9YHmFHBL58jzbmiKhuivRAWu0jP2Y kU/kwUYtVZu9J/O3ZaIMRSMw2V2ojvPI+/IUIT9VDRXK6iqGzdXFMGuuZwtD4WZdp2GZURIwNFN1w a24uFDyC80ZSxaR4uarG8vbn6kGw1EPnZO6wivVcG8CW+MgmrOs+wtDTpbXe7EKFlFYmg1J6nQviK vUsPl4Rg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLl-0000yp-0C; Sun, 19 Jul 2020 17:43:45 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDL4-0000hk-K9; Sun, 19 Jul 2020 17:43:05 +0000 Received: by mail-pl1-x644.google.com with SMTP id k4so7614690pld.12; Sun, 19 Jul 2020 10:43:02 -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=ln2ry33JZeYSRz7UO65SnIUwaEVYySx56C+yn6tKPXQ=; b=T4A14xNYImiKs5f8YkDq4Bh1g5kT81BjvllgxFeNPlYTAHgha4D+OFuOhBdMKKAaPq 0vkGtnTzPJzB7gio009QBGcs10xQY22lB4cgpiF+U6oX66+r/yvdyVcMFCqfNGMisg1g r2+1jYdIvoPOi36YUxMZfpzFIerCs0B3+WI44Owu4+cPTqzB/0QhpiouF/5nB+BqPHJZ 6haAN5myAQICQ2YI4q4yQyziqg4F6mCwfKsDPlXNkvAVIT8YPiNms/BO7WAJ0RfU2B2o AotDK0csSbWayGzLwYuWzCDMqE2LbHD+5oavje3liAP5QPPKT0jYYbw5n5THWzvyWfBc NN6g== 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=ln2ry33JZeYSRz7UO65SnIUwaEVYySx56C+yn6tKPXQ=; b=rnR6qHi14n+uLU1GjKIdcRQdF6H8+tq55upRYX26OqvWVafyo14gaEQAzZm69FCtb2 yUPk4Ue1whWVjGSgm/t4Q8X4V3hu8beXicIDefJXhd/nYVdXuSy9vCoWLeRJ6Ui2UNDN jciskGaFEHIQffKCcG/ETu4J9xa1ZKJZYJjwNiuGW/5ZbBgop0veDnCece/ydEFDUJsv Y3ZjBmesfXXFHrBYM2u0pXB9BsSKVAeyrKMKjwjsBL95BjXL0hcmZ0xtnuyIBgSOhQ2p zdmlxRhLlkAHcvEB72EVe4Z/gmx2sWy55SbKYazkkJw68iWrPa0oa+E2eZWPQIClnbuM Ag+A== X-Gm-Message-State: AOAM530Df9X3/HIhwMajFoKVPaeAcb6dlLll8vbjBQWVu9tt4439DPK3 GSVGUHBCZ/q4PEoqFW+hw7I= X-Google-Smtp-Source: ABdhPJxQkwKiYUaaBNiT8Nsgr0bnfGl6O9wNO7fgmh3rUNFYdz8A4F2uZnmkScIsxPgjEg40IgJLMg== X-Received: by 2002:a17:90a:fd12:: with SMTP id cv18mr20453301pjb.66.1595180580493; Sun, 19 Jul 2020 10:43:00 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.42.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:42:59 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, vkoul@kernel.org, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v7 06/10] arm64: dts: actions: Add DMA Controller for S700 Date: Sun, 19 Jul 2020 23:12:03 +0530 Message-Id: <1595180527-11320-7-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134302_788429_14244AA1 X-CRM114-Status: GOOD ( 12.16 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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:644 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.org, cristian.ciocaltea@gmail.com, dan.j.williams@intel.com, 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 This commit adds DMA controller present on Actions S700, it differs from S900 in terms of number of dma channels and requests. Reviewed-by: Manivannan Sadhasivam Signed-off-by: Amit Singh Tomar --- Changes since v6: * No change. Changes since v5: * Added Mani's Reviewed-by: tag. Changes since v4: * No change. Changes since v3: * Fixed typo in commit message. * Placed owl-s700-powergate.h in alphabetical order. Changes since v2: * added power-domain property as sps is enabled now and DMA needs it. Changes since v1: * No Change. Changes since RFC: * No Change. --- arch/arm64/boot/dts/actions/s700.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index f8eb72bb4125..2c78caebf515 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include / { @@ -244,5 +245,19 @@ , ; }; + + 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>; + power-domains = <&sps S700_PD_DMA>; + }; }; }; From patchwork Sun Jul 19 17:42: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: 11672571 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 03A9214E3 for ; Sun, 19 Jul 2020 17:45:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 D004A20672 for ; Sun, 19 Jul 2020 17:45:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BvCS4qRF"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M+C9Zh9H" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D004A20672 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=merlin.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=2nuEeaZCzk0yIgSYDWJZEp0Dh69GmWAEFQimwOA2hV0=; b=BvCS4qRFFiQklQmTEZU6hteqr4 NNIDWan8hTMwrEqylX3kE7TYzPV3N+qjfNOjNz3uPDUjkqEuQNZ85lnaKsdy4Dhmr3Zuf6ndELIJb qeTaBFkSkAnQ8NA1UZZzbIoXtL0kkhUja7xfbzKZPe4Mcm+JPoq9uAcx5WakL94NGWQJ+EkAkKEWe SAwyacdLKodcFddLHEnznT2mVqBzOuaDpLMJTEK1JTxpJX2sf8GJpu2LSVISHLnN8HkPVv7c9/5eU 4P6ENNJwmIJ+vUosFZoBS45STshYKOBVT02DJ5acvLDYvyinBNGvsByv4Bx5pLzwileIMSuNalnna QfYUmK/w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLv-00012Y-0G; Sun, 19 Jul 2020 17:43:55 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDL9-0000jn-CV; Sun, 19 Jul 2020 17:43:09 +0000 Received: by mail-pg1-x544.google.com with SMTP id w2so9217203pgg.10; Sun, 19 Jul 2020 10:43:06 -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=nEbCHjkuXDoaKqNoX/pXlsfKXaRlHFlOyuXXdN/SzCI=; b=M+C9Zh9HtKlLDwgIcN5r68LBOJctiR7QDIZ1Xx+UWWURs7OLs2IxO20q5mNV6QQcH1 rCEqPQWMFLLUxwxHZCPEG4DcWFS7BZ/MabjVNWIVNEQUzN/0TITJZ/WKSmRiqAS1vIkK CuYtgYZCiae581v0ew01sVsYu8zcEep0Yr3RQ+I/Br0IK9wGTlpypKPaaZYhOtaXA4sq 761DyfB7/iwlzm+My8gBiYW48BOHSVeu+l+sdnaAkLL1pNo1idspx1bLAEhVHo2uU2fd M1qlFrk2fISjTAmNQqTEVt4BjDf6X/ZPQX94nX5oUu5HwWMcM5S7VkQpYp7EWWjm7mOQ SqfA== 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=nEbCHjkuXDoaKqNoX/pXlsfKXaRlHFlOyuXXdN/SzCI=; b=W+EWeybs7i2hSao1gM1WMmYlUMDeVFMNKBqFCnIRzRQM1BPA9DvUxZlvctgPXQxO0+ cGO9QKRLO5Fx0JvqaGBr9QplcsiVbek3dlTW+l+mmPMbaNJlz7j1IlMs/X3JqW8z3cxv h2AIM5bSFSbfBlHT0WhrP41pldABRG74chdlx2u2pGpV6JWbuiivMl71XwrwVTGkAufZ J0ry+ob26CJ5365AypteyemZz1eLJUogsjU7vf+XQAM8ag58IRQc4JTLtb+ZaI4ARoNQ Qy0zbnx00mamAwXJYkA3J1n7KfCt/3fKYQmaNudbBfkbtXELiLWMKHEME5OhFaKsev4V VGqw== X-Gm-Message-State: AOAM532EFc8QA8xALdE0UPqkgXVeQTwr+/lHL6Ia5ZY4maUQb1DiDWhO Oqkc2es/CnWUvDpKHZ1dnDU= X-Google-Smtp-Source: ABdhPJzfMgnt5NuME4q8hdablaBOIAJjIJqyIVtNqpmCQV9zerW5+dhbRf7MElawJJiuB4vNUxVt5Q== X-Received: by 2002:a63:9246:: with SMTP id s6mr15687123pgn.22.1595180585006; Sun, 19 Jul 2020 10:43:05 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.43.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:43:04 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v7 07/10] dt-bindings: reset: s700: Add binding constants for mmc Date: Sun, 19 Jul 2020 23:12:04 +0530 Message-Id: <1595180527-11320-8-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134307_524997_5809D0D7 X-CRM114-Status: GOOD ( 12.46 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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:544 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.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. Reviewed-by: Manivannan Sadhasivam Acked-by: Rob Herring Signed-off-by: Amit Singh Tomar --- Changes since v6: * No change. Changes since v5: * Added Mani's Reviewed-by: tag. Changes since v4: * No change. Changes since v3: * No change. Changes since v2: * No change. Changes since v1: * No change. Changes since RFC: * added Rob's acked-by tag --- 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 Sun Jul 19 17:42: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: 11672573 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 2CDB160D for ; Sun, 19 Jul 2020 17:45:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 056EF20672 for ; Sun, 19 Jul 2020 17:45:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="u//mHr8q"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="N9N4kia5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 056EF20672 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=merlin.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=7bEs7lQlaCACbBFS5lDwxNGCa3KGdexuZqsbIKCTK3I=; b=u//mHr8qyUya60PZwqQ3DeE/BX +Og7HDnzFUK2YZ4vFSxrKp0dfM35lu3sb7AFTyb4O8+YW8Mgb1+FosEEW1u5JYy14CIk3p0U0G1jQ i+UbwmCc/o4MczgP3d8LL9LC8zz6AtgPICPZMvFH6wv2/DhBgNx0xdyJU06FkTEsDJBAqNf6AW4D/ 3yB6hT7MrqJu3dEM3sN6hcd3ZQN4MpuHN+824u/wNkgNalIGhIQtRGUU3V72bh5Vg1i+8popLw35c Y2smBFEeGMfpjshXvaHroMg5XNWqjPciKNNeTBGfs+apgpm5aZhZLm2miE4I7bSff49/IeD2eAn9w qHHpQAMw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLx-00015Q-Ur; Sun, 19 Jul 2020 17:43:57 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLF-0000mW-Qc; Sun, 19 Jul 2020 17:43:15 +0000 Received: by mail-pf1-x442.google.com with SMTP id a24so7920045pfc.10; Sun, 19 Jul 2020 10:43:13 -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=gLYlz5zLcstFedwvUClCeYbR/tSrAZj+4PU7wzkVOas=; b=N9N4kia58MB/FvuKAs/VVvfVXPD4GIw3Ta9I5UnPtNq3jV2eSUFdWHB+BhRE4Fmcdo ClxJ6QxP8EEs2XWR/t8e7RbiPvfurrlgtuUzFsOfDKp878aPcbrUNJaWTvQnwkflYvQI vaE9PUUa/T0ewyKA4jUNpe55VlwM0C+X+1LeEvTTbWOy0F4x6+aocJdA7QwYxag1N8WY sjqSsqWAypktiKWytnA9P962Gj3XhWYpo2sNthV95xCxvjvCj5U0VjzEq/j1heNZs0nP GFEyg2vf71i1+b9JBfIH2Cgns9WpUVqeItznMd0j0yVztxSyqCvxCxsc2JmVrdsj8Ymo rLuA== 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=gLYlz5zLcstFedwvUClCeYbR/tSrAZj+4PU7wzkVOas=; b=bmDw/EQF/48k2d8ZSLKvjbT0C7DRGAZFqufp9zSNu0NefQylIUNjPrfHEMlNx7c1pL IlPteV8HIVjPSMR7RC4ZiVBsT40ouRci1v5rua7tqM6pJZSdULejsVo/2LnlCx/5BtBL ZkslkNXTT95RDLWlWWImrXyhFkj3r1lTxD1Gj5ygRQcrn3IzyK7xUoZAKJEQRZqQt54K NBaJFy+KiKWycxFt6hyO2HuV09HvLJiizYmClLdiNMFI1ifGbOCoxK7m3j1hGChrascd 0EIgti86kx2V5ds6H9DSb7DEBuDbqNz05uHgqfOHOJiiwancAXYe/09ip9ewPR8lNIlR 1Png== X-Gm-Message-State: AOAM530nQFIe6OGjW6ojYGjxXC+vxgxjkWhKiUyHdMq12aAITRlIrI1l Ncgmo4eWjlLTdHG5TFlx1uE= X-Google-Smtp-Source: ABdhPJw2SMFYwWepGI+YF3ckzmJDKG8q0mMNIP8cSV1HMt2lZLcmct73XbifuRtMfVg/0hNG6Jcj6Q== X-Received: by 2002:a62:be06:: with SMTP id l6mr16645381pff.310.1595180591638; Sun, 19 Jul 2020 10:43:11 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.43.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:43:11 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v7 08/10] dt-bindings: mmc: owl: add compatible string actions, s700-mmc Date: Sun, 19 Jul 2020 23:12:05 +0530 Message-Id: <1595180527-11320-9-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134313_951404_4D16F21C X-CRM114-Status: GOOD ( 11.93 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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:442 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.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 The commit adds a new SoC specific compatible string "actions,s700-mmc" in combination with more generic string "actions,owl-mmc". Placement order of these strings should abide by the principle of "from most specific to most general". Reviewed-by: Manivannan Sadhasivam Reviewed-by: Rob Herring Signed-off-by: Amit Singh Tomar --- Changes since v6: * No change. Changes since v5: * Added Mani's Reviewed-by: tag. Changes since v4: * No change. Changes since v3: * No change. Changes since v2: * Added Rob's Reviewed-by tag --- Documentation/devicetree/bindings/mmc/owl-mmc.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/owl-mmc.yaml b/Documentation/devicetree/bindings/mmc/owl-mmc.yaml index 1380501fb8f0..5eab25ccf7ae 100644 --- a/Documentation/devicetree/bindings/mmc/owl-mmc.yaml +++ b/Documentation/devicetree/bindings/mmc/owl-mmc.yaml @@ -14,7 +14,11 @@ maintainers: properties: compatible: - const: actions,owl-mmc + oneOf: + - const: actions,owl-mmc + - items: + - const: actions,s700-mmc + - const: actions,owl-mmc reg: maxItems: 1 From patchwork Sun Jul 19 17:42: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: 11672575 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 0480160D for ; Sun, 19 Jul 2020 17:45:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 D1CE420672 for ; Sun, 19 Jul 2020 17:45:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SL2G+c8L"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="E+sG8A0C" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1CE420672 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=merlin.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=n5JqeGr0fbxg+rc8+iycXjlBCNBGwRQ2ON7CyaUxClg=; b=SL2G+c8L90bf0uZzazG9YFgcCZ sQr6C8YijgLd67aYoPg29QqVQNqbu4VBbmk6Z0U9azVLGLeTHrNauHoYS83F4bU5xEOxTl2LcKBFs 7IhHhILSmcFl4qtiahd1lvubePzPnmPcs2FTWrd83RwyG1U6rThRurT8rF5YW1cCJAvT39sNCVfQt 7GlxiSxc4dtzxANDCUGJX+MM+iF6Y5qu9yrj0WGRI4Y/71dTANa2qqZSFSobpPnHAB3biTwgv1y10 uJquq41owTKwEZbWm6MW0edXSwXmbEMwAZ05wMfrio3Ve7GCFBM6fEIYl/lj+b8ekBUyZY35Bggd/ HJJuX6uw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDM2-00018W-Ur; Sun, 19 Jul 2020 17:44:02 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLJ-0000oF-N4; Sun, 19 Jul 2020 17:43:18 +0000 Received: by mail-pf1-x444.google.com with SMTP id 1so7917054pfn.9; Sun, 19 Jul 2020 10:43:17 -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=34HjvNomJ/6biYOR1u7jUgjUz6VJVWlaaUwFENTGmD4=; b=E+sG8A0CN4wkbdT7H50UQQbfUvdE3WXixoQ3K9Wpj/K2MHcm8rtFoa4BbXoJh7c32A 9iQe1QXLunMGMGN4nA4sxdluYUjn2UIJjZ1X3YX4wjCsrqb9GY01Ay4G1zuatljKdvWo m/A+v2ggxZA7qe2mNmgApbOfaBUpJ99jRi+qJUa2se70OheiO+vx7FQG9/xuJywUQeIq L7F2McS4RU92C3G6ql53QwjbSL4FW/qQ5DTs48WAY7o+hqp3qi+M/Oe+GRY6yKqcGcH/ PtYy+MJt/2mCXu3NxlXdmxDLruIFZeXJLb0FmbfNZn9lwWyoeNZougslM6YGTjAryh+m EApA== 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=34HjvNomJ/6biYOR1u7jUgjUz6VJVWlaaUwFENTGmD4=; b=iLx/rxxT1REOfukCVNSR/ogFcPrETAE/RCuXN76HmZCsm+znXJVhuKuSu6TpNLkcoB zSwL++6WQ5G3um66crJ4dCZOp+uupqIl8zqBQDQhfXWyuGVikpeC5VHk2LrkRouCPixw tb5wCDXYxn403o8BRPUY7qJ+X0BqzXzdnbSpQMS2nKdFqKLo8BruhevG0Wksj2CUWnPW Z0xRCqqkZwA4e2MGk9PCD/NSE129odn7/JCX2BIXWsdeXTgddcCDoiHp7fFNAqKH1djY jukyNkqfOMRYYql/J9N+isGv9kgkl0yljLiB7WraUssAn3HkiERXW4NCnVouHs1dTx6+ epuA== X-Gm-Message-State: AOAM532dEKilwOnijZzSaHcf+gcCL52cD50Ax2IrLEhcLaS5EF37/1vY k1ysQBWu+H85kKFMZVDELTg= X-Google-Smtp-Source: ABdhPJzmwlE/CSIZmqoN3qQbbBYtT6vWZ7R/h80emIl1CPS88GKs4E5CT9vjbibmsxDkoGb2y4DSqQ== X-Received: by 2002:aa7:9422:: with SMTP id y2mr16669862pfo.211.1595180595789; Sun, 19 Jul 2020 10:43:15 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.43.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:43:15 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v7 09/10] arm64: dts: actions: Add MMC controller support for S700 Date: Sun, 19 Jul 2020 23:12:06 +0530 Message-Id: <1595180527-11320-10-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134317_876201_8262F943 X-CRM114-Status: GOOD ( 12.31 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.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. Reviewed-by: Manivannan Sadhasivam Signed-off-by: Amit Singh Tomar --- Changes since v6: * No change. Changes since v5: * Added Mani's Reviewed-by: tag. Changes since v4: * No change. Changes since v3: * No change. Changes since v2: * No change. Changes since v1: * Added SoC specific compatibe string. Changes since RFC: * No change. --- 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 2c78caebf515..9ed88aafc2da 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -259,5 +259,38 @@ clocks = <&cmu CLK_DMAC>; power-domains = <&sps S700_PD_DMA>; }; + + mmc0: mmc@e0210000 { + compatible = "actions,s700-mmc", "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,s700-mmc", "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,s700-mmc", "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 Sun Jul 19 17:42: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: 11672577 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 7778260D for ; Sun, 19 Jul 2020 17:45:39 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 50B6B20672 for ; Sun, 19 Jul 2020 17:45:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0iKNV/s4"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VzNVcvKH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50B6B20672 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=merlin.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=ci1NS0zsC8r7JVkPAxZ4DiGSD3ZzPmL3ANa1qWVAB1M=; b=0iKNV/s4jM6lxmGmn/fg+VQ3B5 WvJJ+AqpA+AX5gWsdPaUVvZPCNrnBeEPSdn8u/rwSKAu07Pl05UUaTff3v9RIVZWO8CDwJLMW3184 fArZpPj/O1xuC38Ew2PqrAnPAb/hRM/2M0X/N2fynrpwProiWT+DufPkqGXDeyuY+NbPUB2mz67sq u7lX3F9IJFJTTpkQYdv+ZiJXx75aw6MsCShfrB7jHVhUtX5fhR3x3Fly2OrIbBLjMxHxoVrWD/3Sl FVRnUE4ZkOalYB1RUhyA9GEIb1CLMc2hxGVB4Rtr0fbhGHvWHMx1qmYMFzzNxOglcS8wL7EfKlMnZ YU+pbebg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDM8-0001CY-7U; Sun, 19 Jul 2020 17:44:08 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxDLP-0000qU-12; Sun, 19 Jul 2020 17:43:24 +0000 Received: by mail-pl1-x643.google.com with SMTP id p1so7631569pls.4; Sun, 19 Jul 2020 10:43:22 -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=xERbi9bOr6P1N81bLEIUaoSvz0k8bcyvEw3AL2LaphU=; b=VzNVcvKHYgWdbdxQuuyqQMzUyuUuUU2Phb1huMF/OBfv7MQlICLcPyGjuOd6VlU6EQ aNVVxiCJgUSsqy0qIt5x7UosITnGj0D7Q8XOdi00pwJnzMpnzK9KkkXSMp1z9BgAIYgm kQ4GWWQKmsduJjBEU+ZnA3cjmZdkBTImdzrg7ZEumA42RIevTDMC1/7zsX4uMGpMOA1F GDusz0n96S3sHkFSa0TP9WWb/z61eC/arMp2FVf5v+svRQz0vWclprRKlmCYwFex63GJ L47i+gqamRoP1QLAUIG0cr51ux80rqGE/Al2PnRVhz4FECnytKWrwgRX0s7mPMJGTSYo MFjQ== 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=xERbi9bOr6P1N81bLEIUaoSvz0k8bcyvEw3AL2LaphU=; b=PB2+bkKBQMowZBXDp9DZ02gJhcCiIPLeUPFlYWRp0KQd4IwIfzclYDXYEKejc13owF xuK5iU6jzEstUC98s2i/+akPq8jfgHs3CnYP3Xq7YIUy3r0ITvikPGZM4jbI0xDkgwIX mbNxlHkwJ7FKnPjSikQOE8EhwoVZTYaegA9LfkjASrOwIy+R7ay+DwjXGiBqrjqzV7oO RxNqK5+O4L3DThuX0Y6R5s+zXNmaphPgsVpxGNm3KmEXrDRY4aiu7mMF9ZA58ruYQg8e goxQ1OSnUIN06HN+cIUlDLNz47wFYGwcYFAZ5EtZ/H8wy6sVL3rih2Yzcg3MGLrFwFLV 8GBA== X-Gm-Message-State: AOAM531tnz7XTBbby+sb2X4FfKX3khz9uUrSezvnk9brS6RKKMgzDURt TP3m6wFINof9tTpe5saeCD0N1YSvEdQ8Rg== X-Google-Smtp-Source: ABdhPJzFjy5Re5wHrfnnLOEDXJwqhY4zyTlQNcb5gvH/weedfkGoPOAqpkcFiObqh3Tbzqalfy2kcQ== X-Received: by 2002:a17:90a:21c6:: with SMTP id q64mr20803329pjc.172.1595180600915; Sun, 19 Jul 2020 10:43:20 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id e191sm13906083pfh.42.2020.07.19.10.43.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2020 10:43:20 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v7 10/10] arm64: dts: actions: Add uSD support for Cubieboard7 Date: Sun, 19 Jul 2020 23:12:07 +0530 Message-Id: <1595180527-11320-11-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> References: <1595180527-11320-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_134323_279304_2472BD12 X-CRM114-Status: GOOD ( 15.85 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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:643 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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-kernel@vger.kernel.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 Reviewed-by: Manivannan Sadhasivam --- Changes since v6: * Brought back the uSD fixed regulator. Changes since v5: * Removed the Fixed regulators as these are not needed. Changes since v4: * No change. Changes since v3: * No change. Changes since v2: * No change. Changes since v1: * No change. Changes since RFC: * No change. --- arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 33 ++++++++++++++++++++++++ arch/arm64/boot/dts/actions/s700.dtsi | 1 + 2 files changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts index 63e375cd9eb4..f81d63261ba2 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,15 @@ device_type = "memory"; reg = <0x1 0xe0000000 0x0 0x0>; }; + + /* 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 +91,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 +108,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 9ed88aafc2da..ba498cf9217d 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 #include