Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp177302iob; Mon, 2 May 2022 16:21:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOc2L75/bP3Jv5T3h0ZGRTTyzhPxE2FNINow8n38Y3KF45842D1BZPvdJaXjs24ytHqWhh X-Received: by 2002:a17:90a:a78c:b0:1b8:b769:62d0 with SMTP id f12-20020a17090aa78c00b001b8b76962d0mr1609422pjq.227.1651533706360; Mon, 02 May 2022 16:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651533706; cv=none; d=google.com; s=arc-20160816; b=PriUPjnPgftBj0VWqSIgUCTwfrAs351b1Qnq4zNHGW3pc2b48dGRz7JK4+X8znPqef Zo/D8KSpN+zuDGIALUJXp88TofbVj38bHRVdco3FkHNLSbi9Hw0vwVdO0uLdZPpiTiFF WHTxJg8NiGE4KNIQhZ6S1zeCifeKeQcUDrKyUbWQtVFBxoPvjlb3OUk3iHDCKp/rZQzw Ly1xWt+V+Xl+O4X4oRrF9clFGhbSqlo0wDgvvLUR6NLnXkxGUgFr7q/Aox2xGD8OrtBr sKI1M7oRNeZSZj/FdLVQCFIR6753hGwqs1p7HVhc/PXBqsfAZTdqzqho8jXWhaMv+wPv BJ6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=J7Uvil82Flp/hNxnP671Z+pTQqeFvTbf02gQWur9u+Q=; b=X4sl53ZDrdC+5ls7mREFdkzgVJqPhWKp5Jc8OcqHz0f7Pb7lxV5+4EYFTFG1xDla8f UGkwleIONRnys5pJWREhCNOqSekeAj9Ajl3CVhz0MKxVLmAuZbUQgluYDmRYgJW5Hash OsNYrmRlQk6XVb+aCwhIRErOwnW69BG60insWb9D/hrB0w5/FkZUxXJ9l6WItxGFnNoO 8vOXIV4DVCYtQuiUhVEHwgw5TRHXBjF6HEDKkDayudOKaKhJBIODENCGXCl45xie2XyB v55SdqowFXEnRuzjVf6Fvl8TUMBA0aqmlT9625mFvi2rP4eJ0UReAP0q2HcioDfjeva6 zkyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KJcT7zLH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w20-20020a1709029a9400b0015e74358c9bsi9786011plp.255.2022.05.02.16.21.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:21:46 -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=pass header.i=@intel.com header.s=Intel header.b=KJcT7zLH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9A82D2BB16; Mon, 2 May 2022 16:21:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387039AbiEBTHp (ORCPT + 99 others); Mon, 2 May 2022 15:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387034AbiEBTHn (ORCPT ); Mon, 2 May 2022 15:07:43 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28766B871; Mon, 2 May 2022 12:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651518253; x=1683054253; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=Rv8nCiwQdv7yIXAs22Fv6R6p/0NJiIKyzQb1x5PxAoo=; b=KJcT7zLHymXhh2n8mDfcbmwfF9ZiIkCjtDbbeURvamBzko3hSnmrV+CK JPYDmfIwcBLohr6fciSITW+/UmE8ELXj6OlyG6mWtqBa9USGSHIDep9CP Toq4B6rp757kxcXYWMMsPfSDkG110jozM6wGDd/v5EayEK9u34Aj25PYt VNuRwIsaeS3fJWVkNzPhx+5jbPynJEiJPIZbOzcCpJoBdlAVbPME1zRM3 HrHhCrT1U9T0inpVyuEKxfX9T8+B36EB7VnvbJQDyqhLABq/2i7Sw857R vL4/f88nB7c/MqdBirogbmxB5cZ8VZQIeolVMd68hArtQrJFuIoEP9iA7 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="247212925" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="247212925" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 12:04:13 -0700 X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="620040688" Received: from rhweight-wrk1.ra.intel.com ([137.102.106.43]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 12:04:12 -0700 Date: Mon, 2 May 2022 12:04:05 -0700 (PDT) From: matthew.gerlach@linux.intel.com X-X-Sender: mgerlach@rhweight-WRK1 To: Rob Herring cc: "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, dinguyen@vger.kernel.org, robh+dt@vger.kernel.org, Krzysztof Kozlowski Subject: Re: [PATCH] arm64: dts: intel: add device tree for n6000 In-Reply-To: Message-ID: References: <20220502165818.4002157-1-matthew.gerlach@linux.intel.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On Mon, 2 May 2022, Rob Herring wrote: > On Mon, May 2, 2022 at 11:58 AM wrote: >> >> From: Matthew Gerlach >> >> Add a device tree for the n6000 instantiation of Agilex >> Hard Processor System (HPS). >> >> Signed-off-by: Matthew Gerlach >> --- >> arch/arm64/boot/dts/intel/Makefile | 1 + >> .../boot/dts/intel/socfpga_agilex_n6000.dts | 77 +++++++++++++++++++ >> 2 files changed, 78 insertions(+) >> create mode 100644 arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts >> >> diff --git a/arch/arm64/boot/dts/intel/Makefile b/arch/arm64/boot/dts/intel/Makefile >> index 0b5477442263..1425853877cc 100644 >> --- a/arch/arm64/boot/dts/intel/Makefile >> +++ b/arch/arm64/boot/dts/intel/Makefile >> @@ -1,5 +1,6 @@ >> # SPDX-License-Identifier: GPL-2.0-only >> dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_agilex_socdk.dtb \ >> socfpga_agilex_socdk_nand.dtb \ >> + socfpga_agilex_n6000.dtb \ > > Alphabetical order. Got it. > >> socfpga_n5x_socdk.dtb >> dtb-$(CONFIG_ARCH_KEEMBAY) += keembay-evm.dtb >> diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts >> new file mode 100644 >> index 000000000000..07f5a5983e5c >> --- /dev/null >> +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_n6000.dts >> @@ -0,0 +1,77 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* >> + * Copyright (C) 2021-2022, Intel Corporation >> + */ >> +#include "socfpga_agilex.dtsi" >> + >> +/ { >> + model = "SoCFPGA Agilex n6000"; >> + >> + aliases { >> + serial0 = &uart1; >> + serial1 = &uart0; >> + ethernet0 = &gmac0; >> + ethernet1 = &gmac1; >> + ethernet2 = &gmac2; >> + }; >> + >> + chosen { >> + stdout-path = "serial0:115200n8"; >> + }; >> + >> + memory { >> + device_type = "memory"; >> + /* We expect the bootloader to fill in the reg */ >> + reg = <0 0 0 0>; >> + }; >> + >> + soc { >> + clocks { >> + osc1 { >> + clock-frequency = <25000000>; >> + }; >> + }; >> + agilex_hps_bridges: bridge@80000000 { >> + compatible = "simple-bus"; >> + reg = <0x80000000 0x60000000>, >> + <0xf9000000 0x00100000>; >> + reg-names = "axi_h2f", "axi_h2f_lw"; >> + #address-cells = <0x2>; >> + #size-cells = <0x1>; >> + ranges = <0x00000000 0x00000000 0xf9000000 0x00001000>; >> + >> + uio_cp_eng@0xf9000000 { > > Unit addresses shouldn't have '0x' and the address is wrong as it > should match the child address (0). dtc will tell you this though you > need 'W=1'. Run this and schema checks and don't add new warnings. Thanks for the pointers. I will run with W=1 and run schema checks and submit a v2. > >> + compatible = "generic-uio"; > > NAK. Not documented and that's because this is not a h/w device. Got it. I will create a meaningful name for the h/w device and submit documentation. > >> + reg = <0x00000000 0x00000000 0x00001000>; >> + status = "okay"; > > That's the default. I will remove redundant status field. > >> + }; >> + }; >> + }; >> +}; >> + >> +&uart0 { >> + status = "okay"; >> +}; >> + >> +&uart1 { >> + status = "okay"; >> +}; >> + >> +&spi0 { >> + status = "okay"; >> + >> + spidev: spidev@0 { >> + status = "okay"; >> + compatible = "linux,spidev"; >> + spi-max-frequency = <25000000>; >> + reg = <0>; >> + }; >> +}; >> + >> +&watchdog0 { >> + status = "okay"; >> +}; >> + >> +&fpga_mgr { >> + status = "disabled"; >> +}; >> -- >> 2.25.1 >> >