Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1575733ybp; Wed, 9 Oct 2019 16:48:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxk+oIUkvUT0uTjLwnonTsvBm1nNOUX2SZmwSEHzAeX9/DU60FAq8zoH3QNYwrLQPnijaoh X-Received: by 2002:a17:907:39b:: with SMTP id ss27mr5176362ejb.151.1570664881987; Wed, 09 Oct 2019 16:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570664881; cv=none; d=google.com; s=arc-20160816; b=ZrawV+2LbY5XPdEBzq6ylkcT9kHMMPGeybPAMmPCzWcE90yfsBnSUxt6fI4KvjNuLb 2KzTDaxvzWLDjeY0V3Klc8FSYoCJUusfo9dfGfgbuKw6c3kLejqFX6EA5GXH5ojmZTax dEMOuoZTEj1a1rgGCvkZSeTQJ/eDgJ6evlhup+ZufwKZQIeK3RL8dk98uEblOL4mFAo9 tQ4eA7aQVklPG1+03lSwD5fc2rCsT32aNkNnWxx8mvCA/06IKKMK5fwbuZkbFCoZIg3T 6gZpufSBbMGR4biUrvafWm+IT91LV5+E82ACkipoNAnyC6RdBFgSLWoBSZDy3P7ikJNj 7owA== 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=M+uVx1qcCdR79o4ofc5CjZQotxG1TWVUh9rieCuJiEc=; b=jK5PCC9gBI1nU4C3p6wxcvOvBjwWyZQVZBLqxMtaVsy3gTBlGSGIrCJchwdeG/XIp/ c4AurTAyth75LJZSMzHA1WXhyOHUyoyk2A7HeBtenVbIJDujSUIn2HKTeshcPIJbrzBm jtxsNA1gNb54z9U1pbVRzuD0isSUqNAFgL7V+pbrT6EGvbrVha3g3Q9xTZ1HpBXah03a CRnRZJ/yrAu5KcERgg/AlUqXDbfOssu853LEk2KcxXB16RvMso/prLAcfOoxBaBoAm1t qyWdOq6TuCKLS60kXTQkjkvy0ZKaNkObp6b5DD+gabdJpGNzn4Gxy1qVzhkYKu72FYOF wH7g== 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 n8si2074187eju.311.2019.10.09.16.47.38; Wed, 09 Oct 2019 16:48:01 -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 S1732019AbfJIXqv (ORCPT + 99 others); Wed, 9 Oct 2019 19:46:51 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:41473 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731155AbfJIXqv (ORCPT ); Wed, 9 Oct 2019 19:46:51 -0400 Received: by mail-ot1-f67.google.com with SMTP id g13so3272306otp.8; Wed, 09 Oct 2019 16:46:50 -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=M+uVx1qcCdR79o4ofc5CjZQotxG1TWVUh9rieCuJiEc=; b=MyTdxP8T69PGLNcz4kuZlHzZrSfGeRAPLH9SMKDdwXaIiFuMVEPbdxtqnVrq5Ahonl r3ebusLU/X+5S1U5Zz74SaiXtMSHy3vnlqPQcofc5eLAZuap4Z8v2QUqiIfhl0LCgaZ2 o1UOVpfniJc3F+zLAxcfQH8087daeb8IRmCMZazrFRRPYdwAEpA4Da8Xw5FmTCLsFcgT QREN6r1BFqHDFMnOjaDXb+JIyvvbOa3jE7IBlKB88xBsF6qaHJpVqKWdSw1gg+jSK20L XtJjavI5/pIHL88uCx6s/yshKG/vcFXhoXL7340l84W1aMSPNpJZS9UPTl7vs+q6m3ho 7kzQ== X-Gm-Message-State: APjAAAU2jze7LGAiI9BBq1+6Xee+E4MTbC5Mpx9ewsnkq6Yct+J2AAy/ JEY8DxrUqipbFJSnJuIXIg== X-Received: by 2002:a9d:4902:: with SMTP id e2mr5132554otf.263.1570664810148; Wed, 09 Oct 2019 16:46:50 -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 t22sm1205672otc.9.2019.10.09.16.46.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 16:46:49 -0700 (PDT) From: Rob Herring To: Paul Walmsley , Palmer Dabbelt Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Albert Ou , linux-riscv@lists.infradead.org Subject: [PATCH v2] dt-bindings: riscv: Fix CPU schema errors Date: Wed, 9 Oct 2019 18:46:48 -0500 Message-Id: <20191009234648.2271-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 The DT spec allows for 'timebase-frequency' to be in 'cpu' or 'cpus' node and RiscV is doing nothing special with it, so just drop the definition here and don't make it required. 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 --- .../devicetree/bindings/riscv/cpus.yaml | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml index b261a3015f84..925b531767bf 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. @@ -66,13 +68,6 @@ properties: insensitive, letters in the riscv,isa string must be all 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. - interrupt-controller: type: object description: Describes the CPU's local interrupt controller @@ -93,7 +88,6 @@ properties: required: - riscv,isa - - timebase-frequency - interrupt-controller examples: -- 2.20.1