From patchwork Thu Sep 29 07:20:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 12993607 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 51F54C6FA93 for ; Thu, 29 Sep 2022 07:20:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235205AbiI2HU2 (ORCPT ); Thu, 29 Sep 2022 03:20:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235204AbiI2HUQ (ORCPT ); Thu, 29 Sep 2022 03:20:16 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3249F26AF8; Thu, 29 Sep 2022 00:20:10 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id r6so707422wru.8; Thu, 29 Sep 2022 00:20:10 -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=Gh6gb7YiANVNxu4oDg6Xjz3DqjHK4eAT48wIlaA1jFI=; b=Fe3WMIx5d8tNrs78x3+nJUKZsCn6tHuuH4mOHlpJHDk53q6zMWUrMzxHTP0bD7lVkv BkF3o1mZzeVxnMEdckjC/r33y5qHQhkhoty/3u/cJop3eoZAikc/q46i2Njca4JtodN/ kYp4j8FgUIXm+B4iVTI7nPHaUGU6fanwaZtP4WtM5gtikWLlGdk53WjCDPJWj76W+wi6 7FYieu8PSSq9g2LsRXnz2tARjeT/8vatCdVWcohgIi//rQ2C5PPucnE4y3VM9AW+mYuq gvInXKnNgvjvEbd0gCnOo7BHrzAXTB5R6tgguv6FS4TT8R0xaqtuAHY0ofqnjKLC2+WY J6Xg== 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=Gh6gb7YiANVNxu4oDg6Xjz3DqjHK4eAT48wIlaA1jFI=; b=PX47aZAaMI20SIpo3COIr/Lb2PXLGKGMIVwmjCQU6HrekQCo+3VJPhby1SGeG8Li/1 F7CJ+coCP17/1kjaZuxnZUhGrPq+7sL/jra4ynm/ZApnhN2QoKAIFY+2RrVMDsrBE7mu Q6wLMior7kP92WwpOdOo22r/1fuNsV8PUOz2Tdic8gqbfRryAeuOYqIjUFS7XNmf5moW 2l+6UooPbjdbeyTaK/6QciNFe+TNHAsh3TgP6hKb6xQYy5w/UkIUKlXjjTg2wzpnW8M2 JoM14MMVvNGQwUOSYLTg7j6/yzWSCSwo/2hQYd7ztoAYSox70JBZgQcNn+NaUbVWTyA7 M/Rw== X-Gm-Message-State: ACrzQf2KuugBNo1gAxDnG1y7jx/WVi49tRcBXZQAOIlK1OFx2PE6FbS/ AZuGGT9M7UZEITgwr1g1D38uBxNxNnnC/g== X-Google-Smtp-Source: AMsMyM7xl4d6HJLggmkU0k35kTooQN7Kf7m6LEVkwjZ5907aL/1xrpSsatTfB9XITJUfGTqvOXoWcg== X-Received: by 2002:a5d:5083:0:b0:22c:bdf4:b3f7 with SMTP id a3-20020a5d5083000000b0022cbdf4b3f7mr1023790wrt.129.1664436007907; Thu, 29 Sep 2022 00:20:07 -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 q63-20020a1c4342000000b003b4bd18a23bsm3674250wma.12.2022.09.29.00.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 00:20:07 -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, linux-mips@vger.kernel.org, arinc.unal@arinc9.com Subject: [PATCH v3 1/3] dt-bindings: mips: add CPU bindings for MIPS architecture Date: Thu, 29 Sep 2022 09:20:02 +0200 Message-Id: <20220929072004.874795-2-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220929072004.874795-1-sergio.paracuellos@gmail.com> References: <20220929072004.874795-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 --- .../devicetree/bindings/mips/cpus.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/cpus.yaml diff --git a/Documentation/devicetree/bindings/mips/cpus.yaml b/Documentation/devicetree/bindings/mips/cpus.yaml new file mode 100644 index 000000000000..4f8891f0755b --- /dev/null +++ b/Documentation/devicetree/bindings/mips/cpus.yaml @@ -0,0 +1,66 @@ +# 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 + +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 + - 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 + +required: + - compatible + +additionalProperties: true + +examples: + - | + cpus { + #size-cells = <0>; + #address-cells = <1>; + + cpu@0 { + device_type = "cpu"; + compatible = "mips,mips1004Kc"; + reg = <0>; + }; + + cpu@1 { + device_type = "cpu"; + compatible = "mips,mips1004Kc"; + reg = <1>; + }; + }; From patchwork Thu Sep 29 07:20:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 12993605 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 B8632C07E9D for ; Thu, 29 Sep 2022 07:20:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235201AbiI2HU1 (ORCPT ); Thu, 29 Sep 2022 03:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235198AbiI2HUP (ORCPT ); Thu, 29 Sep 2022 03:20:15 -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 3130C26106; Thu, 29 Sep 2022 00:20:10 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id ay7-20020a05600c1e0700b003b49861bf48so3376334wmb.0; Thu, 29 Sep 2022 00:20:10 -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=nMAz+L+s6YIiw81tTgwMIbW0yzcm75JT2BvSqiuubfs=; b=hZQc5dBXtfgYaKhglXeRNgCIWleUx1X4N9prZrzvBGA2NkLhMxvYP/2HBwKLWejP0B 5vVJUhHjWTo6Gac+HpZDqdDXbFFZ5/erK8vjnU6iwmKgZ3ABnmZNX71v2YWBl549h8Ad sJZJJEyPgsbmZdCUbsutovdHlaPCWN/CIY1XhHMiRF531o1AGu0kut4kXqzopvuCgOD1 X41DlS8O8LPnz3PNQZjKsLIhJNBpVMWpKY2sH4zMUJyMhF52AannoFa2/8wxe+6Za10t iwevSu7HLsk3nqGPJId+pfXmYtHp6cLmqp86skOnrcSpwVAKVpD1EZplReeFwNEogAiy JO+A== 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=nMAz+L+s6YIiw81tTgwMIbW0yzcm75JT2BvSqiuubfs=; b=7RkJ9wXPMu9JpQ/hN5X4KTIQAXDTmhe0OaNTeFggmw97zD6uehbCBKmmXN/xGRr7FR J0Jlz/7afzaNefP7xvYPrHcxVKfyu2oFY4AshryNYgn/OTjswc+7gS2nwlZtUvqCHUsN 4IHVmMgBFIT1KtNn53YGhQFTC4VfiVwlGjIt+/OUnQhOPruBT9iV3mUBLYVek6gcRuJH zJcLerptr0narhI5Lk+JMaCas6tORV9RRk/yb5ozjrcaeu7B7s+L1I4QVWK/mW6DzPD5 V6HCTn0+7VVgHVflg9EQVpWWLoAYZsMf7X2hfLTGrR0pEFgoXUGB2vJHieS+uWgYeheC mRSQ== X-Gm-Message-State: ACrzQf0rzOBKR3H3ZbVci6yFrG1EAqedcrOZiutjlJgXtZm7xhLn6Hcz pAZl+KQEpgJGnCa+mrybhDcYCNrVgKjP+A== X-Google-Smtp-Source: AMsMyM6jK0SIYY/bBid7hASVGNeEs0oYduRxPL7g2hDE0KZU3rV0TV+tj9szbjGxIvIo5dYs2DXnKg== X-Received: by 2002:a05:600c:4f82:b0:3b4:9f2f:430b with SMTP id n2-20020a05600c4f8200b003b49f2f430bmr9545846wmq.16.1664436008863; Thu, 29 Sep 2022 00:20:08 -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 q63-20020a1c4342000000b003b4bd18a23bsm3674250wma.12.2022.09.29.00.20.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 00:20:08 -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, linux-mips@vger.kernel.org, arinc.unal@arinc9.com Subject: [PATCH v3 2/3] dt-bindings: mips: brcm: convert Broadcom SoCs to schema Date: Thu, 29 Sep 2022 09:20:03 +0200 Message-Id: <20220929072004.874795-3-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220929072004.874795-1-sergio.paracuellos@gmail.com> References: <20220929072004.874795-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 | 97 +++++++++++++++++++ 1 file changed, 97 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..37353709b5a7 --- /dev/null +++ b/Documentation/devicetree/bindings/mips/brcm/soc.yaml @@ -0,0 +1,97 @@ +# 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 + +additionalProperties: true + +... From patchwork Thu Sep 29 07:20:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 12993606 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 49FC6C04A95 for ; Thu, 29 Sep 2022 07:20:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235199AbiI2HU2 (ORCPT ); Thu, 29 Sep 2022 03:20:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235203AbiI2HUQ (ORCPT ); Thu, 29 Sep 2022 03:20:16 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 323E126ADE; Thu, 29 Sep 2022 00:20:11 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id n35-20020a05600c502300b003b4924c6868so3195924wmr.1; Thu, 29 Sep 2022 00:20:11 -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=SilQIeFOIqfwLSvrNmgYyTgTLx0VsqPkOEz/SAixv60=; b=YyPeNCn+dWqutClydurprDQkhtBS7hEiJcTdEpZzoMtzxo94Oxw9s5EEPyb3Aot0Og sXdutRJ65dWp/G4XojGa/GD1UpEPIdbBEIV78aq7jqlbj66ihszTTEI3vW7qP1YYMlJB s0TuY6QXBg8c9gARg9L73VPQlM1b1wuCIv1emacym7qsC9Rtq8xkyLK3X2uW8oZ9bm7X LeRgD6dHdAY0hFDODBaXUHFE6DdeasOXdGFJmm7lPywxUdDPxNhPZwAfyqjIhMI4vLfP Qylxbi3dUN8UlR3nPKSQE9FWi0dbbfXpQUcQyAyQH0HASyHGmwwT7fpR12XoxpymQATB bz9A== 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=SilQIeFOIqfwLSvrNmgYyTgTLx0VsqPkOEz/SAixv60=; b=H/n3Ez5OWV+2L2ak5g/WlOl7EhO7BfUB6XYyffCLb0HY11ogFFp+Mt7BvSSS9L91ja mT0lB+RaLQ7k/82nXUH1YWJrr9ZCqmYcYinq/5XyrLXQ2FXuc/DhbIUQnmQEAJi3/Xxw jhdMjPoy6hwgzBQeoQn5rvI+OXQWsaK7XvyiWJuaOvXvYPTjLSsQ3rZohn16VE/d7TqQ IjAxM0+VqygWXeFbjQqKHJloMJdx/LbipxaMv1b7zduif8NKebYSgtSzLBi8su2GA3kF C21fmXahyNadtkICFqNoDw5ozadSuo4cUKRWw9GIkETCRLtyaoAKJQ307EUQ75fXviYP GK5w== X-Gm-Message-State: ACrzQf0sJ2EfWVWx9brlzWwlj4wg1vtO4bTgn2XdQ1egKRAPrBOI/e45 uN6G6b76BHSt1UuoF8Jze3wb3Q0jmoCc2w== X-Google-Smtp-Source: AMsMyM7x+0//EeA/jslItZnMc2J24QjcWKYfzMgbV6loMCr3P3ENmv+FrGHZgsv4mO/elbSRSyQRJg== X-Received: by 2002:a05:600c:1e87:b0:3b5:1e2:3c3c with SMTP id be7-20020a05600c1e8700b003b501e23c3cmr1160405wmb.130.1664436009811; Thu, 29 Sep 2022 00:20:09 -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 q63-20020a1c4342000000b003b4bd18a23bsm3674250wma.12.2022.09.29.00.20.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 00:20:09 -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, linux-mips@vger.kernel.org, arinc.unal@arinc9.com Subject: [PATCH v3 3/3] dt-bindings: mips: brcm: convert CPU bindings for BMIPS architecture Date: Thu, 29 Sep 2022 09:20:04 +0200 Message-Id: <20220929072004.874795-4-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220929072004.874795-1-sergio.paracuellos@gmail.com> References: <20220929072004.874795-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Convert the yaml binding for available CPUs in BMIPS architecture. Signed-off-by: Sergio Paracuellos --- .../bindings/mips/brcm/brcm,bmips-cpus.yaml | 102 ++++++++++++++++++ .../bindings/mips/brcm/brcm,bmips.txt | 8 -- 2 files changed, 102 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/mips/brcm/brcm,bmips-cpus.yaml delete mode 100644 Documentation/devicetree/bindings/mips/brcm/brcm,bmips.txt diff --git a/Documentation/devicetree/bindings/mips/brcm/brcm,bmips-cpus.yaml b/Documentation/devicetree/bindings/mips/brcm/brcm,bmips-cpus.yaml new file mode 100644 index 000000000000..60aa7df9a543 --- /dev/null +++ b/Documentation/devicetree/bindings/mips/brcm/brcm,bmips-cpus.yaml @@ -0,0 +1,102 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mips/brcm/brcm,bmips-cpus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MIPS CPUs bindings + +maintainers: + - Hauke Mehrtens + - Rafał Miłecki + +description: | + The device tree allows to describe the layout of BMIPS CPUs. + +patternProperties: + "^/": + type: object + $ref: "/schemas/mips/brcm/soc.yaml#" + +properties: + cpus: + type: object + additionalProperties: true + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + 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 + + patternProperties: + "^cpu@[0-9]$": + type: object + $ref: "/schemas/mips/cpus.yaml#" + + required: + - '#address-cells' + - '#size-cells' + + allOf: + - if: + properties: + compatible: + contains: + enum: + - "brcm,bcm3368" + - "brcm,bcm3384" + - "brcm,bcm33843" + - "brcm,bcm3384-viper" + - "brcm,bcm33843-viper" + - "brcm,bcm6328" + - "brcm,bcm6358" + - "brcm,bcm6362" + - "brcm,bcm6368" + - "brcm,bcm63168" + - "brcm,bcm63268" + - "brcm,bcm7125" + - "brcm,bcm7346" + - "brcm,bcm7358" + - "brcm,bcm7360" + - "brcm,bcm7362" + - "brcm,bcm7420" + - "brcm,bcm7425" + then: + required: + - mips-hpt-frequency + +additionalProperties: true + +examples: + - | + / { + compatible = "brcm,bcm3368"; + #address-cells = <1>; + #size-cells = <1>; + model = "Broadcom 3368"; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + mips-hpt-frequency = <150000000>; + + cpu@0 { + compatible = "brcm,bmips4350"; + device_type = "cpu"; + reg = <0>; + }; + + cpu@1 { + compatible = "brcm,bmips4350"; + device_type = "cpu"; + reg = <1>; + }; + }; + }; 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.