Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp513252rdb; Mon, 29 Jan 2024 09:02:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOfVPbXiaikFvN4Wv3JSANF/ffTqf4odHfCQBDoVSNnYSwLWQUNrWqPq7ZD++FT9dX7I4e X-Received: by 2002:a05:6359:c24:b0:176:915a:c7b7 with SMTP id gn36-20020a0563590c2400b00176915ac7b7mr2655645rwb.31.1706547750678; Mon, 29 Jan 2024 09:02:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706547750; cv=pass; d=google.com; s=arc-20160816; b=rkhrtU9A4OJ+AUI8u6OtVzQ1LkAxTvMHPG7toXqLf5lKYvi/+VVxkpEEELlrazTn3D rCliCh/H9MYr28iPcGrrmwzmivAs93cRL1/IPaz3bUfAQslX3g9pvhnK5DyIs5ds+Djj HzLseV1oWjE4r8b1ns2SBIkbkZBjK3XmDwIPD4Zs/KYsOoP6Q6IZHfxjSYuZxl4s84pZ bYc2BiMyAm8WZiUDdX4+8dXnC/fHLMMxzWs0XpNm8lG3BCVaBHojnTPVB5JLNJqsl3Gz 864+/2JYSD5XRd7gWPI9ANuvjSDY7rRrhoMgN6B9EFoy+kr5VEgm4YLlFfmypw8AdFFG qjxg== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=mxO/ol3a/qVE3FxwoV7E30rpO695UyjdWE6LWMqZK/o=; fh=UWiig1s3fmMOlTSMGWrEATJpXuAxUBcuTQXgzYQfeCg=; b=0Tp3YnCe6OAh1oQVsH590XBnL4niGWdagZb/J6XnwN2KYYuAegEdwXc+wJY2tPIMx9 Nc8zN8XQpoAVGwGZdM4eW8vS0gCQRYt5U3EF9RIwCspgUhGV8hIIZ5zVEeHhAJO0Mp64 QSxam/lk5yIVXAFUYKvzrjukqx8GB7+39tPWr6a6Mb3c8YC6eXnh5AYlbRdKolcNfSzL 1lhGEe1iAW1kiSIpjvR08CET1OAn21cvDAx5nhr6t9Nne2a4eKHhselo/7B+maYMVYZB QAyNxUdoUcizTyWTzWqwde7uNo2MT8XAgDCLDcysVtPlymnFv4yXpATglOr71CEW4XEm /0Hg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-43167-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l26-20020a63701a000000b005cfda2f9e48si6001680pgc.860.2024.01.29.09.02.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:02:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43167-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-43167-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1473B28ACFE for ; Mon, 29 Jan 2024 17:00:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C6DC158D6D; Mon, 29 Jan 2024 17:00:01 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AAC8157055; Mon, 29 Jan 2024 16:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547601; cv=none; b=WsV3s1q9uaKTBlWg+9HmEwTk/AAY8sFkF4nC1RkpOCYyu3315RJRp8azDDpEYG32ETvKXnrSb0C73R6yleqD2olDxL6U+ZsRl/CrUcRa3Ncb7V5dDPPuDoJQfRSJmGHnXTR25tARJ+3IDCfCDWuvm+gu1MNpUFWfSvwFOVZRe/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547601; c=relaxed/simple; bh=6AlW8GfU0yXdn2MsLvTWS4FUIIv27Mo017RHrFWdyIk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Er4EX8YHr8VHw+phdM576syWetaOizxeb3k8i53g5C2qYG2O4B9WagxIfLjV2Gy5Rk0ws6cJlmG9BPdg0YCEe+APUxGSszYhlRACQwx6qBwdlYub7Cp7+pPnOjf47ZRnChc5wsG4CeMs3keqNEWPTzImCtvhoetclY7BmvoWjS4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AFF1CDA7; Mon, 29 Jan 2024 09:00:41 -0800 (PST) Received: from donnerap.manchester.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9A3213F738; Mon, 29 Jan 2024 08:59:55 -0800 (PST) Date: Mon, 29 Jan 2024 16:59:52 +0000 From: Andre Przywara To: Chen-Yu Tsai Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jernej Skrabec , Samuel Holland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vinod Koul , 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: Re: [PATCH v2 4/7] dt-bindings: dma: allwinner,sun50i-a64-dma: Add compatible for H616 Message-ID: <20240129165952.0dec633e@donnerap.manchester.arm.com> In-Reply-To: <20240127163247.384439-5-wens@kernel.org> References: <20240127163247.384439-1-wens@kernel.org> <20240127163247.384439-5-wens@kernel.org> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 28 Jan 2024 00:32:44 +0800 Chen-Yu Tsai wrote: Hi, > 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 Looks good, A100 is the right fallback string. dt-binding_check passed for me. Reviewed-by: Andre Przywara Cheers, Andre > --- > 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: