Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5240136rwb; Wed, 17 Aug 2022 13:50:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR7qJAOIoiez0ryrkL5vFK5xvtAXYmxy3+ip/2x/PXp2fZrcvxedsjLSA7c+GQc7ifVO6PnX X-Received: by 2002:a17:90b:3c0a:b0:1f4:fe95:c426 with SMTP id pb10-20020a17090b3c0a00b001f4fe95c426mr5508984pjb.108.1660769459723; Wed, 17 Aug 2022 13:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660769459; cv=none; d=google.com; s=arc-20160816; b=ZJR3ZJQ0ksLNPyFI4W3rg6UhrImmzRxJhKG/tkdbnkoSzNJB4oVbZOEGhad6w6FlNb cGsnSGEUGX4/Sgac8AwEcQor+VQruGXcu4P99LctzF+yixbKGo05m7RuvXWVBWMRyh/E uU+P9Kkt8i3PEbCxvUzvglKWjwfhc4z2PA7yDFM7x7i7NNjffoKpfjALZhoWO6Zlqz44 O0iNum5KbHklnKarZY6ESgxPcvpe3U6DilXQLvedWncTlR4mTVOOY/90qI7NiaYRoSB9 MCq4XwtRqjvFKrpijbhM6D+16VvupCzHCGUEILABraP3+Edm2omt56noFZosf2PauxT8 LlHg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G88Wg8efx4vUqMWMZ62OXKazA2toNV7pxgmBvPS4y7g=; b=xEazVKvpNWC85IZMvPmXh0xOog7uWpwwns0hS70/hy2rYym5t8uF+pdx7hciTyCKqj KsAmOsyUM43J+MWzmvXnMOHzRE7ypX7OYFTZQDmvd5WHSL73cVOK5x+ZJl9hduNO9oNJ /9o3cGvfwApVL8RcBEWiQVgq4zSPHqc5PIgDzB762UIvgc5Yn9V5sBu3ikwys9ljF3bq 6jlfvuUj2fOSlHh8VYOyE6hfeybpPRPoNHvAc90pWcaaZ+oa0pVzyI2iDSAuQNqWyrxc 1X4SdD0eqsDPs4k8iErsEgb/zA7dpwLtssSrLsJNNUim8tUN0QuGwyTa7f8gfCR++9nx WefQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=VzaGcfun; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a056a00134b00b0052e0f69d8c3si17474688pfu.334.2022.08.17.13.50.48; Wed, 17 Aug 2022 13:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=VzaGcfun; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241422AbiHQUGH (ORCPT + 99 others); Wed, 17 Aug 2022 16:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241443AbiHQUGC (ORCPT ); Wed, 17 Aug 2022 16:06:02 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DA6B5A8B3 for ; Wed, 17 Aug 2022 13:06:00 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id r16so8189296wrm.6 for ; Wed, 17 Aug 2022 13:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=G88Wg8efx4vUqMWMZ62OXKazA2toNV7pxgmBvPS4y7g=; b=VzaGcfunVEH2z7tJRNS1AU/vIocqbg6xnzILw4gRFcBEDkijY1Zq4TmA5/TNRldDSx WzgaQIj45pktnr3tjYDuiDyxviAqihEm4l2MkHueEnlQXQjanVthYnOkTHEn09mCRbGs 1MqmO9w4ty96NiqmLtnlo7Ub2udERairrBssiSs6S3plZkziQhalrIMKvkJPE7ilS2IF 8jKUcOsS2tT7/eTA52ruguZTo4qlgfu4c8mhay7OiLT1A9eHMWIsCbJW7wgPuG0fQkNS TH/3JAfFK7hhxh5fd11oPwDkmvnuw9zsoquL8KJ9BEYzhU9+mGSf16ovrpiqU5Nd47RD Z5xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=G88Wg8efx4vUqMWMZ62OXKazA2toNV7pxgmBvPS4y7g=; b=koliDxgHw7ry211sDxFtOb8ShlY8Yvo+0saJ6ZLrIY8EoJbHQtr41yDzS1/MPTli+o UhxXv3t/vLEzB15kTtPyp/XRK0eMTt7kJ32YNaRmNLAZC1yx/6Ioo5hy+a3PlfA2mfUg 0XoGLLiKVpnDb3JVx+SkKEj5MVeJOFzYdK3E7axNU7kx9HEQF5+CxNiXKsYHp/rFUDGe LnF1gzh73UW3jxhri+m32ZmJ1ZBgflS5fIyJF4VvQFPAQJdElMCzW5C+yWNQHRulpvQy OyPzkr9hq3p3hL20uCSNfRFbc8fGwdy/gJQGz4penmi8iM+MqzpDBk38eJ6vDcOgjcy1 OE4A== X-Gm-Message-State: ACgBeo2H8YoOsUnEpzZOFUHmmDWkNJ4s141aL8hcdtGwrPZrPfdH5IRQ XnNGPIIkooVczQFzOyr4DSWnwg== X-Received: by 2002:a5d:5509:0:b0:225:20ac:37fb with SMTP id b9-20020a5d5509000000b0022520ac37fbmr3914379wrv.38.1660766759021; Wed, 17 Aug 2022 13:05:59 -0700 (PDT) Received: from henark71.. ([109.76.58.63]) by smtp.gmail.com with ESMTPSA id i133-20020a1c3b8b000000b003a531c7aa66sm3400883wma.1.2022.08.17.13.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 13:05:58 -0700 (PDT) From: Conor Dooley To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Daniel Lezcano , Anup Patel , Conor Dooley , Guo Ren , Sagar Kadam , Jessica Clarke , Andrew Jones , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, qemu-riscv@nongnu.org Subject: [PATCH v2 0/4] Fix dt-validate issues on qemu dtbdumps due to dt-bindings Date: Wed, 17 Aug 2022 21:05:24 +0100 Message-Id: <20220817200531.988850-6-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220817200531.988850-1-mail@conchuod.ie> References: <20220817200531.988850-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Conor Dooley The device trees produced automatically for the virt and spike machines fail dt-validate on several grounds. Some of these need to be fixed in the linux kernel's dt-bindings, but others are caused by bugs in QEMU. Patches been sent that fix the QEMU issues [0], but a couple of them need to be fixed in the kernel's dt-bindings. The first patches add compatibles for "riscv,{clint,plic}0" which are present in drivers and the auto generated QEMU dtbs. The final patch should be ignored for all serious purposes unless you want to wash your eyes out afterwards, but JIC the versioned extensions ever come up, it's there. Thanks to Rob Herring for reporting these issues [1], Conor. To reproduce the errors: ./build/qemu-system-riscv64 -nographic -machine virt,dumpdtb=qemu.dtb dt-validate -p /path/to/linux/kernel/Documentation/devicetree/bindings/processed-schema.json qemu.dtb (The processed schema needs to be generated first) 0 - https://lore.kernel.org/linux-riscv/20220810184612.157317-1-mail@conchuod.ie/ 1 - https://lore.kernel.org/linux-riscv/20220803170552.GA2250266-robh@kernel.org/ Changes since v1: - drop the "legacy systems" bit from the binding descriptions - convert to a regex for the isa string Conor Dooley (4): dt-bindings: timer: sifive,clint: add legacy riscv compatible dt-bindings: interrupt-controller: sifive,plic: add legacy riscv compatible dt-bindings: riscv: add new riscv,isa strings for emulators dt-bindings: riscv: isa string bonus content .../sifive,plic-1.0.0.yaml | 5 +++++ .../devicetree/bindings/riscv/cpus.yaml | 9 ++++++--- .../bindings/timer/sifive,clint.yaml | 18 ++++++++++++------ 3 files changed, 23 insertions(+), 9 deletions(-) base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 -- 2.37.1