From patchwork Fri Dec 4 01:42:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 337699 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp784486ilb; Thu, 3 Dec 2020 17:45:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2uOkUfjG1/g7kDIoeuiRFHSvxDsu3R2FqR2/eZ69+q2vQNxPj3MN9hIY0LHqhKoavxR5Y X-Received: by 2002:a50:c091:: with SMTP id k17mr5366926edf.137.1607046329684; Thu, 03 Dec 2020 17:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607046329; cv=none; d=google.com; s=arc-20160816; b=RX8G/6nJzdwrAL1L9WmnEVoB2H2XlvzxqgcV/hnOS4i0dEcj1MQCfUW7lEXzDf/8Ha Yb6LNa1N5Le4jJDGYwi4fc3pNO8IfRXDzXAzmv/ndzxiG9ecNBMxm0JPgybuesvBKw3T 0sg1LnOL2tMxVwRvD2fn3bX8yP0OQhu0QyjNWWIi4LgOsPmR/X6Qzrh1/4f3izitWMtv oANdUnpwFVyjvMjtJSfsAlU/KtRTn84DaR5UegxMOJ6p9617/bCWLj3A7SjtF6hH650s O98riccM4OdpvfxOLFB0Duxf59tQmeL/9LYdp4kJ7YeIbwRgdrKyiJ3SFP3MQ8Yvk220 UjXg== 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=djGCN5ErqubNew+OUSOaXBk21YK671arAO6LOkEm168=; b=rE4o23YHqqFoYX4MzrN67W2qJZ2vRQ0hTTZsvkICWbcpx1Te/kp8ozGmTe1PBv0Qiu AIDpzyYBGX2zlbUmaosD/33Z4yN4qEisdjbpelGc5Mo8OOGUIhDnXZbRsP2+jW9rFYAU AhKMY8SQ7IYoQjYFKJ1Fa3Gc94aQ7vKQBVAxC9H/cdtsQjvze5GY1jJiR3gDD6S3dowd DPzDV84stKhXJ57r3Fq3MDr77aBOB+4c7FN+DzB4tT9m6neXdukuYF95Pe5opeohdxlB mON2GnmkY/sc04gd5UYIv0WT8MJ9LETFRW7DSOB6dODtuJRFZAG9IheeHkrATGqaMTvF ZP2A== 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 hq6si479351ejc.40.2020.12.03.17.45.29; Thu, 03 Dec 2020 17:45:29 -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 S1726370AbgLDBns (ORCPT + 6 others); Thu, 3 Dec 2020 20:43:48 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:9373 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbgLDBns (ORCPT ); Thu, 3 Dec 2020 20:43:48 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CnFnk4GcXz76by; Fri, 4 Dec 2020 09:42:34 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.9) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:42:55 +0800 From: Zhen Lei To: Philipp Zabel , Wei Xu , "Rob Herring" , linux-arm-kernel , devicetree , linux-kernel CC: Zhen Lei , Zhangfei Gao , Chen Feng , "Manivannan Sadhasivam" Subject: [PATCH v2 1/3] reset: hisilicon: correct vendor prefix Date: Fri, 4 Dec 2020 09:42:34 +0800 Message-ID: <20201204014236.1158-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201204014236.1158-1-thunder.leizhen@huawei.com> References: <20201204014236.1158-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 vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "vendor-prefixes.yaml". Fixes: 1527058736fa ("reset: hisilicon: add reset-hi3660") Fixes: 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC") Fixes: dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC") Signed-off-by: Zhen Lei Cc: Zhangfei Gao Cc: Chen Feng Cc: Manivannan Sadhasivam --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 4 ++-- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 2 +- drivers/reset/hisilicon/reset-hi3660.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) -- 1.8.3 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 49c19c6879f95ce..bfb1375426d2b58 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -345,7 +345,7 @@ crg_rst: crg_rst_controller { compatible = "hisilicon,hi3660-reset"; #reset-cells = <2>; - hisi,rst-syscon = <&crg_ctrl>; + hisilicon,rst-syscon = <&crg_ctrl>; }; @@ -376,7 +376,7 @@ iomcu_rst: reset { compatible = "hisilicon,hi3660-reset"; - hisi,rst-syscon = <&iomcu>; + hisilicon,rst-syscon = <&iomcu>; #reset-cells = <2>; }; diff --git a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi index 85b0dfb35d6d396..5c5a5dc964ea848 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi @@ -155,7 +155,7 @@ compatible = "hisilicon,hi3670-reset", "hisilicon,hi3660-reset"; #reset-cells = <2>; - hisi,rst-syscon = <&crg_ctrl>; + hisilicon,rst-syscon = <&crg_ctrl>; }; pctrl: pctrl@e8a09000 { diff --git a/drivers/reset/hisilicon/reset-hi3660.c b/drivers/reset/hisilicon/reset-hi3660.c index a7d4445924e558c..8f1953159a65b31 100644 --- a/drivers/reset/hisilicon/reset-hi3660.c +++ b/drivers/reset/hisilicon/reset-hi3660.c @@ -83,7 +83,7 @@ static int hi3660_reset_probe(struct platform_device *pdev) if (!rc) return -ENOMEM; - rc->map = syscon_regmap_lookup_by_phandle(np, "hisi,rst-syscon"); + rc->map = syscon_regmap_lookup_by_phandle(np, "hisilicon,rst-syscon"); if (IS_ERR(rc->map)) { dev_err(dev, "failed to get hi3660,rst-syscon\n"); return PTR_ERR(rc->map); From patchwork Fri Dec 4 01:42:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 337698 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp784477ilb; Thu, 3 Dec 2020 17:45:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEaBvdmkJjoGqjl79VFCaeWle6JAw80Kc/0wocBvIHzufkY6IiJwXThY8oj4trdMKcZ45B X-Received: by 2002:a17:907:216b:: with SMTP id rl11mr5063534ejb.61.1607046329113; Thu, 03 Dec 2020 17:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607046329; cv=none; d=google.com; s=arc-20160816; b=MP2ti7LSaLLwHoQ+Eg+8nA44TkCT131FPSMbBkXmHW2SmIqmWWCztkKjmU8fSuio5E Zh7hOfNkdvdB26j1cw7mrR4Ousy1GFEpDosrX+9bJEvlgZ1Cs/1i5juaWagk+wznYJqQ nG8LArk6aTnAF8z9tzv/n1VmFlJS6oTyMxsVjT4fpshW1aIKBuWcO+PVQN17T5yutsS1 8L2ui5fJSuaR7Z7RiOcDQKsVsIemsTvmqCUCP97xY9OeO2Z/Uotqg7ApeEqI4C5WDfx9 87g8CFOJSYyJHocqJMqAUZgE1W4kZD7IL4y8KCqsoGoYOsOoEk2Wq66NQCgUH4HaHI/R quCA== 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=Wdknopw8C3ptqQ4vf0rNR+SA3nawBZmTqZvd/6aiSX0=; b=yegwHvhoSZPiU87H2OTKZyCIdtNe+VheB5Y/S1CbEjxmRJ7vO5ev5eJ8FWeVBtp0yC wC0mL3Giq/BRXf4S/DXqaR1HplAVTBysoCLcGmhalkC2hVjKAgsm156swanbSo0iyD0t 6IFUOhc7+LykZngItFlCFTvgRRf//QzuNgNWgamvxvA9PZ7VdQTw+LVjq0USSlwKcrBK Bhlm1d7eByuNKnC21X0JDgkSBBP+2w3WV+1GIBnO9FmkFYy8AK+ObfsIGNSH2Lrn8bhG FHociE9H5jv3Wb8cupiQz6WoyOv66g1yckYKFhWmv3xB/uQ11eqIpy/vs+EfwQ/Pwtib sE0g== 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 hq6si479351ejc.40.2020.12.03.17.45.28; Thu, 03 Dec 2020 17:45:29 -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 S1726318AbgLDBns (ORCPT + 6 others); Thu, 3 Dec 2020 20:43:48 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8639 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbgLDBns (ORCPT ); Thu, 3 Dec 2020 20:43:48 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CnFnq0byZz15W9r; Fri, 4 Dec 2020 09:42:39 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.9) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:42:56 +0800 From: Zhen Lei To: Philipp Zabel , Wei Xu , "Rob Herring" , linux-arm-kernel , devicetree , linux-kernel CC: Zhen Lei , Zhangfei Gao , Chen Feng , "Manivannan Sadhasivam" Subject: [PATCH v2 2/3] dt-bindings: reset: correct vendor prefix hisi to hisilicon Date: Fri, 4 Dec 2020 09:42:35 +0800 Message-ID: <20201204014236.1158-3-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201204014236.1158-1-thunder.leizhen@huawei.com> References: <20201204014236.1158-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 vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "vendor-prefixes.yaml". Fixes: 1527058736fa ("reset: hisilicon: add reset-hi3660") Fixes: 836e23549583 ("dt-bindings: Document the hi3660 reset bindings") Signed-off-by: Zhen Lei Cc: Zhangfei Gao --- Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.8.3 diff --git a/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt index 2df4bddeb688918..aefd26710f9e87d 100644 --- a/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt @@ -11,7 +11,7 @@ Required properties: - compatible: should be one of the following: "hisilicon,hi3660-reset" for HI3660 "hisilicon,hi3670-reset", "hisilicon,hi3660-reset" for HI3670 -- hisi,rst-syscon: phandle of the reset's syscon. +- hisilicon,rst-syscon: phandle of the reset's syscon. - #reset-cells : Specifies the number of cells needed to encode a reset source. The type shall be a and the value shall be 2. @@ -29,7 +29,7 @@ Example: iomcu_rst: iomcu_rst_controller { compatible = "hisilicon,hi3660-reset"; - hisi,rst-syscon = <&iomcu>; + hisilicon,rst-syscon = <&iomcu>; #reset-cells = <2>; }; From patchwork Fri Dec 4 01:42:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 337700 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp784509ilb; Thu, 3 Dec 2020 17:45:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8P+cGsyDhZua3XSMb5MpvMWaCePBj2cx2S6RF+0odeeiY+AOoWfeVBnTpggK/NO6gO+uJ X-Received: by 2002:a50:e715:: with SMTP id a21mr5444985edn.285.1607046331398; Thu, 03 Dec 2020 17:45:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607046331; cv=none; d=google.com; s=arc-20160816; b=hALpW98uMAjDJ/EPOsSFuM+2ABsjU2+rSevJ8lvMKtH3Rs67rQN93LtKgQ5CyOZHxW HRKVLbuhhSVjDU3YU16uw1lSprqjYGaoPZdKF6PEo/Qa7umDBMeb5Ari0Yv4X+HMxuXG RoawkSICvzM7XtYvCItEZiphMOCAE2+3AyS/7/cwkBpM1kLiI1haJ88gb4vdDGkXyEQ0 2o2vC7OtziGG7BrHyxXufW8McFATZqHauffMOLVSs4UKwjvt1PpwWAZIvz16VB6JMHF2 ug9RISwmi9vGATqGBhS4+CpfJFkxUJVtENw6A0O9DhaNDm3OqPyys5Kj8UOkphA6V8xl TLuQ== 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=owX/PhfbcFJeWJ3EwGDTBI4JtcpUNpABMw5bsHZWjEw=; b=vlRjQe0dGz8wrO3vlTsNSIHoG14gVyaaOYVlOHE/OOX5ulsrsVKVaL7okPwM7qnreJ ou5NlVobJ2VZI+BuJZmHt7gQFP4g3QuXJjnk/WtN/2cfZVXrUnl5cpnSfyby/B9PpEIY bZyOLTAbGu1u8nMIWKrvXtC4ffeJIJACntXjSxM2LL7ewWPCmmChu/UOlVAcDXW4LIEa hDaYFGArkhjkgRcs53LTmhDvIXDWyDFUAvaHC/36Rmo7XsMotrbadoytSvxyHLGWUN0m ZmaD1jyXr1G0I7+t1MkT9mbYH6tNm0ou9JH6feJzyI+tu/DM6f4eEGmiCG6ygoU35B8d /pRw== 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 hq6si479351ejc.40.2020.12.03.17.45.31; Thu, 03 Dec 2020 17:45:31 -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 S1726443AbgLDBny (ORCPT + 6 others); Thu, 3 Dec 2020 20:43:54 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8640 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbgLDBnx (ORCPT ); Thu, 3 Dec 2020 20:43:53 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CnFnq0qzyz15WJn; Fri, 4 Dec 2020 09:42:39 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.9) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:42:56 +0800 From: Zhen Lei To: Philipp Zabel , Wei Xu , "Rob Herring" , linux-arm-kernel , devicetree , linux-kernel CC: Zhen Lei , Zhangfei Gao , Chen Feng , "Manivannan Sadhasivam" Subject: [PATCH v2 3/3] dt-bindings: reset: convert Hisilicon reset controller bindings to json-schema Date: Fri, 4 Dec 2020 09:42:36 +0800 Message-ID: <20201204014236.1158-4-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201204014236.1158-1-thunder.leizhen@huawei.com> References: <20201204014236.1158-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 Convert the Hisilicon reset controller binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../bindings/reset/hisilicon,hi3660-reset.txt | 44 ------------- .../bindings/reset/hisilicon,hi3660-reset.yaml | 77 ++++++++++++++++++++++ 2 files changed, 77 insertions(+), 44 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.yaml -- 1.8.3 diff --git a/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt deleted file mode 100644 index aefd26710f9e87d..000000000000000 --- a/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt +++ /dev/null @@ -1,44 +0,0 @@ -Hisilicon System Reset Controller -====================================== - -Please also refer to reset.txt in this directory for common reset -controller binding usage. - -The reset controller registers are part of the system-ctl block on -hi3660 and hi3670 SoCs. - -Required properties: -- compatible: should be one of the following: - "hisilicon,hi3660-reset" for HI3660 - "hisilicon,hi3670-reset", "hisilicon,hi3660-reset" for HI3670 -- hisilicon,rst-syscon: phandle of the reset's syscon. -- #reset-cells : Specifies the number of cells needed to encode a - reset source. The type shall be a and the value shall be 2. - - Cell #1 : offset of the reset assert control - register from the syscon register base - offset + 4: deassert control register - offset + 8: status control register - Cell #2 : bit position of the reset in the reset control register - -Example: - iomcu: iomcu@ffd7e000 { - compatible = "hisilicon,hi3660-iomcu", "syscon"; - reg = <0x0 0xffd7e000 0x0 0x1000>; - }; - - iomcu_rst: iomcu_rst_controller { - compatible = "hisilicon,hi3660-reset"; - hisilicon,rst-syscon = <&iomcu>; - #reset-cells = <2>; - }; - -Specifying reset lines connected to IP modules -============================================== -example: - - i2c0: i2c@..... { - ... - resets = <&iomcu_rst 0x20 3>; /* offset: 0x20; bit: 3 */ - ... - }; diff --git a/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.yaml b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.yaml new file mode 100644 index 000000000000000..9bf40952e5b7d28 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/hisilicon,hi3660-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hisilicon System Reset Controller + +maintainers: + - Wei Xu + +description: | + Please also refer to reset.txt in this directory for common reset + controller binding usage. + The reset controller registers are part of the system-ctl block on + hi3660 and hi3670 SoCs. + +properties: + compatible: + oneOf: + - items: + - const: hisilicon,hi3660-reset + - items: + - const: hisilicon,hi3670-reset + - const: hisilicon,hi3660-reset + + hisilicon,rst-syscon: + description: phandle of the reset's syscon. + $ref: /schemas/types.yaml#/definitions/phandle + + '#reset-cells': + description: | + Specifies the number of cells needed to encode a reset source. + Cell #1 : offset of the reset assert control register from the syscon + register base + offset + 4: deassert control register + offset + 8: status control register + Cell #2 : bit position of the reset in the reset control register + const: 2 + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include + #include + #include + + iomcu: iomcu@ffd7e000 { + compatible = "hisilicon,hi3660-iomcu", "syscon"; + reg = <0xffd7e000 0x1000>; + }; + + iomcu_rst: iomcu_rst_controller { + compatible = "hisilicon,hi3660-reset"; + hisilicon,rst-syscon = <&iomcu>; + #reset-cells = <2>; + }; + + /* Specifying reset lines connected to IP modules */ + i2c@ffd71000 { + compatible = "snps,designware-i2c"; + reg = <0xffd71000 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + clocks = <&crg_ctrl HI3660_CLK_GATE_I2C0>; + resets = <&iomcu_rst 0x20 3>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>; + status = "disabled"; + }; +...