Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp235372iob; Mon, 2 May 2022 18:03:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDT9Q92g25dk8xutJhHv6Puga/OpmTtc9q4AWZ4opHFSNrqjzYPM2OUC2i/KZYWOfEMxAE X-Received: by 2002:a17:902:e84d:b0:15e:b0af:477b with SMTP id t13-20020a170902e84d00b0015eb0af477bmr3921308plg.49.1651539838616; Mon, 02 May 2022 18:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539838; cv=none; d=google.com; s=arc-20160816; b=xtqbMA2Zky5P9380fqamV/dLToxHDoyBbcegEp7wiWW19qgERZrT1IpyJ9Tj7qg644 r3nG3KTZUzzAdGZHlnUcH+CZVQFzx8uUX286mzomtI4iDeEFZaFPZq6cyonhytsJj2yg lpazvA+swAvw2c0g8Tj9uDZXe6EWNLxUnWPrFMWodDDzC7tpYNHe2UW9LF+Bk6s6p88N wwmc7jdbN8GmspbTOE8bGRFIbrUtPZK8rMmxUwK7lfb91voQJlTDMhFmvu2kz7SACSjO Cew+kbKHQIAFISiTz9dzcHL38v8yO7kn9yIJLplu42hLhKKFacsgcuro5owN+wCV3iCO 4eZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IDF+DJpueg1My4Yx26yg4qXR71tZpqa9Y9pu55rR1I0=; b=FtN8kyMrFGCrxc/mPh2BL1j27wSXMaI7AmV/ZQ5JXIIVGlOYcgpooLJG5T9rJcqfZC yYY3oAWHruBFOUx211OSHUE2j3HaRbDQ+s3dlLGmspIsBVepVq5MiAu1ZxCEe5NUrQbB 5f6nBt+YHjOsEZ1kjWmeuJ/zmsYJmj4yCjYVnjnDpDn67NdEgdptecnvoVbTrBm6BScy KaMBXxt5LQRlrahFA2db/Sy2hYRFyiNztx+nP3yfJ5wts/xAz8ojLO1IUJUYi2f/uyP7 mYZeMNO6KNC1PYR6S/7fJ02+rdV8+X3XTGWrGmW+KuBOoS+29y8SLo3Tscrm/DQapntc nMhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HVQdD5ET; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k35-20020a635a63000000b003c1d54ffc57si7412370pgm.396.2022.05.02.18.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HVQdD5ET; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 914DD4C793; Mon, 2 May 2022 17:47:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386585AbiEBRQS (ORCPT + 99 others); Mon, 2 May 2022 13:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242903AbiEBRQR (ORCPT ); Mon, 2 May 2022 13:16:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C80B4627B; Mon, 2 May 2022 10:12:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6419661307; Mon, 2 May 2022 17:12:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4AC0C385AC; Mon, 2 May 2022 17:12:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651511565; bh=F4A/7EYGFEZrN9M1/Wu0JMGDPGLaRN8iNpkNaFcYLn4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HVQdD5ETXp+x2uaRabpPzAVsPDBGswx4EsgZzOWr4HhCJrQvl8HQHpHNXZZIqdfgF GCRatzouZgTdWnuiDMBWeTP8+VnaxQvvXbJHIrFo6XOBDkWpScEi/0yM/5kwSOkiDD UBejt4S3hXRhz4SUzDimE6aFOqd/uTaxgyMt1GuTAUAsODI3v3wDbyRhOv6TaiMOYL g04/9otO0978IaAHmLG/zNSHukXV4ojB35fvPsOOl21gBrBp02FeIiUzmUX9qZMWgR eaj3Sf7+U1ztyPWJiStP8I+u0OpMsZ3ijPHnmCwhIq1y8fEv7pQPPV8m5l8MbLtcZZ tqHsO8rGG9fFw== Received: by mail-pg1-f172.google.com with SMTP id q76so9085676pgq.10; Mon, 02 May 2022 10:12:45 -0700 (PDT) X-Gm-Message-State: AOAM533tj8Eh9RKSo5wSNZOALq9AkdQmV9lz+Z0OfnylWBmmfXpbIph6 Ec1SsORtMw97UKD5xysQ8Cb4/iPSjqXNOXNCgQ== X-Received: by 2002:a05:6a00:10d0:b0:4f7:5af4:47b6 with SMTP id d16-20020a056a0010d000b004f75af447b6mr12481460pfu.6.1651511565254; Mon, 02 May 2022 10:12:45 -0700 (PDT) MIME-Version: 1.0 References: <20220502165818.4002157-1-matthew.gerlach@linux.intel.com> In-Reply-To: <20220502165818.4002157-1-matthew.gerlach@linux.intel.com> From: Rob Herring Date: Mon, 2 May 2022 12:12:33 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: intel: add device tree for n6000 To: matthew.gerlach@linux.intel.com Cc: "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, dinguyen@vger.kernel.org, robh+dt@vger.kernel.org, Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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, 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. > 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. > + compatible = "generic-uio"; NAK. Not documented and that's because this is not a h/w device. > + reg = <0x00000000 0x00000000 0x00001000>; > + status = "okay"; That's the default. > + }; > + }; > + }; > +}; > + > +&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 >