From patchwork Mon Nov 20 19:50:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 839738 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ygfTW2S6Rz9s82 for ; Tue, 21 Nov 2017 06:50:39 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752696AbdKTTuh (ORCPT ); Mon, 20 Nov 2017 14:50:37 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:32959 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752694AbdKTTug (ORCPT ); Mon, 20 Nov 2017 14:50:36 -0500 Received: by mail-pf0-f193.google.com with SMTP id a84so8053615pfl.0 for ; Mon, 20 Nov 2017 11:50:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:mime-version :content-transfer-encoding:cc:from:to; bh=Pg71mzIAZi8YBXcyCkltW778C0BLmFx9q5LdbRMF/w8=; b=P/cM3MIMk0LSP7UtD5WMepVTdEkVzVfyhbIkDRTdXN4VlA3h0vEzpNUuclOao3wIK2 Y44N8tnbmrGvbBUC3an6c9Gf0IwpJvPQtMn0/SdXC2ySbAPiPyyks5zOpq2lNSE2pN6+ f+MW4pAdTHPZSejiI9E5RItcsB1YbWvL/joTkTm6Xc3b9Q3smCJGz5LaZlPevAE/woad GuQxcCNDY7TSVaO2QNmyjCpo5k95SVIiqpWHN/bGipTxKnus+89bwg59F6WWGNOu6F/7 QmNxU/lGcs9spDh5/+c4/o4ANjOne/+VraYsvwYLVg0CxO4nBItjo4Lzavau11B+Op3z NpFw== X-Gm-Message-State: AJaThX60NTJmPSKpVHjIzOfwMPY6VdwUCO13vV84bzZ3OVz09c/4kZKf 1AcA5QQA3m2JOGIl3fErAA4BbQ== X-Google-Smtp-Source: AGs4zMZ3IdTfc1GayhhmCwswM2Obz5cpIxL/zixZ3WEIxrpMw8xj7zvR+MzvcS7R37zEeSUqYBNGqQ== X-Received: by 10.99.146.65 with SMTP id s1mr2683691pgn.354.1511207436285; Mon, 20 Nov 2017 11:50:36 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id 3sm22630546pfo.17.2017.11.20.11.50.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 11:50:35 -0800 (PST) Subject: [PATCH] dt-bindings: Add a RISC-V SBI firmware node Date: Mon, 20 Nov 2017 11:50:00 -0800 Message-Id: <20171120195000.2070-1-palmer@sifive.com> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 Cc: patches@groups.riscv.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , nathan=20Neusch=C3=A4fer?= From: Palmer Dabbelt To: mark.rutland@arm.com, robh+dt@kernel.org, devicetree@vger.kernel.org Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The RISC-V privileged ISA mandates the presence of an SBI, but there's no reason not to put it in the device tree. This would allow us to possibly remove the SBI later. CC: Jonathan Neuschäfer Signed-off-by: Palmer Dabbelt --- .../devicetree/bindings/firmware/riscv.sbi.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/riscv.sbi.txt diff --git a/Documentation/devicetree/bindings/firmware/riscv.sbi.txt b/Documentation/devicetree/bindings/firmware/riscv.sbi.txt new file mode 100644 index 000000000000..42384d5d52cf --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/riscv.sbi.txt @@ -0,0 +1,20 @@ +RISC-V Supervisor Binary Interface (SBI) + +The RISC-V privileged ISA specification mandates the presence of a supervisor +binary interface that performs some operations which might otherwise require +particularly complicated instructions. This interface includes +inter-processor interrupts, TLB flushes, i-cache and TLB shootdowns, a +console, and power management. + +Required properties: +- compatible: must contain one of the following + * "riscv,sbi" for the SBI defined by the privileged specification of the + system. + +Example: + +firmware { + sbi { + compatible = "riscv,sbi"; + }; +};