Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1030431rdb; Wed, 6 Dec 2023 06:57:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGs0VqqOjOAjANU6DFtJpbmiytXKnDTmdRiMNue7RFwwWUUsYM4y/vmZOLc8Evw7V8CB0eS X-Received: by 2002:a05:6a00:1784:b0:6ce:47f4:2b45 with SMTP id s4-20020a056a00178400b006ce47f42b45mr4038385pfg.13.1701874664569; Wed, 06 Dec 2023 06:57:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701874664; cv=none; d=google.com; s=arc-20160816; b=iy8/AlBcawDlWwvBVjVBcnzBjif9L7yfc2CDykhCrOvEoyNBUDVCNqS79qWoNhQgvh k71qa+h6hUTlY4XkHTy0BXtSqbfG8olVqK56gSBqA9A+Ez9nuL4s36ezdVQ8PNUsxba+ zR4JWFql6+mNrh1sfxsf3cLGNjfIH+6XDKyqeTedDkcECct8tY94qUU+ERN4kZ+TOlsL p6JesS/Y5wch1IvskAkF2EN4nyZf6RFiH+g3i4Xctbca8LvPhVBM9UVXn7x6/uarx4yG nqHHSR1wWSwgg6uwYVjNNlLZl4jtJlJEmr9avWyqxTlSx0nsq/mgTLUpX4UbT/2IHMiV kALw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dMFxTkt+APt9VkSo60/Rj4cKZLAsbnVIJIMVqJP/nRI=; fh=7eZEHkdKpYdVIG/mZQOcxIlfIbmZp+WQaVAYV2l8cjs=; b=gXx1NrotNnZzXrwZRYKcE4lUaxAizn3OSmQM9oScOsxtn9Qg1iagWASbWU8mUJy7WB HKKuyPmfUeOXpqXMlBny5au0y3HAaCdFrfpnu/orDf3iTW4GZfbX9419yt2DUsZUQKxd YpQraisSWmktmw6otMQmpgWtKPCTV5/UPwDTewdUUMM6xyhKEHwV8l7dzpxiEOU0QyZH eX6OQXWiGPJQE3MndGVH/Jg2DNVkrcq0+yTIoFW/wknJnZXdkxlWx3g9gOJexOUnu8dy QzgBChrtFdpQsqnHNQRtUshGgCRfzaoUtWw3oW/VNQwUr4oDsJujDQwVO2yLkJJNk81M TEDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h12-20020a056a00230c00b0069109ee0b59si63063pfh.231.2023.12.06.06.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:57:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 14C7680569B3; Wed, 6 Dec 2023 06:57:07 -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 S1379030AbjLFO4l (ORCPT + 99 others); Wed, 6 Dec 2023 09:56:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379015AbjLFO4k (ORCPT ); Wed, 6 Dec 2023 09:56:40 -0500 Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62D85B5; Wed, 6 Dec 2023 06:56:47 -0800 (PST) Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6d9a1dd6fdcso467569a34.1; Wed, 06 Dec 2023 06:56:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701874606; x=1702479406; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dMFxTkt+APt9VkSo60/Rj4cKZLAsbnVIJIMVqJP/nRI=; b=qri2uqUTwj/abp8PAD7G7hQ0iisfXb3C5gHRiuoDGEnnPptrvDXqEPF2nxvtjqmz2l jOXHFzOy5knLtxAni5Oxwvmih9OPw9J/DT8VZ8IJT5TvnSt9YU+ywswBiwJshvJv3VNv 2o9NTKPHsGBnyy/08nlwd2o9huJOKUxqABwL1cKIOx+7BOwrrPJmw5K6WrUMopgByQn8 HAH2BMPZEMcSeGNfxirR665CJ6saeZ82FrVOl3pZLDotSkGPLjTX7jy1xRZHMTOkrNBX e0qGUFbd2r3z8p7MpXtWEK16iG3BS55aY4tawa1ToPXFxTa1qdGQtY//gBGnZPdl/6s0 o72A== X-Gm-Message-State: AOJu0YzOqKF5MeQUZXnoSj3fsQul1YcnBfqzRYZBYZe1JPT5KwtSkCq4 W1kYE4P9XYZBmhycqcljQBbPlCbs0g== X-Received: by 2002:a05:6830:c89:b0:6d8:74f0:30d3 with SMTP id bn9-20020a0568300c8900b006d874f030d3mr1429643otb.29.1701874606223; Wed, 06 Dec 2023 06:56:46 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m2-20020a9d4c82000000b006d879b8e68csm1880241otf.69.2023.12.06.06.56.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:56:45 -0800 (PST) Received: (nullmailer pid 2138604 invoked by uid 1000); Wed, 06 Dec 2023 14:56:44 -0000 Date: Wed, 6 Dec 2023 08:56:44 -0600 From: Rob Herring To: Alain Volmat Cc: Andi Shyti , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Pierre-Yves MORDRET , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/7] dt-bindings: i2c: document st,stm32mp25-i2c compatible Message-ID: <20231206145644.GA2133904-robh@kernel.org> References: <20231129125920.1702497-1-alain.volmat@foss.st.com> <20231129125920.1702497-4-alain.volmat@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129125920.1702497-4-alain.volmat@foss.st.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=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]); Wed, 06 Dec 2023 06:57:07 -0800 (PST) On Wed, Nov 29, 2023 at 01:59:12PM +0100, Alain Volmat wrote: > Add a new compatible st,stm32mp25-i2c for the STM32MP25 series which > has only one interrupt line for both events and errors and differs in > term of handling of FastModePlus. > > Signed-off-by: Alain Volmat > --- > .../devicetree/bindings/i2c/st,stm32-i2c.yaml | 49 +++++++++++++++---- > 1 file changed, 39 insertions(+), 10 deletions(-) > > diff --git a/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml b/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml > index 94b75d9f66cd..6a69bb6de23e 100644 > --- a/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml > +++ b/Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml > @@ -19,6 +19,7 @@ allOf: > - st,stm32f7-i2c > - st,stm32mp13-i2c > - st,stm32mp15-i2c > + - st,stm32mp25-i2c > then: > properties: > i2c-scl-rising-time-ns: > @@ -41,6 +42,43 @@ allOf: > clock-frequency: > enum: [100000, 400000] > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - st,stm32f4-i2c > + - st,stm32f7-i2c > + - st,stm32mp13-i2c > + - st,stm32mp15-i2c > + then: > + properties: > + interrupts: > + items: > + - description: interrupt ID for I2C event > + - description: interrupt ID for I2C error > + > + interrupt-names: > + items: > + - const: event > + - const: error > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - st,stm32mp25-i2c > + then: > + properties: > + interrupts: > + items: > + - description: common interrupt for events and errors > + > + interrupt-names: > + items: > + - const: event > + > properties: > compatible: > enum: > @@ -48,20 +86,11 @@ properties: > - st,stm32f7-i2c > - st,stm32mp13-i2c > - st,stm32mp15-i2c > + - st,stm32mp25-i2c > > reg: > maxItems: 1 > > - interrupts: > - items: > - - description: interrupt ID for I2C event > - - description: interrupt ID for I2C error > - > - interrupt-names: > - items: > - - const: event > - - const: error No this should remain. You are duplicating defining the names otherwise. Add 'minItems: 1' here. Then the if/then schemas should just have 'maxItems: 1' or 'minItems: 2'. Rob