From patchwork Mon Nov 12 15:23:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 10678835 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 26C4F14BA for ; Mon, 12 Nov 2018 15:24:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15E8A29F30 for ; Mon, 12 Nov 2018 15:24:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A15829F3D; Mon, 12 Nov 2018 15:24:05 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 AAF5629F30 for ; Mon, 12 Nov 2018 15:24:04 +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=qh2731JTdtM2zk1GCAwJFtsUWzLKzhpB1NnLoREzi00=; b=EpV zjW1ShCuVG/HXXzMaU30RoFn+0xDg54AUV0IcWWgvIPxBEzzZ7TujrjokSsFianytKRpymnZ57gp+ euiKNTtp3b5POhRfDv5rESd/i8gFqAPRna3i/2YThsA0RI6SrlyPRi9+DwVg3GgYEEIAvQCNaULwF JCtjL3PCEqE9QY7tSpHUTYEVgFgqPalnw0yYXmvvvbeb2kbONKVcTVAYmfio/OeoZcWEN0YwUQgOH afTynms+G3dHGHvIZpXdZEVZ+9EfJsoneN23u6SPSs6U5wWs96NxB8RsEGs4axyUOOoNod3czuals Ts9hGLzITDUxfFxCuZXPjYEheYLXmyw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gME4I-0001o1-Ud; Mon, 12 Nov 2018 15:24:02 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gME4G-0001mn-Nf for linux-arm-kernel@lists.infradead.org; Mon, 12 Nov 2018 15:24:02 +0000 Received: by mail-wm1-x341.google.com with SMTP id r63-v6so8933472wma.4 for ; Mon, 12 Nov 2018 07:23:50 -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=yyvl64X5FbEhFmlfbNEvG6Iy+6IGW5U2Gxn+yiL2vUg=; b=JM4J2WwDaJv7/mGrG8PzE4ZVTExFbQaSrBQ49OkalBJfw7gi0dP1ZomHuuXkm1sY/t FvmiGeuE1wY0pyii8aiTC4ZI2xMcG3QN+e+56zyA0/S7NDKWj1WFkoUqq6mbAiaH0peW NVr3I46lOOkRyx8FeDgtIaCKBPLUqOeD5pcQ4= 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=yyvl64X5FbEhFmlfbNEvG6Iy+6IGW5U2Gxn+yiL2vUg=; b=DpeMwp/s8gol/nBqGPYuhLqzesRHIBMjL/5WrIWQJdwFg7TbPP1iiVIw4bZQt2nYgu 0ALpCWBh++stVUmDpjaHGTIYbX8L7gLxtHNKHWckmKEgY+nFOVZIvebrZP1HU5ZlLtAZ F7rowfOnkVhD+gb+SgzT80Y6bZ5aCcUKRDl2g0hqdnW/OhzYSagpxqkYwWtpzWXoDmS+ Fp8ZENPdHhYUtdSySXTbJ8afWxLj3Hnx08KNLG383PUQeMSCAPFA7k1rE9XOx/3oV+Df 3BAk0ZV45bA8vJlp6x/V8FDn4fHMsgMgmgh+paJed05r/SqHnlHLHbCgYaddk6gl3qoj 4qHQ== X-Gm-Message-State: AGRZ1gLfM5dmSrMnGZA/IuP8OQ9I9gaMOursCDD05h7OPPK9kU2dmrS/ BTMmxphXRHINrv91KOmRa/HSRA== X-Google-Smtp-Source: AJdET5dwKqifJeOi6AfR1btP9CVim7x33pesNQnj5j/q0N+dOFNVQmj+Lo0Y6ynVtggakHzKBv+0eA== X-Received: by 2002:a1c:7cc:: with SMTP id 195-v6mr40989wmh.139.1542036228751; Mon, 12 Nov 2018 07:23:48 -0800 (PST) Received: from lmecxl0911.lme.st.com ([2a04:cec0:105e:a8d5:7c2c:2737:d373:11ee]) by smtp.gmail.com with ESMTPSA id t82-v6sm11192849wme.30.2018.11.12.07.23.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Nov 2018 07:23:48 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: ohad@wizery.com, bjorn.andersson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, alexandre.torgue@st.com Subject: [PATCH v3 0/4] Add support of STM32 hwspinlock Date: Mon, 12 Nov 2018 16:23:38 +0100 Message-Id: <20181112152342.6561-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181112_072400_772002_E7C49F0C X-CRM114-Status: GOOD ( 12.51 ) 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, Benjamin Gaignard , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, 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 This serie adds the support of the hardware semaphore block for stm32mp1 SoC. version 3: - fix clock name in properties description. - use postcore_initcall() instead of module_platform_driver() version 2: - fix comments done by Bjorn about clock naming, license terms in header, alphabetic ordering in Makefile and Kconfig and remove function - Do not push test module in this version while waiting for feedbacks about it Benjamin Gaignard (4): dt-bindings: hwlock: Document STM32 hwspinlock bindings hwspinlock: add STM32 hwspinlock device ARM: dts: stm32: Add hwspinlock node for stm32mp157 SoC ARM: dts: stm32: enable hwspinlock on stm32mp157c-ed1 .../bindings/hwlock/st,stm32-hwspinlock.txt | 23 +++ arch/arm/boot/dts/stm32mp157c-ed1.dts | 4 + arch/arm/boot/dts/stm32mp157c.dtsi | 9 ++ drivers/hwspinlock/Kconfig | 9 ++ drivers/hwspinlock/Makefile | 1 + drivers/hwspinlock/stm32_hwspinlock.c | 156 +++++++++++++++++++++ 6 files changed, 202 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt create mode 100644 drivers/hwspinlock/stm32_hwspinlock.c