From patchwork Sat Oct 1 04:38:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 12996392 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD8F2C4332F for ; Sat, 1 Oct 2022 04:39:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229482AbiJAEjE (ORCPT ); Sat, 1 Oct 2022 00:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiJAEjB (ORCPT ); Sat, 1 Oct 2022 00:39:01 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3631A59B7; Fri, 30 Sep 2022 21:39:00 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id r6so9569131wru.8; Fri, 30 Sep 2022 21:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=iTKd0GBznWfUc6uXLaLBYT59IrIElailln/6OMSg4YY=; b=Mi9CNv9JEvgsfo4uFpXM7ohQaVtNUTDpeDCAR16iNiZdBNdBStldC2bLuch6bHoLN9 lilMKbRo0EZSyDtqp2NH+ba1NzkXvoUMAOkbwwGu3+xAfe/TmnlpsTP3/GwIQtvkYfT2 FXCAS5tUWr5qyMxqfnJjp7HZv0WSvoDFGvOrREAfPg9rMQEL7JDXNORzAT4SgXebTjq8 mSnYnRhN/1QD8FColSAMHovJ8sB63o5eVuvLSTDcqYzoMRlHxT8/X3LgA684DYHJ/rCb DmfsIZingmiddUrYqg6C2R4Pzx87EDfYL/zmUYFF2YYT1n1euwA+3s+DkSgw1pfeGeRq Mk5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=iTKd0GBznWfUc6uXLaLBYT59IrIElailln/6OMSg4YY=; b=5zDkJ28Lo3ULuaQVEOuWp5i17znrFKFhPCY8XoMdYJOkuxbgSyS/PFrItfyPNjnLBi J7Bd10T5HmRbq2lXxUzExwpvEVKcnGgiJ82C3zmnI95OQi0QkYrGA2M8Fcn0MeMGTcTv p52rFjQk6LIfSee/iwZWUPakZEVLKUd+zljk7EZLhLjsruJalXwky7RILAiW6kf9xH97 o257HfUw/Vq8TdmfJ0ddTKLb95gZpE254p2xqHVUIceOIL+Tw6UUKXVmCVBwijTpiu8O 501hcvYLWgGoEXW2BsuHviRgq8d+OjWgakhccznyV8aQJxqa/e6ukvYXi+PvqnzwSGCL lriQ== X-Gm-Message-State: ACrzQf0qkUrxsBdZ4B3zp61eagszJd690+ykrXODe9dMyt/g7HyU+sxF K5VqMsCz3AMnYFeEd1Fx8YjNNyY1YePSPw== X-Google-Smtp-Source: AMsMyM55yiZS3OzhbnetMpMeCsYR+gtQKSbXyZuu3VMx4TPy1ipmxC2ibYNV9+EjwrL8lCL2RgfssA== X-Received: by 2002:a5d:5b0a:0:b0:22a:f83a:2b6f with SMTP id bx10-20020a5d5b0a000000b0022af83a2b6fmr7594445wrb.176.1664599138523; Fri, 30 Sep 2022 21:38:58 -0700 (PDT) Received: from localhost.localdomain (188.red-88-10-59.dynamicip.rima-tde.net. [88.10.59.188]) by smtp.gmail.com with ESMTPSA id m64-20020a1ca343000000b003a6125562e1sm3996206wme.46.2022.09.30.21.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 21:38:58 -0700 (PDT) From: Sergio Paracuellos To: devicetree@vger.kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, hauke@hauke-m.de, zajec5@gmail.com, tsbogend@alpha.franken.de, zhouyanjie@wanyeetech.com, linux-mips@vger.kernel.org, arinc.unal@arinc9.com Subject: [PATCH v4 1/2] dt-bindings: mips: add CPU bindings for MIPS architecture Date: Sat, 1 Oct 2022 06:38:54 +0200 Message-Id: <20221001043855.933528-2-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221001043855.933528-1-sergio.paracuellos@gmail.com> References: <20221001043855.933528-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Add the yaml binding for available CPUs in MIPS architecture. Signed-off-by: Sergio Paracuellos --- .../bindings/mips/brcm/brcm,bmips.txt | 8 -- .../devicetree/bindings/mips/cpus.yaml | 115 ++++++++++++++++++ .../bindings/mips/ingenic/ingenic,cpu.yaml | 69 ----------- 3 files changed, 115 insertions(+), 77 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mips/brcm/brcm,bmips.txt create mode 100644 Documentation/devicetree/bindings/mips/cpus.yaml delete mode 100644 Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml diff --git a/Documentation/devicetree/bindings/mips/brcm/brcm,bmips.txt b/Documentation/devicetree/bindings/mips/brcm/brcm,bmips.txt deleted file mode 100644 index 8ef71b4085ca..000000000000 --- a/Documentation/devicetree/bindings/mips/brcm/brcm,bmips.txt +++ /dev/null @@ -1,8 +0,0 @@ -* Broadcom MIPS (BMIPS) CPUs - -Required properties: -- compatible: "brcm,bmips3300", "brcm,bmips4350", "brcm,bmips4380", - "brcm,bmips5000" - -- mips-hpt-frequency: This is common to all CPUs in the system so it lives - under the "cpus" node. diff --git a/Documentation/devicetree/bindings/mips/cpus.yaml b/Documentation/devicetree/bindings/mips/cpus.yaml new file mode 100644 index 000000000000..e991f4c6668d --- /dev/null +++ b/Documentation/devicetree/bindings/mips/cpus.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mips/cpus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MIPS CPUs bindings + +maintainers: + - Thomas Bogendoerfer + - 周琰杰 (Zhou Yanjie) + +description: | + The device tree allows to describe the layout of CPUs in a system through + the "cpus" node, which in turn contains a number of subnodes (ie "cpu") + defining properties for every CPU. + +properties: + compatible: + enum: + - brcm,bmips3300 + - brcm,bmips4350 + - brcm,bmips4380 + - brcm,bmips5000 + - brcm,bmips5200 + - ingenic,xburst-mxu1.0 + - ingenic,xburst-fpu1.0-mxu1.1 + - ingenic,xburst-fpu2.0-mxu2.0 + - ingenic,xburst2-fpu2.1-mxu2.1-smt + - loongson,gs264 + - mips,m14Kc + - mips,mips4Kc + - mips,mips4KEc + - mips,mips24Kc + - mips,mips24KEc + - mips,mips74Kc + - mips,mips1004Kc + - mti,interaptiv + - mti,mips24KEc + - mti,mips14KEc + - mti,mips14Kc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + device_type: true + +allOf: + - if: + properties: + compatible: + contains: + enum: + - ingenic,xburst-mxu1.0 + - ingenic,xburst-fpu1.0-mxu1.1 + - ingenic,xburst-fpu2.0-mxu2.0 + - ingenic,xburst2-fpu2.1-mxu2.1-smt + then: + required: + - device_type + - clocks + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + cpus { + #size-cells = <0>; + #address-cells = <1>; + + cpu@0 { + compatible = "mips,mips1004Kc"; + device_type = "cpu"; + reg = <0>; + }; + + cpu@1 { + compatible = "mips,mips1004Kc"; + device_type = "cpu"; + reg = <1>; + }; + }; + + - | + // Example 2 (Ingenic CPU) + #include + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + compatible = "ingenic,xburst-fpu1.0-mxu1.1"; + device_type = "cpu"; + reg = <0>; + + clocks = <&cgu JZ4780_CLK_CPU>; + }; + + cpu@1 { + compatible = "ingenic,xburst-fpu1.0-mxu1.1"; + device_type = "cpu"; + reg = <1>; + + clocks = <&cgu JZ4780_CLK_CORE1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml b/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml deleted file mode 100644 index b7e7fa715437..000000000000 --- a/Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mips/ingenic/ingenic,cpu.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Bindings for Ingenic XBurst family CPUs - -maintainers: - - 周琰杰 (Zhou Yanjie) - -description: - Ingenic XBurst family CPUs shall have the following properties. - -properties: - compatible: - oneOf: - - - description: Ingenic XBurst®1 CPU Cores - enum: - - ingenic,xburst-mxu1.0 - - ingenic,xburst-fpu1.0-mxu1.1 - - ingenic,xburst-fpu2.0-mxu2.0 - - - description: Ingenic XBurst®2 CPU Cores - enum: - - ingenic,xburst2-fpu2.1-mxu2.1-smt - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - device_type: true - -required: - - device_type - - compatible - - reg - - clocks - -additionalProperties: false - -examples: - - | - #include - - cpus { - #address-cells = <1>; - #size-cells = <0>; - - cpu0: cpu@0 { - device_type = "cpu"; - compatible = "ingenic,xburst-fpu1.0-mxu1.1"; - reg = <0>; - - clocks = <&cgu JZ4780_CLK_CPU>; - }; - - cpu1: cpu@1 { - device_type = "cpu"; - compatible = "ingenic,xburst-fpu1.0-mxu1.1"; - reg = <1>; - - clocks = <&cgu JZ4780_CLK_CORE1>; - }; - }; -... From patchwork Sat Oct 1 04:38:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 12996391 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F47DC43219 for ; Sat, 1 Oct 2022 04:39:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbiJAEjE (ORCPT ); Sat, 1 Oct 2022 00:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiJAEjC (ORCPT ); Sat, 1 Oct 2022 00:39:02 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E48E1A59B1; Fri, 30 Sep 2022 21:39:01 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id f11so6908128wrm.6; Fri, 30 Sep 2022 21:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=jlBOzvJ5wanT63wwyFnAonptEA0lNzgTOghz1qmOO6o=; b=e8Kje7HL9heppqE2kRU7Y7bvNFeRTpSHJgYpWh110JYWSx26DVGwgNP7/WcnNCrjNK ptSuKW8yAnz4+qcOdsTNZr6crydZAogYjoutRg/jmKe5NmOx5ebq4vPope1pWFSJGEWN 8htWYQ+5jU8fRMf8hYcKbbNqgKjGIF8APDVGIaNyTO4llDKWEfK6qnYXvZwqSDMMvB96 7Hl0/sGXTtm+QtQPYsXoy/nyCYxAKROfCdcK7KdhUn1VqxVWzWKyVpVNNlJ+RFZaAd3M ziemroL52UYvPub3Mi2WfM3GBF6VfZIyMi/7pObi+W9KwntHgLcwXwDDxqX/4SQpKseR J4Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=jlBOzvJ5wanT63wwyFnAonptEA0lNzgTOghz1qmOO6o=; b=pKfeijbUBWCElxaj3tyHSiV6o11OtDk2rJEEcaMy20AuVTCHQRpH0Vy0Eum+eYqz1x eQf8fwlMYtJ11xGzb/8p7bxpz2TS0mh51nZzFKluolThsoBAUgugnHlYa7KRdamrrF0p a685TL22j237LwxZ3TGERVaox/euwdD63g3Qtx02/mpkbdR9Ak2OoFevklPsvcJTg4TL R8CFzLGSWErURlZ7Stf2ncUPeQInBRyHoo/rvi6WQp0vZxDKa/8NhLib/sw8c0LXy9kN LuCRhw2xnBxSUngkEwIqczp1ntctiaajL9AT/dJHZaCUAEzDxD9wbQvTSNwPSXAnLHT4 NvVQ== X-Gm-Message-State: ACrzQf359J4M3G9fQacMy140x8NzmUykVIBVhocVM6ZnnvgHR//Fkpyf M3EgoS8wP1CSKUwIigUuM2V28hW6NiZv4g== X-Google-Smtp-Source: AMsMyM549eHevEwPY0Es2FMgm/nyTzPnNzwg3t0XKQXDmSwRnMypyNNLKBouNrRHhXUMCcYSUnh/ew== X-Received: by 2002:adf:f743:0:b0:22c:c939:bcc with SMTP id z3-20020adff743000000b0022cc9390bccmr7165794wrp.95.1664599139649; Fri, 30 Sep 2022 21:38:59 -0700 (PDT) Received: from localhost.localdomain (188.red-88-10-59.dynamicip.rima-tde.net. [88.10.59.188]) by smtp.gmail.com with ESMTPSA id m64-20020a1ca343000000b003a6125562e1sm3996206wme.46.2022.09.30.21.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 21:38:59 -0700 (PDT) From: Sergio Paracuellos To: devicetree@vger.kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, hauke@hauke-m.de, zajec5@gmail.com, tsbogend@alpha.franken.de, zhouyanjie@wanyeetech.com, linux-mips@vger.kernel.org, arinc.unal@arinc9.com Subject: [PATCH v4 2/2] dt-bindings: mips: brcm: convert Broadcom SoCs to schema Date: Sat, 1 Oct 2022 06:38:55 +0200 Message-Id: <20221001043855.933528-3-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221001043855.933528-1-sergio.paracuellos@gmail.com> References: <20221001043855.933528-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Convert Broadcom cable/DSL/settop platforms to YAML schema. Signed-off-by: Sergio Paracuellos --- .../devicetree/bindings/mips/brcm/soc.yaml | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/brcm/soc.yaml diff --git a/Documentation/devicetree/bindings/mips/brcm/soc.yaml b/Documentation/devicetree/bindings/mips/brcm/soc.yaml new file mode 100644 index 000000000000..0ddf1fe51802 --- /dev/null +++ b/Documentation/devicetree/bindings/mips/brcm/soc.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mips/brcm/soc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom cable/DSL/settop platforms Device Tree Bindings + +maintainers: + - Hauke Mehrtens + - Rafał Miłecki + +description: | + Boards Broadcom cable/DSL/settop SoC shall have the following properties. + The experimental -viper variants are for running Linux on the 3384's + BMIPS4355 cable modem CPU instead of the BMIPS5000 application processor. + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: Boards with Broadcom bcm3368 SoC + items: + - const: brcm,bcm3368 + + - description: Boards with Broadcom bcm3384 SoC + items: + - const: brcm,bcm3384 + + - description: Boards with Broadcom bcm33843 SoC + items: + - const: brcm,bcm33843 + + - description: Boards with Broadcom bcm3384-viper SoC + items: + - const: brcm,bcm3384-viper + + - description: Boards with Broadcom bcm33843-viper SoC + items: + - const: brcm,bcm33843-viper + + - description: Boards with Broadcom bcm6328 SoC + items: + - const: brcm,bcm6328 + + - description: Boards with Broadcom bcm6358 SoC + items: + - const: brcm,bcm6358 + + - description: Boards with Broadcom bcm6362 SoC + items: + - const: brcm,bcm6362 + + - description: Boards with Broadcom bcm6368 SoC + items: + - const: brcm,bcm6368 + + - description: Boards with Broadcom bcm63168 SoC + items: + - const: brcm,bcm63168 + + - description: Boards with Broadcom bcm63268 SoC + items: + - const: brcm,bcm63268 + + - description: Boards with Broadcom bcm7125 SoC + items: + - const: brcm,bcm7125 + + - description: Boards with Broadcom bcm7346 SoC + items: + - const: brcm,bcm7346 + + - description: Boards with Broadcom bcm7358 SoC + items: + - const: brcm,bcm7358 + + - description: Boards with Broadcom bcm7360 SoC + items: + - const: brcm,bcm7360 + + - description: Boards with Broadcom bcm7362 SoC + items: + - const: brcm,bcm7362 + + - description: Boards with Broadcom bcm7420 SoC + items: + - const: brcm,bcm7420 + + - description: Boards with Broadcom bcm7425 SoC + items: + - const: brcm,bcm7425 + + cpus: + $ref: "/schemas/mips/cpus.yaml#" + unevaluatedProperties: false + + properties: + mips-hpt-frequency: + description: This is common to all CPUs in the system so it lives + under the "cpus" node. + $ref: /schemas/types.yaml#/definitions/uint32 + + required: + - mips-hpt-frequency + +additionalProperties: true + +...