From patchwork Mon May 16 14:28:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12850913 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 smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 074C0C433F5 for ; Mon, 16 May 2022 14:29:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id D17AAC34116; Mon, 16 May 2022 14:29:07 +0000 (UTC) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 04065C34115 for ; Mon, 16 May 2022 14:29:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.kernel.org 04065C34115 Authentication-Results: smtp.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id t25so26119465lfg.7 for ; Mon, 16 May 2022 07:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0Om7E3tZCgwxeaQekqleJAaOkpjdc9uO+KkphkJXZIw=; b=X7QRv8WJPQ2XdsyAGYpASNvJ5aQOMLMXRjknMPT8Ogy5d5pG1J1Phm/u4QfexgtgKv jm0tA3IXQ3iwZ6Bgavu83eZhZro8fQtfG/9e19NPFPDwH9GzhJphnDogB3OvRhXCvUHr FZnnEj+0WqLJmDx6x34BeGO4RTWEST0doQZ5tEhyhozW0RpXKiOLWSjkAimD2gUfrQsc TjiJcUwVHpilGI3USKVxrTx+xBwhLms0OL+aCxP9xKKLdW2e2Wsolsmj/acR0BBK7UWJ 14U7VgENU1hjtQAHdVgSlalGlyaYTBICEjWlixyksaNIXbPxpdhWJ80+HespXAb25dBE CyiQ== 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=0Om7E3tZCgwxeaQekqleJAaOkpjdc9uO+KkphkJXZIw=; b=ePW6rmrFDk0c72/Vu/A1pz7kfpkIw77zHX5zL1YWkPkKygTyDOoNQt12wL4EroP2Qg ycgom4qsFVLMgdhtGHlb4f0LDnQi0uDhTiX6fC6KWmsBIvR8q/pi1JHK4HdpUFvfBRv6 jpDKUIuTanimfA9wajcNrDsRUr1lGzQNPGBZ19xqKDrX1/Bv3yEatvJ2iMkYwqlZZaWy +2tL01UlD7MKoMOvT90I9ea4j00tTc+5QwIHhnJAurvk+ldIQD8t10QGCVNq2NvXGRPW kQaaYGSxNzUDsZBqmsfLWRubIKyIXAs8p+KtLc3Mk5bVy1uVkwdGAGE3rTW3FR+QSyT2 TxUA== X-Gm-Message-State: AOAM531aG6mp0p/IkDGHC2bOBvFzZIOMR32sMAO5jjVC9AEttUJTXZhh WZM+MOLahLA4FMYYeerhgvZW0hl/B0GrhGhi X-Google-Smtp-Source: ABdhPJwqmhkPgcyTOFtr/cWuJ1aftme9kAEKkOKDOMUEsLWtli+WERVx8d8DMs427jT+XuIXKSMypA== X-Received: by 2002:a05:6512:613:b0:472:4169:1907 with SMTP id b19-20020a056512061300b0047241691907mr13185246lfe.189.1652711345040; Mon, 16 May 2022 07:29:05 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id w21-20020ac254b5000000b0047255d2112asm1321513lfk.89.2022.05.16.07.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 07:29:04 -0700 (PDT) From: Krzysztof Kozlowski List-Id: To: arm@kernel.org, soc@kernel.org, Arnd Bergmann , Olof Johansson Cc: Krzysztof Kozlowski Subject: [PATCH v2 1/3] ARM: dts: pxa: use new 'dma-channels/requests' properties Date: Mon, 16 May 2022 16:28:55 +0200 Message-Id: <20220516142857.6419-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220516142857.6419-1-krzysztof.kozlowski@linaro.org> References: <20220516142857.6419-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 The '#dma-channels' and '#dma-requests' properties were deprecated in favor of these defined by generic dma-common DT bindings. Add new properties while keeping old ones for backwards compatibility. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/mmp2.dtsi | 2 ++ arch/arm/boot/dts/pxa25x.dtsi | 5 ++++- arch/arm/boot/dts/pxa27x.dtsi | 5 ++++- arch/arm/boot/dts/pxa3xx.dtsi | 5 ++++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 46984d4c5224..987d792f67ea 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++ b/arch/arm/boot/dts/mmp2.dtsi @@ -275,7 +275,9 @@ dma-controller@d4000000 { compatible = "marvell,pdma-1.0"; reg = <0xd4000000 0x10000>; interrupts = <48>; + /* For backwards compatibility: */ #dma-channels = <16>; + dma-channels = <16>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/pxa25x.dtsi b/arch/arm/boot/dts/pxa25x.dtsi index a248bf038033..5f8300e356ad 100644 --- a/arch/arm/boot/dts/pxa25x.dtsi +++ b/arch/arm/boot/dts/pxa25x.dtsi @@ -38,9 +38,12 @@ pdma: dma-controller@40000000 { compatible = "marvell,pdma-1.0"; reg = <0x40000000 0x10000>; interrupts = <25>; - #dma-channels = <16>; #dma-cells = <2>; + /* For backwards compatibility: */ + #dma-channels = <16>; + dma-channels = <16>; #dma-requests = <40>; + dma-requests = <40>; status = "okay"; }; diff --git a/arch/arm/boot/dts/pxa27x.dtsi b/arch/arm/boot/dts/pxa27x.dtsi index ccbecad9c5c7..a2cbfb3be609 100644 --- a/arch/arm/boot/dts/pxa27x.dtsi +++ b/arch/arm/boot/dts/pxa27x.dtsi @@ -12,9 +12,12 @@ pdma: dma-controller@40000000 { compatible = "marvell,pdma-1.0"; reg = <0x40000000 0x10000>; interrupts = <25>; - #dma-channels = <32>; #dma-cells = <2>; + /* For backwards compatibility: */ + #dma-channels = <32>; + dma-channels = <32>; #dma-requests = <75>; + dma-requests = <75>; status = "okay"; }; diff --git a/arch/arm/boot/dts/pxa3xx.dtsi b/arch/arm/boot/dts/pxa3xx.dtsi index d19674812cd2..f9c216f91865 100644 --- a/arch/arm/boot/dts/pxa3xx.dtsi +++ b/arch/arm/boot/dts/pxa3xx.dtsi @@ -122,9 +122,12 @@ pdma: dma-controller@40000000 { compatible = "marvell,pdma-1.0"; reg = <0x40000000 0x10000>; interrupts = <25>; - #dma-channels = <32>; #dma-cells = <2>; + /* For backwards compatibility: */ + #dma-channels = <32>; + dma-channels = <32>; #dma-requests = <100>; + dma-requests = <100>; status = "okay"; }; From patchwork Mon May 16 14:28:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12850914 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 smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A702EC433FE for ; Mon, 16 May 2022 14:29:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id 900F9C385AA; Mon, 16 May 2022 14:29:08 +0000 (UTC) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id E98DDC34115 for ; Mon, 16 May 2022 14:29:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.kernel.org E98DDC34115 Authentication-Results: smtp.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f47.google.com with SMTP id y32so26127632lfa.6 for ; Mon, 16 May 2022 07:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZIGxwKJ/Xe8wH7s0ybpa7g9C2aeLAWID2un0fZf5uMo=; b=SDbPSx3syBpzwF9+L/1WEF8YIxnp4OzOvBVWlXFxK95ea2PlvIz8H5RFn9P0ERCt0j P+9wGHxCTT90Jc+i1pBB0IHMQ9/C1B/p2K37quvoFXR1B8+SOJxaRCxUZzc/1zAch+fe 6zaj5FAKQpz12vujbEllJp4FEIRPcjQgXTlHGfLpHjeNhfzhTRJ8Ro8J7Ka4ZBW8zWkJ Yv3X+DxO2OmCVzLEYRRWdA/q/6arrU1p0dmrFHgeKYqupA/LxiY9yne+INK9b4a5KRC+ PSyFkg0c7yhM6DFd4pcOpvF+G3Vu9PrQHkgaoppUzB+s/m0g3OeXiQu+rjryrvhzEiBm NrjA== 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=ZIGxwKJ/Xe8wH7s0ybpa7g9C2aeLAWID2un0fZf5uMo=; b=DP7KGEE9j8/UZWzBdpyzqLADwiCgHP4UAWlaEQGoQE/N21Ka9XyDvIN7x57K29jmFX IhEHGTulBPwObq5HXg/Yfdg4DUFB/qKdW4Tsauku5pDZ0PwgGhvYhxD+R8lPY53Wn5Vk hHAOREfJgTWRvKTLw2H5s4/eHOpOxrVg53WfEgtDXVSWKgM7MHNSbRbl/XRNB4zdND7E wpALjgAuimCixD4+kScQXF/OVehJmETqfXSI7n2BwTzD0ISDwYGuAYABItok+VOA5JQu z48C2UBXE7YGBuKsX/b7K5RrI1gBQleaATFgfF/JOdGOl1gbHSUPi3gea7xpulCPo+f/ igFw== X-Gm-Message-State: AOAM5314tpU2tPCIoHXAcUpYfPzhgBAcG4i4YqS9oYV+aD5g10MURk98 tx5KKvRJ5zzDME6yG63fWa/9DQ== X-Google-Smtp-Source: ABdhPJzOdUZRsnk6iiZuj6hGSe8K67uqT6AkolkeIXIe7n4TzOxQO+JujDhVdRBaDH3yjIFrG74+xQ== X-Received: by 2002:a05:6512:22c3:b0:473:9f83:82d0 with SMTP id g3-20020a05651222c300b004739f8382d0mr12894879lfu.588.1652711346064; Mon, 16 May 2022 07:29:06 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id w21-20020ac254b5000000b0047255d2112asm1321513lfk.89.2022.05.16.07.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 07:29:05 -0700 (PDT) From: Krzysztof Kozlowski List-Id: To: arm@kernel.org, soc@kernel.org, Arnd Bergmann , Olof Johansson Cc: Krzysztof Kozlowski Subject: [PATCH v2 2/3] ARM: dts: da850: use new 'dma-channels' property Date: Mon, 16 May 2022 16:28:56 +0200 Message-Id: <20220516142857.6419-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220516142857.6419-1-krzysztof.kozlowski@linaro.org> References: <20220516142857.6419-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 The '#dma-channels' property was deprecated in favor of one defined by generic dma-common DT bindings. Add new property while keeping old one for backwards compatibility. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/da850.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index c3942b4e82ad..0386376fa486 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -679,7 +679,9 @@ cppi41dma: dma-controller@201000 { "scheduler", "queuemgr"; interrupts = <58>; #dma-cells = <2>; + /* For backwards compatibility: */ #dma-channels = <4>; + dma-channels = <4>; power-domains = <&psc1 1>; status = "okay"; }; From patchwork Mon May 16 14:28:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12850915 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 smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 60ACCC433EF for ; Mon, 16 May 2022 14:29:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id 4883BC34116; Mon, 16 May 2022 14:29:11 +0000 (UTC) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 7BA16C385AA for ; Mon, 16 May 2022 14:29:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.kernel.org 7BA16C385AA Authentication-Results: smtp.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f171.google.com with SMTP id bx33so18324234ljb.12 for ; Mon, 16 May 2022 07:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WfuUhuIX0wSfW4I9PJN/M1swMdFH0r01nOVZ5xpD7V0=; b=E7ZIQG8dL/Y8au7Hf8g6j3u8P4MKoTsy3jIim4EXc4JJOSNr74nILL0eJ+1ul+7gsT UeV4u3zAsAVDWSfvmFVszXDs26kKMrzagj8sGpIKMFoTk2+u9gclH3FtuVr2ztn9XC4s KmMaGwj36fOeX3N6mv/LYMBNQ9G8jQQPtGG0rXA4TTXNf6avl6kx+G/rPdlDlHiueiU6 9EFTqtyOJbYI6D/bTA3+u5yFXR/LZzcLDdgyTxkx29l5YOB0BjcWAk761zmrOYEkg81b I5glDzhCAwpRICWoQhM/J6WsrhExdPAZuqX5q98r2gThGgO+SjRJFb6m2hBb/Yz7BL2p o8Xw== 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=WfuUhuIX0wSfW4I9PJN/M1swMdFH0r01nOVZ5xpD7V0=; b=EmnrDsvnRDPF9Lbnu7xppmhteQyApWFx8BfmntNX8uSW2cg4OSpRwU6JmfleqoZqV7 HOotPKKV9ZigBbFVe4lOKNEgbpTPJGzRDiQ/87D6o7SBaXseVfuhfmFYIUFNKaJ8bda9 65J9Uh8XRrRqHSB5Z6Y+rTjf6Sf9MHOIy9GUMR+YPwQk8G6s0YX4gXJMCGN1E05xqQ3O e0it6AitJ1LDS6Jt+CmubbxAp0/8dkPaUMWnAxykxgdNwCiBn3nmmKQS+bDIFZv6W2sy ake6wLFSCA3g5uu4WGQNy+CWpOKaoFHG0guSsxqvGLLn6buw7CYVW/CEs9vSY4JHcoB2 u3Uw== X-Gm-Message-State: AOAM533WvTAZRh3eOEdoqyqwZvlu857TBzYSFXGDA6+h5XzZ4Or1z9PM DEeWwjal9bbLKEYJyCDHNA7y2Q== X-Google-Smtp-Source: ABdhPJz9P+OzE0LWrf503aiPteSiW/dX8lfcunGlCZAT9lrzlLFqtTDtxyoTe4kOYgzoWPBcRbJUog== X-Received: by 2002:a2e:9ed7:0:b0:24b:369:538b with SMTP id h23-20020a2e9ed7000000b0024b0369538bmr11690744ljk.206.1652711347000; Mon, 16 May 2022 07:29:07 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id w21-20020ac254b5000000b0047255d2112asm1321513lfk.89.2022.05.16.07.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 07:29:06 -0700 (PDT) From: Krzysztof Kozlowski List-Id: To: arm@kernel.org, soc@kernel.org, Arnd Bergmann , Olof Johansson Cc: Krzysztof Kozlowski , Baolin Wang Subject: [PATCH v2 3/3] arm64: dts: sprd: use new 'dma-channels' property Date: Mon, 16 May 2022 16:28:57 +0200 Message-Id: <20220516142857.6419-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220516142857.6419-1-krzysztof.kozlowski@linaro.org> References: <20220516142857.6419-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 The '#dma-channels' property was deprecated in favor of one defined by generic dma-common DT bindings. Add new property while keeping old one for backwards compatibility. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index 79b9591c37aa..89d91abbd5d1 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -126,7 +126,9 @@ ap_dma: dma-controller@20100000 { reg = <0 0x20100000 0 0x4000>; interrupts = ; #dma-cells = <1>; + /* For backwards compatibility: */ #dma-channels = <32>; + dma-channels = <32>; clock-names = "enable"; clocks = <&apahb_gate CLK_DMA_EB>; }; @@ -272,7 +274,9 @@ agcp_dma: dma-controller@41580000 { compatible = "sprd,sc9860-dma"; reg = <0 0x41580000 0 0x4000>; #dma-cells = <1>; + /* For backwards compatibility: */ #dma-channels = <32>; + dma-channels = <32>; clock-names = "enable", "ashb_eb"; clocks = <&agcp_gate CLK_AGCP_DMAAP_EB>, <&agcp_gate CLK_AGCP_AP_ASHB_EB>;