From patchwork Sat Jul 18 09:19:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671791 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 CD47C618 for ; Sat, 18 Jul 2020 09:22:08 +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 1CFB9207FB for ; Sat, 18 Jul 2020 09:22:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W7SKXlr1"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DtahkAlk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1CFB9207FB 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=I+S5JUJKik5ZjpqWEH6HhjKAVIz6G5YVftoINc11IWA=; b=W7SKXlr1BxOyyv9i3Ns85s/W+p hzumMMj2eVoy2kc7xWLIahcBUyWeR+lXPwAlw4J4WqnUM0Lsi3PGPUUA+faDa7IodYq5oOGOFh8RH iRRyR5LsPwYQnnDBQ1b7FAqwgUsQJnHgOlEfz9ij5RU6A3JmOXwrft/M7k+NyBMRvmRw7sKossYLo kh5qvBKfJUQv33+u2P6j0oDoUDBiq+WDTcvlH1PBDc40Mo+WZiJwZ7mAlmvQVB5SVkF5MEU/qIVHq fMG5UMhWaFiBjyBSOApnUUmcqaG0XK/wXvjm2SMbB9A4HwevbGcAQVrHnYt+yQIjSO4qqi9oBVkLf 86Hps0Gw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj0w-0001aI-7g; Sat, 18 Jul 2020 09:20:14 +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 1jwj0r-0001Z9-If; Sat, 18 Jul 2020 09:20:10 +0000 Received: by mail-pg1-x541.google.com with SMTP id e8so7846475pgc.5; Sat, 18 Jul 2020 02:20:09 -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=C6pIxbOUMM4YIylpczsugjr/zEWMDNDTN7jorTB2vew=; b=DtahkAlk/yirqNfs2QfZoR0gccv8wzxCzxD6lNl7+HNbxO0h46T1aeVLL1ukoKxDEA eZGnEWL8w71b+DmxISg+4Z5Gc9dZ1BYJ6kwEqrruilgdg4p3Jot4PI3H5/+SopTASYsQ fjDVxrW0YbjUUizzBNavxX8h+MTZGg484I3MYRqM8j74smNMX4GKSxF6MrddAuhyJsVe FMZwx+bZ0Uiiyz59CuJWxhXnsCQBBVGhyTCHEEF+j1tGA/zCrcaU78gxJpct5MR27XZ8 bgPp4mfg/+fHYSrfaSKehnwr1d0Ag2GCJ5V5deIauyVQHbyqJZhPGiK724uGKTyRBGD7 gFQg== 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=C6pIxbOUMM4YIylpczsugjr/zEWMDNDTN7jorTB2vew=; b=OAkdl83wBs8F23qP6Jt4TKASHLu0jGn/WQ94Y45vt6tD3ZbGVNiuoIQ+tkdhpay6qg pLBVsXcS6N7Q+LrmaoB+1yTfvOsH3J05MEJlfMtOcgpZNksMU+hPLgXltPD9o0RgHCSb Zbo/hrqJ269NzUD9oiU4XNkN8kWq7cD978Y6wNCFnksn28velfJHr8eB1inP92IbBVG+ tWD/dT5LKXei2qpXgPZ+W/aQRy0LI2vtHykr5Hxre+ugIIkv1Caeg25st8ZWyLIrH9V8 1j5nw3ShdqAHzPbo9Iy/AwE0hu7L7PVf8Do1j7IOq0af4e1zdm6Q3WbJlo91q8UwlpXA Yp8g== X-Gm-Message-State: AOAM531nDEQFA4Dy1T2PKB1OaQ0tsGySfAntOJyD6YYMtBfNfz+nBSaO ZXOVqbWoFqGgC8rzLHMV5LA= X-Google-Smtp-Source: ABdhPJwYGoouV0+zWdqRYkGRJ4iG5Nj5tVBnAIQUiOC+gcfl2J04HClefmVNd3KbGbDdJ13IO5aDTw== X-Received: by 2002:a63:3ec4:: with SMTP id l187mr11550281pga.371.1595064007723; Sat, 18 Jul 2020 02:20:07 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:07 -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 v6 01/10] dt-bindings: dmaengine: convert Actions Semi Owl SoCs bindings to yaml Date: Sat, 18 Jul 2020 14:49:25 +0530 Message-Id: <1595063974-24228-2-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052009_686898_625899AF X-CRM114-Status: GOOD ( 18.01 ) 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.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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 --- 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 Sat Jul 18 09:19:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671793 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 8FE9E618 for ; Sat, 18 Jul 2020 09:22: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 65E2A207FB for ; Sat, 18 Jul 2020 09:22: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="G+mP1R+C"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L14smzfn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 65E2A207FB 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=xy5658spSnDn/1PAxpLxQ4qYjHy0pXHHyPazcvUYcv4=; b=G+mP1R+Cr4G80b7fyPYhXvwRWj hZV/dJY6z7bTTkgVU7fYHzp0IynKIM311LXxypeBa6704i0rhyWpO6VMp+eX88tgXdRszonJQm9pN 049bb8fIJkfelArN8yD52H+MGYjuIV9VdN6YUMvMZmz5dhACgKS1s0gIL9UnXEtoRzvGqAeHzOFlq zd4sKaN5jP2HBHusDfA1dGh408benVb0z3HxCs35ScvOwusubvteX6P1qez9ex1WlBWMv98ozLksj gDqL3Dc4jwgVRUxQG7tt+8X6cmM5CxJXE3ka56HYN6OFZGCAjl/MC6WGSeAxrHw/4x4v6JxSPIFrN VtX9RNnw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj12-0001c1-Ik; Sat, 18 Jul 2020 09:20:20 +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 1jwj0x-0001aP-Ki; Sat, 18 Jul 2020 09:20:16 +0000 Received: by mail-pf1-x444.google.com with SMTP id 207so6580441pfu.3; Sat, 18 Jul 2020 02:20:15 -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=UaC1El4svTPWWv/qHlp1y2AKMj6GXHYb+T5pK1WKkD0=; b=L14smzfnFCwhYPdckJw1ERr9pnwQ1X2QgfyZtLnI/VU7uxipFLFAckYA2bH4ZCZE/5 p1YbDjpy2xOaadfugYZ1tRbwkawRceI0zTQ0T+lAO2AtWVClbauh1mTDgJ2A+lBEbQAn qtkdCnMQTuItjL65slHTH30Zd/Xopow92YMZ1XnobFMU0rPw+R5Th3tfRMs6FxyBkWzr icOJQTuWtlTUsAXLX+NHRsyED6RcKEQb7OlQ4nYY/Sw4zc8KTiJH7MH3Bp1YWEOvwqXF HazJZELjrYZRzTvbxa7G8U0t4/VF0sYADR4COzuvdEyqbIegfK94THRidBbPt32iaM9b JSdg== 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=UaC1El4svTPWWv/qHlp1y2AKMj6GXHYb+T5pK1WKkD0=; b=SuQQwX65M2RG+108io4VCPgNO0VRCahMx9DsmM18mBSgIe3nqlPGScRfWgEDzhANlU fBS8Eq+u9dyBbM4WFXG+4nnhZ4kT7VdBkZXcVraZw5uD8gjYmn4b1hd6opUCm0/MlNGi IzuoqZ7g0ypRvzSs4BXWBZ+pdlLvaHWlZcBOuFM6uIvAKUV18HVunH7RQzF6v2y180YA uXtqtgBb4fApwOJ8p7S3D5rS7sj8Lb5zEkt4vgIsbqXbRzU2pQykSWimLdtOERszQFNd WPNY+SbALu+CvCRteltc5BwzXI8LCEh/BbYSIPftG2QpIBA8zqk/ufJb375t9/W4DoZ4 KtRA== X-Gm-Message-State: AOAM531LAJUNI5AZfi6QgYevVtvUXrlFBbtMJro7Te3zxZPSU3OBzdAc LEpuBEUHxUFnOkZPI1nBvM4= X-Google-Smtp-Source: ABdhPJz/W3yRXHPyauUdYC/FsxYDovzlozVs4hgnmAHQldZHD7l6yGzJSZVwRjvK/UY71mNBWKInww== X-Received: by 2002:a63:3151:: with SMTP id x78mr12176358pgx.210.1595064013260; Sat, 18 Jul 2020 02:20:13 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:12 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, vkoul@kernel.org, afaerber@suse.de, manivannan.sadhasivam@linaro.org Subject: [PATCH v6 02/10] dmaengine: Actions: get rid of bit fields from dma descriptor Date: Sat, 18 Jul 2020 14:49:26 +0530 Message-Id: <1595063974-24228-3-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052015_737637_CD1C4781 X-CRM114-Status: GOOD ( 19.67 ) 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.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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 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 Sat Jul 18 09:19:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671797 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 BDF2F161F for ; Sat, 18 Jul 2020 09:22:11 +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 0BFC62074B for ; Sat, 18 Jul 2020 09:22:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kznDVzst"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YajpXcQu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0BFC62074B 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=zeXiLZexjcrzCl1W+yjF0PsKYq/Yq2RCosCuQhXvdqI=; b=kznDVzstDZqGsMzUfeRIsEpPgE V9XikO4yT2UfK2Ze0xzlD97G7HBRX57PAV6gEO+Bq+zt5vHg+EwV6JVfy2njFrS2DEn+fheaa1PG9 rsegoxq7nVdPJcZazEE6rFUMSx/Mcs6THaqV/tNc+gf8itdfqLzTENmmUUdCzABBJNRHhoVWciu5s T+iEpxYw/JbhacLyjGQlNgWLz5G/4AS37VMwfhm6WCQQdIQ3GCUBFAaPUfcGt4OmB0f3CGEbVqR6m F2IvGK4srsetIANgIqvrjqBZfFxzzl7m16Gq+rqRQaQ/h2qF2lrwHIdau+DQ0tBjQY7iImCHXvKpy 1KL3OecA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj19-0001eB-Lm; Sat, 18 Jul 2020 09:20:27 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj12-0001bc-0l; Sat, 18 Jul 2020 09:20:20 +0000 Received: by mail-pg1-x543.google.com with SMTP id w2so7842676pgg.10; Sat, 18 Jul 2020 02:20:19 -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=ThfhK7Ig6ERk1DuezDdwfEkh06U/LKqwI5r8Y3KMnK4=; b=YajpXcQuO/MEKNybONUnecCl4iX4Qy5nqWHIebjQ+SEfjqKJmY75Zdu+KV4KkQoJKF uA6/OXJLKriU5iJ2UQJvRF7iNLFgdcUk4xMpOUL/E/r8JTcr/POkEeeTavegWSLwiJXV 6jvme/Dal5utwFef+wXMxDwfB6l27appmyk/vbEsfqla6c2ckeAoDYMJw6SBtVs9NKV6 3jjqkNtXOKKKVAS/NzG/D7KKIRJzS9RJKxC/hB/04TDdZsNKZFWewUGh1kggPckX+pRE tzm8hnnCxv5c+Id+Di1LAOtkYFe6ea12F6SNXkQZsNFfvr5CrbJoZXPgx9HqhdaMzYLl Kg7A== 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=ThfhK7Ig6ERk1DuezDdwfEkh06U/LKqwI5r8Y3KMnK4=; b=Y1MLCWuGkV/PrBIjXel+XC6H5RyjlcOFwdFj7fhT53Ieg48u77wSDuH9ql8TV9Xfkq 3uUHBg02RlT2WMo3SZafVDriSUl4BOrR4Aryg7jh7J5yWc+O0N0vE7fBUFZ+gwIrGVPz Bd1Gv9mia14reug5JXI6nY67nssvfGNOl0OrBonOeKZIIKwXf6W70CAPCFyFe1SQ3tqS djrcEQyS44RhUJeXB+Y8YGImrdrUpXfymm8+aR/ScTMlyoACy4T/ObwnRrnrO6dTA3YE I3FV0hh3FBprTcMetB5Bw9hJGPipKkzlwvObtkbCCgUS+AFd8ZDBeWbzAApVpu510AsO 0CZg== X-Gm-Message-State: AOAM530CLsGdpoqH/pmBzBP8TGe4DAidKRimTNQeBTGQi9HJIPU5CawO OdCysbr0lWkZX3AageywSIw= X-Google-Smtp-Source: ABdhPJx/gNZxKzo89e/DrC0NlX7O/2iK2K2LdfBCaCF1Soqc46GdtHsrj5GdGHiShiGXy8822zi40Q== X-Received: by 2002:a63:4b44:: with SMTP id k4mr12303551pgl.305.1595064017900; Sat, 18 Jul 2020 02:20:17 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:17 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, vkoul@kernel.org, afaerber@suse.de, manivannan.sadhasivam@linaro.org Subject: [PATCH v6 03/10] dmaengine: Actions: Add support for S700 DMA engine Date: Sat, 18 Jul 2020 14:49:27 +0530 Message-Id: <1595063974-24228-4-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052020_111602_1924E730 X-CRM114-Status: GOOD ( 20.78 ) 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:543 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 Reported-by: kernel test robot --- 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 Sat Jul 18 09:19:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671795 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 331AD13B4 for ; Sat, 18 Jul 2020 09:22:11 +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 6918F20882 for ; Sat, 18 Jul 2020 09:22: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="vjGapkV8"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qF1a1WZq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6918F20882 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=vQ0V2g4z9cCJiGvYwdZzT7QIdMHFCZ8oWCuVIv5505g=; b=vjGapkV8HlhOzw2um8oCf0J2mZ QcnNdKM/gpOE+GqI8ah/z2dTsr1SGFGL/h/EXhXluJQVhNvphxCyKfPN/ZpD6DvrwgeVnTXPgd04F r3pi5s3aJhyPwwexcCTXTlWLSpnSmfPs+1Sixsdy7I4jQPb8LXjOriChjQiz+zrzXD+VLlkMb0LN7 Ys/cpctMefmEc5kWp6qt0Xmj6331AtIGvD6RYg8tzBvXVpEtvy/BoWAVrzRh1e6V5gk9qPio7q+xT FA7KXrnIZ2k5f0jJYMqQMpmRA7KWgSpbKWojpSuwhD7FFbu3ZC3xMJimV8INq+2BCVU/BUIaJ/8fZ Tn4tNrYg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj1F-0001fo-1k; Sat, 18 Jul 2020 09:20:33 +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 1jwj17-0001dP-W7; Sat, 18 Jul 2020 09:20:26 +0000 Received: by mail-pf1-x444.google.com with SMTP id a24so6576399pfc.10; Sat, 18 Jul 2020 02:20:25 -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=0LdVF4Wtif0/2NJuxoxJqSPIuVVPOku/Ym0I0U/TYRQ=; b=qF1a1WZqxZb+/GM7u9xwaCK8MPhe+9C27Lg/Z1kC+uAUQJEk1giMzh9GDXGvCzcWJP mcblQmc75BaJmzdim//KiDAJjR17Xo5NkB1n2ow3GpFxPtbppz3XeFm9jD8pOJqNdDVI ncI7ZTIsdeviSOEx+9hneHaYxHa+xjwMPWbae938fTO1XxFvuZqdZB4gxs2aMcsT49at w6Uaw/hbDDn+JKCrv2cGXfRGhXL2C6noOqF9R5HcethWFAN36B3HFejrh6rVgVYJp8HK Sf3sPg4MCDRJL4Ty1d7WeSu52f3wt7x6eY7PYznwL3DxR4OFKT91qPSues7/DAk2oHt4 wMzQ== 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=0LdVF4Wtif0/2NJuxoxJqSPIuVVPOku/Ym0I0U/TYRQ=; b=W1w6eIQeogfmB+Cyl0JpApLTwJ4dNtg+I3i0WlBtNlq52ttUBol9G9xQM6FSLdqHt5 pvo31mxJJAZUWHyS6+1X4zZPn983JPOS9gjvAdbRsrzZg9tDtybZfeXLLydaWDvKsnHs tjEhGNWMGM5n77my1OWl/iiFG6077AHB8RRDmM68iujSnOGFeSRdzXWosTwa690jz8BE GscZ+BwcVoCpBtJ7jXfavzIgkcgh8V6PFhjb6M7QBeZjpZiQoZkXrRQT9C2diFAr8scG ec2bNf2L+cikTVF/TtAo176N8XcQuLOFygf2GSj9E8cUdhsqI7CEz3EKoRPwOv5kyWZ7 Q2Cw== X-Gm-Message-State: AOAM531YTlJQ2d4DeBpj6/+lRr/Dg1ZEjaFZk2kKBb1Dug0zxd15W19Z cLsTuCPd0if+6Tz4ZZvwNqw= X-Google-Smtp-Source: ABdhPJzXlgDDgAarFKF/M3MQ/+1yvjbOWQ2P7FE4Yd0ZiZlwbj5GhM+qTN7HOgWFj8IVulEyyltn5A== X-Received: by 2002:a63:6486:: with SMTP id y128mr11297854pgb.82.1595064024179; Sat, 18 Jul 2020 02:20:24 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:23 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, sboyd@kernel.org Subject: [PATCH v6 04/10] clk: actions: Add MMC clock-register reset bits Date: Sat, 18 Jul 2020 14:49:28 +0530 Message-Id: <1595063974-24228-5-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052026_089439_AD15076C X-CRM114-Status: GOOD ( 12.11 ) 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.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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 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 Sat Jul 18 09:19:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671801 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 64CAC618 for ; Sat, 18 Jul 2020 09:22:21 +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 609A42074B for ; Sat, 18 Jul 2020 09:22:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jiV88CcY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Je2dR1bA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 609A42074B 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=nIjqO8Al6pW89ael+8ufPZRtdpn/h5JyQb9Pl+wDnIM=; b=jiV88CcYnFYc+y4b9z34rrJ0Oy K8xVRmtqCy1VNs2F3IAgxkYQjyTsPZnWo3IEsH1PHQBsXjGIg3aQg1eR+qUGdKbVuT+i3ekN89GKC 6MsfFuSKr7KYUSvEJSPYbskd+Jv7SlzBdf5rbIsMan0vnDREi25ZdryqYz+vnBMu2tfk2F+3SM7A/ CU0h34iVlVvFF2QXmC8TqNnDzUGTTrbArAIrVAWyCDRd7HUAiBzWrYOQF8WdcHvJgrqbTUbB2Slr0 BjOa7a4KKzRddE+R8b3GSH7QdzmOos5hOW6Xgh1lzEYz4zYJqH2rrNjIiPJWPJiy8DujDKxWDoh60 AWbO6lHg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj1Q-0001k8-4y; Sat, 18 Jul 2020 09:20:44 +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 1jwj1C-0001ej-IL; Sat, 18 Jul 2020 09:20:31 +0000 Received: by mail-pf1-x441.google.com with SMTP id u5so6571902pfn.7; Sat, 18 Jul 2020 02:20:30 -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=VPz9PqO9Fqan7fgK9F0BFc881ZLwxwDTW7XHlYlGQII=; b=Je2dR1bAFL2DpRZeffZ72m+vvYqZGOkck7LsbrjSfzvVXDJRqBt4uPs1r5zzhI2Ehv 0bHZDbS9+/c4ZA4fVkm3VJnRpQRuJK4gpo5GzY2Qi9HEq1f0eQMvDADvH3a244sQfLbc AtxS+NBQ27Shwf5FrJVWqenviRZCy91jCI96lGvqFofpZSqzlghNJrIwWPra85Oss4gM XlYstoNOk88A/fNeyDfhjC1RVYzfef+b1eTUScYHRYk+qANfqK2xd8SRSJ6uJn8iRyM4 pWofsrOsFc31e1orAv95bfi8NQkO8wYN5EB17yihlRxzeCy7Rwfhj9ny+hWg0vhOm+42 1UUQ== 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=VPz9PqO9Fqan7fgK9F0BFc881ZLwxwDTW7XHlYlGQII=; b=fcwMNIvyZim1AypHUXi8Fc3hdaAc/tsP0KmscNQsAbExbg7AXVSInJBWZ1Y/6NSoAm oCfj1ang8G6un099NI1xEHiyTDgNwqnc3HvkBKncDkxkcpUPQ/wQ12dGNH2dpEb8d6Pr VM1Df/STDoUWNPDX0Bbkq0jgU9QJ9XKA/mVfAxtye5Hlcn2rZGmR8KBtVUXlGJY+8i3T xqnqDF3+JUbWNMyVvmvwWcLG4TCPzcDJLK5HgqnjUEhlSTeewpt6LiUUhuxLvRDpPDzu gGWouFaq7zv99jRsfZ8BaSkKOyxJ6bWHnD0eR07YtIcDt+HzsJZcpbTCCKwWtPIl30cp pjCQ== X-Gm-Message-State: AOAM530ePpr8d8SyTi93pKJiq/RwKMwKMwuPMbVRJz6YTWbrAh8pVWqC yv3axXqwHia1/xxaWxjJ5RQ= X-Google-Smtp-Source: ABdhPJxeAlYCHfG6arM5pN4J/6BocT8Uxjj31ay2Co5u+K7ginHHumgJ+ahENZRQ1pUz+Y3suEN8ig== X-Received: by 2002:a63:df56:: with SMTP id h22mr11642652pgj.140.1595064028398; Sat, 18 Jul 2020 02:20:28 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:27 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v6 05/10] arm64: dts: actions: limit address range for pinctrl node Date: Sat, 18 Jul 2020 14:49:29 +0530 Message-Id: <1595063974-24228-6-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052030_869337_05DAE48C X-CRM114-Status: GOOD ( 16.06 ) 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.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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 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 Sat Jul 18 09:19:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671799 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 86EDA618 for ; Sat, 18 Jul 2020 09:22:16 +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 CF361207FB for ; Sat, 18 Jul 2020 09:22:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kBs8Vm7T"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rT4nc9Lh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF361207FB 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=SKf8a9LzlJ4ArJC8ApBkm2rFx+bWynwypaMtgTPLuN4=; b=kBs8Vm7Twz+yKvaa8LMpQYuHrt BXHb2MZlN2Y4Sc7k8VU5FFWPY/Ke6p3K+QGZ1cc+gEcxpGF0MvKHJrA4fOi8bG4yPQ4C/4iautL3E JV01Z4rz9rBXImkVCQUElY6tg1iCquClamPicDaXG2aODv3iWWHVWONsNnQParGHemFmWcrHkG6GZ RBXwRB6qeFefPfKvsvnhoKpWtzNfi2u26qhY8UBSLN3aHYjNUBIwIF1w1rEqFw/OJowyK+iK5ussL vlMgnQhsa3gWIwcZ6pzX7pYe/39ph3ne12XQktjqb8A8Ixi/2uG5LmwDHS+yeQ0ZSMtHExvCL8S9y AFFdcVxg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj1Y-0001oT-Ob; Sat, 18 Jul 2020 09:20:53 +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 1jwj1H-0001gX-0v; Sat, 18 Jul 2020 09:20:36 +0000 Received: by mail-pf1-x444.google.com with SMTP id a14so6580725pfi.2; Sat, 18 Jul 2020 02:20:34 -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=dlgQtSt8lmQHKVQg6Y2+SUeJ48KeaI0kz4R/u3ja4Go=; b=rT4nc9LhZf6o8r8DUb8OM8Dx4gE+t+VXyWau1AEUJKS04IPpleeNFd+PZ3JXWFU0lx 1KOOr+XvZyaqKWWove1xqYC9wWcozkLeT5JD96K6Y/3ZgU+CeaJBjrhpZP18qRveaEA6 sXpgAUKGFKYIzeauWupC5CuqUj1lWZN9yf6k8virMsuGlDKUgKLag7DyeG4PY6h1wVo3 7ZZNX+KjJEmCH6NVCAV85RJyD1LZVTd7avAUVjTIVLlWgOLUdOMcqjgMWr8SpXq2rCWn IQAC/j+fioOB990PVb/B7V6+NPSECuJKiMV6eFdSNy0UamETDGmYl6KS4zGT6atCU6zC IjaQ== 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=dlgQtSt8lmQHKVQg6Y2+SUeJ48KeaI0kz4R/u3ja4Go=; b=JymxhMDVEkeEz2rbt2F1CarJcVZ5oWQDyOLrMzuLkMtfvcPyqSs571EyuT9gESME6x vk33mAOa4WS22sVYPbquPEVAJTZkvOKBCtp2TRRo8X1skb+w9/2cCN4ls6i1V82bpY0P x1BV0m877Yo88vuCbwQU1yIzxuG83n9nj4keiyNAosV3wyA6vMiztGKNrN0FpnIaZAkc 7GIGiJXUmmVxbrYYqAW0/j+1kBx4rXInmBmuToQ482OVsONF88EoeqZ79nJMk7fvEfC2 WAvA+BZCWQnVgKeG+PqRa8ATgdwWz/6exhvFfuhpyxj9N1dOTvc7nCwm1lmi+2R/16IF Z6Ow== X-Gm-Message-State: AOAM5323vDu9EY4hTx5RugNbjsUMojn7ca7bppatZorSJpuMwRnv10nd gtwxY4rTk0NQVIVbG3CMLQw= X-Google-Smtp-Source: ABdhPJwjkcJmrfPAlIMSO40Q1P0k8mY5xfVxo61WhQtpkjDIG98DhjqaaoFyfr5HNiQLHsL1LNwG5A== X-Received: by 2002:aa7:8651:: with SMTP id a17mr11823677pfo.48.1595064032954; Sat, 18 Jul 2020 02:20:32 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:32 -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 v6 06/10] arm64: dts: actions: Add DMA Controller for S700 Date: Sat, 18 Jul 2020 14:49:30 +0530 Message-Id: <1595063974-24228-7-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052035_190343_A9F882FD X-CRM114-Status: GOOD ( 11.39 ) 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.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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 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 Sat Jul 18 09:19:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671803 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 511EE13B4 for ; Sat, 18 Jul 2020 09:22: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 A17E3207FB for ; Sat, 18 Jul 2020 09:22:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="d9V38CNZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WK4t+VZY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A17E3207FB 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=t2/AWZjzqhRUibskbm9DcDVsVqaYLfBxNPFo6+Qu3AQ=; b=d9V38CNZSHHPhp0zNxc/uWfN9n WRP+xXuEu+UVh2n73GQn/syAfgEQuxnOTIo/BlmTMOYn0u6FqYTsNJMW4lgV6gMMOmsTRQdTw7gsn 3DorcxMIxPsud1qaffpo7jGgIKTxl13Ftw2xjaKDW8AiAQxS9hsc9DLHBbrwMCTcQ55sgH9oi8frF Ye7Vll4mVahF46Q1PWFqn4cWk4YsJd+H5VWstl3rB0n4tO5r0cNNGABk3CdSvHLDJFVYQA0wj+UG9 vLI3dXsDvNlTE5ziPFi1ADTE9iW3/qf8TT+B4tA2YU7KaeHHlv1vqg1rop/W3Vy+UtHCtXLMS1EWb fS1Rj+ng==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj1i-0001sn-8B; Sat, 18 Jul 2020 09:21:02 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj1M-0001j7-Md; Sat, 18 Jul 2020 09:20:42 +0000 Received: by mail-pj1-x1042.google.com with SMTP id gc15so4740453pjb.0; Sat, 18 Jul 2020 02:20:40 -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=o09yAv6DGamGaLfCecq9vHf5FNi8bhrG0BGxeRszaDs=; b=WK4t+VZYA/s/PJCSDuB64W5TgPkysfZ118jsgNhbs/uLYuaw/jaPR0FPMmEUEV1Cm0 RkImogV35WsKx3gSejqjLonxKtBxhZYWkM+/twm+W8a3JP2qq6Nc5gT430myXHeSqeHf PvrQZFUmxnbbuaRbqsA3pT+3jEYBUmc8siw1ycBjV/KSkz4cbny+/n/57TR+lfZJY7mH Wd2yqRkm8PMNcfTBLgRKinKT+hJWHZ5JCxZaRhnMoLQAaPSbBa0OSZnYAqnCEpZxmAxW geOMD12f2AfSqFEYgn3+/QByYJcWGZ8jUGprO9p3IdtD/4KHsW9wZF7l9Z/Opd6oyZzK 6/PA== 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=o09yAv6DGamGaLfCecq9vHf5FNi8bhrG0BGxeRszaDs=; b=ISv/ShznhMM6i9pEm1dZKxmbO1eCGXwWKD8bsd7hikKFaOnj+iZgv1yl8IoaVAOSn8 E+mcprX1gLcoWYPL0VgBE2zz0rlOQYOhRpEGeUIj2yhtrSxiQpPWiNblIXnLaWPtH+qw p126Wpk550YgQeO89S0kB6hNzDAvKiQGN0iJp8l13Q8UR4EoZXKfT14p6MD/4Py7sCb7 BBBjUoP2JIk+oOHID2UNeOC7q01TXB0XP0seFIfaGq4zSxUdPFVcsfmHGs7TDcIvvMEY VBwl66VW+fy+XoapNpdomof6j8zmqGDxpxKHLUrGFgUf3deARKVA365y7ioJSP8cyZTx +dmw== X-Gm-Message-State: AOAM532ZXEJBtXhntFBNCcFu64oIvHZuJ/naTd8GYUAPeyJzB/0UHDpn GYDHdjZSb2ZHIXhsROm7RUc= X-Google-Smtp-Source: ABdhPJxHZREFEienqrTnze3kAwYqdAn0t+Ay4f37mE6l3zXJ3uks4pYJXW6rThhYrfX4DdbMCZly1w== X-Received: by 2002:a17:902:7790:: with SMTP id o16mr9943628pll.299.1595064038360; Sat, 18 Jul 2020 02:20:38 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:37 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v6 07/10] dt-bindings: reset: s700: Add binding constants for mmc Date: Sat, 18 Jul 2020 14:49:31 +0530 Message-Id: <1595063974-24228-8-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052040_929514_B3E64A0E X-CRM114-Status: GOOD ( 11.58 ) 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:1042 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 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 Sat Jul 18 09:19:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671805 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 CDA3B13B4 for ; Sat, 18 Jul 2020 09:22:41 +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 359652074B for ; Sat, 18 Jul 2020 09:22:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="uk3xOo8Y"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G83P+A/z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 359652074B 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=g++KuFu/VBBXYg797xO7Nbi+1C7CrPTwDQHuJVT9NoI=; b=uk3xOo8Ya2LIbrdFRPRJfImpyz CZoCg83D9RpQG9NnNGNe2kHSNan/lK5WUMvwsFDh0HHuCc7aF/hADBxr/lAeKTO9Ei1n69xCMMq0/ gjGkuQL1c9M4EkpLF0v85ZnCoCmW69seKuOXp2ftI7H2YZlFjo+WhOzgPDNnaX68fry2IolkQGo4i y0bgVF+gSKbHrVe47WT3kY7EUrq84gD5Dac5jUV1RAzeckY6lS0bZDMwJw/IyGODc6FbjWfzhZvm/ dgcrNPJqApOG55S/glYdlwvpguinEoFdY8lJJmq3z43Ij76h+Q9iE5/KPBOkXqB4jaJnSiAkKBoti 9BXEs/AQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj1v-0001wj-C7; Sat, 18 Jul 2020 09:21:15 +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 1jwj1Q-0001ko-KX; Sat, 18 Jul 2020 09:20:45 +0000 Received: by mail-pl1-x641.google.com with SMTP id w17so6449501ply.11; Sat, 18 Jul 2020 02:20: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=CWd71u1VSStjenmpxWOFVNxuJKXhZdTHDWm1zq57kXU=; b=G83P+A/zJlAsVWMqogHMju/pOy1PfeGTjN3oUrr1W3v9a5rcZV/NyZ3Ywo78LpsHxZ Ejua7A5VvemOj+40P0KpJLw4cC4ZbwgcbGmHncgU/FyBNmLSIwjAowc5Wzoa0veE4930 0zMEjLI3WBf508bXTX7hhvoakHbI+FBilURlx2/xUd8mjnn0JYoAj67scccS5PbtjtW0 InRnQAX21EcaLbV8urdu3Qpx+eZ6HrR3LAoybuP2n4MQFiFUs3z2mys/zRxDCqcIhGmN SZarMPDl5yS8C8Cvwd0bXQuulpVrbpbAqymjUe5H2ivlQOGFDDigFvX3fHGFr3AQLpmt 1IDw== 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=CWd71u1VSStjenmpxWOFVNxuJKXhZdTHDWm1zq57kXU=; b=MWRFMlqr6LTCGlgRlNgEpF9QwCCzT1znlkEk5o1XFPmwgFd66lPv3AWb5OUxq61CfJ SeRy+FOOXPUIci6A6HqkksDhnoddRfE4NVOnKonmX+njx1Y5S27eue0aCDESntaEh6IH fEEfDwwZ7o0EuobvZc8P2ij6V4M400pgTk7aL1BXrZL+hyw6zkyZ4/Wn240+pPHZM6tF AmM+5pgk4L3WKMBA7+hI9EXgiYzcnUdhnnJySNsxMAsAw54Cp5VdGM2xWQwHQCfk3uGO ZBcjgiJlzu+CAOdoPoYPha+vF9yYGFAsTgznf4vlkzlacjQZdtAplHr65Pf+5PT/TEfM 7fpA== X-Gm-Message-State: AOAM533Tbq/KpUCgyoUL/B8w/21CervySNxDjxuyPDV5A+/q3pqPUn6O ufL1jMswcASC8HjhmcEvouc= X-Google-Smtp-Source: ABdhPJyQKg9YP13KyO4C2ZVvGTNtsqdIE84tlUeZU3QPKrXo2ad81rYnfQduG3t1tFGsP8QLDCXKNQ== X-Received: by 2002:a17:902:7083:: with SMTP id z3mr10790884plk.156.1595064042481; Sat, 18 Jul 2020 02:20:42 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:41 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v6 08/10] dt-bindings: mmc: owl: add compatible string actions, s700-mmc Date: Sat, 18 Jul 2020 14:49:32 +0530 Message-Id: <1595063974-24228-9-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052044_781003_7F07FBC7 X-CRM114-Status: GOOD ( 10.94 ) 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.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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 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 Sat Jul 18 09:19:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671807 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 E8256618 for ; Sat, 18 Jul 2020 09:22:46 +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 A6EF3207FB for ; Sat, 18 Jul 2020 09:22:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BWu9c+GM"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ILk8sJlg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6EF3207FB 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=Vs3lTCeFjR7csp8UcskxSbaPWbL0CDS7cuPQEd2uEjg=; b=BWu9c+GMp98g/3rAMsyXPAZapg 0A7jckvvIT4NkdpjIm4oefSB+OxCJNhIAO9HazVveCmDGkJsw1WjrumTb8DwFIlZe3tzTzg0/kESL HXrmXYCeDgjWWI9/H85P42r2QtDJo+U8dA0zwjUt7Bkx0RYZNkDfmpPHehR7e8bdPckt3UxvxF84w l/67s0dy7W43q6HDRq8FQZZrwG7uKes7geSGonRE2JFztU48ckZCh4+maDFy9esoIS1q8wNjGccAl BLIADku6ZT8EuO3n83Y67xQC7ILl9x4CxYQQ6jbbtXZVL0XPRrdMUijy5DgcZTAMQX4IyFOuqWujC E+8sCi/A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj22-000220-S8; Sat, 18 Jul 2020 09:21:23 +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 1jwj1V-0001mo-0H; Sat, 18 Jul 2020 09:20:50 +0000 Received: by mail-pg1-x544.google.com with SMTP id w2so7843415pgg.10; Sat, 18 Jul 2020 02:20: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=qR4vJT+mcA6eHTDOA004E+9HQE1jjc1zKhWS+aHn5+s=; b=ILk8sJlgP/1iJ+pXHTXLVEti55fV/dvUXOg3wBPshnyNPk4yOH5Y0hdD6cPdP3pJnd qHCGk0CGL9vO4u1Hdng6HTn7EruWAZhAlRcBckOOVPSuTE3lMRuoyWetrO3l3FKQ8/qw ypKfrelR7H4sIzqLyeTNqiy05mnHtpaYcM2IEN543K7GIzboj9Uxz5rLVdn/m/1d83pm Rg0ILXwr3kGpK3rYEo6a0C5bf9R99DWiJTcm9TuYg/KxamDiDAqspsywl4eZjTjekgL6 WTl4Wa97NN6ySVmGDabFERIIwiKLeVii8wCxBbMW4isBMj47ORxjPG+4JAYKxEQOWqbC 8fGQ== 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=qR4vJT+mcA6eHTDOA004E+9HQE1jjc1zKhWS+aHn5+s=; b=HrBcJluXuHNF3u9vTgymo9CxDDeAoBxku0DLTqyOYXPgN6UTrPQEbWCg4bnE+dLvY6 K/ai3+LvXyPejuQxOBzjGovT+VgVeSlmt2AyJKGY58420UK77OVQkInH89OH8DBzFDEg hUI6HjRaREe31CpvmP1ndXr+RRuStqrPUZBM/FtK4pYWamAyL1ipKbr8VDEocOHg5I+F 3Y/xtoM5TDqKAnChMjjHobHA68LvsQAad6UIG6Vs9mhc+3EmAC315EHe1oAPF0WjRVzv RSDzHrhNqdw6b5BWk+vbKbbxgYX7F5f7d0NRkmp02h1pEFHZPsIPkjbZidtaoGRZgP2Z wVtw== X-Gm-Message-State: AOAM531kuluivSvfqoALEwkJ3o9QNQbVSF2kWzoE/87XBdhUwVuw+csQ 1kVsg9fWkoOJrWjMTrDRNGH7Hhiqbn+rjQ== X-Google-Smtp-Source: ABdhPJxLuQJNE5tXdiUm1YBU5Ezg+JifUDzpOp3MPCMjoq9HM3zMjRf2cvytGZKg+ulw9tXPALZ3dQ== X-Received: by 2002:a63:ca11:: with SMTP id n17mr11688198pgi.439.1595064046647; Sat, 18 Jul 2020 02:20:46 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:45 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v6 09/10] arm64: dts: actions: Add MMC controller support for S700 Date: Sat, 18 Jul 2020 14:49:33 +0530 Message-Id: <1595063974-24228-10-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052049_122517_759E1BE9 X-CRM114-Status: GOOD ( 11.53 ) 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.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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 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 Sat Jul 18 09:19:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11671809 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 8B43013B4 for ; Sat, 18 Jul 2020 09:23:09 +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 C63A6207FB for ; Sat, 18 Jul 2020 09:22:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Owu5FlYU"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZM5hEzlo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C63A6207FB 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=C2raVLDOhpElvQUFi6USW/7Q9PDX81IPNmp7/sl141g=; b=Owu5FlYUiGHQKwWYsKclzW8vRw K1fS0itAqeKdPVJ6anUIxvd0sOE1BsKSPjr1jb0iACTWYaO40itl15E+AsDy3nQ9tYRGVSwvxKGXo cXj55/kFBQxhXrPzU4tHCD5xrWkMlzD9aI3PgTx7TNJwN/HHB+R23QwcsGETNGzElXWzRglOXhtd1 MmQrB3u5SHdJG+6NXSLl8/yH8z+8WrfpdbAVTittohHAirojQXtmNV6UxvwT3c8wikZffxW6ibZ9t VbA0SWuuXQ/z810eBUVggBEtAhIHyQM7j0ryFjGTypFqMLJJUrI1PuH6aXPgubC2Vkxsa6gwRsaCA RRMmd20g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj2B-00027a-Aq; Sat, 18 Jul 2020 09:21:31 +0000 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwj1Y-0001oe-UV; Sat, 18 Jul 2020 09:20:54 +0000 Received: by mail-pj1-x1041.google.com with SMTP id mn17so7638502pjb.4; Sat, 18 Jul 2020 02:20: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=NviHgVjQuLhyVmkMejGiB4uUEB9WSVa/9K89QO1Z6/I=; b=ZM5hEzloNLoubWfThl0I5dMBiNGbpj9DKGspRnyV8UUzXDQe3d/EJMi7efD+x2u+xF ADbidj8qK8bHRy78+YNMxoyuT3c7ldE6qCtN/IXtaqt7w6gHIVvTx+EiUCpyjZ4MWY+R ki0wVBCMiam4VSAajGm6kjDk0jxU1O78nd31qw9RGyEV5REhc+fvLABEdEkDL/+3HzVC 1uueZZkggn6ZGBmfKSc35mT3bEpDElG+zp2YqnWJXEKtIuMpNx3kkefIqSBACSZisf6R bZTXjzvpXZ1ZhcMejWI3RmcW6WsW1Cgy4f0ucedeM5/qu3h8GEmORS5ty4ZpPDxIoI+F +Vpw== 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=NviHgVjQuLhyVmkMejGiB4uUEB9WSVa/9K89QO1Z6/I=; b=iMORRxh5ThiE9lmbJA8IdMJUHlnsepvxoCamTGRnycaPS4H+LPzT9PoibsUO94tVDL +pxH3TCMCOXrXMpZBQezv+M1BbIVqXwK2tA8Ki+ytTkvciVxbKuureXDhyUYwMYFdlVK u2uLCK/3yXX2hJA+5X3YoSAIIyuedh/CRxJiAUcpkSKFvov4Kk1251UTXbxZXyYTAtLK uCifaNpzVacNyK5leV/JTvbInfb17wnmES+mg5uVOgqdokMNyZHO8l1SRoJ4UahP5ihw 5O6lQIxvKy661vMDyCfYvOJbM2Tvh9HfREQdUshGKhZTuk+fIG0jAP65Hu5fiyqGETIO jqZQ== X-Gm-Message-State: AOAM53145lJs+/1gpB+Cvch3MQHY43r8sbTLelMJ6cxCqTK8f/U6nPbV cPjefir8sBVG3pPNuXfAGKj2ZGrut+NWxQ== X-Google-Smtp-Source: ABdhPJxRdlZFbb/t7neWxYozgmgI5MV4OV5IXTLjyB4u0x7K7aV8E8sKRr+rwIYz+sWqHJb11bPzSw== X-Received: by 2002:a17:902:c402:: with SMTP id k2mr10664183plk.184.1595064050702; Sat, 18 Jul 2020 02:20:50 -0700 (PDT) Received: from localhost.localdomain ([182.69.248.222]) by smtp.gmail.com with ESMTPSA id nl5sm5217800pjb.36.2020.07.18.02.20.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 02:20:50 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v6 10/10] arm64: dts: actions: Add uSD support for Cubieboard7 Date: Sat, 18 Jul 2020 14:49:34 +0530 Message-Id: <1595063974-24228-11-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> References: <1595063974-24228-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200718_052053_933698_94EB6C37 X-CRM114-Status: GOOD ( 14.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:1041 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 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 -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 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 --- 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 | 22 ++++++++++++++++++++++ arch/arm64/boot/dts/actions/s700.dtsi | 1 + 2 files changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts index 63e375cd9eb4..eaaf8f876203 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 { @@ -81,6 +82,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 +99,16 @@ &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>; +}; + 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