Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5040833iob; Mon, 9 May 2022 07:28:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8mgLXImJJKHUdxyi4TpEpTNWVosaKhEqjwq2Fv1CtWTAv8E2R9mntoxehbu19zCRev/zB X-Received: by 2002:a17:902:cf05:b0:156:8445:ce0f with SMTP id i5-20020a170902cf0500b001568445ce0fmr16458280plg.99.1652106535465; Mon, 09 May 2022 07:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652106535; cv=none; d=google.com; s=arc-20160816; b=sgO147ES/PUtAFlIhtyIotAzzHA1i4GpqWMLVG8LiYCiEPzeyS38zUrARJ9dmtrebi tVy887V14W3vs8UMfASg/Tplxs731eI1lfryCiRtfk0zNv9Qwb03xmA7BAZQcKgkRli5 ZBTRTEFr0cCnPBZV5F7rb6Ay0n5DJouOX3t0Xlsq93VUqQRmR18A/36BOMhSlNPUC5vo nIxy2x2+TPu7mDBNCdTQfvU6ailPp29O2fICrEe7hV3sKYf+nkUirNyiuXZk4w7F80zS 9eCkxoQJmFwzH6Iu5MzcWEeLx6r9KO0+NVbQA/KRIks1sC7ZApozi98ihvgjm9e7fJIe PCtQ== 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=XnU8oQ2oXaFqVLoC9zogixxXifq7KZR9v55t/txOKyE=; b=tr+b0mabY4uJWTz8QlElnllvSWg35nmbCICN3ti/zJ1oQAjuPKANKCcbjzXyQ+yODe WN24+S9JM5Li2brdVgm7YJx23dnjAw3jrWrRzAqCGMljp2T95sE2OqlH4tB4f+mvXpeb Hxtsvh5QJzW2YRMLqrEKgrf91YWg8q7y8d1x/lilBKRNzAc7ikKiETCzQGwmRVhmhD0A wyUN4xUJgB2l4lLm1vrf4OHtVC12/9+ARH4cVBwZsKLWBZzoIl/Oq51f6pGAPX0wQZHb n9d+aRc0JckWJoL0c2YXyLMxtblIZrPmpyWAtyyX3usDIrvKKgvKNyXy+aAsbY1uOPwN cijA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=Yzvq14Am; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t16-20020a17090340d000b00154aa5ec43bsi11928056pld.154.2022.05.09.07.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 07:28:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=Yzvq14Am; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8AB0A2469E2; Mon, 9 May 2022 07:27:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237279AbiEIObV (ORCPT + 99 others); Mon, 9 May 2022 10:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237095AbiEIOa4 (ORCPT ); Mon, 9 May 2022 10:30:56 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C893423F391; Mon, 9 May 2022 07:27:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1652106422; x=1683642422; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7NHU7oUM3DXm3+UgzqYybldzdLiN0cjWXHYNSTmv0K4=; b=Yzvq14AmtVIggDFc/k6e8rGUvWpe5cf7wahSO0Xa4YWTJcvlamodh5Im ms6HKyFELVY7UmZfzrCD0XrfC8GTBTcK+TG6SGx/eZcI61ykcR5Ed/PqF 32DhJQQhFiVs+2haL0T02bHVT4ebTP6hSJewtUYGfdqGhQqLVJzHs/UHn 7a79PdneUr9Nb6dKWHTgZ9sI/EM8uIUI0WThLpXYGvUfvFyFiuCAG8SBH 6RVCICAIo9cutt42E9HUtbYzbwBFUQ6BCo4HNqZb6vTJehvuLcwcZycXT yAEksY6OiMb8v2D6CfGCtvYkPBx2jwJ1nrxZmtamZr8k6lww5RZK3ekGE Q==; X-IronPort-AV: E=Sophos;i="5.91,211,1647327600"; d="scan'208";a="162858686" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 May 2022 07:27:02 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 9 May 2022 07:27:00 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 9 May 2022 07:26:58 -0700 From: Conor Dooley To: Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Daire McNamara , Cyril Jean , , , , , Arnd Bergmann Subject: [PATCH v5 05/10] riscv: dts: microchip: make the fabric dtsi board specific Date: Mon, 9 May 2022 15:26:06 +0100 Message-ID: <20220509142610.128590-6-conor.dooley@microchip.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220509142610.128590-1-conor.dooley@microchip.com> References: <20220509142610.128590-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Currently mpfs-fabric.dtsi is included by mpfs.dtsi - which is fine currently since there is only one board with this SoC upstream. However if another board was added, it would include the fabric contents of the Icicle Kit's reference design. To avoid this, rename mpfs-fabric.dtsi to mpfs-icicle-kit-fabric.dtsi & include it in the dts rather than mpfs.dtsi. mpfs-icicle-kit-fabric.dtsi specifically matches the 22.03 reference design for the icicle kit's FPGA fabric & an older version of the design may not have the i2c or pwm devices - so add the compatible string to document this. Reviewed-by: Heiko Stuebner Signed-off-by: Conor Dooley --- .../microchip/{mpfs-fabric.dtsi => mpfs-icicle-kit-fabric.dtsi} | 2 ++ arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts | 1 + arch/riscv/boot/dts/microchip/mpfs.dtsi | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) rename arch/riscv/boot/dts/microchip/{mpfs-fabric.dtsi => mpfs-icicle-kit-fabric.dtsi} (91%) diff --git a/arch/riscv/boot/dts/microchip/mpfs-fabric.dtsi b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi similarity index 91% rename from arch/riscv/boot/dts/microchip/mpfs-fabric.dtsi rename to arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi index ccaac3371cf9..0d28858b83f2 100644 --- a/arch/riscv/boot/dts/microchip/mpfs-fabric.dtsi +++ b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi @@ -2,6 +2,8 @@ /* Copyright (c) 2020-2021 Microchip Technology Inc */ / { + compatible = "microchip,mpfs-icicle-reference-rtlv2203", "microchip,mpfs"; + core_pwm0: pwm@41000000 { compatible = "microchip,corepwm-rtl-v4"; reg = <0x0 0x41000000 0x0 0xF0>; diff --git a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts index 84b0015dfd47..739dfa52bed1 100644 --- a/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts +++ b/arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dts @@ -4,6 +4,7 @@ /dts-v1/; #include "mpfs.dtsi" +#include "mpfs-icicle-kit-fabric.dtsi" /* Clock frequency (in Hz) of the rtcclk */ #define RTCCLK_FREQ 1000000 diff --git a/arch/riscv/boot/dts/microchip/mpfs.dtsi b/arch/riscv/boot/dts/microchip/mpfs.dtsi index cc3386068c2d..695c4e2807f5 100644 --- a/arch/riscv/boot/dts/microchip/mpfs.dtsi +++ b/arch/riscv/boot/dts/microchip/mpfs.dtsi @@ -3,7 +3,6 @@ /dts-v1/; #include "dt-bindings/clock/microchip,mpfs-clock.h" -#include "mpfs-fabric.dtsi" / { #address-cells = <2>; -- 2.35.2