From patchwork Fri Mar 18 16:20:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 552686 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81A0BC433EF for ; Fri, 18 Mar 2022 16:24:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239178AbiCRQZa (ORCPT ); Fri, 18 Mar 2022 12:25:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236566AbiCRQZY (ORCPT ); Fri, 18 Mar 2022 12:25:24 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CBE42DE7A1 for ; Fri, 18 Mar 2022 09:21:26 -0700 (PDT) Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 7AF703F499 for ; Fri, 18 Mar 2022 16:21:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1647620484; bh=O5YEItFojELUQ2ZVAdFWmd7QnNJFa0nT8LdWFM6nccM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=TtU6BB6Q3vLFAT+oK6RtC2Is1oRUFWAa+T4SIfl2ahSD/YFSbfW3OWEOEgPMOBueT 1Nm6LV1aUqzMiJ0nfrIiVcl1pESt2bhN121xZAeOvSWfA9907OTbiCTJ7TF89Y0AEV PnVugt/0txuAv/VIO5+D2xaJTY3qgmGOVn1omw/CU0U54zs/qPyqnMpkg1cbumYQZi +f9gs/9u+966e3JcMzjTDeDy/asVDpYfugL1eB7giYktjNYzIZqgykQtZyd3NTxzFq c+aTr6kXr9HLAvEUXTY+x9qGciMIvXwXs0AoLqLTZeIeCQARtiFC+d2EMOqJ+OApHC ruPv0evmpMwIQ== Received: by mail-lf1-f71.google.com with SMTP id x26-20020a056512131a00b00448708fa822so2737611lfu.6 for ; Fri, 18 Mar 2022 09:21:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O5YEItFojELUQ2ZVAdFWmd7QnNJFa0nT8LdWFM6nccM=; b=NfHSGEKyKXlylrPz4RpiWNqXNrXJtwgQ6bu0oHnvbbWVI0iiiS9TBjZm4+edQnVYuk 21ijY7gWLhMEAofXts+n4W+0VVsioL/xbFx0mmTS+u7aVBa0lTZCde8cLpk/cGsRGM45 6ZBG7RHeyLZeCMvbkehvPPaG2Lkv33kosczbB0Rixhtjk9aZ9L3k9mpbBFZDz+gJNrKI PkcuIRKm/S0t2ue3B/cPkXJz4E2mp+yYiVm8D0rBsE5SH1yGqpMvSlquT/HFZMkKm+SF aOP5SrhSWuByuOYQeawOah28y8QdE071wwwjREdfoNiA1v4z1xga+g14w7OrI1foWv7S cbJw== X-Gm-Message-State: AOAM532JR2dcNPi4S0IYifT5TqU+ws5+beRYLIeli2eN0Ocy9pogohE+ U3Xfv72Qq1NmgRqYyzd80VxMkdNTfcRX25J2HJr3rheOHNRgEIHWLErKCamW42mJHC7uuexZZTY 46NbyCfJ/jDJHCCDwVSWh9NXf5M4ZWvyn1g0qZek= X-Received: by 2002:a05:6512:6c1:b0:448:6291:f135 with SMTP id u1-20020a05651206c100b004486291f135mr6405490lff.451.1647620483035; Fri, 18 Mar 2022 09:21:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7IhRjpip8ZxqWpdk/rNDzwPEQOlG6V0utFUzBi0pEzxIv6O5tJhNXTUklIfs5QHZNcJq1TQ== X-Received: by 2002:a05:6512:6c1:b0:448:6291:f135 with SMTP id u1-20020a05651206c100b004486291f135mr6405475lff.451.1647620482814; Fri, 18 Mar 2022 09:21:22 -0700 (PDT) Received: from localhost.localdomain (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id h5-20020a197005000000b00448287d1275sm906913lfc.298.2022.03.18.09.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Mar 2022 09:21:22 -0700 (PDT) From: Krzysztof Kozlowski To: Green Wan , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Geert Uytterhoeven , Alexandre Ghiti , Palmer Debbelt , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dt-bindings: dmaengine: sifive,fu540-c000: include generic schema Date: Fri, 18 Mar 2022 17:20:43 +0100 Message-Id: <20220318162044.169350-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Include generic dma-controller.yaml schema, which enforces node naming and other generic properties. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml index 75ad898c59bc..47c46af25536 100644 --- a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml +++ b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml @@ -22,6 +22,9 @@ description: | https://static.dev.sifive.com/FU540-C000-v1.0.pdf +allOf: + - $ref: "dma-controller.yaml#" + properties: compatible: items: @@ -41,13 +44,12 @@ required: - compatible - reg - interrupts - - '#dma-cells' -additionalProperties: false +unevaluatedProperties: false examples: - | - dma@3000000 { + dma-controller@3000000 { compatible = "sifive,fu540-c000-pdma"; reg = <0x3000000 0x8000>; interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, <30>; From patchwork Fri Mar 18 16:20:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 553073 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 065CDC433F5 for ; Fri, 18 Mar 2022 16:24:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232194AbiCRQZl (ORCPT ); Fri, 18 Mar 2022 12:25:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239039AbiCRQZZ (ORCPT ); Fri, 18 Mar 2022 12:25:25 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4FA2F24C5 for ; Fri, 18 Mar 2022 09:21:28 -0700 (PDT) Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D804C3F1E8 for ; Fri, 18 Mar 2022 16:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1647620486; bh=2W0HN5RRkNZ3VABX+Cwv7ixmrYLder+VG35wSKi/d+A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nH0HR9aJrCmvmMX5Ho9jW/f4aTPPR+eZiQ1dglYZpsYMpaEThGfjoYpaTN6kGq1fp pe7rxJbovYZYqkWNlcdQTCtNBumEklOnhtbbfYZIcZR5aj4uvHlUDxtIHa7TSDvF4L Oz7LqoHmYdmJtsHZ7BWWKbGdAhzRuKBnDd+buYLjygMGarfV2VltO4NpfLD9VKbRqa nS1ixRVPLs2Z6CNjkFOMQZMT8FClTPjDTE0joOK9RyQCAPoEF8XHKo+jQjfBgm89x8 q37mYSPaFa/I9kgEfOaxUkXuTvGOKUYFNuNaYRy2go+iLOrVX9eDD+7t62xkUDNn7o 5Rg9CRFqpNDTA== Received: by mail-lj1-f197.google.com with SMTP id h21-20020a05651c125500b002464536cf4eso3602555ljh.23 for ; Fri, 18 Mar 2022 09:21:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2W0HN5RRkNZ3VABX+Cwv7ixmrYLder+VG35wSKi/d+A=; b=yLxluf4XLCqQoEwrdC2yDnSCEanTPZ7nAWNwjDEET7/9Q5jjPuWD2K6lhyN88pJ1nT HaIn2mnBuQvMvaEFKNXjLEWO6Xe3wOGmyKbL5TL812LOiHXtn7WHk0R9jiV94Np3v15Q NaQMCsoXhSbNTwAzBt23/8tN+BEyFUo9iktIXxzJjGyPWPNTQSk9XJNzkL0DVhiENk1o SMEyGyqFbn8phm+NXXb2sKXC9R0K/HyqaibKnG7mB4s9h6EmdFsx5Mgk0EkWGWF8/Vd2 +kYIg3ND/R6Sk5dsecfyc6dAP2gmjxiG/hwh5vWLUU2LvTQePa29ezJ8PQ3w1I2HiJRQ 34wA== X-Gm-Message-State: AOAM531SBk7A8ssgs7vvgkVal8QpRul+A5DdPrgrxWNYuUotQid4coq2 qcO/+7MrgZP1NwqBILWRzOftjMuJ9eWSYgHK5de/qFpr5S0YwDoK8V3gSp+w17Xhu97kWmEslZr UX3FQvAroKBS4c1i1oV4qKlyGH82q9726Hiie2IM= X-Received: by 2002:ac2:44a5:0:b0:448:27fb:f11b with SMTP id c5-20020ac244a5000000b0044827fbf11bmr6761053lfm.72.1647620485592; Fri, 18 Mar 2022 09:21:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxYnFRtdU22BR20+/ugHHxzULrSzy0BJHNZ4eqdyKUJs4Bzk00wOL775ew90uRhXAX1YOExQ== X-Received: by 2002:ac2:44a5:0:b0:448:27fb:f11b with SMTP id c5-20020ac244a5000000b0044827fbf11bmr6761036lfm.72.1647620485407; Fri, 18 Mar 2022 09:21:25 -0700 (PDT) Received: from localhost.localdomain (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id h5-20020a197005000000b00448287d1275sm906913lfc.298.2022.03.18.09.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Mar 2022 09:21:24 -0700 (PDT) From: Krzysztof Kozlowski To: Green Wan , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Geert Uytterhoeven , Alexandre Ghiti , Palmer Debbelt , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] riscv: dts: sifive: fu540-c000: align dma node name with dtschema Date: Fri, 18 Mar 2022 17:20:44 +0100 Message-Id: <20220318162044.169350-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220318162044.169350-1-krzysztof.kozlowski@canonical.com> References: <20220318162044.169350-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Fixes dtbs_check warnings like: dma@3000000: $nodename:0: 'dma@3000000' does not match '^dma-controller(@.*)?$' Signed-off-by: Krzysztof Kozlowski --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi index 3eef52b1a59b..fd93fdadd28c 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -167,7 +167,7 @@ uart0: serial@10010000 { clocks = <&prci PRCI_CLK_TLCLK>; status = "disabled"; }; - dma: dma@3000000 { + dma: dma-controller@3000000 { compatible = "sifive,fu540-c000-pdma"; reg = <0x0 0x3000000 0x0 0x8000>; interrupt-parent = <&plic0>;