From patchwork Wed Dec 16 22:50:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 345242 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40F9DC2BBCA for ; Wed, 16 Dec 2020 22:52:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B20A2389A for ; Wed, 16 Dec 2020 22:52:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730276AbgLPWv6 (ORCPT ); Wed, 16 Dec 2020 17:51:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730250AbgLPWv6 (ORCPT ); Wed, 16 Dec 2020 17:51:58 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CD09C0617A6 for ; Wed, 16 Dec 2020 14:51:18 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id x20so33019236lfe.12 for ; Wed, 16 Dec 2020 14:51:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ddKTn9Xl8/wZrJAUuoOV/T+vWHELgde5+/AZ3jvIKM8=; b=v7fuy9AXUD9bM/gJSy7sVcn5R6iY+GXNm5Qeplq9xWYNyCJlqllGAaPpCyTSRed4gT aI9+pAPU0ET+GRY3RNqSIGGwFDdi/+0DPMaHyiANwHBrLLY7Zuur6fiSuHyj2W97nK7Q cglIiVAOxyNl3us/xxf6Z1OixDcyKrgFR9V/OP2FJUhNCs5rrgK6yLwizX1IYMj9a2xK jfE4+o/D0Z1DxylIIB91E1AOfhsAF7aeBycOyzdXeFXkfv7h1NOlVNgHMggFsWHDXvhO 6qfI2nVMdQzca3d7wiE7mAbLJCeyK+jg/cGcHVtOX0cB9nGnwk9onAzZl8kgK0aRh3o/ +Gcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ddKTn9Xl8/wZrJAUuoOV/T+vWHELgde5+/AZ3jvIKM8=; b=N/lVEQCNUVAzjX48NZi9k2D7gpaZBrI4ELZqGaD62qqVbTsYe6ELuKKjQCcmIhjK6u dmLKjK1nJqOFqFZYBcK5sYPf+irPjUHvw8XjKFtgpuT/w7MaLcyTCz5s1QLW1bpE4+rN FalaeKxS7Q7Nohm+ZL16bi0YvqMbnz9YU55ZbaJ9msYldk4CqnNW8C8NzbZgJKis7QND HNhRRDmr+hh4uly4zFaj86ic/M23nXcyofLD1NE5J0iLK4Cv42Kcy1dL/oI+gbgCzT+u Z1MG9zVvVKKQBM50or3r/uVhPlJTJ3/MLKdyFPfS01Ef+8dzTB6ucis8YmVA3D06fD6s OwPw== X-Gm-Message-State: AOAM530nf7SnsSzMO8BnI4gHdwR6ixnsp1Wx0c6W2PX1eLr4X+HMb1Yy KjATzmjwCV4fEq1erpkcj3jpWg== X-Google-Smtp-Source: ABdhPJx27jni1KGRQhFMz72fraRiUgfdPbegBhHHlXVHzvJhXUFmhLPvdhEoyREDRk5vldOvvd0WXA== X-Received: by 2002:ac2:4108:: with SMTP id b8mr9652742lfi.544.1608159076440; Wed, 16 Dec 2020 14:51:16 -0800 (PST) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id v21sm438160ljk.73.2020.12.16.14.51.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Dec 2020 14:51:15 -0800 (PST) From: Grzegorz Jaszczyk To: ssantosh@kernel.org, robh+dt@kernel.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, santosh.shilimkar@oracle.com, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, praneeth@ti.com, tony@atomide.com Subject: [PATCH] dt-bindings: soc: ti: Update TI PRUSS bindings about schemas to include Date: Wed, 16 Dec 2020 23:50:27 +0100 Message-Id: <20201216225027.2681-1-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Now after ti,pruss-intc.yaml and ti,pru-rproc.yaml are merged, include them in proper property and extend the examples section. At the occasion extend the allowed property list about dma-ranges. Signed-off-by: Grzegorz Jaszczyk Reviewed-by: Rob Herring --- .../devicetree/bindings/soc/ti/ti,pruss.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml index 037c51b2f972..dbc62821c60b 100644 --- a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml +++ b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml @@ -81,6 +81,9 @@ properties: ranges: maxItems: 1 + dma-ranges: + maxItems: 1 + power-domains: description: | This property is as per sci-pm-domain.txt. @@ -278,6 +281,9 @@ patternProperties: that is common to all the PRU cores. This should be represented as an interrupt-controller node. + allOf: + - $ref: /schemas/interrupt-controller/ti,pruss-intc.yaml# + type: object mdio@[a-f0-9]+$: @@ -299,6 +305,9 @@ patternProperties: present on K3 SoCs have additional auxiliary PRU cores with slightly different IP integration. + allOf: + - $ref: /schemas/remoteproc/ti,pru-rproc.yaml# + type: object required: @@ -371,6 +380,36 @@ examples: reg = <0x32000 0x58>; }; + pruss_intc: interrupt-controller@20000 { + compatible = "ti,pruss-intc"; + reg = <0x20000 0x2000>; + interrupt-controller; + #interrupt-cells = <3>; + interrupts = <20 21 22 23 24 25 26 27>; + interrupt-names = "host_intr0", "host_intr1", + "host_intr2", "host_intr3", + "host_intr4", "host_intr5", + "host_intr6", "host_intr7"; + }; + + pru0: pru@34000 { + compatible = "ti,am3356-pru"; + reg = <0x34000 0x2000>, + <0x22000 0x400>, + <0x22400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am335x-pru0-fw"; + }; + + pru1: pru@38000 { + compatible = "ti,am3356-pru"; + reg = <0x38000 0x2000>, + <0x24000 0x400>, + <0x24400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am335x-pru1-fw"; + }; + pruss_mdio: mdio@32400 { compatible = "ti,davinci_mdio"; reg = <0x32400 0x90>; @@ -425,6 +464,43 @@ examples: reg = <0x32000 0x58>; }; + pruss1_intc: interrupt-controller@20000 { + compatible = "ti,pruss-intc"; + reg = <0x20000 0x2000>; + interrupt-controller; + #interrupt-cells = <3>; + interrupts = , + , + , + , + , + , + ; + interrupt-names = "host_intr0", "host_intr1", + "host_intr2", "host_intr3", + "host_intr4", + "host_intr6", "host_intr7"; + ti,irqs-reserved = /bits/ 8 <0x20>; /* BIT(5) */ + }; + + pru1_0: pru@34000 { + compatible = "ti,am4376-pru"; + reg = <0x34000 0x3000>, + <0x22000 0x400>, + <0x22400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am437x-pru1_0-fw"; + }; + + pru1_1: pru@38000 { + compatible = "ti,am4376-pru"; + reg = <0x38000 0x3000>, + <0x24000 0x400>, + <0x24400 0x100>; + reg-names = "iram", "control", "debug"; + firmware-name = "am437x-pru1_1-fw"; + }; + pruss1_mdio: mdio@32400 { compatible = "ti,davinci_mdio"; reg = <0x32400 0x90>;