From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19466C2D0A8 for ; Mon, 28 Sep 2020 19:07:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D0D4206A5 for ; Mon, 28 Sep 2020 19:07:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XR4zfhCt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D0D4206A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0yOC47waQAbpDrkIxwt7E2PpRmxcbCRoVZmkZCkkIrc=; b=XR4zfhCtGcIfxNnIT7cgGvZ2t iHJckbTYl3GWKYF10wp+xuLBc03g/8nW8FQDUsXLTN68LB9b2fBEOycUER9gmu+lh/YJZBhVlL5wm 1rzCyxJRdcXW2Ad2vSuM2LiwTAAw5y9lFxlODNf03HMPkF7MqJTzIqFX5IXrQk6xjcul2VsJLciJ9 dFWPxWyJvNV6T5yX1yZxzpMeqvUpKQe/+qk8mzpYSAc02pWLpC3blTd5Ejvyy6/cSW+BxMgfNTjEU LfcUrn64DyJYfqtrXpQ8wv+c0WAWVKK1cW5oV0xXdLdY6DBls+pUxfKaEnbUQ/dyyLslQHjcmVFFu RP7calcvA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kMySt-0002Tm-09; Mon, 28 Sep 2020 19:05:35 +0000 Received: from mail-oi1-f196.google.com ([209.85.167.196]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kMySp-0002Sm-HK for linux-arm-kernel@lists.infradead.org; Mon, 28 Sep 2020 19:05:33 +0000 Received: by mail-oi1-f196.google.com with SMTP id w16so2557921oia.2 for ; Mon, 28 Sep 2020 12:05:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XDu2k2l6eYaFtU/ZuyxSaqn6hMorOD2nCW+3Flv0l90=; b=izGBbmHItnK8moFOyfmm5tUboaKeSc3G7AYL2ELrQOe0tg0kEF3ZUuE4emBmeT8NW6 Q2s3DteYp63C5TpeO7OrNrip8L0OEt5OFGmUrD1p18FCPS32wAX8CQTUf2POXtAL1OYp YtE6WGlK3ghnW35OY19Z86TlHe8uhdyxOFNVq8k1D/l34oIajLA1Wg0zl4fYnncgaaPZ 2yd7yN1Rivo1pn4pyLMShFCOG0AVic3w3n4WQgusoQXLV5ydGTJXIuefyoVv3U2PRiRK 46KtfDzEsprxdpi9SxGodHbn/H7aBXbJeqrDCGmhCKsiN5xHwBGdxtIBxZ84+aFmc1aW zicA== X-Gm-Message-State: AOAM531Df4Is9gDvuAdRzzBMaFb29R21o3Jbj0XFWE5hg0YDJa/JQrox mueaUWMEYrfaBGB/QgBbdQ== X-Google-Smtp-Source: ABdhPJzSIhfuMLlGr7rmeHQ1zMkfF5B4ATyTNayvLRTSv847QcF8PXKecjGUO4TVsXOzNVnSq4asCw== X-Received: by 2002:aca:568d:: with SMTP id k135mr224087oib.136.1601319930279; Mon, 28 Sep 2020 12:05:30 -0700 (PDT) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 71sm457506otm.81.2020.09.28.12.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 12:05:29 -0700 (PDT) Received: (nullmailer pid 3088450 invoked by uid 1000); Mon, 28 Sep 2020 19:05:28 -0000 Date: Mon, 28 Sep 2020 14:05:28 -0500 From: Rob Herring To: Zhen Lei Subject: Re: [PATCH v4 01/20] dt-bindings: arm: hisilicon: split the dt-bindings of each controller into a separate file Message-ID: <20200928190528.GA3082719@bogus> References: <20200928151324.2134-1-thunder.leizhen@huawei.com> <20200928151324.2134-2-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200928151324.2134-2-thunder.leizhen@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200928_150531_597400_4AF0FCC2 X-CRM114-Status: GOOD ( 27.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , Kefeng Wang , linux-kernel , Wei Xu , Libin , Jonathan Cameron , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Sep 28, 2020 at 11:13:05PM +0800, Zhen Lei wrote: > Split the devicetree bindings of each Hisilicon controller from > hisilicon.txt into a separate file, the file name is the compatible name > attach the .txt file name extension. > > All Hi6220 dedicated controllers are grouped into subdirectory "hi3620". > All HiPxx dedicated controllers are grouped into subdirectory "hipxx" > > Signed-off-by: Zhen Lei > --- > .../arm/hisilicon/controller/hisilicon,cpuctrl.txt | 8 + > .../hisilicon/controller/hisilicon,dsa-subctrl.txt | 15 ++ > .../controller/hisilicon,hi3798cv200-perictrl.txt | 21 ++ > .../controller/hisilicon,hi6220-aoctrl.txt | 18 ++ > .../controller/hisilicon,hi6220-mediactrl.txt | 18 ++ > .../controller/hisilicon,hi6220-pmctrl.txt | 18 ++ > .../controller/hisilicon,hi6220-sramctrl.txt | 16 ++ > .../controller/hisilicon,hi6220-sysctrl.txt | 19 ++ > .../controller/hisilicon,hip01-sysctrl.txt | 19 ++ > .../controller/hisilicon,hip04-bootwrapper.txt | 9 + > .../controller/hisilicon,hip04-fabric.txt | 5 + > .../controller/hisilicon,pcie-sas-subctrl.txt | 15 ++ > .../arm/hisilicon/controller/hisilicon,pctrl.txt | 13 + > .../controller/hisilicon,peri-subctrl.txt | 16 ++ > .../arm/hisilicon/controller/hisilicon,sysctrl.txt | 25 ++ > .../bindings/arm/hisilicon/hisilicon.txt | 262 --------------------- > 16 files changed, 235 insertions(+), 262 deletions(-) > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,cpuctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,dsa-subctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-aoctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-mediactrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-pmctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-sramctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-sysctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip01-sysctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-bootwrapper.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-fabric.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pcie-sas-subctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,peri-subctrl.txt > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,sysctrl.txt > > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,cpuctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,cpuctrl.txt > new file mode 100644 > index 000000000000000..ceffac537671668 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,cpuctrl.txt > @@ -0,0 +1,8 @@ > +Hisilicon CPU controller > + > +Required properties: > +- compatible : "hisilicon,cpuctrl" > +- reg : Register address and size > + > +The clock registers and power registers of secondary cores are defined > +in CPU controller, especially in HIX5HD2 SoC. > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,dsa-subctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,dsa-subctrl.txt > new file mode 100644 > index 000000000000000..4d1c6abf03f6f97 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,dsa-subctrl.txt > @@ -0,0 +1,15 @@ > +Hisilicon HiP05/HiP06 DSA sub system controller > + > +Required properties: > +- compatible : "hisilicon,dsa-subctrl", "syscon"; This and others with only 'reg' can just be moved to syscon.yaml. > +- reg : Register address and size > + > +The DSA sub system controller is shared by peripheral controllers in > +HiP05 or HiP06 Soc to implement some basic configurations. > + > +Example: > + /* for HiP05 dsa sub system */ > + pcie_sas: system_controller@a0000000 { > + compatible = "hisilicon,dsa-subctrl", "syscon"; > + reg = <0xa0000000 0x10000>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.txt > new file mode 100644 > index 000000000000000..0d5282f4670658d > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.txt > @@ -0,0 +1,21 @@ > +Hisilicon Hi3798CV200 Peripheral Controller > + > +The Hi3798CV200 Peripheral Controller controls peripherals, queries > +their status, and configures some functions of peripherals. > + > +Required properties: > +- compatible: Should contain "hisilicon,hi3798cv200-perictrl", "syscon" > + and "simple-mfd". > +- reg: Register address and size of Peripheral Controller. > +- #address-cells: Should be 1. > +- #size-cells: Should be 1. > + > +Examples: > + > + perictrl: peripheral-controller@8a20000 { > + compatible = "hisilicon,hi3798cv200-perictrl", "syscon", > + "simple-mfd"; > + reg = <0x8a20000 0x1000>; > + #address-cells = <1>; > + #size-cells = <1>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-aoctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-aoctrl.txt > new file mode 100644 > index 000000000000000..5a723c1d45f4a17 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-aoctrl.txt > @@ -0,0 +1,18 @@ > +Hisilicon Hi6220 Power Always ON domain controller > + > +Required properties: > +- compatible : "hisilicon,hi6220-aoctrl" > +- reg : Register address and size > +- #clock-cells: should be set to 1, many clock registers are defined > + under this controller and this property must be present. > + > +Hisilicon designs this system controller to control the power always > +on domain for mobile platform. > + > +Example: > + /*for Hi6220*/ > + ao_ctrl: ao_ctrl@f7800000 { > + compatible = "hisilicon,hi6220-aoctrl", "syscon"; > + reg = <0x0 0xf7800000 0x0 0x2000>; > + #clock-cells = <1>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-mediactrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-mediactrl.txt > new file mode 100644 > index 000000000000000..dcfdcbcb6455771 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-mediactrl.txt > @@ -0,0 +1,18 @@ > +Hisilicon Hi6220 Media domain controller > + > +Required properties: > +- compatible : "hisilicon,hi6220-mediactrl" > +- reg : Register address and size > +- #clock-cells: should be set to 1, many clock registers are defined > + under this controller and this property must be present. > + > +Hisilicon designs this system controller to control the multimedia > +domain(e.g. codec, G3D ...) for mobile platform. > + > +Example: > + /*for Hi6220*/ > + media_ctrl: media_ctrl@f4410000 { > + compatible = "hisilicon,hi6220-mediactrl", "syscon"; > + reg = <0x0 0xf4410000 0x0 0x1000>; > + #clock-cells = <1>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-pmctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-pmctrl.txt > new file mode 100644 > index 000000000000000..972842f07b5a2ce > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-pmctrl.txt > @@ -0,0 +1,18 @@ > +Hisilicon Hi6220 Power Management domain controller > + > +Required properties: > +- compatible : "hisilicon,hi6220-pmctrl" > +- reg : Register address and size > +- #clock-cells: should be set to 1, some clock registers are define > + under this controller and this property must be present. > + > +Hisilicon designs this system controller to control the power management > +domain for mobile platform. > + > +Example: > + /*for Hi6220*/ > + pm_ctrl: pm_ctrl@f7032000 { > + compatible = "hisilicon,hi6220-pmctrl", "syscon"; > + reg = <0x0 0xf7032000 0x0 0x1000>; > + #clock-cells = <1>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-sramctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-sramctrl.txt > new file mode 100644 > index 000000000000000..086b7acccc5edc4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-sramctrl.txt > @@ -0,0 +1,16 @@ > +Hisilicon Hi6220 SRAM controller > + > +Required properties: > +- compatible : "hisilicon,hi6220-sramctrl", "syscon" > +- reg : Register address and size > + > +Hisilicon's SoCs use sram for multiple purpose; on Hi6220 there have several > +SRAM banks for power management, modem, security, etc. Further, use "syscon" > +managing the common sram which can be shared by multiple modules. > + > +Example: > + /*for Hi6220*/ > + sram: sram@fff80000 { > + compatible = "hisilicon,hi6220-sramctrl", "syscon"; > + reg = <0x0 0xfff80000 0x0 0x12000>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-sysctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-sysctrl.txt > new file mode 100644 > index 000000000000000..07e318eda254f52 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-sysctrl.txt > @@ -0,0 +1,19 @@ > +Hisilicon Hi6220 system controller > + > +Required properties: > +- compatible : "hisilicon,hi6220-sysctrl" > +- reg : Register address and size > +- #clock-cells: should be set to 1, many clock registers are defined > + under this controller and this property must be present. > + > +Hisilicon designs this controller as one of the system controllers, > +its main functions are the same as Hisilicon system controller, but > +the register offset of some core modules are different. > + > +Example: > + /*for Hi6220*/ > + sys_ctrl: sys_ctrl@f7030000 { > + compatible = "hisilicon,hi6220-sysctrl", "syscon"; > + reg = <0x0 0xf7030000 0x0 0x2000>; > + #clock-cells = <1>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip01-sysctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip01-sysctrl.txt > new file mode 100644 > index 000000000000000..db2dfdce799db91 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip01-sysctrl.txt > @@ -0,0 +1,19 @@ > +Hisilicon HiP01 system controller > + > +Required properties: > +- compatible : "hisilicon,hip01-sysctrl" > +- reg : Register address and size > + > +The HiP01 system controller is mostly compatible with hisilicon > +system controller,but it has some specific control registers for > +HIP01 SoC family, such as slave core boot, and also some same > +registers located at different offset. > + > +Example: > + > + /* for hip01-ca9x2 */ > + sysctrl: system-controller@10000000 { > + compatible = "hisilicon,hip01-sysctrl", "hisilicon,sysctrl"; > + reg = <0x10000000 0x1000>; > + reboot-offset = <0x4>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-bootwrapper.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-bootwrapper.txt > new file mode 100644 > index 000000000000000..b0d53333f4fdae1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-bootwrapper.txt > @@ -0,0 +1,9 @@ > +Bootwrapper boot method (software protocol on SMP): > + > +Required Properties: > +- compatible: "hisilicon,hip04-bootwrapper"; > +- boot-method: Address and size of boot method. > + [0]: bootwrapper physical address > + [1]: bootwrapper size > + [2]: relocation physical address > + [3]: relocation size > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-fabric.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-fabric.txt > new file mode 100644 > index 000000000000000..40453d02f2024bd > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-fabric.txt > @@ -0,0 +1,5 @@ > +Fabric: > + > +Required Properties: > +- compatible: "hisilicon,hip04-fabric"; > +- reg: Address and size of Fabric > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pcie-sas-subctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pcie-sas-subctrl.txt > new file mode 100644 > index 000000000000000..1ef086bda81a3f5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pcie-sas-subctrl.txt > @@ -0,0 +1,15 @@ > +Hisilicon HiP05/HiP06 PCIe-SAS sub system controller > + > +Required properties: > +- compatible : "hisilicon,pcie-sas-subctrl", "syscon"; > +- reg : Register address and size > + > +The PCIe-SAS sub system controller is shared by PCIe and SAS controllers in > +HiP05 or HiP06 Soc to implement some basic configurations. > + > +Example: > + /* for HiP05 PCIe-SAS sub system */ > + pcie_sas: system_controller@b0000000 { > + compatible = "hisilicon,pcie-sas-subctrl", "syscon"; > + reg = <0xb0000000 0x10000>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.txt > new file mode 100644 > index 000000000000000..deec777bc3a850a > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.txt > @@ -0,0 +1,13 @@ > +PCTRL: Peripheral misc control register > + > +Required Properties: > +- compatible: "hisilicon,pctrl" > +- reg: Address and size of pctrl. > + > +Example: > + > + /* for Hi3620 */ > + pctrl: pctrl@fca09000 { > + compatible = "hisilicon,pctrl"; > + reg = <0xfca09000 0x1000>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,peri-subctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,peri-subctrl.txt > new file mode 100644 > index 000000000000000..b96c2896078b914 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,peri-subctrl.txt > @@ -0,0 +1,16 @@ > +Hisilicon HiP05/HiP06 PERI sub system controller > + > +Required properties: > +- compatible : "hisilicon,peri-subctrl", "syscon"; > +- reg : Register address and size > + > +The PERI sub system controller is shared by peripheral controllers in > +HiP05 or HiP06 Soc to implement some basic configurations. The peripheral > +controllers include mdio, ddr, iic, uart, timer and so on. > + > +Example: > + /* for HiP05 sub peri system */ > + peri_c_subctrl: syscon@80000000 { > + compatible = "hisilicon,peri-subctrl", "syscon"; > + reg = <0x0 0x80000000 0x0 0x10000>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,sysctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,sysctrl.txt > new file mode 100644 > index 000000000000000..963f7f1ca7a2f0c > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,sysctrl.txt > @@ -0,0 +1,25 @@ > +Hisilicon system controller > + > +Required properties: > +- compatible : "hisilicon,sysctrl" > +- reg : Register address and size > + > +Optional properties: > +- smp-offset : offset in sysctrl for notifying slave cpu booting > + cpu 1, reg; > + cpu 2, reg + 0x4; > + cpu 3, reg + 0x8; > + If reg value is not zero, cpun exit wfi and go > +- resume-offset : offset in sysctrl for notifying cpu0 when resume > +- reboot-offset : offset in sysctrl for system reboot > + > +Example: > + > + /* for Hi3620 */ > + sysctrl: system-controller@fc802000 { > + compatible = "hisilicon,sysctrl"; > + reg = <0xfc802000 0x1000>; > + smp-offset = <0x31c>; > + resume-offset = <0x308>; > + reboot-offset = <0x4>; > + }; > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt b/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt > index a97f643e7d1c760..ffe760a636b5e7f 100644 > --- a/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt > +++ b/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt > @@ -55,265 +55,3 @@ Required root node properties: > HiP07 D05 Board > Required root node properties: > - compatible = "hisilicon,hip07-d05"; > - > -Hisilicon system controller > - > -Required properties: > -- compatible : "hisilicon,sysctrl" > -- reg : Register address and size > - > -Optional properties: > -- smp-offset : offset in sysctrl for notifying slave cpu booting > - cpu 1, reg; > - cpu 2, reg + 0x4; > - cpu 3, reg + 0x8; > - If reg value is not zero, cpun exit wfi and go > -- resume-offset : offset in sysctrl for notifying cpu0 when resume > -- reboot-offset : offset in sysctrl for system reboot > - > -Example: > - > - /* for Hi3620 */ > - sysctrl: system-controller@fc802000 { > - compatible = "hisilicon,sysctrl"; > - reg = <0xfc802000 0x1000>; > - smp-offset = <0x31c>; > - resume-offset = <0x308>; > - reboot-offset = <0x4>; > - }; > - > ------------------------------------------------------------------------ > -Hisilicon Hi3798CV200 Peripheral Controller > - > -The Hi3798CV200 Peripheral Controller controls peripherals, queries > -their status, and configures some functions of peripherals. > - > -Required properties: > -- compatible: Should contain "hisilicon,hi3798cv200-perictrl", "syscon" > - and "simple-mfd". > -- reg: Register address and size of Peripheral Controller. > -- #address-cells: Should be 1. > -- #size-cells: Should be 1. > - > -Examples: > - > - perictrl: peripheral-controller@8a20000 { > - compatible = "hisilicon,hi3798cv200-perictrl", "syscon", > - "simple-mfd"; > - reg = <0x8a20000 0x1000>; > - #address-cells = <1>; > - #size-cells = <1>; > - }; > - > ------------------------------------------------------------------------ > -Hisilicon Hi6220 system controller > - > -Required properties: > -- compatible : "hisilicon,hi6220-sysctrl" > -- reg : Register address and size > -- #clock-cells: should be set to 1, many clock registers are defined > - under this controller and this property must be present. > - > -Hisilicon designs this controller as one of the system controllers, > -its main functions are the same as Hisilicon system controller, but > -the register offset of some core modules are different. > - > -Example: > - /*for Hi6220*/ > - sys_ctrl: sys_ctrl@f7030000 { > - compatible = "hisilicon,hi6220-sysctrl", "syscon"; > - reg = <0x0 0xf7030000 0x0 0x2000>; > - #clock-cells = <1>; > - }; > - > - > -Hisilicon Hi6220 Power Always ON domain controller > - > -Required properties: > -- compatible : "hisilicon,hi6220-aoctrl" > -- reg : Register address and size > -- #clock-cells: should be set to 1, many clock registers are defined > - under this controller and this property must be present. > - > -Hisilicon designs this system controller to control the power always > -on domain for mobile platform. > - > -Example: > - /*for Hi6220*/ > - ao_ctrl: ao_ctrl@f7800000 { > - compatible = "hisilicon,hi6220-aoctrl", "syscon"; > - reg = <0x0 0xf7800000 0x0 0x2000>; > - #clock-cells = <1>; > - }; > - > - > -Hisilicon Hi6220 Media domain controller > - > -Required properties: > -- compatible : "hisilicon,hi6220-mediactrl" > -- reg : Register address and size > -- #clock-cells: should be set to 1, many clock registers are defined > - under this controller and this property must be present. > - > -Hisilicon designs this system controller to control the multimedia > -domain(e.g. codec, G3D ...) for mobile platform. > - > -Example: > - /*for Hi6220*/ > - media_ctrl: media_ctrl@f4410000 { > - compatible = "hisilicon,hi6220-mediactrl", "syscon"; > - reg = <0x0 0xf4410000 0x0 0x1000>; > - #clock-cells = <1>; > - }; > - > - > -Hisilicon Hi6220 Power Management domain controller > - > -Required properties: > -- compatible : "hisilicon,hi6220-pmctrl" > -- reg : Register address and size > -- #clock-cells: should be set to 1, some clock registers are define > - under this controller and this property must be present. > - > -Hisilicon designs this system controller to control the power management > -domain for mobile platform. > - > -Example: > - /*for Hi6220*/ > - pm_ctrl: pm_ctrl@f7032000 { > - compatible = "hisilicon,hi6220-pmctrl", "syscon"; > - reg = <0x0 0xf7032000 0x0 0x1000>; > - #clock-cells = <1>; > - }; > - > - > -Hisilicon Hi6220 SRAM controller > - > -Required properties: > -- compatible : "hisilicon,hi6220-sramctrl", "syscon" > -- reg : Register address and size > - > -Hisilicon's SoCs use sram for multiple purpose; on Hi6220 there have several > -SRAM banks for power management, modem, security, etc. Further, use "syscon" > -managing the common sram which can be shared by multiple modules. > - > -Example: > - /*for Hi6220*/ > - sram: sram@fff80000 { > - compatible = "hisilicon,hi6220-sramctrl", "syscon"; > - reg = <0x0 0xfff80000 0x0 0x12000>; > - }; > - > ------------------------------------------------------------------------ > -Hisilicon HiP01 system controller > - > -Required properties: > -- compatible : "hisilicon,hip01-sysctrl" > -- reg : Register address and size > - > -The HiP01 system controller is mostly compatible with hisilicon > -system controller,but it has some specific control registers for > -HIP01 SoC family, such as slave core boot, and also some same > -registers located at different offset. > - > -Example: > - > - /* for hip01-ca9x2 */ > - sysctrl: system-controller@10000000 { > - compatible = "hisilicon,hip01-sysctrl", "hisilicon,sysctrl"; > - reg = <0x10000000 0x1000>; > - reboot-offset = <0x4>; > - }; > - > ------------------------------------------------------------------------ > -Hisilicon HiP05/HiP06 PCIe-SAS sub system controller > - > -Required properties: > -- compatible : "hisilicon,pcie-sas-subctrl", "syscon"; > -- reg : Register address and size > - > -The PCIe-SAS sub system controller is shared by PCIe and SAS controllers in > -HiP05 or HiP06 Soc to implement some basic configurations. > - > -Example: > - /* for HiP05 PCIe-SAS sub system */ > - pcie_sas: system_controller@b0000000 { > - compatible = "hisilicon,pcie-sas-subctrl", "syscon"; > - reg = <0xb0000000 0x10000>; > - }; > - > -Hisilicon HiP05/HiP06 PERI sub system controller > - > -Required properties: > -- compatible : "hisilicon,peri-subctrl", "syscon"; > -- reg : Register address and size > - > -The PERI sub system controller is shared by peripheral controllers in > -HiP05 or HiP06 Soc to implement some basic configurations. The peripheral > -controllers include mdio, ddr, iic, uart, timer and so on. > - > -Example: > - /* for HiP05 sub peri system */ > - peri_c_subctrl: syscon@80000000 { > - compatible = "hisilicon,peri-subctrl", "syscon"; > - reg = <0x0 0x80000000 0x0 0x10000>; > - }; > - > -Hisilicon HiP05/HiP06 DSA sub system controller > - > -Required properties: > -- compatible : "hisilicon,dsa-subctrl", "syscon"; > -- reg : Register address and size > - > -The DSA sub system controller is shared by peripheral controllers in > -HiP05 or HiP06 Soc to implement some basic configurations. > - > -Example: > - /* for HiP05 dsa sub system */ > - pcie_sas: system_controller@a0000000 { > - compatible = "hisilicon,dsa-subctrl", "syscon"; > - reg = <0xa0000000 0x10000>; > - }; > - > ------------------------------------------------------------------------ > -Hisilicon CPU controller > - > -Required properties: > -- compatible : "hisilicon,cpuctrl" > -- reg : Register address and size > - > -The clock registers and power registers of secondary cores are defined > -in CPU controller, especially in HIX5HD2 SoC. > - > ------------------------------------------------------------------------ > -PCTRL: Peripheral misc control register > - > -Required Properties: > -- compatible: "hisilicon,pctrl" > -- reg: Address and size of pctrl. > - > -Example: > - > - /* for Hi3620 */ > - pctrl: pctrl@fca09000 { > - compatible = "hisilicon,pctrl"; > - reg = <0xfca09000 0x1000>; > - }; > - > ------------------------------------------------------------------------ > -Fabric: > - > -Required Properties: > -- compatible: "hisilicon,hip04-fabric"; > -- reg: Address and size of Fabric > - > ------------------------------------------------------------------------ > -Bootwrapper boot method (software protocol on SMP): > - > -Required Properties: > -- compatible: "hisilicon,hip04-bootwrapper"; > -- boot-method: Address and size of boot method. > - [0]: bootwrapper physical address > - [1]: bootwrapper size > - [2]: relocation physical address > - [3]: relocation size > -- > 1.8.3 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel