From patchwork Sat Oct 10 09:57:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 317588 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp3037299ilm; Sat, 10 Oct 2020 03:19:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH8zWDb+tCyvmerNruWpYTarBslNvaJALisg7yUzucVeNBxWrWot6uatoTcs/esAYOFh72 X-Received: by 2002:a17:906:b1c9:: with SMTP id bv9mr2070007ejb.495.1602325189537; Sat, 10 Oct 2020 03:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602325189; cv=none; d=google.com; s=arc-20160816; b=lYJ10R8bgV3fu0cpULSNdrVS0BiCWaNQxEenDzY8+K7l6U+4b8xFwSp9QwCgys8jlH jDu6if/rh9wg6ZKeuysrPFyVNBCwvvzSwwPvoX68+axN1DRxOsibY9Pg63DeiDnLZH/A ltMOlf13URPf4ryBHJdftQve/1OJSktpYKVLHzwOaTxib3t+2P5uFNoYY3TSr/Z2layl 98m9ZMVf4KWXeyE7uv1dB25imUjcApWCuBmajYfsqxLNocSqhgQFzCuzT964x5hY0xPg sC7pKbHR/yuS0rwCppJ0KBJSZwnyixArj5jX+EObgl6DjPhan+uF8SoNxBGMvsR76Bck QYMA== 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=Blww+J29Qk2V7ZueCuhI+EFLfUpnK3EvCEQoTvW5hV4=; b=q9vYfHMmq5bW5DHFVwEf7Zlxqk/athF39YmSReu4XB/B9THgmYnKKg3I4p4s0xTYK5 gZ3viO5yxPiHIpeD1EUVcuRnTaubvfXrAkilC3k3Hclb1fTuklpyMePh7jh1PuNsowM3 k53tUZnNZEPL0Sc9wLnV8tlo1hJtbDKuFasQlBoM43oB1uFKlVpwRnqP79lea/lpzZMq 15NWbl6w/YB9OirNXq0JHr500wXdgE3K9OL0odGLCE+Ssx+ZvwiUIMUVP9kXB4wQs9lx HmDg3OnjUFKowQLMCpL19wLOU5KTIs/qtWsTrnE6wQVOxtWUQF0V7JLq/WkIheC1jYEF XlaQ== 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 a20si9408330edn.39.2020.10.10.03.19.48; Sat, 10 Oct 2020 03:19:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728466AbgJJKSw (ORCPT + 6 others); Sat, 10 Oct 2020 06:18:52 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:54206 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727172AbgJJKQa (ORCPT ); Sat, 10 Oct 2020 06:16:30 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B6F2CEA0387CB9B93677; Sat, 10 Oct 2020 17:57:46 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.134) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Sat, 10 Oct 2020 17:57:38 +0800 From: Zhen Lei To: Wei Xu , Rob Herring , devicetree , linux-arm-kernel , linux-kernel CC: Zhen Lei Subject: [PATCH 09/10] dt-bindings: arm: hisilicon: add missing properties into sysctrl.yaml Date: Sat, 10 Oct 2020 17:57:08 +0800 Message-ID: <20201010095709.1340-10-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201010095709.1340-1-thunder.leizhen@huawei.com> References: <20201010095709.1340-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.134] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add properties: #address-cells, #size-cells and ranges. Due to the Hisilicon system controller node may contains child nodes, change the value of "additionalProperties" from "false" to "type: object". The examples have also been updated. Signed-off-by: Zhen Lei --- .../bindings/arm/hisilicon/controller/sysctrl.yaml | 25 +++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) -- 1.8.3 diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml index 449140f89ddbc3b..a27b79694e9883f 100644 --- a/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml @@ -71,21 +71,40 @@ properties: '#clock-cells': const: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + required: - compatible - reg -additionalProperties: false +additionalProperties: + type: object examples: - | /* Hisilicon system controller */ - system-controller@fc802000 { + system-controller@802000 { compatible = "hisilicon,sysctrl", "syscon"; - reg = <0xfc802000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x802000 0x1000>; + reg = <0x802000 0x1000>; + smp-offset = <0x31c>; resume-offset = <0x308>; reboot-offset = <0x4>; + + clock: clock@0 { + compatible = "hisilicon,hi3620-clock"; + reg = <0 0x10000>; + #clock-cells = <1>; + }; }; /* HiP01 system controller */