Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp339318rdb; Sat, 27 Jan 2024 08:33:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeMivMk6ZZnKnnn10hU0Kz6Z83oDdA11pinDNcxAaFKHM01BQv2trfPWzv4z6eSYDKK5H6 X-Received: by 2002:ac8:5a53:0:b0:42a:74e1:d2b with SMTP id o19-20020ac85a53000000b0042a74e10d2bmr2437632qta.20.1706373210079; Sat, 27 Jan 2024 08:33:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706373210; cv=pass; d=google.com; s=arc-20160816; b=e3BCrrdgEpOXBzVb2wUgRES/K5UeqpaFCsa/8ttNg26nbCYsFmVrVtS7jpp2enbwQ5 fHBeLCcJQVi4JAYx+bWwZD+gRSe3ImFFo5Y2qV4DK6BmyErlGboeYqA6zZBV5OkCjwlb pkpF0uU6s6wEEB4+J9z/PEUYgUUjhs3i4jd5312Ur1fp8OFhDds2PKZU0aMdibAK+I/h //FXmRcU0ca5LOtB32jOuPKN9uUhx4bZQ8cvOFCBIXCLpPZFeaG0UaZLnZJVhTLT+eo9 jMzB2P/W+J/Iju/fc+oeqpwKjzMgdTgIFDZRUwyl25NAd4tP9LtsU27SIvQRrwfF0aUF S6XA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tsUo4SJKT4c44+TKLRys9m/HcXAb1IBpYcFpwO9trUA=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=xnZR8++xiRApqOoZmb491QRe7c381hqFo8CBRWqRrNsaPjjWen5Bmh0UMAO+XWWNUM BG00byYRnYPO6ULU/5OLz//AGVBAeu9thG8eX14YcgaZVBlFAhpyRM7lWHGkrp0St0M0 scRwbhstUoNilQCEYk7iSZGU7LoD3YHFnThen7wb3VYGphkfMjR8j5fmnRtYFuWgEf5r zXRoMUYpaJgUhw0Vj/72x4gFwZ+HVUhl0UkGraAd4j7JPOXUe1JOjlYCk9XS2kIOl2w8 p4xc0iFgceqYmHqp7imMOcNwgCrEW69k+qzo7Deu1Yz3I5ih4kKPcqnZNS/85aWPSgQx Zgzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CQsh7erl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e7-20020ac85987000000b0042a34c52488si3795021qte.493.2024.01.27.08.33.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:33:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CQsh7erl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BDA981C220D3 for ; Sat, 27 Jan 2024 16:33:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65CEE2D605; Sat, 27 Jan 2024 16:32:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CQsh7erl" 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.subspace.kernel.org (Postfix) with ESMTPS id 72FE92206B; Sat, 27 Jan 2024 16:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706373175; cv=none; b=eBpl5wvmti5xO1ufbWjRpHyo1GASdedEciicElP+kHg744zzZbjZHnAg7+7klgorL+EAXXqaGDeVfyZosS6STYzTmpsRoxzGT73Pzd2lymIa+D6/iNOVjD7d3DhiKakhxXOyEeOXSE/Zr4UdGhLMYp6EG4RsWcGHQA0ijNyzCe0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706373175; c=relaxed/simple; bh=8BAcimB2vVPlYBPHFOIgIFLTY9STdBweYW7HvMTKlig=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KObxB3yqkIA/tbWZ0PMmdVdOEXoKJkCmEodp7Rc3iPwPFLRp5yRQ7HQOSrjbaRJGp7eUGwSR8dHAFKnUVQa8i8EYytm5BV0xz6vkdJf7ikFL13AZzQcrmw3O7zSzkhYl1gx9G2hJnliHfgm6NikcSNb3H4OCJhzYtuZxCvSvIuo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CQsh7erl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF956C43390; Sat, 27 Jan 2024 16:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706373175; bh=8BAcimB2vVPlYBPHFOIgIFLTY9STdBweYW7HvMTKlig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CQsh7erls6X9hzFBwfJisBWdG+uNFUXpVtcq3aeOAr4bonKNh7KrKqcVTYS/H33nR GbbNia0jpKlDaTHaEPPGPkAISjY1KySI7lOdBnhGKQXDXJReWiA0R+e0N1Eq2lJiGY 9eBCg6CYKVzqKBXvs26LWpGaGZwkV3Z6s5mJXVGh+pYDLb1P4YrT336qn94G1fvVba h4jPrd38Og0jAI4w2gA1G3BaMY38cL38ikhWpPBNOZEN1tL0azvpqjIT4w2O/YcdY7 pDAdu/BUoRF4vJpfC1ctDao4+veLTtduKXKUjO7XNccNBAz1AIj0tAU/+Esj2+Jkbv GBjpRjUTblf2A== Received: by wens.tw (Postfix, from userid 1000) id 712EF5FDC7; Sun, 28 Jan 2024 00:32:52 +0800 (CST) From: Chen-Yu Tsai To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jernej Skrabec , Samuel Holland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vinod Koul Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-sound@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/7] dt-bindings: dma: allwinner,sun50i-a64-dma: Add compatible for H616 Date: Sun, 28 Jan 2024 00:32:44 +0800 Message-Id: <20240127163247.384439-5-wens@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240127163247.384439-1-wens@kernel.org> References: <20240127163247.384439-1-wens@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chen-Yu Tsai The DMA controllers found on the H616 and H618 are the same as the one found on the A100. The only difference is the DMA endpoint (DRQ) layout. Since the number of channels and endpoints are described with additional generic properties, just add a new H616-specific compatible string and fallback to the A100 one. Signed-off-by: Chen-Yu Tsai --- Changes since v1: - Switch to "contains" for if-properties statement - Fall back to A100 instead of H6 .../bindings/dma/allwinner,sun50i-a64-dma.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml b/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml index ec2d7a789ffe..0f2501f72cca 100644 --- a/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml +++ b/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml @@ -28,6 +28,9 @@ properties: - items: - const: allwinner,sun8i-r40-dma - const: allwinner,sun50i-a64-dma + - items: + - const: allwinner,sun50i-h616-dma + - const: allwinner,sun50i-a100-dma reg: maxItems: 1 @@ -59,10 +62,11 @@ required: if: properties: compatible: - enum: - - allwinner,sun20i-d1-dma - - allwinner,sun50i-a100-dma - - allwinner,sun50i-h6-dma + contains: + enum: + - allwinner,sun20i-d1-dma + - allwinner,sun50i-a100-dma + - allwinner,sun50i-h6-dma then: properties: -- 2.39.2