From patchwork Wed May 26 18:48:39 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: 448225 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp5490190jac; Wed, 26 May 2021 11:49:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy37S1qPTbKi4HErkO0FXNUF/qq73MkABEUfqm1psvyMo7c2YU5gdwa4XSXXHFsXp305RJH X-Received: by 2002:a02:aa85:: with SMTP id u5mr4688380jai.75.1622054949100; Wed, 26 May 2021 11:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622054949; cv=none; d=google.com; s=arc-20160816; b=FSpSsRG2GPfkvHqyMx5EBixTNxfhGnUGQgjVJOogczyn1loxYA7zRCjL8lkeiLZMFy to3nleFffFsz+JDqQhcXbPet1iMr7ofc2/h75AnpRY5MFjmbCylCn1zcCI5G2ZZpW3J/ eImLCZ/ow6hiPRMeV8TSIdkSUGWZkvqVsJFncPRIOwUWHB//nIuN6n7u7B1Oej8ZXC6+ kpEzfkn4KV1N5DjDjsP4XjTkTqWpLrq5h5PzvLsAoooHV6yHOyhfYU2jU4ajoZKoqPQB whiBOhVl7ekuGu93bptaDFCR5GT/rIx1ZLcO8pEQ7XoGN7vPro4TVEJRtXQ3xshVDAF8 NCAQ== 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=mNKNtAI43Z/nC3L+rfhHTkgzIxEjqQehyJ1O9ZC2MQY=; b=qO/RW2D10KZ9spCwdGwvFRReii8SXxtq+htWqihADXrJgkbNDjnMKFxVx40Tn47bxv wajFpQbPXZx5x4JVMTb3OuTbqxC5W+GbeBiRtMCQdo4namRB+6v+sjM6QJwdnIN5Yxii o6t8MRwo8wglTzcj+UvIp1XvKZY4zZA5NOZXCQZTDy282e5xPFv5dNlxiZETwADGuU5+ AC7bfxGTvrFwzj1ACjfQkkF/GiglYRYc05UPFlwQZu3Wp9AhR9bNUWrQkUJWVO/2NDF5 HEa2GqxrJwFhij2AbHWAoR9iVsiYNGIKpsO4mbD0wjo/yecabVfr4WTull8rcKV+jTFl uHoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-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 z6si20853246ilq.89.2021.05.26.11.49.08; Wed, 26 May 2021 11:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-i2c-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 linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-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 S233762AbhEZSuc (ORCPT + 2 others); Wed, 26 May 2021 14:50:32 -0400 Received: from mail-ot1-f46.google.com ([209.85.210.46]:39480 "EHLO mail-ot1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235733AbhEZSu1 (ORCPT ); Wed, 26 May 2021 14:50:27 -0400 Received: by mail-ot1-f46.google.com with SMTP id d25-20020a0568300459b02902f886f7dd43so1987809otc.6; Wed, 26 May 2021 11:48:55 -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=mNKNtAI43Z/nC3L+rfhHTkgzIxEjqQehyJ1O9ZC2MQY=; b=XfjVNv09z0hfGqQcpoMZaV74GI6Gk9bpgtcgN9/Y3w5Ddflgfqd1u1ST9dQsMta1uB 92SGi2Tn0sayEklzr47L3R9qDPQV9Y7SQOR0NSnmylVn1BxN2k2Xj+IOcJFWVr013P6+ ZK9xAdXBG1N/qoeR83yAmFyAszUP+IQ1c0cLARHM6DUwXzjiBsEwvm54KHISUX0xDS8B oL7zS0LgzFEd4h6J92YzPjvY2LMOtrT57abn1L97iXGqn1yDpJI/U071tj6B3jZJk9AC NEITz8bTs4AniPxhypN0T1Nj9YUqDK0Oqov3EkSUy8UBQYkrb5DS8M4B7LsHGRGqtWpN Ym4Q== X-Gm-Message-State: AOAM530n0TLChJPy9s0V4TGAF8Xl52YQVe30M+WazL7tYwn0jWbxHVWg HX4SFaOkyUW7+VTDV1M43fLJP0uUwA== X-Received: by 2002:a05:6830:14d:: with SMTP id j13mr3424433otp.232.1622054934401; Wed, 26 May 2021 11:48:54 -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 x65sm7224otb.59.2021.05.26.11.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 11:48:53 -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 , Lee Jones , =?utf-8?q?Niklas_S=C3=B6derl?= =?utf-8?q?und?= , Jonathan Cameron , Laurent Pinchart , linux-i2c@vger.kernel.org Subject: [PATCH v2 6/6] dt-bindings: i2c: maxim, max9286: Use the i2c-mux.yaml schema Date: Wed, 26 May 2021 13:48:39 -0500 Message-Id: <20210526184839.2937899-7-robh@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210526184839.2937899-1-robh@kernel.org> References: <20210526184839.2937899-1-robh@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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: Niklas Söderlund Reviewed-by: Laurent Pinchart Signed-off-by: Rob Herring --- .../bindings/media/i2c/maxim,max9286.yaml | 23 +++---------------- 1 file changed, 3 insertions(+), 20 deletions(-) -- 2.27.0 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