From patchwork Wed Oct 31 09:30:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 149770 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6552555ljp; Wed, 31 Oct 2018 02:30:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5eN8A07mUdabB0RPbywzcRV7xKAGWzxbc+7EAGzK2S+7DDlhbH/YqQILGSVdrHYzfwUuRW/ X-Received: by 2002:a63:2315:: with SMTP id j21mr2392370pgj.297.1540978250931; Wed, 31 Oct 2018 02:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540978250; cv=none; d=google.com; s=arc-20160816; b=vp1zWtUmut0DRNSI64Rtm26Pw5ZC45+wjkbIIm5JWt6wkGQFgt9oZBg1V7hDtYQQVX NOR7dvn3mjBjCGGFlr2H5eGwOfQzyd8ApoQXCFxN601sXrKCLfXquhHfNCipKgKaoWwT bAN61/EkOALCVLkiw9Xm8FItFVCSOg82B2X8pbiF69uFFG56hD1p0D1crn8UtRnrXasq RCrl8OGUSr2QBmR657PhtCRP6jpZsGZg6EEo8fdF9skIQ02AD7+JEChxjMySesqlS6LT Qa0HwuyzAhYTkHkZhR0dWi2YIUbA837Yqw9hFf818MSnxb5iMaQYgtyjBKOKhCeeZfk1 Hzog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=i4hHSGsmWMk6v8HT5bX88V/ev/elSNXdtghM/lZz0Hw=; b=seIuiSEwxNFmOOA4WCUtfxVm9e21c/Ai5DKrUMPpWjOn8bgY0Q07CAqAthxjsQOPpN JG+UbqaHFEOlfXtM2cpbR9uTdPK2vZGJt/q12MYuAsqC8T92zMQrvf3JT9AEwnkiI8vP TY9qXSGRvV12PGm/ZF6oraRg4aEJ4hgsaS3jtLIFwQABasH48Kl7qr2XyFdnskpneMaP 82/tV3CQ4Wd7AcC4NsJA2Y9cuBef+ADYUVZMu4FMY5rbOaHWHZd5WI//fz/3nZaG5ZHB 5Ov3RGlw0Ldb9smOEEPCQfUidVmGFoQoAqZtlR0ITYnjcOmaSwUDgNZtX/ks6y6I5oq8 ugIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZCz3p/z2"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m61-v6si26805672plb.311.2018.10.31.02.30.50; Wed, 31 Oct 2018 02:30:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ZCz3p/z2"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727633AbeJaS2J (ORCPT + 6 others); Wed, 31 Oct 2018 14:28:09 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45013 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727573AbeJaS2J (ORCPT ); Wed, 31 Oct 2018 14:28:09 -0400 Received: by mail-wr1-f68.google.com with SMTP id d17-v6so15337543wre.11 for ; Wed, 31 Oct 2018 02:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=i4hHSGsmWMk6v8HT5bX88V/ev/elSNXdtghM/lZz0Hw=; b=ZCz3p/z2iHtuFqhtgamPJy1ulsidAsb59E3JNxE9+0WQI4gv/9r/qXMVaMrIGt+ca5 fqpSqSCoouzTl1oVvuPjPRCl/mz9hZ/MCBvUyvAIyHZxHPBcbe4L7wXNGm16J/yU1fVK hf3h/QR7uGUWjmgCZ+tfFP+NuvKkVgm5y+x94= 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=i4hHSGsmWMk6v8HT5bX88V/ev/elSNXdtghM/lZz0Hw=; b=enGIQ3r20FmExso2MKcJepzdOqmvP/9qLQ+c1exe3YC7va3aR2PPqAS7Hs+ll6p4WT EYWNp6w1coVf1D7nOZgGwvqNxSvKtd1Rv+L6c7Pe3lOU8CRBGvKwNQMngrGQMdTvUJe3 3EGNSV/Ciwc6Qyg6wgNMrawms7o5aMqPMws4rIrIDm6mSl60DoJHcwR96Qy90+TfrO5L GkEXQhmDzTEk0I6zIg5I3qoMFRPdG7iif8NkqHLpcaCqIdwEBIHpb5TDB91Cz5j52Ihw y+fVFsyurkwgtzB03tiV7me6w9KGbsf+Zpw5SBpw62eqavZ5gcJDnguwjAr4lTSUjBhb meGA== X-Gm-Message-State: AGRZ1gJwsaq9ljAjHRbnOBBavpoV52bDYJpBp0qffHIdWG8MyiWw6fpI cXxOnAT3szY9KPHNVkgjuyzILg== X-Received: by 2002:a5d:4406:: with SMTP id z6-v6mr2046516wrq.294.1540978248230; Wed, 31 Oct 2018 02:30:48 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([2a04:cec0:1086:999:fd1b:8629:a7fc:68b]) by smtp.gmail.com with ESMTPSA id w14-v6sm10737377wrt.73.2018.10.31.02.30.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Oct 2018 02:30:47 -0700 (PDT) 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 Cc: linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Benjamin Gaignard Subject: [PATCH 0/5] Add support of STM32 hwspinlock Date: Wed, 31 Oct 2018 10:30:27 +0100 Message-Id: <20181031093032.20386-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This serie adds the support of the hardware semaphore block for stm32mp1 SoC. The last patch isn't related to the hardware itself but propose a way to test hwspinlocks. Benjamin Gaignard (5): 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 hwspinlock: Add test module .../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 | 18 +++ drivers/hwspinlock/Makefile | 2 + drivers/hwspinlock/hwspinlock_test.c | 132 ++++++++++++++++++ drivers/hwspinlock/stm32_hwspinlock.c | 147 +++++++++++++++++++++ 7 files changed, 335 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt create mode 100644 drivers/hwspinlock/hwspinlock_test.c create mode 100644 drivers/hwspinlock/stm32_hwspinlock.c -- 2.15.0 Acked-by: Bjorn Andersson