Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3971027rwa; Tue, 23 Aug 2022 13:36:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR5oKUGKq1tjFjvM67UkKljdnzl5M7Vo8MrE0kT4eLBk0aWS+3eLbnAVu9BkROO3t/4XEOtV X-Received: by 2002:a17:902:f60f:b0:172:86f6:241b with SMTP id n15-20020a170902f60f00b0017286f6241bmr25831698plg.162.1661287016435; Tue, 23 Aug 2022 13:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661287016; cv=none; d=google.com; s=arc-20160816; b=XmW6NpXnYe8aiDD05WSef/UydokplGOWszNghvsEJpmGlWWcO2FjWWgvAOmOC7xQx2 Kcp1md1TRvlkI7rUMKBRaapAmeqHKed+CpPAvzQPMgKH/8Z5I0LNXEZISNlsO5m30rnh aajUhJHCYWpzl4n5nXHE/wni6tD+srikGqjaO6Bi5RPpunJp5iLENKf8busIRdbqv2aF 3AHlAf62zWybKIf0L2pWPd+BW4oTyvtYh2xEAO1dZPV1TpizMAaawd5t6ummeXwF3qNq s4gTYJ/+v27zuMmK7Qqpm7gTKutgPxlrLl43I3zoIaWkHIqct3rqRT+MK/nJwqsKo/en kp0g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=q+TKEP48DscTRDbw52nvoVUMRS8D3Vksl/C8HoYqAy4=; b=arAIMDw9+jvZKYMjaJ4pstG7vkTzTpHmIP9cTQZHjs5uloc6nIizrVdGc9tG+oQAkx sHhI1cxfKn/+nrnxYqk0oED/6apJ+3Xbcj6YRlfMZy1klMABsHJ7zhrcDUp+0Ey1DGjy 6OSY5YDMgocm3WQvy43PrEhLwZXBzliE/yVlEs5/nRsbPcYX+9AtOxm+BcEJOvWBO8RI cyaziyI81p1NLG+Hh9HyobJRkWIgxLJ8lyCqPDY+/vwx4jtteNv4VqMxwnzB74GGWiZw qXku6Eo7Zx43g31gDw/Q8UoPFuM4VLiO2q2xP8tNXfAMVQ2DJncdT3/qXw8jRoHV2YOf d6YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=WpT9FPSB; 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 m126-20020a633f84000000b0041d35692c4csi16451447pga.281.2022.08.23.13.36.45; Tue, 23 Aug 2022 13:36:56 -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=WpT9FPSB; 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 S232658AbiHWThf (ORCPT + 99 others); Tue, 23 Aug 2022 15:37:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231715AbiHWThP (ORCPT ); Tue, 23 Aug 2022 15:37:15 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0449589820 for ; Tue, 23 Aug 2022 11:33:55 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id bs25so18036784wrb.2 for ; Tue, 23 Aug 2022 11:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=q+TKEP48DscTRDbw52nvoVUMRS8D3Vksl/C8HoYqAy4=; b=WpT9FPSBFg5gj+3SEKAhIEbYy3VkM3t5SkcVrrpMsQvWqW6CpC+os07Y68qsl5lQwm AD9aui8SzjnCNTdK/B+NdogzMwQrEARSnmNh4Em/mpaCF3tt1dncmTSuRqeFOdwzSLIA ls1vTNAj6nNguGE8AWF1bWbb7hbNKits7Us+r+sE8+Zf745XQuV65ozSkZ799QhNmWIt r/QETJq4bRmHVBSsM/Lb9KTTbgiafcDeVKvFZzseo/e4jvxjzHuGzjhdqFjndp7rnJ8+ 2fdRyICsC9C/YbtB+TJEha0s9c6kCOxBi+SMHs9CTaMBb9rbeDhdjijQkuK0JShl4rxX z1Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=q+TKEP48DscTRDbw52nvoVUMRS8D3Vksl/C8HoYqAy4=; b=EAS4kq+eKfjPjDqDziCXPZGFR+Hq+Bd1Qji42/K2+NMzCyP4gZ/aHwlaGltBaVSYF2 L1KIMJ+vtQJHEMySzSurWs5E7qdMjnzGiDA2IW9BcCh3xnW2jfzlqI6qmK/qyVpvSkGl P2XEe3ZVV2C7neOhYKwAgvvHcpc3sWVWEyshW+HMPhl0LJVXO0JVtsNWaDZKrD2Wkmee oFX4/b+Q2DwDaiDxz9AGIdiKuoBRB2U1SWnyUR8O4V1rKBCh02uHvrptb/MOwizy5iV2 e/ZgdhoimenroU8q1xRn1/9jOz5XfEvm047uMhbumyvn0vj+7YAm4voUB6hRUxicYD6b OWlQ== X-Gm-Message-State: ACgBeo0f97YuuTCFWkqrbV8D9juq/603R2Yq6ar5Jua+b3p6kbUDxbt4 O8yFEiAkDq7MkdhQFpOfFHDezA== X-Received: by 2002:a05:6000:18a1:b0:222:c54a:3081 with SMTP id b1-20020a05600018a100b00222c54a3081mr13725350wri.666.1661279633502; Tue, 23 Aug 2022 11:33:53 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id p16-20020a05600c1d9000b003a5fcae64d4sm19396556wms.29.2022.08.23.11.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 11:33:52 -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 v4 0/4] Fix dt-validate issues on qemu dtbdumps due to dt-bindings Date: Tue, 23 Aug 2022 19:33:16 +0100 Message-Id: <20220823183319.3314940-1-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 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 autolearn=ham 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 v3: - dropped the charset restrictions for standard multiletter isa extensions Changes since v2: - removed the extra patches from the directory 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