Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4654673pxb; Tue, 5 Oct 2021 07:40:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7vJRfnar95xTe0iwwHRaJ4O35EhpqWx07ccfIKfwmfDYAuhPaOx0F6tjRkjEzckSNK5xq X-Received: by 2002:a17:902:edc3:b0:13c:957d:63fa with SMTP id q3-20020a170902edc300b0013c957d63famr5513765plk.79.1633444800113; Tue, 05 Oct 2021 07:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633444800; cv=none; d=google.com; s=arc-20160816; b=K8wDfMMGJHOeTGOG6+CCBTs3GNvfOjneR8AJ+3xr7oC9v+5fPsFAMrVefWaeXfPgLp Drb5FLE+4lsNAciqPWADkBgQJaSRXdwHL1qhmkBzSk7eXFmlXXe9Y4SnExFtLU842ElR UYOz+fAo2+dVkVABcjStkImeRnVw+Lhk2PZqDjFEsp34nUKAOJ6vbfUEzNXJWlYIUAVt WtlqeeSAbSm/X0IlKAjy0hF4cmMtVJUnhXVI+77zGeO+wiybReirBrwWMB7vOK5Ege7z Ox0pJGCYc9R6D011C+Yo47uaIBfzSu/HdcOQdl8xhjHHVf8RS9BkR5kUFF1+3jwwUW9V U7IA== 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=Bft5UO0IvHnnqu7NpeleauDM+2TITH2jaKZbwnmA6VM=; b=X/z12qZfWLan2W+LYGwLNQ0eJ1jaPfIn7jHazoJfxcKwJNlHfjKSAr17869DqG/VXg 3dA5F48ixLnSyoq87o228sI2Wawvwp6Zv9yo01ACVWoXvGrqoM6X5O3Vdp5CyyVe85M4 nkUP0drwS0ajw033YKXPAqiKR8mjSYTUaipOVRg/Ws4sSQfhInjDZQebpNhjM5p5IAiZ HjSlrGt0OxeBXlJAIfNq52buixEC3Si4WYDeNHtdinhlU1AJX7fdo6zdjO9UXZvnoqf0 Zn+2U0YpaTmRTfde63ZKJiNwXcfEA7nK+3lWdiNdswCFmo4PLIrtkuz8nor5vwtLsNh6 EGVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=UU9L+06t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o18si2084693pjq.47.2021.10.05.07.39.46; Tue, 05 Oct 2021 07:40:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=UU9L+06t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235700AbhJEOkW (ORCPT + 99 others); Tue, 5 Oct 2021 10:40:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235306AbhJEOkR (ORCPT ); Tue, 5 Oct 2021 10:40:17 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A636BC061749 for ; Tue, 5 Oct 2021 07:38:26 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id x27so87337425lfu.5 for ; Tue, 05 Oct 2021 07:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Bft5UO0IvHnnqu7NpeleauDM+2TITH2jaKZbwnmA6VM=; b=UU9L+06t7QQJbnIFm6uKYIL3+oggbtuy1cE6fNaxN5loz+ex+Wx1xNM0Y61247WKKq t5Z+Q7lDLXzCH4RFCU2qjmOSqghXPGLyiEfq5cFrAcCd2Dtp3giGhL0aYbaeH2ZbQkh+ pBVgWY2c7yWewZ76+sPWg3r5Y47Ll/aR1h+PRecw3yYibWciEUrsXmyfEVCUYQstqFXb EOl9cEQZteQwpvPuEVEp/opTKIeazXBV6PD+n7k07E2+5qnKaiOcjXlEXlNC+6iKasjO XhSPAZOpi9xso7qEzN/vIQsecPJrYLN2XLDfNyWcZ/zig5mNwz5Rj5YGIAoj/pVNSsN7 wuAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Bft5UO0IvHnnqu7NpeleauDM+2TITH2jaKZbwnmA6VM=; b=v8VnTfYCtad0iX4ZSDNG4pIPBa+ejQZpgnyijnEIVNREnzmIx23l6dPw2CerMzGGx7 SuUeGp+Xinjj7Qfuq4cbumqSdGFUD4dZ4D2gd2WqDr19l0RMlGujKGdpF8plgetxN5NI HUSz2DH90pHLi2nLnt0jxVElq4qVfRQepl1pnNRFz5+7GoDjsB6L8igAz/WbI/6j2zRS ScKJDbEq9aw3dBJuIu4s8Af6eE++ji4Ca9/aHX916hD0zWgAC2j6zDUKkbHLxBvHIOMy Hhl4ALS6hlbVpW8dyqX2tRqpKMXWdBJ6pgVMLxzOOU/ur/G1gOJuSbubCdJCPsIqU6lL dI4w== X-Gm-Message-State: AOAM533veax3FvHIUynyLnlkdh8ygPqNOtDuvhMYSIZ8scURADtfNjkY lHaaJkz0Msuz5ngfdn3v75GEbg== X-Received: by 2002:a05:6512:21c:: with SMTP id a28mr3890008lfo.626.1633444701917; Tue, 05 Oct 2021 07:38:21 -0700 (PDT) Received: from grasshopper.googchameleon.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id u25sm1973835lfc.176.2021.10.05.07.38.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 07:38:21 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Anikiel?= To: jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, robh+dt@kernel.org, p.zabel@pengutronix.de, arnd@arndb.de, olof@lixom.net, soc@kernel.org, dinguyen@kernel.org, p.yadav@ti.com, Tudor.Ambarus@microchip.com Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, alexandre.belloni@bootlin.com, sre@kernel.org, thunder.leizhen@huawei.com, Jonathan.Cameron@huawei.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ka@semihalf.com, tn@semihalf.com, jam@semihalf.com, amstan@google.com, =?UTF-8?q?Pawe=C5=82=20Anikiel?= , Joanna Brozek , Mariusz Glebocki , Tomasz Gorochowik , Maciej Mikunda Subject: [PATCH v2 4/4] dts: socfpga: Add Mercury+ AA1 devicetree Date: Tue, 5 Oct 2021 16:37:48 +0200 Message-Id: <20211005143748.2471647-5-pan@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211005143748.2471647-1-pan@semihalf.com> References: <20211005143748.2471647-1-pan@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the Mercury+ AA1 module for Arria 10 SoC FPGA. Signed-off-by: Paweł Anikiel Signed-off-by: Joanna Brozek Signed-off-by: Mariusz Glebocki Signed-off-by: Tomasz Gorochowik Signed-off-by: Maciej Mikunda --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/socfpga_arria10_mercury_aa1.dts | 111 ++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7e0934180724..0a7809eb3795 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1078,6 +1078,7 @@ dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += \ socfpga_arria10_socdk_nand.dtb \ socfpga_arria10_socdk_qspi.dtb \ socfpga_arria10_socdk_sdmmc.dtb \ + socfpga_arria10_mercury_aa1.dtb \ socfpga_cyclone5_chameleon96.dtb \ socfpga_cyclone5_mcvevk.dtb \ socfpga_cyclone5_socdk.dtb \ diff --git a/arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dts b/arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dts new file mode 100644 index 000000000000..1e11168b80db --- /dev/null +++ b/arch/arm/boot/dts/socfpga_arria10_mercury_aa1.dts @@ -0,0 +1,111 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; + +#include "socfpga_arria10.dtsi" + +/ { + + model = "Enclustra Mercury AA1"; + compatible = "altr,socfpga-arria10", "altr,socfpga"; + + aliases { + ethernet0 = &gmac0; + serial1 = &uart1; + }; + + memory@0 { + name = "memory"; + device_type = "memory"; + reg = <0x0 0x80000000>; /* 2GB */ + }; + + chosen { + stdout-path = "serial1:115200n8"; + }; +}; + +&eccmgr { + sdmmca-ecc@ff8c2c00 { + compatible = "altr,socfpga-sdmmc-ecc"; + reg = <0xff8c2c00 0x400>; + altr,ecc-parent = <&mmc>; + interrupts = <15 IRQ_TYPE_LEVEL_HIGH>, + <47 IRQ_TYPE_LEVEL_HIGH>, + <16 IRQ_TYPE_LEVEL_HIGH>, + <48 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + +&gmac0 { + phy-mode = "rgmii"; + phy-addr = <0xffffffff>; /* probe for phy addr */ + + max-frame-size = <3800>; + status = "okay"; + + phy-handle = <&phy3>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + phy3: ethernet-phy@3 { + txd0-skew-ps = <0>; /* -420ps */ + txd1-skew-ps = <0>; /* -420ps */ + txd2-skew-ps = <0>; /* -420ps */ + txd3-skew-ps = <0>; /* -420ps */ + rxd0-skew-ps = <420>; /* 0ps */ + rxd1-skew-ps = <420>; /* 0ps */ + rxd2-skew-ps = <420>; /* 0ps */ + rxd3-skew-ps = <420>; /* 0ps */ + txen-skew-ps = <0>; /* -420ps */ + txc-skew-ps = <1860>; /* 960ps */ + rxdv-skew-ps = <420>; /* 0ps */ + rxc-skew-ps = <1680>; /* 780ps */ + reg = <3>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + busno = <1>; + isl12022: isl12022@6f { + status = "okay"; + compatible = "isil,isl12022"; + reg = <0x6f>; + }; +}; + +/* Following mappings are taken from arria10 socdk dts */ +&mmc { + status = "okay"; + cap-sd-highspeed; + broken-cd; + bus-width = <4>; +}; + +&osc1 { + clock-frequency = <33330000>; +}; + +&uart1 { + status = "okay"; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; +}; -- 2.25.1