From patchwork Wed Oct 30 21:33:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13857246 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 954B321B42C for ; Wed, 30 Oct 2024 21:34:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730324048; cv=none; b=d4cuRMKuiCflJf/Iwj9kx0NXT4+o0EnbIWR/PkZoWzQ/gsrxn417ZSaPJntLY9opsDiQcBB1tREvpCByKgFtwtbe8oQvNkyG63PvC7l+LRdfat0rMLsdmvfAHYd2QuQGP/kbwCZodbjMHfE+zNB6YiuSlAGb5fKEdV4lX1ZfxTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730324048; c=relaxed/simple; bh=CI2Lnp2ZFIQ9X+t6DOzwzXbSD1CdFhZkAhG2G3EEy/g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WnvjWwnmVNPWNRi5EvsQt3qRGm3rvBP5DwbmHbrjd+DWLNEaRueOZTL2j/lyUCkZxGxTwyHbHVnTtrc0kZ+hsE4Dj9S4ErFg4MFGHZKiZClHRzPGgxN0AjDhAB01JkCWsR1tuAs4FBu+CuyZQk9Hho5wTg/5DKf81aN4ngP7dzk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=q3BsFvwy; arc=none smtp.client-ip=209.85.167.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="q3BsFvwy" Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-3e60d3adecbso199312b6e.2 for ; Wed, 30 Oct 2024 14:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1730324046; x=1730928846; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/DgxmuugdaQ3XDKgZ0SuFc+VJJKKz2RxlCHCWZM4DSU=; b=q3BsFvwyFmlQx6ku2ey1oFMnO+sf8nXRyk0UyCCK9vdv66qAsOfBpxI8+AxZW95KL0 CAyc2Ze8CP6MgaQBwT23NUI41hdXLvNUYXM+amUAba8mrg7PEkrC3ZeaXo/wKlHl4ppO pm3ywssPTZHtQuc1/m8kVJvbXb3BmmPiegzKonKz8TQkWYImAAyQoDIS+rA60HX9ot/T OhWGCgyZNw6gQhgUpjgPbXRdFb4ZncgkCpDcLrzvCxJWHddBfjipyaOt7YPQiwxvAoze uVgft07TZu0VK1+u7DIevJQAk4cNZhqBxbTdU20DS/QCScwTLorJ4JmLM8hTyZQTfxB0 AEFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730324046; x=1730928846; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/DgxmuugdaQ3XDKgZ0SuFc+VJJKKz2RxlCHCWZM4DSU=; b=n3yQqMGZ9smIXAo11I6xOm7QB8WZ29WmHu6npgbnwHYK2ubsy0wTtZJQpCHNLMqzyY lrFfzRFNLA7+V66sk/OVHVKKFUo9iQEK/DtQznR2PZ5pXDr639RRNduaHT5JGoMwxeX6 W+ei4zMmMQCPIWqhSqK2no1jUEY79L1V5T9obMwBreKZ3FQe/ZlhoRV68xq4rGkl7hcG ENk/TTBYAtz7QgTG6xQzXtUvSLq7b2paOtCaWnQY39+kSK+SMQKerhLDdxV7e1mBkTWR j0A+ZtEZnueAWJDYvzyybJbljooD7YtvLPFKltjk9qaK9JHXx5/f1o66xbtbVEDj+5f7 J0ow== X-Forwarded-Encrypted: i=1; AJvYcCUjQQZsYJVYSN/rHGq7IBN3nW/iwTeTYu25f/WzmSMz7DevyEj3icnMVrdhNtsZLRIUaESkH3aKMro=@vger.kernel.org X-Gm-Message-State: AOJu0YylXUMSRB6i1fxapiOosNeiRKbsEgifehq1ZhIcaM35HaFacq+A Ax5413EnAdoEXMAJikRjAKM/Ase0ZzKOIdCMfUK6gS1CRaHlm4WFpU4PRr2e4hSyKD7OBq3Roxk M X-Google-Smtp-Source: AGHT+IELI/bVcmvdyZTSN9hBWkdwB7oJD6kTnVdjciv8Nv/H1LfXG4kzLNgcKSWs8NfJtZc+8ZjFBg== X-Received: by 2002:a05:6808:6488:b0:3e6:54d0:d467 with SMTP id 5614622812f47-3e654d0d4d3mr6480892b6e.9.1730324045947; Wed, 30 Oct 2024 14:34:05 -0700 (PDT) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3e6611a661dsm52127b6e.14.2024.10.30.14.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 14:34:04 -0700 (PDT) From: David Lechner Date: Wed, 30 Oct 2024 16:33:57 -0500 Subject: [PATCH v3 2/2] dt-bindings: dma: adi,axi-dmac: deprecate adi,channels node Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241030-axi-dma-dt-yaml-v3-2-d3a9b506f96c@baylibre.com> References: <20241030-axi-dma-dt-yaml-v3-0-d3a9b506f96c@baylibre.com> In-Reply-To: <20241030-axi-dma-dt-yaml-v3-0-d3a9b506f96c@baylibre.com> To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nuno Sa Cc: Lars-Peter Clausen , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, David Lechner X-Mailer: b4 0.14.1 Deprecate the adi,channels node in the adi,axi-dmac binding. Prior to IP version 4.3.a, this information was required. Since then, there are memory-mapped registers that can be read to get the same information. Acked-by: Nuno Sa Reviewed-by: Rob Herring (Arm) Signed-off-by: David Lechner --- For context, the adi,channels node has not been required in the Linux kernel since [1]. [1]: https://lore.kernel.org/all/20200825151950.57605-7-alexandru.ardelean@analog.com/ --- .../devicetree/bindings/dma/adi,axi-dmac.yaml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/adi,axi-dmac.yaml b/Documentation/devicetree/bindings/dma/adi,axi-dmac.yaml index b1f4bdcab4fd..63b6fb0423c2 100644 --- a/Documentation/devicetree/bindings/dma/adi,axi-dmac.yaml +++ b/Documentation/devicetree/bindings/dma/adi,axi-dmac.yaml @@ -33,8 +33,12 @@ properties: const: 1 adi,channels: + deprecated: true type: object - description: This sub-node must contain a sub-node for each DMA channel. + description: + This sub-node must contain a sub-node for each DMA channel. This node is + only required for IP versions older than 4.3.a and should otherwise be + omitted. additionalProperties: false properties: @@ -113,7 +117,6 @@ required: - interrupts - clocks - "#dma-cells" - - adi,channels examples: - | @@ -123,17 +126,4 @@ examples: interrupts = <0 57 0>; clocks = <&clkc 16>; #dma-cells = <1>; - - adi,channels { - #size-cells = <0>; - #address-cells = <1>; - - dma-channel@0 { - reg = <0>; - adi,source-bus-width = <32>; - adi,source-bus-type = <0>; /* Memory mapped */ - adi,destination-bus-width = <64>; - adi,destination-bus-type = <2>; /* FIFO */ - }; - }; };