From patchwork Tue May 18 23:28:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 441256 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp712880jac; Tue, 18 May 2021 16:29:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX9FUkVGjghS8PcMgZhXjav16DrpRzJWCHLcAVeC4XgEWNXyHBz97CSVuPyGQ3A/HjDu06 X-Received: by 2002:aa7:cdd6:: with SMTP id h22mr9714407edw.278.1621380560725; Tue, 18 May 2021 16:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621380560; cv=none; d=google.com; s=arc-20160816; b=b+EnuUhlac6Nvu6vxaUSAw6FQm2Ij6nSPex9dlmnGHNuULNZUlDnpz/MKMp7JY1dpS 1dO2CCyMiLtMSuE720tvdsxPpex2LC5q2QdDsByERywOOvBcQrPULGP3yxtnNv8kinyv wc7J9BJemKg5sF2JEJ8A/0o63+6l5i+8bVfcwu2xkVxzMvM67P/2ebyL+LOtWJuWikaB 85WIDSGsR/7zkemd+M0o/HoMvYPtlfBM+W+fTMlLtXvE749dQQebzT1cXbTguasVQpka ZBPiZeZzOE2qxFdoFRkjWJ5mtgaics3Tu4+XkWoItqHiZRejDbvG9rL8tbnvWpjul7PK pT1w== 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=kaw4fdxwXpH2Tc4Crz2ymu7i5j1xi8qpQ3DL7swjbB8=; b=JHHnOs2RGqbGBpBB8L9NsfZqbTIu1Opz08LDzu0My7kJtnCHNVA7zORHgmmGxuuuMP z2okLSsv/oGLc+ZEYeM5B0qtYYeGK+jLBIVfLNJgQB6faf2RrWTef8wiECmfEidY0Qbz 5UZYd1Xa3KgWdog43WKlaE2dotriM3qyhC4uNB8Oh+PKc8CouHHgSntleinCzumXrU4H 1j8wIqi/2qIYPpYHcmaOtUgPBYBHKuyNENeKC0szoD4UtTt+8ffLix6K5HU9dbR+uAOy BjasiVtsRmWGsjTd8y0mP4tI94Bo5tAn3I1mLsde0DLhAHu283KF9z1n+K63/RVbeYgt rksQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si18529073ejd.323.2021.05.18.16.29.20; Tue, 18 May 2021 16:29:20 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239142AbhERXac (ORCPT + 7 others); Tue, 18 May 2021 19:30:32 -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-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_S=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 Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.27.0 Reviewed-by: Laurent Pinchart 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