Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3805148imu; Mon, 12 Nov 2018 00:19:28 -0800 (PST) X-Google-Smtp-Source: AJdET5f5ulep/K0EAWmEPjB4CaS7jXuFMzUpeAXfdifmFn6rfgyJ/vqaSTjcOzi/Fg2b/Dqd1K66 X-Received: by 2002:a17:902:7a2:: with SMTP id 31-v6mr18734039plj.277.1542010768287; Mon, 12 Nov 2018 00:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542010768; cv=none; d=google.com; s=arc-20160816; b=Hj3RSzY0xHkSfJOgzvy+YQqBSIkRJGeuhZ4eYJcMJ33d9w8Efwsio/c3ksb4gevLm7 gapCFMZPzF6hiVzIuca8n9Ut9HoURCovWdlpBMHRMP+a2AagEVnA/2IBFgXvPBRek00B o94gNA//U2NvYJJhy/jCWJHkoQYog2ohIkCCCYd8w91EGuLk/InAwO3Rb73VIZ4IYf8P T/IQcVDF4jccfgkDrrM3P1PBuX4FA0aWP3RDFaKf06n0AhPf43ndb7s42rRmllqu9FKW 0I7cCQmEglf1jZcDZ6VuH/KtMOJJDWiMwpHQzjf1SVo1k070WrQ6a0gwL8PktUNuMPiY yFiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DFUKTdG/hANGOlM4sNmDZlbm2tMDt6ctY1YBlShiZzE=; b=QOmvHK4t2ysLNl23ZbrZyNNPCIrQza436ByyZMA0KWeMoLG8PswK3Uvmz3l4FxAapQ wpw8PMVYvIWaTcB2h3JA+nBvWA4L9nMaH9+SxB5sHzk1LsycyZZnAKn/9j1h3U7usP2M wegi2Mm7DS1NXq49rlSR58y3znkybcZxzS4VmwPYoNWBhC+tPUQgE2x/NSew/ui+xwr1 DexZSiO/o7PvUo8BC0OzYCeB5yz99UQsr7hrsFnoJ8Ec69yImbhSwgXiKqqOALD4JzrY L0sTp+xw6ScXbUVnMA4nRFzdRvXx+xflUtdWs4/FYVBU/HcyfNKE0ynveiezIhYTXo8Q IeGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i63si15807951pge.515.2018.11.12.00.19.12; Mon, 12 Nov 2018 00:19:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728726AbeKLSKt (ORCPT + 99 others); Mon, 12 Nov 2018 13:10:49 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:9180 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727296AbeKLSKt (ORCPT ); Mon, 12 Nov 2018 13:10:49 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id wAC8DaVo017726; Mon, 12 Nov 2018 09:18:15 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2nnnywt6wu-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 12 Nov 2018 09:18:15 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 840EE34; Mon, 12 Nov 2018 08:18:12 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2851B15FD; Mon, 12 Nov 2018 08:18:12 +0000 (GMT) Received: from [10.201.21.58] (10.75.127.50) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 12 Nov 2018 09:18:11 +0100 Subject: Re: [PATCH v2 1/4] dt-bindings: hwlock: Document STM32 hwspinlock bindings To: Benjamin Gaignard , , , , CC: , , , , , Benjamin Gaignard References: <20181108090502.14543-1-benjamin.gaignard@st.com> <20181108090502.14543-2-benjamin.gaignard@st.com> From: Alexandre Torgue Message-ID: <427f9053-22c2-92f7-c60a-d54505185068@st.com> Date: Mon, 12 Nov 2018 09:18:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181108090502.14543-2-benjamin.gaignard@st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG6NODE1.st.com (10.75.127.16) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-12_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Benjamin On 11/8/18 10:04 AM, Benjamin Gaignard wrote: > Add bindings for STM32 hardware spinlock device > > Signed-off-by: Benjamin Gaignard > --- > version 2 : > - change clock name from hwspinlock to hsem to be align with hardware > documentation > > .../bindings/hwlock/st,stm32-hwspinlock.txt | 23 ++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt > > diff --git a/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt b/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt > new file mode 100644 > index 000000000000..6e933b218574 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwlock/st,stm32-hwspinlock.txt > @@ -0,0 +1,23 @@ > +STM32 Hardware Spinlock Device Binding > +------------------------------------- > + > +Required properties : > +- compatible : should be "st,stm32-hwspinlock". > +- reg : the register address of hwspinlock. > +- #hwlock-cells : hwlock users only use the hwlock id to represent a specific > + hwlock, so the number of cells should be <1> here. > +- clock-names : Must contain "hwspinlock". "hwspinlock" --> "hsem" ? > +- clocks : Must contain a phandle entry for the clock in clock-names, see the > + common clock bindings. > + > +Please look at the generic hwlock binding for usage information for consumers, > +"Documentation/devicetree/bindings/hwlock/hwlock.txt" > + > +Example of hwlock provider: > + hwspinlock@4c000000 { > + compatible = "st,stm32-hwspinlock"; > + #hwlock-cells = <1>; > + reg = <0x4c000000 0x400>; > + clocks = <&rcc HSEM>; > + clock-names = "hsem"; > + }; >