From patchwork Wed Feb 28 10:47:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10247179 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 3C22360362 for ; Wed, 28 Feb 2018 10:48:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4053B28701 for ; Wed, 28 Feb 2018 10:48:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3407C2870F; Wed, 28 Feb 2018 10:48:14 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 B959D28701 for ; Wed, 28 Feb 2018 10:48:13 +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: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:In-Reply-To: References:List-Owner; bh=+eHGVtpfCJoDlvLE4Vs18oNQeOCG1oY/EmfmDywBsFo=; b=IWL 8KI6NDWXhieoYQHzV+TXUBRjG0L2U3i/VmVV+OBGtg+gJVx3f9QqP3VOVpdSIL53lziw6R/JaZFvx RZEYCvV6WK3ralOeQhS6fiOhXKO+vqjd7c0WPxR9Pevk2L/oXmyoIkSiU+5OO7cGdoCMGP0ANM2EF G2kQPE9xybdGurR5KjF3I6mA/f1pmm3B5ma/QYqnqjBoCZAk7IAaNs4tpE4QHtAF51T7xUAI83kv/ YzEacrXybpDmUegAA4V8LlwD+GD8j38Ddzl7LeLkn1hqriMzpVUkeXLKwaHfsN87XozRfzwbzVV+r Yq2K0IbNQXft8T3SIonQzwJ0AzHMTDA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqzHL-00035F-3t; Wed, 28 Feb 2018 10:48:07 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqzHH-00031x-IR for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2018 10:48:05 +0000 Received: by mail-pl0-x241.google.com with SMTP id bb3-v6so1274200plb.2 for ; Wed, 28 Feb 2018 02:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ZxrG12OKWB4Lae8OO2iBPm3wSddfnEatRlxiJPBxwz0=; b=LAAOqKNu4UlpBpkRRgBBhugmB4SvIhdJ2NQTiWfY/xLgbidr0OdB4mjjmIMtmMT6ft jNITAHnOl5zm0AcwJnFoo+/U1PQatlgzy7Ope4UYpQyUTNw1pBAKD62FW3ZoJf4ksMBH pPrnfct2LidEJRZnXAaKYZkPKudfVfFdGtpX0= 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; bh=ZxrG12OKWB4Lae8OO2iBPm3wSddfnEatRlxiJPBxwz0=; b=dWzg8D2vECWAeiEc/XZ70mFfw3pr0okzoXuKztCukbVHcB/R0j6WLwDrCFb+V4RghC FunMVFU2mmpGrcR0Pl+DB1xGgbD7zFGFHJlZE0DXodsm/7ll4JOp8sWxVo4kEoW5v0r7 WY9ZMCjAnZwLTAxoypVfrTVrhtof1BQCFFUCMrbse90++nPD+Pe4iUbmheT/qOytwgud DUTe+6wXObrgXRDaDJfhsWDJ4sr4j9fIdzes9RQdU2S9uynvtkVIBzZ1wyHZ4z4KPMbT UVBT8q87EqqZD2SuYZTWCBLUju1gEBt/i3tOJtfyc1NubktJawrKEfb5Ee2O9Pl+yBth 6nmA== X-Gm-Message-State: APf1xPCudtwE8vCwjGUZJ+0vDh1hCp6aM0kNciOjAT53i1B8DRgA1J6C P6S83kbBG5Tq9RhN8RID/X9vWQ== X-Google-Smtp-Source: AH8x2272RYAJFpX0p750vuLbD57ruvVC+AkWYrEhJrO14CRKomhqiHobXhldM9J3OPmorx1qTCcfHg== X-Received: by 2002:a17:902:4c88:: with SMTP id b8-v6mr17450199ple.0.1519814872127; Wed, 28 Feb 2018 02:47:52 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id v14sm3636129pfi.8.2018.02.28.02.47.48 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:47:51 -0800 (PST) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de Subject: [RESEND PATCH 1/7] arm64: dts: Add hwspinlock node for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:04 +0800 Message-Id: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180228_024803_619648_2E945479 X-CRM114-Status: GOOD ( 10.61 ) 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: devicetree@vger.kernel.org, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, chunyan.zhang@linaro.org, broonie@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.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 The Spreadtrum SC9860 platform only has one hardware spinlock device, which is located on AON system of Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index 328009c..b9cc0fb 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -6,6 +6,8 @@ * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +#include + / { interrupt-parent = <&gic>; #address-cells = <2>; @@ -104,6 +106,21 @@ status = "disabled"; }; }; + + aon { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + hwlock: hwspinlock@40500000 { + compatible = "sprd,hwspinlock-r3p0"; + reg = <0 0x40500000 0 0x1000>; + #hwlock-cells = <1>; + clock-names = "enable"; + clocks = <&aon_gate CLK_SPLK_EB>; + }; + }; }; ext_32k: ext_32k {