Message ID | 20230211210500.9919-1-avolmat@me.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1675229wrn; Sat, 11 Feb 2023 14:16:12 -0800 (PST) X-Google-Smtp-Source: AK7set8fKEceWLkM9bqeVyIkOAa+WPoY4sshrzHTHBO6xxHvo5toGo3l2jI/vKuKOk7xtzmnrO1i X-Received: by 2002:a50:ce1d:0:b0:4ab:2503:403a with SMTP id y29-20020a50ce1d000000b004ab2503403amr10495102edi.34.1676153771896; Sat, 11 Feb 2023 14:16:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676153771; cv=none; d=google.com; s=arc-20160816; b=lPdIFLAxwQOqVL7sX0KcuU5XQ6xq98bAvEDaZHiaSaO+4zFy+2EPd+tvSCBxIlPSwl AyeWByQYjc97PPx8AJjkfF0eLoWAYe//W4zT/A5AmcgD9t55jtEbd/OkKmT0+r2im+24 +Cy88IRm9SsZs01ngXbAxBo/sFOl6ZZl06/hWI76ieVngMxjWWGdwHwUv5XHNUirrqNw yShQSMfabpQ5YSUoB6UtaFiI8nUn1LUt7of0TXPpu0401ipYTHCLUWoDblgYrhe2hxlT rX+S/leGGbJmYDAZ/MGBUPcxf8budgwmmmawovWYaB75N5kOlVKZ4pHrR/mouGEXcatU HMFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9x3CgbNoPA8aqfgz5tPm3lX+iFzbdCA3ovOiWwCxmhw=; b=iKYOsR8e+GI9n01XZHeNRbLOHpnOHFMhIhXPyJKDZ7dmx2RtVcvqwgbH2FS6W/OWM4 VIcntulJzVXoqFaHQlSEKzLJl8kGsQzVTPckopX9eZOtJsOhWwne2xk/ygX9ndVtM9yt b4MbLgCU9cJ1CVzFfnYwSM/vPDijfKEXVEyoWoknzjDwNUz+FIMfyR+AgKH2Og2CWHMW Vpm1Ncl6CA2azR9rWaM82Pm632tzXGctWYY07FCIx/KW72bhFgs8FiYoyAU4BHp9q0z3 sfUSGTuXjTd1/M2JPGQ3ri1LcMFTLAbsViOLY3iWrF36/+kjIk5r+cNs3c/z6erz6eHn itBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=a7hhW8rb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020aa7ccd5000000b004aabadec638si8371011edt.127.2023.02.11.14.15.48; Sat, 11 Feb 2023 14:16:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=a7hhW8rb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbjBKVID (ORCPT <rfc822;olliecheer@gmail.com> + 99 others); Sat, 11 Feb 2023 16:08:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjBKVIC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 11 Feb 2023 16:08:02 -0500 Received: from mr85p00im-zteg06022001.me.com (mr85p00im-zteg06022001.me.com [17.58.23.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D85113DD3 for <linux-kernel@vger.kernel.org>; Sat, 11 Feb 2023 13:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1676149680; bh=9x3CgbNoPA8aqfgz5tPm3lX+iFzbdCA3ovOiWwCxmhw=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=a7hhW8rbGThq5bVUwQbly0r9/NhX5yb72Y4LCRPrHEU3yT+DX3Ijyfq65qmg6hXDZ vBSrCxt0CSIP303ksCZgt4UJhY2qiB3X1JZK3XkVbv4b3pvx8OOPcg1VrvA6rxA6zN PBI1FZb20Pgsw9+RDU+jZ7MOl+8SoUZ/y5MMMpa8sBBUTiytPaOnVManCdbLOTi1iy pn9dEcjtoeVDYDNO3MxmlsUPiZp8eBkYILn4CVPkY4ow6zjbtKNZKQVgAT3YGMFJMB Hmd8++PmNDDQoYVD4wzTCKsESmiEfQzoeyyiaBvFCXekP8l2Ppvvo9hvaiyyEtfAis QpqUnqhFNiZpQ== Received: from localhost (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06022001.me.com (Postfix) with ESMTPSA id 26DB08006B5; Sat, 11 Feb 2023 21:08:00 +0000 (UTC) From: Alain Volmat <avolmat@me.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Patrice Chotard <patrice.chotard@foss.st.com> Cc: Alain Volmat <avolmat@me.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: arm: sti: addition of STi platform syscon Date: Sat, 11 Feb 2023 22:04:58 +0100 Message-Id: <20230211210500.9919-1-avolmat@me.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: EWEM7v_9xGo6ASDPDSahk_gQN2sYBIF8 X-Proofpoint-GUID: EWEM7v_9xGo6ASDPDSahk_gQN2sYBIF8 X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E425=2C18=2E0?= =?utf-8?q?=2E816=2C17=2E0=2E605=2E474=2E0000000_definitions=3D2022-01-18=5F?= =?utf-8?q?01=3A2022-01-14=5F01=2C2022-01-18=5F01=2C2020-01-23=5F02_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 clxscore=1015 suspectscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2302110197 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757574617328228641?= X-GMAIL-MSGID: =?utf-8?q?1757574617328228641?= |
Series |
[1/2] dt-bindings: arm: sti: addition of STi platform syscon
|
|
Commit Message
Alain Volmat
Feb. 11, 2023, 9:04 p.m. UTC
Addition of the various STi platform syscon node description.
Signed-off-by: Alain Volmat <avolmat@me.com>
---
.../bindings/arm/sti/st,sti-syscon.yaml | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml
Comments
Thank you for your patch. There is something to discuss/improve. Few nits. On 11/02/2023 22:04, Alain Volmat wrote: > Addition of the various STi platform syscon node description. Use imperative. https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > > Signed-off-by: Alain Volmat <avolmat@me.com> > --- > .../bindings/arm/sti/st,sti-syscon.yaml | 46 +++++++++++++++++++ > 1 file changed, 46 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml > > diff --git a/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml b/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml > new file mode 100644 > index 000000000000..e4bbc90694b3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml > @@ -0,0 +1,46 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/sti/st,sti-syscon.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectronics STi platform sysconfig entries Drop "entries", does not look related to hardware. > + > +maintainers: > + - Patrice Chotard <patrice.chotard@foss.st.com> > + > +description: | > + Binding for the various sysconfig nodes used within the STi > + platform device-tree to point to some common configuration > + registers used by other nodes. > + > +properties: > + compatible: > + items: > + - enum: > + - st,stih407-sbc-syscfg > + - st,stih407-front-syscfg > + - st,stih407-rear-syscfg > + - st,stih407-flash-syscfg > + - st,stih407-sbc-reg-syscfg > + - st,stih407-core-syscfg > + - st,stih407-lpm-syscfg How about putting them in some order? > + - const: syscon > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + syscfg_sbc: sbc-syscfg@9620000 { Generic node names, thus usually syscon or system-controller > +... Best regards, Krzysztof
On 11/02/2023 22:04, Alain Volmat wrote: > Addition of the various STi platform syscon node description. > > Signed-off-by: Alain Volmat <avolmat@me.com> > --- > .../bindings/arm/sti/st,sti-syscon.yaml | 46 +++++++++++++++++++ > 1 file changed, 46 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml Ah, and one more - incorrect directory. This should be in soc, not arm. Best regards, Krzysztof
Thanks for the review. On Sun, Feb 12, 2023 at 05:00:24PM +0100, Krzysztof Kozlowski wrote: > Thank you for your patch. There is something to discuss/improve. Few nits. > > On 11/02/2023 22:04, Alain Volmat wrote: > > Addition of the various STi platform syscon node description. > > Use imperative. > https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > > > > > Signed-off-by: Alain Volmat <avolmat@me.com> > > --- > > .../bindings/arm/sti/st,sti-syscon.yaml | 46 +++++++++++++++++++ > > 1 file changed, 46 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml > > > > diff --git a/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml b/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml > > new file mode 100644 > > index 000000000000..e4bbc90694b3 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml > > @@ -0,0 +1,46 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/arm/sti/st,sti-syscon.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: STMicroelectronics STi platform sysconfig entries > > > Drop "entries", does not look related to hardware. > > > + > > +maintainers: > > + - Patrice Chotard <patrice.chotard@foss.st.com> > > + > > +description: | > > + Binding for the various sysconfig nodes used within the STi > > + platform device-tree to point to some common configuration > > + registers used by other nodes. > > + > > +properties: > > + compatible: > > + items: > > + - enum: > > + - st,stih407-sbc-syscfg > > + - st,stih407-front-syscfg > > + - st,stih407-rear-syscfg > > + - st,stih407-flash-syscfg > > + - st,stih407-sbc-reg-syscfg > > + - st,stih407-core-syscfg > > + - st,stih407-lpm-syscfg > > How about putting them in some order? Ok, changed to alphabet order > > > + - const: syscon > > + > > + reg: > > + maxItems: 1 > > + > > +required: > > + - compatible > > + - reg > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + syscfg_sbc: sbc-syscfg@9620000 { > > Generic node names, thus usually syscon or system-controller Ok, changed to syscfg_sbc: syscon@9620000 I also move the file within bindings/soc/sti as mentioned in your other reply. > > +... > > Best regards, > Krzysztof >
diff --git a/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml b/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml new file mode 100644 index 000000000000..e4bbc90694b3 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/sti/st,sti-syscon.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/sti/st,sti-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STi platform sysconfig entries + +maintainers: + - Patrice Chotard <patrice.chotard@foss.st.com> + +description: | + Binding for the various sysconfig nodes used within the STi + platform device-tree to point to some common configuration + registers used by other nodes. + +properties: + compatible: + items: + - enum: + - st,stih407-sbc-syscfg + - st,stih407-front-syscfg + - st,stih407-rear-syscfg + - st,stih407-flash-syscfg + - st,stih407-sbc-reg-syscfg + - st,stih407-core-syscfg + - st,stih407-lpm-syscfg + - const: syscon + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscfg_sbc: sbc-syscfg@9620000 { + compatible = "st,stih407-sbc-syscfg", "syscon"; + reg = <0x9620000 0x1000>; + }; + +...