From patchwork Sun Sep 17 16:45:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9954941 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 4BDFB60208 for ; Sun, 17 Sep 2017 16:49:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BA7D237F1 for ; Sun, 17 Sep 2017 16:49:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 307612853D; Sun, 17 Sep 2017 16:49:08 +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 AC41D237F1 for ; Sun, 17 Sep 2017 16:49:03 +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=0/xu9Jk6ryrEJmUSCPBHHYYGmYPAbwgsUBDowLzVYO8=; b=YOQqyoOxsAev1L/HExaOlGY0hp DKrnI0XKR+Un584XVeF8Uaqzz4m2tIVvclfWnN2fv1UojvaXGmoVjo6GO0FSmNAPNsPABuq+CUC9n r9l6+qE+UHuJKebF/tTunOyH0gvb/QOckXqs0owCQzOfqDA+8UxydWlRizCUKFJ/6olClRwMc3tEv Aq5zSZQWbbLVp1+CuPz29LSVbdd1KFrNd2YsrsF7AeIneQZvOHFHtGrExwAKHRkoDODi3vMcCTtsH 1UH6H0xn0OkEYxtqCQu/U2vkaVLsqzufdOyYAhWz1fnDQiVvXxKnqyIldXgMlEZbUFK3adybxyN9B XrFyUxtQ==; 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-0007T3-CZ; Sun, 17 Sep 2017 16:48:57 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dtci4-0005Wt-C6; Sun, 17 Sep 2017 16:46:32 +0000 Received: by mail-wr0-x242.google.com with SMTP id p37so3821953wrb.5; Sun, 17 Sep 2017 09:45:59 -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=NvQz9jxUe6EfWwliIYctg2WgnRAZrhk7bXtDa+1VZyw=; b=nUCevoa7VLt++9oViQbwARHxZ0ROSx25GTjJT9kilzs2engjHdLBbXK+ep6pViIbGg 1dNndkl2TNPXArHU2ImdxBbDAUi134KfMVMs29iNbK3K76nF2t4litU89ZCUryByp1qP OlEY9crzQz7393euff2cq6Z5TuThbOX/9I0TRBVfSWyAJTSG70keCAKHdSDCLkEFoKR9 eHfaQmgCpvfQuNFzkzyVTfChPfFhHkJmrEx4VTNtZQVh+BVzzwj2WdzYNxHSXd2Z409c UJte/wY4DeevHxJvGpIiEcKFxtImBfYQuPoWgWfMB637QzN9hyd3v86aEb80Y+QP8hrI 0O6w== 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=NvQz9jxUe6EfWwliIYctg2WgnRAZrhk7bXtDa+1VZyw=; b=Scj2Cc25rVf4Hh8IQtnqlmXle+uhQzERoXOsBl+aUQCZ/VGKhAQH6r3vK/eSsh3ens Vu6zpbSHl2ibYtFWluIWyqdXTR0pQJTkixMeJUa1HtSB6lH4SL6rya8R27nCgupF2uvQ 0tdU8wdtylGLd7VDbSTk9XAXVGD1ueNdMIdN6LmJGTxRtkYTW/u9yvnMOxIUp7f6xuqZ TAaCdWtbqr66GoM8+mNChmlPQNsnOVAvIOiMIrP/LUBk48VFxt7SQy3+yYgAP7fb8Z6H 2q1x9+0MORjLcP+LFX83XOs5EwV21KHIZRPMKAP0qN8YO7xQa4t3js17dp2i0rg+rorU t2cg== X-Gm-Message-State: AHPjjUgFvGlvvSr75SdC4wNx0hBK6+HXqHEOOglggGF5iL9gns/aM8kK JOQV0n9ujodrCCYQ2K0= X-Google-Smtp-Source: ADKCNb6QGvMfCpTGcfiIqVF8x+TcylU1hPSHDHUrlnQkX0P50SMLYpGcYr3ajRA8OAL/4zklYY3dpQ== X-Received: by 10.223.195.37 with SMTP id n34mr24721536wrf.219.1505666757836; Sun, 17 Sep 2017 09:45:57 -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.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Sep 2017 09:45:57 -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 6/6] ARM: dts: meson8b: add support for booting the secondary CPU cores Date: Sun, 17 Sep 2017 18:45:23 +0200 Message-Id: <20170917164523.6970-7-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_094621_009426_DBD3AC0D X-CRM114-Status: GOOD ( 10.36 ) 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 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 Booting the secondary CPU cores involves the following nodes/devices: - SCU (Snoop-Control-Unit, for which we already have a DT node) - a reset line for each CPU core, provided by the reset-controller which is built into the clock-controller - the PMU (power management unit) which controls the power of the CPU cores - a range in the SRAM specifically reserved for booting secondary CPU cores - the "enable-method" which activates booting the secondary CPU cores This adds all required nodes and properties to boot the secondary CPU cores. Signed-off-by: Carlo Caione Signed-off-by: Martin Blumenstingl Tested-by: Linus Lüssing --- arch/arm/boot/dts/meson8b.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index bc278da7df0d..aaebfcce9073 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -47,6 +47,7 @@ #include #include #include +#include #include "meson.dtsi" / { @@ -59,6 +60,8 @@ compatible = "arm,cortex-a5"; next-level-cache = <&L2>; reg = <0x200>; + enable-method = "amlogic,meson8b-smp"; + resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>; }; cpu@201 { @@ -66,6 +69,8 @@ compatible = "arm,cortex-a5"; next-level-cache = <&L2>; reg = <0x201>; + enable-method = "amlogic,meson8b-smp"; + resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>; }; cpu@202 { @@ -73,6 +78,8 @@ compatible = "arm,cortex-a5"; next-level-cache = <&L2>; reg = <0x202>; + enable-method = "amlogic,meson8b-smp"; + resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>; }; cpu@203 { @@ -80,6 +87,8 @@ compatible = "arm,cortex-a5"; next-level-cache = <&L2>; reg = <0x203>; + enable-method = "amlogic,meson8b-smp"; + resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>; }; }; @@ -90,6 +99,11 @@ }; /* end of / */ &aobus { + pmu: pmu@e0 { + compatible = "amlogic,meson8b-pmu", "syscon"; + reg = <0xe0 0x18>; + }; + pinctrl_aobus: pinctrl@84 { compatible = "amlogic,meson8b-aobus-pinctrl"; reg = <0x84 0xc>; @@ -157,6 +171,13 @@ }; }; +&ahb_sram { + smp-sram@1ff80 { + compatible = "amlogic,meson8b-smp-sram"; + reg = <0x1ff80 0x8>; + }; +}; + ðmac { clocks = <&clkc CLKID_ETH>; clock-names = "stmmaceth";