Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5108660rwe; Tue, 18 Apr 2023 02:05:02 -0700 (PDT) X-Google-Smtp-Source: AKy350Yv9P5w1JINBZfWP3P/vSr2vTlNkQ06S8MrZdhOygUrh7FvF3G06CHGy/CakrAi+F9LwPSi X-Received: by 2002:a05:6a00:148a:b0:63b:5d84:5d03 with SMTP id v10-20020a056a00148a00b0063b5d845d03mr23653460pfu.25.1681808702057; Tue, 18 Apr 2023 02:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681808702; cv=none; d=google.com; s=arc-20160816; b=ZSwAZVMU3rgs3h4bUj3CMIkypDY4e3lFhufP+z3oTXLRKluUINW33tscDZigMgllTm 0kdZghlA6iExcvmsiqXnJ2+Oz/OQVAVuWXlJoOaZFlf52DWa9lP3ZXYBRobSilgvZh0/ 5MT5yP897Mrnu9s+ICgzqdWaHtEJMxK0XVQvVcS+kILkAKSq2qGYAcBxDoAZZPjSYm6P OlOegaKuzzuKKXgjoRTQeh1VD0w2cFzB5GUZqOxQ40KF7IKMGgHWpW0Fnqnca4oWYA47 rG2VO71gbPvLdlCh48p2IdkzZiVXta/cBeDpZba1cuQYIv3bxpBjSjbTheoC+IExolYc 5Szw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ajXs06UijPfgdVv8DLP2AjdFM+0RrueVDlEarCdQVpo=; b=abRm3rbRio89dX6/BxWRFccCZRBSB6BNYgfpGzndDpgDeazyGyq13dhIpHMQmrvSlx WGSd9S75oF5ZExPXl7tE024nNvogSBKzlInuJrUN+JW77bTSs2XMutycu/xJ18YolGUi kaucyMwaiozZsmbhYn9di6uFVksp2yqCB+BThudWB9H6XRlIhTIH6jmcpvtyVjc4aj5s 63dfkkTxhYc+ixx4UXZTp2yoVKwvzTv2EKjrw4quZu/Z3EjA9VfHHQq22xGxHKnyMMbX nSzoFac0icIPo1XsxeEGhMFY4Gv6Vvq0HfAIrP0kApXSk7GtpXh/UHx3eJnB9o9Nt/ea XE2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="j7Pe/+pq"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g136-20020a62528e000000b0063286f81d35si13719952pfb.262.2023.04.18.02.04.47; Tue, 18 Apr 2023 02:05:02 -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=@gmail.com header.s=20221208 header.b="j7Pe/+pq"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231208AbjDRJDg (ORCPT + 99 others); Tue, 18 Apr 2023 05:03:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231244AbjDRJD0 (ORCPT ); Tue, 18 Apr 2023 05:03:26 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E08459DC; Tue, 18 Apr 2023 02:03:17 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id o9-20020a05600c510900b003f17012276fso3707234wms.4; Tue, 18 Apr 2023 02:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681808595; x=1684400595; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ajXs06UijPfgdVv8DLP2AjdFM+0RrueVDlEarCdQVpo=; b=j7Pe/+pqlzOJ/vG0vE/qOsas0HRfO2+Yif8P/u89R3t1wByFjhtpyJ9hqepXktG0Nl tDcpNoX3u2TRUJX5Jwb3KGk+17CzCH4Rj/2UD+RpofTNFMekqcekCLWn84sC7qoOF/jK eDOhRd7SC2PDrf9s1FX1ChVbUomowIQDZJTpX40fd+wwCUquuZ/gMIO1PLYqFFgvZWi/ XFFWCDEcbr3FY8Ko1pvpztWHOFegF9O/pbzU0z5RGot8hIfQQ13xOJl/pFC9jOz7khl3 4FOd18k1fNTwr28ktoY6rtF+FVlXRf+kqMyB/VsZXPochk7goykJkLM1Gl6+GSHF5WPQ rxMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681808595; x=1684400595; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ajXs06UijPfgdVv8DLP2AjdFM+0RrueVDlEarCdQVpo=; b=Dw6saPJiaswjp0zwd18YDyvi6V397hN7KeqOweJocUwTFW9652Tji4hJVSk/utQQpG FooW8b6Xe5qcRjJbrNhTRcjkyZaJx+r6FkFNAVh0nxUH3ULUvIfqu5nC0cumO9iCfn+5 XucdivgwPLndrykPBc1t8TyP07KAhi6gv2QZEtgSGz+1GwWWfsNu6T4+MTrmaQYF+9tB nHQH7lv465BJ8wJJnP36JhKzTXfAEtIc2+MD91MN7EDiFuvxqe1qWAggFreX5rTI6lr2 ETHBEzyRlS6r6Tf9jgwA+QAtotq3UAxpfuYXs01g69oyPKvsgv34MvFLWF/Tyi8lj4Ud t2WQ== X-Gm-Message-State: AAQBX9dcR1dtL9B8KvfLkIYwekM5ZF/I6yJaeMEJNRfAQkXH3izT8pHD gcK8+SUkFYXJqnfVDYruQMVu+xodc8g= X-Received: by 2002:a05:600c:2295:b0:3f1:7345:2d4e with SMTP id 21-20020a05600c229500b003f173452d4emr5055352wmf.1.1681808595629; Tue, 18 Apr 2023 02:03:15 -0700 (PDT) Received: from localhost.localdomain (61.red-88-10-54.dynamicip.rima-tde.net. [88.10.54.61]) by smtp.gmail.com with ESMTPSA id u7-20020a7bcb07000000b003ee70225ed2sm14341109wmj.15.2023.04.18.02.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 02:03:15 -0700 (PDT) From: Sergio Paracuellos To: linux-clk@vger.kernel.org Cc: linux-mips@vger.kernel.org, tsbogend@alpha.franken.de, john@phrozen.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, devicetree@vger.kernel.org, arinc.unal@arinc9.com Subject: [PATCH v3 1/9] dt-bindings: clock: add mtmips SoCs system controller Date: Tue, 18 Apr 2023 11:03:04 +0200 Message-Id: <20230418090312.2818879-2-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230418090312.2818879-1-sergio.paracuellos@gmail.com> References: <20230418090312.2818879-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org Adds device tree binding documentation for system controller node present in Mediatek MIPS and Ralink SOCs. This node is a clock and reset provider for the rest of the world. This covers RT2880, RT3050, RT3052, RT3350, RT3883, RT5350, MT7620, MT7628 and MT7688 SoCs. Signed-off-by: Sergio Paracuellos --- .../bindings/clock/mediatek,mtmips-sysc.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml diff --git a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml new file mode 100644 index 000000000000..0b29dcacd686 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/mediatek,mtmips-sysc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MTMIPS SoCs System Controller + +maintainers: + - Sergio Paracuellos + +description: | + MediaTek MIPS and Ralink SoCs provides a system controller to allow + to access to system control registers. These registers include clock + and reset related ones so this node is both clock and reset provider + for the rest of the world. + + These SoCs have an XTAL from where the cpu clock is + provided as well as derived clocks for the bus and the peripherals. + +properties: + compatible: + items: + - enum: + - ralink,mt7620-sysc + - ralink,mt7628-sysc + - ralink,mt7688-sysc + - ralink,mt7620a-sysc + - ralink,rt2880-sysc + - ralink,rt3050-sysc + - ralink,rt3052-sysc + - ralink,rt3352-sysc + - ralink,rt3883-sysc + - ralink,rt5350-sysc + - const: syscon + + reg: + maxItems: 1 + + '#clock-cells': + description: + The first cell indicates the clock number. + const: 1 + + '#reset-cells': + description: + The first cell indicates the reset bit within the register. + const: 1 + +required: + - compatible + - reg + - '#clock-cells' + - '#reset-cells' + +additionalProperties: false + +examples: + - | + syscon@0 { + compatible = "ralink,rt5350-sysc", "syscon"; + reg = <0x0 0x100>; + #clock-cells = <1>; + #reset-cells = <1>; + }; -- 2.25.1