From patchwork Wed Nov 14 09:00:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 10682197 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 211BC14E2 for ; Wed, 14 Nov 2018 09:01:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 146232ADBB for ; Wed, 14 Nov 2018 09:01:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 072012ADD5; Wed, 14 Nov 2018 09:01: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 AAC702ADBB for ; Wed, 14 Nov 2018 09:01: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: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=b77f+oO+/qOvki7w+n8EAL2RxNLxfIaE2XYJiYYugN0=; b=jqF Nz03I6THceOclKUTiSnsQ7tWtElT7S4F+vPUZHHvkJf0eTY9NwQGfo1yfk5wjZQZ4yY6HbB/L00pA RKNfLSXoXtEsuGoYNC2yeI110hMKTUzkwoaFfar3ggNA6cRgJBa88vk/nWJic84fg8tGytJw0jAkV AeV5YKYgIDPcEvZh0ePTEg0H7G8z32Tf8SE1X8sjXmRexG3H3Xaqg2puYEkJ7NyR82yzcM2/Wztm0 hKD1xN7hB/Z51WEKZbqa6Q582rf/DVl+WbJJH+24wz/CyY5xmXTZqweoXTQeht9DmlBelB58iHhli 97rbjB5v8ilrXh4JOC0ImIO+L/GwoWw==; 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 1gMr2c-0003D3-Np; Wed, 14 Nov 2018 09:00:54 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMr2Z-0003An-Rv for linux-arm-kernel@lists.infradead.org; Wed, 14 Nov 2018 09:00:53 +0000 Received: by mail-wr1-x444.google.com with SMTP id y3-v6so16315648wrh.10 for ; Wed, 14 Nov 2018 01:00:41 -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=ZOwBQshcAUV9PVEubJRR0swJTsYLQ7NnXoIXsmWc1ME=; b=Ynq4OZFFUalIB2oPEQzAV3xGL71KB6yOHuyQwYRLGoDd3zWuE7JpgAuM7q52u9DYZv NlQurGIk3A2wf3DVs+AauYZbjjY8p0UEBYOs0PcCkxMNHJrWx81395llk210wRKklAFe P9leC0jIQgnV3v/RZS98bZG/+GKbtxVqktWGE= 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=ZOwBQshcAUV9PVEubJRR0swJTsYLQ7NnXoIXsmWc1ME=; b=g9EQuddTaBQLPe1MhClp32u8AvxsawjcY3FZ1zSqMTCAe5yT+6C870Y7J3MWpVgdSg NupAv0OLIXOZV8J9quENL8USaY9rXepLVYizbRNQVMfTsefCbNg86gsWHt+52mqkn52/ xfzFP97/rznMRr+yT5My83z+Xavh8kX/GaTHfSDX/eIoGgJwDy89w5chpS/q0MPTa79t Hwuc9bKhh/YnXmtxlXm05L1Bc0be1EAgj/+B7FSn0gIQd83wMhK1K5Hv8HHdJf7q2HmR e8Fs8F4cU5khOW/SfGtfJU10CMcg+mXU6koNqbB3QhlQ3xZRQc3AMFGB8/BEQwq0Au/s 2mfw== X-Gm-Message-State: AGRZ1gLbkF88fZKd/cXqYcztd2weLB+c8RT1B9RUcX6btH1hkuEEMHdm RdLTJ3W8f2xciYQH/MTZWqwSMg== X-Google-Smtp-Source: AJdET5ecglP5umyBoBVddR0y/cyBqdZBGUb34cNKQAHsYbvxh3EUUbQAZDO2zTjl7QPiqK2iGrTPDQ== X-Received: by 2002:adf:b181:: with SMTP id q1-v6mr990973wra.95.1542186038727; Wed, 14 Nov 2018 01:00:38 -0800 (PST) Received: from lmecxl0911.lme.st.com ([2a04:cec0:1088:2b4c:4d39:8b22:d570:822a]) by smtp.gmail.com with ESMTPSA id n7-v6sm16951441wrt.60.2018.11.14.01.00.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Nov 2018 01:00:38 -0800 (PST) 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 v4 0/4] Add support of STM32 hwspinlock Date: Wed, 14 Nov 2018 10:00:23 +0100 Message-Id: <20181114090027.7580-1-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.15.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181114_010051_899042_C7615C6E X-CRM114-Status: GOOD ( 12.15 ) 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, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Gaignard , 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 4: - add Linaro SoB 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