From patchwork Mon Dec 14 12:43:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 343495 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2949224jai; Mon, 14 Dec 2020 04:46:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtGE8qZXzHxXnHfpIT6AH6LBaRAHna1sh35H8eW86SlNYKp6ht4dHHt8WK3gcTToxGSl4H X-Received: by 2002:a50:e00b:: with SMTP id e11mr24688305edl.303.1607949969122; Mon, 14 Dec 2020 04:46:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607949969; cv=none; d=google.com; s=arc-20160816; b=aIPUCZVip49+rvyaIaI2tzZGZzGrZ7U0k8pMB44xHlfcOK1ho+pygt338uyzp2i40x HZVSHCo6gVOsqlLgtGy97ffp8wS1QPJ8+WoFERqlSRiWxCGjImWcuc8+aXoAdZZdG395 VL0uQOQvEoE23SZ4fMkm+yU6q2RpcbKXiG5S/qvG46O2+22NLcMUceHY/q1KiG2Ot0mT FR4RnbgEpIth/fdKrdBk0e5D7rYQBbSxAA8xKxO2L3x6oVkDUY1ghdY/NcgoCC+Nph+U qcTQeS2l+r8LElce3k87pOiDOKxAIrkHEB3VNzgOLFYpsZbvS2OeNB2kcVHz7siZtGlW I91A== 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=JvZTEgxUqwoM7PS1BYl4WkisQX2hAR60Pfb6K0wl/8o=; b=uFh99FswCR8EpSiPJh3GtRRR9RIylDfc8EE2Z6R1OgivdpHkWmA0oI0HDe4mLctJFf xO12pW+igvClVJ0QMYj+Hodgr1hFHWGOdEhQrXXvBVgs3oh2Fy9xvOYo9yAUDOeDwp/O PGj+LLLQvqHRIHzy7cjmvUeSiaLQ/vQGJ9M/GR+zUxeVZVCBUU76Y8QL1kbqzbzHz8Ms GIUsOhkX4fkfdrrnv1y4XjpwN7HfqWlMelcT5mIQeKP6pYPGw66jokrDhojMaq2BXgbr bYF5rfFiXg1HchUzY2gOT3EBwC65kKY1a2J2Rqts+hBEqDn4sddXvl4iUORPYnY15DPR kJHQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si10335031edx.444.2020.12.14.04.46.08; Mon, 14 Dec 2020 04:46:09 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439113AbgLNMov (ORCPT + 7 others); Mon, 14 Dec 2020 07:44:51 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:9198 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439081AbgLNMor (ORCPT ); Mon, 14 Dec 2020 07:44:47 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CvgzQ0cBCzkrm1; Mon, 14 Dec 2020 20:43:14 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.9) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Mon, 14 Dec 2020 20:43:53 +0800 From: Zhen Lei To: Rob Herring , Serge Semin , Wolfram Sang , linux-i2c , devicetree , linux-kernel CC: Zhen Lei Subject: [PATCH v2 1/1] dt-bindings: i2c: dw: cancel mandatory requirements for "#address-cells" and "#size-cells" Date: Mon, 14 Dec 2020 20:43:47 +0800 Message-ID: <20201214124347.2120-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201214124347.2120-1-thunder.leizhen@huawei.com> References: <20201214124347.2120-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.9] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The "#address-cells" and "#size-cells" are required only when the I2C controller has subnodes. However, some I2C controllers defined in "arch/arm64/boot/dts/amd/" and "arch/arm64/boot/dts/hisilicon/" directories do not have child nodes. So they don't need these two properties and don't write them explicitly. Therefore, setting properties "#address-cells" and "#size-cells" as "required" in this yaml file causes the following warnings: /root/linux-next/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dt.yaml: \ i2c@f7100000: '#address-cells' is a required property /root/linux-next/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dt.yaml: \ i2c@f7100000: '#size-cells' is a required property Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml | 8 -------- 1 file changed, 8 deletions(-) -- 1.8.3 diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml index 4f746bef23742e9..c22b66b6219eaa3 100644 --- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml @@ -101,8 +101,6 @@ unevaluatedProperties: false required: - compatible - reg - - "#address-cells" - - "#size-cells" - interrupts examples: @@ -110,8 +108,6 @@ examples: i2c@f0000 { compatible = "snps,designware-i2c"; reg = <0xf0000 0x1000>; - #address-cells = <1>; - #size-cells = <0>; interrupts = <11>; clock-frequency = <400000>; }; @@ -119,8 +115,6 @@ examples: i2c@1120000 { compatible = "snps,designware-i2c"; reg = <0x1120000 0x1000>; - #address-cells = <1>; - #size-cells = <0>; interrupts = <12 1>; clock-frequency = <400000>; i2c-sda-hold-time-ns = <300>; @@ -148,8 +142,6 @@ examples: reg = <0x100400 0x100>, <0x198 0x8>; pinctrl-0 = <&i2c_pins>; pinctrl-names = "default"; - #address-cells = <1>; - #size-cells = <0>; interrupts = <8>; clocks = <&ahb_clk>; };