Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp987162ybk; Sun, 10 May 2020 02:52:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJWG36r07v63DwQ7WHLMeMxIW/Vgt3iDPufIcToT335Rj1WQ3khECcDY45bArioDOT8HnW0 X-Received: by 2002:a05:6402:2076:: with SMTP id bd22mr9197820edb.334.1589104349105; Sun, 10 May 2020 02:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589104349; cv=none; d=google.com; s=arc-20160816; b=A5spQERHmSMD/yVYfyHgn5ornMLTXeKmXq9ejR2HDY+otdP9QS6L7pCCqxxKVsBP1H QSHcung5Cxq3RxOZZXwWVnuUSGMnPEO6Tmwtgj9AqXxAJyEMqmvWjpvUXZMPinT/maMz YODPNs2qdTvjjoGrBNdP04vJw0Y3rWRny6BanRMessBU8ts57PAsD2lHGTroaITkNJCj J7bCuRKk7VfmtefqyDApr6cfYmUdm2Oc6W4zaAuBb6LzjyjD/gBA53/DTarkFt8zzKHw 7IIr3G20M5HFUw55D/H4b1dBpVSQ575WuKf2fS1YVj2ePtruiqGk0i/xOxdMJk+jx1MW lQfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YwS6+BI09Yg2nNL68IufKnHVLOFiHsoEn1tJPlGLCxI=; b=0Wz8seT1H2b9XaD1fa7a36UXADsKaE2Yi5Fxq3xNtXw1ypNMRS+ZxQrb7vXKmz2VFJ xdmNNbnwjq+zjFk45o7oXSVNQkgtHA2mNJi0P+5CtyW3srsY90baLD9x+YnQBUdjX+2d NxMhHAYQa0ytSSa0jryGht9yxC0c6w8H/Dg2+6bHtKv4uUqp1s7YkJHzD2xGW1doa0hF Upm1D7rgbp3/ruL8ZCK3jGfyhmHzF/340jNJWa6U/9RBAmcGcFq9TMS8PrtK245wWdVc PQbhnuQTSuaGdTf3JYJg4Eux25qHFEb0KzCph1al7CYtgwUaMqCNUqHMea1BH+XILrfS 3ZXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si4105029edx.520.2020.05.10.02.52.06; Sun, 10 May 2020 02:52:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728855AbgEJJui (ORCPT + 99 others); Sun, 10 May 2020 05:50:38 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:45924 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbgEJJuh (ORCPT ); Sun, 10 May 2020 05:50:37 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 0EF0B803078D; Sun, 10 May 2020 09:50:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gyDqogqbM8Ej; Sun, 10 May 2020 12:50:34 +0300 (MSK) From: Serge Semin To: Jarkko Nikula , Rob Herring CC: Serge Semin , Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Andy Shevchenko , Mika Westerberg , Wolfram Sang , Frank Rowand , , , , Subject: [PATCH v2 03/12] dt-bindings: i2c: dw: Add Baikal-T1 SoC I2C controller Date: Sun, 10 May 2020 12:50:09 +0300 Message-ID: <20200510095019.20981-4-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> References: <20200306132001.1B875803087C@mail.baikalelectronics.ru> <20200510095019.20981-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the "baikal,bt1-sys-i2c" compatible string to the DW I2C binding and make sure the reg property isn't required in this case because the controller is embedded into the Baikal-T1 System Controller. The rest of the DW APB I2C properties are compatible and can be freely used to describe the Baikal-T1 I2C controller dts-node. Signed-off-by: Serge Semin Cc: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Paul Burton Cc: Ralf Baechle Cc: Andy Shevchenko Cc: Mika Westerberg Cc: Wolfram Sang Cc: Frank Rowand Cc: linux-mips@vger.kernel.org --- Rob, I had to remove your acked-by tag because of the changes introduced in v2 of the patch. Changelog v2: - Make the reg property being optional if it's Baikal-T1 System I2C DT node. --- .../devicetree/bindings/i2c/snps,designware-i2c.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml index 8d4e5fccbd1c..579964098eb9 100644 --- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml @@ -21,6 +21,15 @@ allOf: properties: reg: maxItems: 1 + - if: + properties: + compatible: + not: + contains: + const: baikal,bt1-sys-i2c + then: + required: + - reg properties: compatible: @@ -31,6 +40,8 @@ properties: items: - const: mscc,ocelot-i2c - const: snps,designware-i2c + - description: Baikal-T1 SoC System I2C controller + const: baikal,bt1-sys-i2c reg: minItems: 1 @@ -98,7 +109,6 @@ unevaluatedProperties: false required: - compatible - - reg - "#address-cells" - "#size-cells" - interrupts -- 2.25.1