From patchwork Sun Sep 17 16:45:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9954939 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F279F60208 for ; Sun, 17 Sep 2017 16:48:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1AD4237F1 for ; Sun, 17 Sep 2017 16:48:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6BE62853D; Sun, 17 Sep 2017 16:48:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3DE8126B41 for ; Sun, 17 Sep 2017 16:48:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=35rxB6GzSRJlGUzimpvHH0L9aq7JHqQnuPFQ+r7udYs=; b=NNdqcXpjd0RuQD2hX3/M83lYZQ eYP2FdjJOUEFhSgT4FPeyUq2SmMaOr+6Eh58t11eA2SeCgPx2ISa1GEmpgekeX9ZdmzHpif55hbG3 VOVb3OY0hZbd6bXgD0cPxhFBpjyMxC4xMmUHm1c6N66XXDjgw6OtO5Pcx+L6b9tuPzK3rXBZEglVa u3aGOG8sUf3XzrH659hVdIzW56vY4SxKjQ1xhMpPTp5hISC0YiceehJrQ0MkyAiPkmVPkO1ErB/Ib VM9ne9LRnloheC9hr+IzR+dSP9eiiTOGNRDS3RnK/r3vgSonbBmAlLYfe23DLcJ6yexJqFI/QJJgb cuM+7c5Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dtckB-00079u-Qh; Sun, 17 Sep 2017 16:48:31 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dtchx-0005V7-TK; Sun, 17 Sep 2017 16:46:27 +0000 Received: by mail-wm0-x242.google.com with SMTP id e64so6776675wmi.2; Sun, 17 Sep 2017 09:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yNofJgu54TNPKYLLLiHOX3wDRD771jQcVEM3pet/8CM=; b=os6+8AHIc0dgIf3S3SH0Oa9qeFIvYeLuSYDNG/rrt0XRHNrV7BtMdKf/GVEuuu0Qjl hFUo9DX8Ctdte2ddu6f9h1Ta9rdhunFJPwINzNOfUAsKZ52xozbLOicEkD5auSix3RC8 S8tWgQh2YmCNFDMkwevmfvW73LzlAmfBKn70WVxaubE5rgC2vB9khVpiXeRd2kerGtdV kNMSMr7RCIwtkrnRnRLL+MF4bo93yrwHV7fwiI06HuVBwJMO6T17Lp8wWGjGXtCblTVk wEIhvzvmL5mLDhiMej+wN+wOTlgPUewU/kUnPaVrys4Ccx3khDSPZAz3iHoYtzT8/w7C gXtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yNofJgu54TNPKYLLLiHOX3wDRD771jQcVEM3pet/8CM=; b=gpTUSaAj/ZEAi+q2KC2bGr8c56jW6eG8MkyuKrmOOd3uQpBTr8KSF5/mCQTa3gshfx DrbfVrf92oDrSwcRDdYeAs39giIoXBr0kR/nbCqJKvQ3FlmSxrmTJ1+v9d8p870oHWMl KMzH8gqkrGz6bFGNkBJclKsSZbaxjZeM7vS+nC5C8EiEei1XuF1DfSuly7Vd5CNML0TJ FXBYzkOKLo8ZPl2+xyXgl51ZBj/HF2G45WJ/Q/kgE0EPRoGx0Q7kgrpL+8Qdf+ZQyvzd VrniViCnzefhqHxW0cBFGMZSNSFEdIT7dr/iqEOYZ0xpMWB+CdjbuDUDRTYV6TNSpJHd Ya/w== X-Gm-Message-State: AHPjjUgskdfOa21c/Es8JcayEd/hz/Rbb1D0R/9CUFMDFFNcFcD/bjQR EQZkdF2D1tgsNF3Zv9o= X-Google-Smtp-Source: AOwi7QB5DqForYmselpIpcwvFBuCtzeHa1S49P2Oxcj9svNXjLKg0hugpDv/k1UzOeHb5B0PM4LBVQ== X-Received: by 10.28.11.195 with SMTP id 186mr6592789wml.41.1505666751014; Sun, 17 Sep 2017 09:45:51 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3D04A042D42E2FA95194724.dip0.t-ipconnect.de. [2003:dc:d3d0:4a04:2d42:e2fa:9519:4724]) by smtp.googlemail.com with ESMTPSA id p59sm6323799wrc.75.2017.09.17.09.45.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Sep 2017 09:45:50 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, khilman@baylibre.com, carlo@caione.org, linux@armlinux.org.uk Subject: [PATCH v7 1/6] dt-bindings: Amlogic: Add Meson8 and Meson8b SMP related documentation Date: Sun, 17 Sep 2017 18:45:18 +0200 Message-Id: <20170917164523.6970-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170917164523.6970-1-martin.blumenstingl@googlemail.com> References: <20170917164523.6970-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170917_094614_974533_7D85FE53 X-CRM114-Status: GOOD ( 14.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, f.fainelli@gmail.com, arnd@arndb.de, Martin Blumenstingl , robh+dt@kernel.org, Carlo Caione MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Carlo Caione With this patch we add documentation for: * power-management-unit: the PMU is used to bring up the cores during SMP operations * sram: among other things the sram is used to store the first code executed by the core when it is powered up * cpu-enable-method: the CPU enable method used by Amlogic Meson8 and Meson8b SoCs Signed-off-by: Carlo Caione [also add Meson8 to the documentation] Signed-off-by: Martin Blumenstingl Acked-by: Rob Herring --- .../devicetree/bindings/arm/amlogic/pmu.txt | 18 ++++++++++++ .../devicetree/bindings/arm/amlogic/smp-sram.txt | 32 ++++++++++++++++++++++ Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ 3 files changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/amlogic/pmu.txt create mode 100644 Documentation/devicetree/bindings/arm/amlogic/smp-sram.txt diff --git a/Documentation/devicetree/bindings/arm/amlogic/pmu.txt b/Documentation/devicetree/bindings/arm/amlogic/pmu.txt new file mode 100644 index 000000000000..72f8d08198b6 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/amlogic/pmu.txt @@ -0,0 +1,18 @@ +Amlogic Meson8 and Meson8b power-management-unit: +------------------------------------------------- + +The pmu is used to turn off and on different power domains of the SoCs +This includes the power to the CPU cores. + +Required node properties: +- compatible value : depending on the SoC this should be one of: + "amlogic,meson8-pmu" + "amlogic,meson8b-pmu" +- reg : physical base address and the size of the registers window + +Example: + + pmu@c81000e4 { + compatible = "amlogic,meson8b-pmu", "syscon"; + reg = <0xc81000e0 0x18>; + }; diff --git a/Documentation/devicetree/bindings/arm/amlogic/smp-sram.txt b/Documentation/devicetree/bindings/arm/amlogic/smp-sram.txt new file mode 100644 index 000000000000..3473ddaadfac --- /dev/null +++ b/Documentation/devicetree/bindings/arm/amlogic/smp-sram.txt @@ -0,0 +1,32 @@ +Amlogic Meson8 and Meson8b SRAM for smp bringup: +------------------------------------------------ + +Amlogic's SMP-capable SoCs use part of the sram for the bringup of the cores. +Once the core gets powered up it executes the code that is residing at a +specific location. + +Therefore a reserved section sub-node has to be added to the mmio-sram +declaration. + +Required sub-node properties: +- compatible : depending on the SoC this should be one of: + "amlogic,meson8-smp-sram" + "amlogic,meson8b-smp-sram" + +The rest of the properties should follow the generic mmio-sram discription +found in ../../misc/sram.txt + +Example: + + sram: sram@d9000000 { + compatible = "mmio-sram"; + reg = <0xd9000000 0x20000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xd9000000 0x20000>; + + smp-sram@1ff80 { + compatible = "amlogic,meson8b-smp-sram"; + reg = <0x1ff80 0x8>; + }; + }; diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt index b92f12bd5244..a0009b72e9be 100644 --- a/Documentation/devicetree/bindings/arm/cpus.txt +++ b/Documentation/devicetree/bindings/arm/cpus.txt @@ -197,6 +197,8 @@ described below. "actions,s500-smp" "allwinner,sun6i-a31" "allwinner,sun8i-a23" + "amlogic,meson8-smp" + "amlogic,meson8b-smp" "arm,realview-smp" "brcm,bcm11351-cpu-method" "brcm,bcm23550"