From patchwork Mon Oct 12 06:12:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 317616 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp4332386ilm; Sun, 11 Oct 2020 23:12:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+nZ5QYp9gr2ss921fx3+Q5LdVfXgZwWj8kxQL4RWwP5LkGv9pi9EHlHJdqag48Jrqjk3b X-Received: by 2002:a50:d94d:: with SMTP id u13mr12117998edj.365.1602483172987; Sun, 11 Oct 2020 23:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602483172; cv=none; d=google.com; s=arc-20160816; b=M2g80QPM1j4R0vleJLR5E3h99qrpW3F0QcJiI0SedLzpPU9a1M/gnjGopYkGVCI0oF 3x+waNlkZnCSoT1nMoq6Gt44DwNPejpBj1yYglGxX8GMQjIKJvB68Wbwknw6iFTKU4uP IQjQrp5/wOdW0yFk/M/qGTpDWStw3DqVe6hRk68Dm46m+iJJbtXmgVd0Jp8/5EI6oe6Q Y1J7G83MHnS3Xw+Hxj4hPJVd8VojcXasHERm3PAJlAl+IRVjzIkxhozmlQZP7p7HkpK/ 4aybpU3aXxgw9Q7v2XI9dvBd9bjXQk7514Bv9nFc4R/u/eYciozloAn4BfjRqzYmzBp/ J93A== 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=H5MVhmYTpO84p0rj20WgdInCQHLhcWBMDFy+LyVseag=; b=jPeKhY54Tt4d1M/ArMa7S5UhM7Yak8+cu/zBC3oIcXlDUbH8WpyOVTYfkVfIopabOR lZZcOjOLcBPfhtZXJmMkNq4/puR/iXYud5N8PUKtAhz7FVhsmjJxWFYE/flMeLttUcdI IaxAmWUxJrhM2zAflShQ9wbf8KcNFtpeBflp7etbWssk9XkHyoVbwfLyjyC1PWr/NcPU B81/XXV6Xo4av0QYGwtambOnOJiueC2LeeDV2SGF36t1//9IEnDi7BV/coCx/Hq68jlg dtiMSzJ3oIWqNNxtjzMFXUaWK2yCet7ka7XNTlbhE05AY9LQe/56dEZXYRvXncUSmtec Z1DA== 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 b15si11856375ejq.260.2020.10.11.23.12.52; Sun, 11 Oct 2020 23:12:52 -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 S1727263AbgJLGMt (ORCPT + 6 others); Mon, 12 Oct 2020 02:12:49 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:33556 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727214AbgJLGMs (ORCPT ); Mon, 12 Oct 2020 02:12:48 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C60512300DE390C4CF61; Mon, 12 Oct 2020 14:12:45 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.134) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 12 Oct 2020 14:12:40 +0800 From: Zhen Lei To: Wei Xu , Rob Herring , devicetree , linux-arm-kernel , linux-kernel CC: Zhen Lei Subject: [PATCH v2 09/10] dt-bindings: arm: hisilicon: add missing properties into sysctrl.yaml Date: Mon, 12 Oct 2020 14:12:24 +0800 Message-ID: <20201012061225.1597-10-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201012061225.1597-1-thunder.leizhen@huawei.com> References: <20201012061225.1597-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: #reset-cells, #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 | 28 +++++++++++++++++++--- 1 file changed, 25 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..5a53d433b6f0891 100644 --- a/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml @@ -71,21 +71,43 @@ properties: '#clock-cells': const: 1 + '#reset-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 */