Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp653186rdb; Thu, 30 Nov 2023 14:47:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHC11oh5rjcCQa15z3CUbh6u+TvNEy4g9YstyPgU8tMg2ZayKfcie7hz46PoZEpxkla5Q0Q X-Received: by 2002:a05:6a21:6d86:b0:18c:fc4:df21 with SMTP id wl6-20020a056a216d8600b0018c0fc4df21mr29223842pzb.5.1701384426411; Thu, 30 Nov 2023 14:47:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701384426; cv=none; d=google.com; s=arc-20160816; b=YtV0NGZWzDCuGVHwKlYd1804b0TdQQG1wFnlbCzgbDRzee3BlQUiKQ2J0/K3MyR72K JxJOWBCiWKEcMMorLGkz8kfMaziD3c5yn+cdkoWadixAPUEJdnyS+vcOR4/qU2cOvw5t dkou2eHXiTzMZtxcA6N4agxyl2BZ1ZMUQnABn0NfbuleCs1afDgej9BRChC3IwleP20s 0abGyjX2Y/zmqsk+DEH+NrQkrz2NIGOS+Spr8FbOHz2tVW0TC4gkns0iqQvKg1Wi0yp4 98X20okmVYxyqTlkkQg/3ntYF7ZS6Igxjr1wdatyOzbzmJyn4+HqOXuZRkvqdGFPX3wY FTIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=yaQqqOUU8eNdNaBCG2hSHJtCkFk/zyqOmchWBBHbIZo=; fh=9PzoQrP1gP+93qVajkj0m0l5zkPVWu8mwwIl/DT3mg0=; b=KRBI8H+SWJluU8x8X1CGiS7c1F4Y+/G1aT/RRzTtw1A9RrX9dWp/mL2S1UmsFPtTxw 2kKg/4Ch/r6Bz+UvgvfbQiChgJN5STzj1D+7n0JHdsZkd+PkUOn3RFej1+gAkaxWe9Ir yZWLx5jjTWZwpxDdf4cEmpXTbXeYX1HzYkGZAGaCXoQ9ls6Np6opkxgQIqgSmO5ZCZhM bifJnObt+Y/D1cIJ3Fv3MfhjWiKd/TZXeoeyoMih2MfiAoigESdk2RQ9zog2bW6viEao G5R1xBfhhzm19/wBa08CFGglzt8ZSKUFlMjK9fkn50iudslqIco8mlPxGurtgcJ46v08 MAiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id z17-20020a62d111000000b006cb2dd42908si2081329pfg.360.2023.11.30.14.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 14:47:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E6B0280A8572; Thu, 30 Nov 2023 14:47:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235194AbjK3Wqp (ORCPT + 99 others); Thu, 30 Nov 2023 17:46:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbjK3Wqo (ORCPT ); Thu, 30 Nov 2023 17:46:44 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF2C991; Thu, 30 Nov 2023 14:46:47 -0800 (PST) Received: from i53875b1a.versanet.de ([83.135.91.26] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8pnf-0002fN-EM; Thu, 30 Nov 2023 23:46:27 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Andy Yan Cc: hjc@rock-chips.com, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, sebastian.reichel@collabora.com, kever.yang@rock-chips.com, chris.obbard@collabora.com, Andy Yan Subject: Re: [PATCH v3 13/14] dt-bindings: iommu: rockchip: Add Rockchip RK3588 Date: Thu, 30 Nov 2023 23:46:25 +0100 Message-ID: <18610737.hlxOUv9cDv@diego> In-Reply-To: <20231130122500.13491-1-andyshrk@163.com> References: <20231130122001.12474-1-andyshrk@163.com> <20231130122500.13491-1-andyshrk@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 14:47:04 -0800 (PST) Hi Andy, Am Donnerstag, 30. November 2023, 13:25:00 CET schrieb Andy Yan: > From: Andy Yan > > Add a Rockchip RK3588 compatible > > Signed-off-by: Andy Yan > --- > > (no changes since v1) > > Documentation/devicetree/bindings/iommu/rockchip,iommu.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/iommu/rockchip,iommu.yaml b/Documentation/devicetree/bindings/iommu/rockchip,iommu.yaml > index ba9124f721f1..3febf0c3c404 100644 > --- a/Documentation/devicetree/bindings/iommu/rockchip,iommu.yaml > +++ b/Documentation/devicetree/bindings/iommu/rockchip,iommu.yaml > @@ -22,6 +22,7 @@ properties: > enum: > - rockchip,iommu > - rockchip,rk3568-iommu > + - rockchip,rk3588-iommu This enum only allows that the compatible has one element, namely one of those listed here. In the dts though you declare compatible = "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; meaning that the rk3588-iommu is compatible to the rk3568-iommu I think you'll need a construct like: properties: compatible: oneOf: - enum: - rockchip,iommu - rockchip,rk3568-iommu - items: - enum: - rockchip,rk3588-iommu - const: rockchip,rk3568-iommu to describe both the single-compatibles and the 2-item compatible for the rk3588. For example pci/rockchip-dw-pcie.yaml does a similar thing already. Heiko