Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1003478pxb; Tue, 17 Aug 2021 01:08:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzslA1kjfIgX1mqEzfLDr4oqXCZU5B+BNk0snInpePpfTn6eBfaP9WdvfOr6cwimN8LSsVW X-Received: by 2002:a02:a490:: with SMTP id d16mr1953605jam.42.1629187707457; Tue, 17 Aug 2021 01:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629187707; cv=none; d=google.com; s=arc-20160816; b=Wn+VwGtctDrBaYfB7BaJtf/SM2CaATSEbfbh3QEOIEAhUeskWbodb+1yEJfMlShPH5 +mcOlyNnwBmVelr9lhz/hgSqBiFqTHzMKeAZKvxaN5AtqAXzMk7Y8A3qaOv+v2pr23Li 7hRVIrtEDNpKCjIjhv1tHicqNVq792GLnyT03STyAdYqMbihTxfkz36QEm8cTse/AIV3 EgMwd0GCgWGlN/QqbEPYL1e07xiFauBvM7lQtEB9A+dEEd1aoibbh6hfPxj0E1R9tlRT 3L/QeNWRessHT5O6vd2+MUannTaS7CuLezyYCsfuIQzOUHqMtZlu16E9lk6RICh7X0Bd /onA== 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 :message-id:date:subject:to:from:dkim-signature; bh=gTC7PEUSA5dHECIH2h3N62kOFO0K8qY81V1jF3nxSjc=; b=EXoHnWrEpQcFho0ZZ25adjipBZSZjU0w7mHwtZBPtb0f9dxXcQiaEba6WFE3/1rUm9 Rp+k2AB8yfPozpebg7hrlFpNlbE5QXEAeN3rPwc8j/Pez0NTm8SHVzAl03pwxEuuOUUK h+8kkozLYZPshdQMAK46QtF0gmzSkKchdhACxYdz2xVz/PbdRagjs3o9x2e6iuNcGQH6 6pNk5DS/H54ZJa64l3DlWDjcYM9P1WcN+OvfFgRj4ZXQFJtrE14/qNkMdxiZAl0hd104 O95SCW8AJnCWdPCOrGuL3oLiJ6eu8ZHQE9oepWPucIrPOj5aCnzZEH4VrWMjTpgoG32Z cm/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Yl1Q7mbu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v20si2224548jas.98.2021.08.17.01.08.15; Tue, 17 Aug 2021 01:08:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Yl1Q7mbu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238841AbhHQIHp (ORCPT + 99 others); Tue, 17 Aug 2021 04:07:45 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:59526 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238785AbhHQIHa (ORCPT ); Tue, 17 Aug 2021 04:07:30 -0400 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPS id B6D0D40C9C for ; Tue, 17 Aug 2021 08:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1629187614; bh=gTC7PEUSA5dHECIH2h3N62kOFO0K8qY81V1jF3nxSjc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Yl1Q7mbudu2N5PeiyhTLfIs52kEM4idOvf2OECBEOkaFPLeeqUEcQI6Z9CKrHjh3N Ace+gfMy+q1cfnC15pawF6nE0iP3MnNq7S/znzhoSwFXOTg8ZWsPen1iUIaqOxLv4t HoT3pDX80fe7JMGTmgIoJujXQGgWuwbfkrJlLpVG/gHZZ9dZetxmfLuogNtRNyoEHn Kpx6EzZEL/W+iC4MkiriTEOeDQKclrydi9EE2Ug5FL2CUxN/Xx3ey+4x+xpQrTgOwY Cig/qpRjSJza4CR2X1iFmRW0kXLfR3JPczHyc34zqTacl0W59wgaRkejmiGoZ4bFR6 edQkYGIdBwmcQ== Received: by mail-ed1-f69.google.com with SMTP id dd25-20020a056402313900b003bed8169691so3936094edb.7 for ; Tue, 17 Aug 2021 01:06:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=gTC7PEUSA5dHECIH2h3N62kOFO0K8qY81V1jF3nxSjc=; b=pnSiZmY9FhOjTRMCunWd6VaTS44F2380AUof7N4xA68xxPhKz3rVK8wZYvNX1WZOD8 FK/LlgePM85xIHyHfEWfznfXNcNurnLe4RReDSq2icKkWGovkEnLj9dt5tEIlhVyzF/x 2rna0pjDpTSdhPsPRL7ibP4e5FW+31bwUPKLIskS21AJu4PhER6sP6BfIuuFCLzYquG9 nQ83gIFCOAk1RHV0NFPwMyr0XJUazuyJqYBV4X1YaEJ+1k3uNSv4Cc7E3DgMls3Zunqk ZURDp+FWbaOUuQ8UMtaTEyS7kVUEXZJbCpTpF0kJmRVWKMcmWGC2K/jQDn2mJcdLAJf4 EOdQ== X-Gm-Message-State: AOAM532BgdTk2eH1bYUFPoks/ThphWN7IFRmfiSJFbl7oZCSkVHjZ8r8 LRAfy0RrJG9btrLE+A557ylz8fUMB9n2oP28TP+UFCh/zRUKkZt3/5PRqC/NLxovDj9E9NTFkkS a3QN494HEo0ez+zjX1fiZopUQ9ZaQYoizztI2ZXTlQg== X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr2606297ejb.96.1629187614480; Tue, 17 Aug 2021 01:06:54 -0700 (PDT) X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr2606275ejb.96.1629187614275; Tue, 17 Aug 2021 01:06:54 -0700 (PDT) Received: from localhost.localdomain ([86.32.42.198]) by smtp.gmail.com with ESMTPSA id i26sm425529ejh.4.2021.08.17.01.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 01:06:53 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Rob Herring , Markus Mayer , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] dt-bindings: memory: convert Broadcom DPFE to dtschema Date: Tue, 17 Aug 2021 10:06:17 +0200 Message-Id: <20210817080617.14503-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert Broadcom DDR PHY Front End (DPFE) bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski --- .../memory-controllers/brcm,dpfe-cpu.txt | 27 ----------- .../memory-controllers/brcm,dpfe-cpu.yaml | 48 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 49 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt deleted file mode 100644 index 82d923ef413f..000000000000 --- a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt +++ /dev/null @@ -1,27 +0,0 @@ -DDR PHY Front End (DPFE) for Broadcom STB -========================================= - -DPFE and the DPFE firmware provide an interface for the host CPU to -communicate with the DCPU, which resides inside the DDR PHY. - -There are three memory regions for interacting with the DCPU. These are -specified in a single reg property. - -Required properties: - - compatible: must be "brcm,bcm7271-dpfe-cpu", "brcm,bcm7268-dpfe-cpu" - or "brcm,dpfe-cpu" - - reg: must reference three register ranges - - start address and length of the DCPU register space - - start address and length of the DCPU data memory space - - start address and length of the DCPU instruction memory space - - reg-names: must contain "dpfe-cpu", "dpfe-dmem", and "dpfe-imem"; - they must be in the same order as the register declarations - -Example: - dpfe_cpu0: dpfe-cpu@f1132000 { - compatible = "brcm,bcm7271-dpfe-cpu", "brcm,dpfe-cpu"; - reg = <0xf1132000 0x180 - 0xf1134000 0x1000 - 0xf1138000 0x4000>; - reg-names = "dpfe-cpu", "dpfe-dmem", "dpfe-imem"; - }; diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml new file mode 100644 index 000000000000..769f13250047 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/brcm,dpfe-cpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DDR PHY Front End (DPFE) for Broadcom STB + +maintainers: + - Krzysztof Kozlowski + - Markus Mayer + +properties: + compatible: + items: + - enum: + - brcm,bcm7271-dpfe-cpu + - brcm,bcm7268-dpfe-cpu + - const: brcm,dpfe-cpu + + reg: + items: + - description: DCPU register space + - description: DCPU data memory space + - description: DCPU instruction memory space + + reg-names: + items: + - const: dpfe-cpu + - const: dpfe-dmem + - const: dpfe-imem + +required: + - compatible + - reg + - reg-names + +additionalProperties: false + +examples: + - | + dpfe-cpu@f1132000 { + compatible = "brcm,bcm7271-dpfe-cpu", "brcm,dpfe-cpu"; + reg = <0xf1132000 0x180>, + <0xf1134000 0x1000>, + <0xf1138000 0x4000>; + reg-names = "dpfe-cpu", "dpfe-dmem", "dpfe-imem"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 36aee8517ab0..be8e4af8ed64 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3855,7 +3855,7 @@ M: Markus Mayer M: bcm-kernel-feedback-list@broadcom.com L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained -F: Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt +F: Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml F: drivers/memory/brcmstb_dpfe.c BROADCOM STB NAND FLASH DRIVER -- 2.30.2