From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3855C433B4 for ; Tue, 18 May 2021 23:29:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D1A9F610A2 for ; Tue, 18 May 2021 23:29:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240027AbhERXam (ORCPT ); Tue, 18 May 2021 19:30:42 -0400 Received: from mail-oi1-f179.google.com ([209.85.167.179]:43727 "EHLO mail-oi1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239043AbhERXa2 (ORCPT ); Tue, 18 May 2021 19:30:28 -0400 Received: by mail-oi1-f179.google.com with SMTP id j75so11394942oih.10; Tue, 18 May 2021 16:29:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kaw4fdxwXpH2Tc4Crz2ymu7i5j1xi8qpQ3DL7swjbB8=; b=Hy8sFdRpLoqNcpm9kMsE+KBYPHSy3yEOceOjy8VoDrZ6BkL/muLeQOpF6S10mRQF7o IMtcqqjx22XGXhKT7so84KiHBL1VKuT9WyjnetbxrZtFV04vBmtEGJ4lENXUz7U+WZUR 7SBdQL9Ki4BLQ1cmJR4AepcEcGHXe+9BpqsgAkw1vp4pVuPVa1VJFb2oU+XF/YlviL6a KBiDTXxA/4cYTI+yejwU2kZHbBTGiUQz4xp9SkQicDIfVaAlE3WzmaI5/5UcsS65m7If Wam0L7hcVGY276HRpxuQHrnOSzsf0xOI+fp8JXvNkSLDdZUHCagcufn5WHGQnwQKx+zZ rEmA== X-Gm-Message-State: AOAM532G56tQD6bjwmDPDFWXB4L2OfIw5XhUj4v62j8Mgc0iX4EbB+Gy sR38TIzEHgDyiqdEELB1G9Qjn8VDrA== X-Google-Smtp-Source: ABdhPJzy60bW7jOMP9l8J926xwD2kkYdNKYxJ1XI45JCGcle3eCUzwPiB4MH9mB5QK0S2q3fYst8pw== X-Received: by 2002:a05:6808:184:: with SMTP id w4mr5599516oic.27.1621380549000; Tue, 18 May 2021 16:29:09 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id d19sm3985608oop.26.2021.05.18.16.29.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 16:29:08 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, Peter Rosin , Wolfram Sang Cc: linux-kernel@vger.kernel.org, Alexandre Belloni , Jacopo Mondi , Kieran Bingham , Kishon Vijay Abraham I , Laurent Pinchart , Lee Jones , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Roger Quadros , Jonathan Cameron , Laurent Pinchart Subject: [PATCH 6/6] dt-bindings: i2c: maxim,max9286: Use the i2c-mux.yaml schema Date: Tue, 18 May 2021 18:28:58 -0500 Message-Id: <20210518232858.1535403-7-robh@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210518232858.1535403-1-robh@kernel.org> References: <20210518232858.1535403-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the i2c-mux.yaml schema in the maxim,max9286 binding schema. With this, several properties can be dropped as they are defined in i2c-mux.yaml already. Cc: Jacopo Mondi Cc: Kieran Bingham Cc: Laurent Pinchart Cc: Niklas Söderlund Signed-off-by: Rob Herring --- .../bindings/media/i2c/maxim,max9286.yaml | 23 +++---------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml index ee16102fdfe7..02f656e78700 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml @@ -111,17 +111,10 @@ properties: i2c-mux: type: object + $ref: /schemas/i2c/i2c-mux.yaml# + unevaluatedProperties: false description: | - Each GMSL link is modelled as a child bus of an i2c bus - multiplexer/switch, in accordance with bindings described in - Documentation/devicetree/bindings/i2c/i2c-mux.txt. - - properties: - '#address-cells': - const: 1 - - '#size-cells': - const: 0 + Each GMSL link is modelled as a child bus of an i2c bus multiplexer/switch. patternProperties: "^i2c@[0-3]$": @@ -133,12 +126,6 @@ properties: channels. properties: - '#address-cells': - const: 1 - - '#size-cells': - const: 0 - reg: description: The index of the GMSL channel. maxItems: 1 @@ -173,10 +160,6 @@ properties: additionalProperties: false - additionalProperties: false - - additionalProperties: false - required: - compatible - reg -- 2.27.0