From patchwork Fri Jan 14 15:17:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 12713730 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA5FAC433EF for ; Fri, 14 Jan 2022 15:16:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ddk4Ndi5pF/hFoiRRzX5gmxV14bHM+3XX5n272rBw2M=; b=CyX49yrCk5p6lS tuWXZFaoIc6YQfqGtitkrKVlHaIHmfBN5tKu8VlUcWOQ7hKppLr4sxZ09s1IKHRQ5DrgzIc0zuSCG WWVvvIN8P/fiaAux6021nBcSNnHzYRTs8jaDzlZgaEe78m19ios1hmGwkm0QEmqAhgP1NzvHOj7tG sqRYFPmJN73z/8RdWF5x3YdREzoMtWx1Xlh/oRkQwwQH1x8xdX+jtI+dwC8cUQPwdbqmdU8BirSEd SYu168iE5EIcdCznN2SD9154TsxCbr7YRw4rxej3YctWNXQmUWm5iayPk3HD9Onv2sb1bKONcbwds cfNyy88YjXcjdk3e186Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n8OJV-009Xfh-Vx; Fri, 14 Jan 2022 15:16:26 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n8OJT-009XeC-5N for linux-riscv@lists.infradead.org; Fri, 14 Jan 2022 15:16:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642173383; x=1673709383; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OOEiOzJYOr2rjLZtIJaPl6yuaJhJGBub8XFzhK4pAzA=; b=frrPS8CuEwJAlnzu2+P1Qo/N1CtjN+Jq9f0Vp/NZ7QnBCVYyDqmfvnjC AKaw2Mc+//Fo/JQwxENQf+Bc2xXivJh9AYIvuAH4ZwnnmK1Kr3vM1LHct /zLugsieh2HFE+Ybu5iqlnYIsPv9huN+UGeosFmQwpwO/ba9qYbjKcev4 kdWu/O8hfVNZuQ8MaeoHMFJ408a9U7cNtYBjXtSTgRuqk0/ezEqlkH3oA x6iOaol9c6AktqeFAbNCO9BN2GzEMIEo2xohwCfJ2dBWzW1RG4Zw9gJl/ BwiHK8HaTLTixeZ+XD+JNJpzuZWNusNs2aSeL6+j0Q/ymiNQTOHV90KmB w==; IronPort-SDR: ZlverUWZhaP2CTWMXKf4HNoJGvGRsBvJ3fqFwRjK4JqtOOSstUnLSbsVFgelk7MxAWKl4C5JMD Jfba3pOk4g8o5zmfyPY8C7ogcT28kY0xG326jhZWUet/a3fHoOjCDcgWe4bD60aWuf7jHMP1kE QsYD1rBGZzMQiYJsQNIn8A8PaaWuC2CCY9SseAH6aBIXPPy35bk5YDmJoZCM8zQtbiQHZHxmLK kGHVWXIWtUam7VeTOUTglRrIX2zsCpA+F+tZrWHEepjTTiV2Nws5dNiyqil14ezwtvvO8eyVu6 cW3P04SemoAul75toaEtbFIC X-IronPort-AV: E=Sophos;i="5.88,289,1635231600"; d="scan'208";a="142730796" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Jan 2022 08:16:21 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 14 Jan 2022 08:16:20 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 14 Jan 2022 08:16:15 -0700 From: To: , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH v3 02/15] dt-bindings: soc/microchip: add services as children of sys ctrlr Date: Fri, 14 Jan 2022 15:17:14 +0000 Message-ID: <20220114151727.2319915-3-conor.dooley@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220114151727.2319915-1-conor.dooley@microchip.com> References: <20220114151727.2319915-1-conor.dooley@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220114_071623_291628_30EF35EB X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Conor Dooley Add mpfs-rng and mpfs-generic-services as children of the system controller. Signed-off-by: Conor Dooley --- .../microchip,mpfs-sys-controller.yaml | 44 +++++++++++++++++-- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml b/Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml index f699772fedf3..b69386b1a3e1 100644 --- a/Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +++ b/Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml @@ -13,13 +13,45 @@ description: | The PolarFire SoC system controller is communicated with via a mailbox. This document describes the bindings for the client portion of that mailbox. - properties: mboxes: maxItems: 1 compatible: - const: microchip,mpfs-sys-controller + items: + - const: microchip,mpfs-sys-controller + + rng: + type: object + + description: | + The hardware random number generator on the Polarfire SoC is + accessed via the mailbox interface provided by the system controller + + properties: + compatible: + const: microchip,mpfs-rng + + required: + - compatible + + sysserv: + type: object + + description: | + The PolarFire SoC system controller is communicated with via a mailbox. + This binding represents several of the functions provided by the system + controller which do not belong in a specific subsystem, such as reading + the fpga device certificate, all of which follow the same format: + - a command + optional payload sent to the sys controller + - a status + a payload returned to Linux + + properties: + compatible: + const: microchip,mpfs-generic-service + + required: + - compatible required: - compatible @@ -29,7 +61,13 @@ additionalProperties: false examples: - | - syscontroller: syscontroller { + syscontroller { compatible = "microchip,mpfs-sys-controller"; mboxes = <&mbox 0>; + rng: rng { + compatible = "microchip,mpfs-rng"; + }; + sysserv: sysserv { + compatible = "microchip,mpfs-generic-service"; + }; };