Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1654253rwd; Tue, 13 Jun 2023 12:06:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4n2tn4xpPcC9TowIG3ttkqmstBwt5Hgcd9L3y4lUFQEyH+bBajtRSaT82LrzhZGjyp+RBE X-Received: by 2002:a05:6402:5114:b0:514:387c:930 with SMTP id m20-20020a056402511400b00514387c0930mr10480971edd.5.1686683183055; Tue, 13 Jun 2023 12:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686683183; cv=none; d=google.com; s=arc-20160816; b=kitYQ1lyeFLZwNBOulUax5f9rl/H+c5UQCy8W1EkZSzDrWzJGpov/Zi8KNVrRwP2yv qBHiP7Sn20bRrI5xz25bl5Ao/VIzMwCaBLsYZY3j6J29UKYnLTjYqkDN+5hmciHGEDfr FWizGlDtWEFskVgfCRTIondaBBvCg8D6mgskQWgfsiDOTwYgc3ond8cxA/F9KjqLpGxK oVHVmtFQeRD1YNwkJKd+WMG4waUNYgj26T5NOvLqbqBnt7WDAKAndkmAD3PlD7EvJnVu P+bitcz+o0ofZ08sFaLP1N+qtVtkE2APDTgsiZib3MAxYwIT288vOobMzZwwDN39R9mt 9Dcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+IwQxZn6vCIOOod2WsqOS2iKK2dM5ILhVhEaw91jN+A=; b=xQxSIa2AZQozsz+J8jzVTehg/z5ifSB6L97f9ko8QHhseJdlm6qHfAxQNLZhTfAXfp uJ/5GwlmuKe7ohhJ3rMlKwuSsu0ZWI/UxB3oQ0dcsb7UoAM+70aR7HJwozec7f4vDKtp qYELzG3L24NSz9wwbQ5mnDC2s87xfHupPQiEj/+X88xP7T+vykMvpSXO2bXnuLYfNbCP 6JQc2oQueChuLUXpiveJF5E5DetvuHp6fVVvrGxV7n9wAf9xmdiILOO8sivkzviKXa1X GKdHvpdJlxERmkBpyaxQF6ef02B4CkQxo3xQb7Ha9RlAkcQFpD9LM0ocj2Ldoog/isQO ZEAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g2x7nF95; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a056402111200b005187b905638si426820edv.218.2023.06.13.12.05.57; Tue, 13 Jun 2023 12:06:23 -0700 (PDT) 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=@linaro.org header.s=google header.b=g2x7nF95; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239719AbjFMSc0 (ORCPT + 99 others); Tue, 13 Jun 2023 14:32:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239496AbjFMScY (ORCPT ); Tue, 13 Jun 2023 14:32:24 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F068FB3 for ; Tue, 13 Jun 2023 11:32:22 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5183101690cso6482820a12.0 for ; Tue, 13 Jun 2023 11:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686681141; x=1689273141; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+IwQxZn6vCIOOod2WsqOS2iKK2dM5ILhVhEaw91jN+A=; b=g2x7nF958tTd0yUf6gMMWTZS7MXebEz/qJW0elxmWSc87Fy4YCx1ZGdo+z6qymqABN txZwoSEz2hg7Y0m2797wXOMCphi9mDkHsGIO/DqBcXJmRg1cFzYVm+rqTJ+p7H0nnsew SUB65kKWg4ET7UtQEmFm4fux3OG45w2OJ352q9LwWFJ5WmcaH7RxSFGnko3e1+L3BQ7l JUBMjAhqM2na6yTPxr+juOQz1hqkhuD5a48C6QOMOGSKOP/ssbWx/zHZ5MK2hPnj8hu7 8GRHGbjwXjNGRKu817QyRD1kJ3CxbqQM7prUEBvmv/+yTuvL5NgOMYhcgtGCB4kf7MRd 0Vog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686681141; x=1689273141; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+IwQxZn6vCIOOod2WsqOS2iKK2dM5ILhVhEaw91jN+A=; b=Ch4bljNT9YFAj2DzFfX+bRmHNlhN+la9Sj8plLZyIyEmb9nhgF2yOf/rtOgg6gAA89 hLp2HFv/r8IUhHYzQ/nGebhZmN7xKzAZf/T4hIt9WX2dg/Beop+mcf4UvtpkrHYGdLKw VPpmGXu8X2xO6fsCrSWlOwG2qYadezUZRFDMJUPOsdB3kZEta1KLvmm0xhDQFtXKGrJK U4QfInG2N7n2/Lom5TZ347rwyErsADcbUMV8fZ8t/nmNobO1b+ZtuSE3TYyoPcBTwBex Sj53Jz/yVXuvuZ0LzBZuPFSjTiHtavLHFJ6dA7Py+zZi2l5mu0SFHE/HRb6JZR0OvEHy QsCA== X-Gm-Message-State: AC+VfDx1nIROh3w7jvU4ZJPYrGSbdg7pgr9dS1BnpQQMW+dLYQ48ZR5x DtJuWQ4AAYfVorShywRxIxsypQ== X-Received: by 2002:a05:6402:27c9:b0:506:bbf8:5152 with SMTP id c9-20020a05640227c900b00506bbf85152mr9960734ede.9.1686681141344; Tue, 13 Jun 2023 11:32:21 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id d22-20020a50fb16000000b005149c7b1f49sm6647150edq.64.2023.06.13.11.32.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jun 2023 11:32:20 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2023 20:32:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v5 2/7] dt-bindings: soc: starfive: Add StarFive syscon module Content-Language: en-US To: Xingyu Wu , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Conor Dooley , Emil Renner Berthing Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng , William Qiu , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org References: <20230613125852.211636-1-xingyu.wu@starfivetech.com> <20230613125852.211636-3-xingyu.wu@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230613125852.211636-3-xingyu.wu@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org On 13/06/2023 14:58, Xingyu Wu wrote: > From: William Qiu > > Add documentation to describe StarFive System Controller Registers. > > Co-developed-by: Xingyu Wu > Signed-off-by: Xingyu Wu > Signed-off-by: William Qiu > --- > .../soc/starfive/starfive,jh7110-syscon.yaml | 62 +++++++++++++++++++ > MAINTAINERS | 7 +++ > 2 files changed, 69 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml > > diff --git a/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml > new file mode 100644 > index 000000000000..a81190f8a54d > --- /dev/null > +++ b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/soc/starfive/starfive,jh7110-syscon.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive JH7110 SoC system controller > + > +maintainers: > + - William Qiu > + > +description: | Do not need '|' unless you need to preserve formatting. > + The StarFive JH7110 SoC system controller provides register information such > + as offset, mask and shift to configure related modules such as MMC and PCIe. > + > +properties: > + compatible: > + oneOf: > + - items: > + - const: starfive,jh7110-sys-syscon > + - const: syscon > + - const: simple-mfd > + - items: > + - enum: > + - starfive,jh7110-aon-syscon > + - starfive,jh7110-stg-syscon > + - const: syscon > + > + reg: > + maxItems: 1 > + > + clock-controller: > + $ref: /schemas/clock/starfive,jh7110-pll.yaml# > + type: object > + > + "#power-domain-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + > +allOf: > + - if: > + properties: > + compatible: > + contains: > + const: starfive,jh7110-aon-syscon > + then: > + required: > + - "#power-domain-cells" > + > +additionalProperties: false > + > +examples: > + - | > + syscon@10240000 { > + compatible = "starfive,jh7110-stg-syscon", "syscon"; > + reg = <0x10240000 0x1000>; Extend example - add clock controller, add power-domains to STG (since it has them, as you claim in the binding). Make this one example complete. Best regards, Krzysztof