Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1809805ybn; Thu, 26 Sep 2019 02:32:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlm6lHGQF72/MmEA7o/sFqb7YZKJi7tDlH+RoDvQe3AFm3r1YF0R8JxqCEI2l3ADtW3LhU X-Received: by 2002:a17:906:c282:: with SMTP id r2mr2031521ejz.207.1569490364747; Thu, 26 Sep 2019 02:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569490364; cv=none; d=google.com; s=arc-20160816; b=kcCdRTnrvEyVN0RDxPV9fgB6U6qBunoxrAnZD/6MIbp6ZHjMgAAK6zf0ku1soe1cl+ +3NKOHzSKxIWPhMnbDinTY+IqoPlcz/rIsLzFmbOuMSwGedWZdeqMPC+nDDAFyhbe4lV LtevJD+IGWEn+mQL9Xp7HxvX2WMqAaaQ7kziL4IxFXhJltNtpxgaDkW60ldmNiQO7zK5 GPN2+toPpTTccvmOf2vwycvt2OaIWE+Sgo2WDNFkciO0Vndbdue1nJulw+J3+epkme+b yCjGLBZ6bnyTe6yiLvXLV6sGqRHj9uaikhNtpNAr9RF718tn4EDBqQrYTgoqnF2JSMvu V5qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rWmNOzJx7r5Dye9C9HIH0fNSv2YxMODD9DtwUooioH0=; b=WWpIfUo9FjcaYSAaME2o1dQxcJHh0GDrzh7XviYU6PB1czVEhXoV92wnR0PXrIdKv7 /OIfhN3iloirPfu5w3qsCaHfWrM35nxg63hjJ0qR+9ltpt1zp2TVelFelSKxgJA3W+2Y 9iECJbM4gqHeviJNAE34YxJ+svI+irj+q3YV0TZftLozGDOIOogMiButGgrFiIIAG8LG UW+dToSm7ejmpXfBOJFOLDEGmwwBIwQ8TnnGa0SXNHEzLClZ7s7ntGTrzRBTDUIUDLqv 6Z92ju+iV0ajUlO1MJ6y+lkjHrOggROLQzeyKx8uXFZZymGkgrS6HItNxv/IAw404QJE S21Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p43si935328edc.368.2019.09.26.02.32.21; Thu, 26 Sep 2019 02:32:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406224AbfIYNMz (ORCPT + 99 others); Wed, 25 Sep 2019 09:12:55 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35242 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405921AbfIYNMz (ORCPT ); Wed, 25 Sep 2019 09:12:55 -0400 Received: by mail-oi1-f196.google.com with SMTP id x3so4838453oig.2; Wed, 25 Sep 2019 06:12: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:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rWmNOzJx7r5Dye9C9HIH0fNSv2YxMODD9DtwUooioH0=; b=ruQzoHdTMWwmnAsnSkl57AoGCobZlq1wl23YTT3mgE4LDlXSLcph5VpE2ryVudfP6F 6+/q2f4691F8mZbKyH/LI2LDnHIyANY/mk+wShyMZf//FIfa2Is4EWpX7rhSyjL7rmCL 04l8aiFmxcyyLL/XkaQpCCGby56HyRcL7ZbLZ4BaGtsjud46+peqRCqPI1SxPswFUwBF QEcO7rf9Xl/0Er2Yncv3Y67qXt+5N9mDQyv0MU//oLK6sQQV0DznvFlwcAAfWNtO0Wn7 aStPZ2z0EcL0I0VCBtY/DnxVui/sbBulZK6MqW8RZdZrs5sbEDzz66mcMojBpgiMgWck Hsyw== X-Gm-Message-State: APjAAAVSvuc2K1QOfMkqSB86AXK3CfQ9iupfXvOXq+t85OEsJ1hDgW43 lg8qmCtd9CtA/jpc5tVYNw== X-Received: by 2002:aca:59c6:: with SMTP id n189mr4519258oib.127.1569417174055; Wed, 25 Sep 2019 06:12:54 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id 11sm1628329otg.62.2019.09.25.06.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 06:12:53 -0700 (PDT) From: Rob Herring To: Paul Walmsley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Subject: [PATCH v2] dt-bindings: riscv: Fix CPU schema errors Date: Wed, 25 Sep 2019 08:12:52 -0500 Message-Id: <20190925131252.19359-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the errors in the RiscV CPU DT schema: Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: 'timebase-frequency' is a required property Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@1: 'timebase-frequency' is a required property Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: compatible:0: 'riscv' is not one of ['sifive,rocket0', 'sifive,e5', 'sifive,e51', 'sifive,u54-mc', 'sifive,u54', 'sifive,u5'] Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: compatible: ['riscv'] is too short Documentation/devicetree/bindings/riscv/cpus.example.dt.yaml: cpu@0: 'timebase-frequency' is a required property Fixes: 4fd669a8c487 ("dt-bindings: riscv: convert cpu binding to json-schema") Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Cc: linux-riscv@lists.infradead.org Signed-off-by: Rob Herring --- v2: - Add timebase-frequency to simulator example. .../devicetree/bindings/riscv/cpus.yaml | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml index b261a3015f84..eb0ef19829b6 100644 --- a/Documentation/devicetree/bindings/riscv/cpus.yaml +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml @@ -24,15 +24,17 @@ description: | properties: compatible: - items: - - enum: - - sifive,rocket0 - - sifive,e5 - - sifive,e51 - - sifive,u54-mc - - sifive,u54 - - sifive,u5 - - const: riscv + oneOf: + - items: + - enum: + - sifive,rocket0 + - sifive,e5 + - sifive,e51 + - sifive,u54-mc + - sifive,u54 + - sifive,u5 + - const: riscv + - const: riscv # Simulator only description: Identifies that the hart uses the RISC-V instruction set and identifies the type of the hart. @@ -67,8 +69,6 @@ properties: lowercase to simplify parsing. timebase-frequency: - type: integer - minimum: 1 description: Specifies the clock frequency of the system timer in Hz. This value is common to all harts on a single system image. @@ -102,9 +102,9 @@ examples: cpus { #address-cells = <1>; #size-cells = <0>; - timebase-frequency = <1000000>; cpu@0 { clock-frequency = <0>; + timebase-frequency = <1000000>; compatible = "sifive,rocket0", "riscv"; device_type = "cpu"; i-cache-block-size = <64>; @@ -120,6 +120,7 @@ examples: }; cpu@1 { clock-frequency = <0>; + timebase-frequency = <1000000>; compatible = "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>; @@ -153,6 +154,7 @@ examples: device_type = "cpu"; reg = <0>; compatible = "riscv"; + timebase-frequency = <1000000>; riscv,isa = "rv64imafdc"; mmu-type = "riscv,sv48"; interrupt-controller { -- 2.20.1