From patchwork Sat Sep 24 23:59:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 9349405 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 35DC26077A for ; Sun, 25 Sep 2016 00:03:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BC7928F6D for ; Sun, 25 Sep 2016 00:03:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DCC628F70; Sun, 25 Sep 2016 00:03:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 42BC628F6D for ; Sun, 25 Sep 2016 00:03:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bnwrj-000502-Pd; Sun, 25 Sep 2016 00:00:19 +0000 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bnwre-0003oz-Od for linux-arm-kernel@lists.infradead.org; Sun, 25 Sep 2016 00:00:16 +0000 Received: by mail-pa0-x242.google.com with SMTP id my20so6792239pab.3 for ; Sat, 24 Sep 2016 16:59:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=jJUOq/e5AUvPStqKXH5xrXfxrOvSACFNtTSut/FfkEs=; b=ABjlvU4po3nJkjiIWRQ6omOayyoGHwfq8dUiIKYm8qRuDDcUxPNjbBVqphy68SHrAg hZLB1xb2tL9gp7nBabpHFLqh/eWNp3rlvI4ax54puU0FyWCMm5twJKlEbZ+sbkRtZjpB U/fuuNS1PohF2dFQOKcRnVbOUy79SOYkbsTsqNv5JW8kjOJnO1oETyw0t2ZHqsT3tcRM wghvqYyb62VK/oXgqO8NqLDEHURtoIKhxQPeNWTDBE6o0a0DQcomJZI7poCmpxzReW93 qCq392mbSu/h6Ga2mVDTw1Azjxatf5wELeZwWquutdSKwS+M6A1TbHluTDkfS8tNvWLn EKZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jJUOq/e5AUvPStqKXH5xrXfxrOvSACFNtTSut/FfkEs=; b=Y+glUbWQVgGqBVEjfCMLQufrkqmhlYE5+qJCnhloWgYbuEhw/lrt61UzhiqUVzzFS0 azQr4zXbSmTRfaQthA65MtXQXdFsDFXgP0St9htrIIV44tH+hcVBCstqJuCXgkrIMXUL ifg4SaSI/Rl1ftbDDUp3THthggegwl9s6yKLjsWoujPwd5/VHd9ri9BNW1Zq+7OSeBz6 IxaxDYSIxbItYCm7jJLNOKZsWsZrIh/qBsFzM02MBsD1ojG+IOn23hqo7Mzbh/UZL7qj 0KcFiweN7hoR5zbCi0TxpTek2KSE5SsaNWGxBXrG96CJ5RYZISQwrXZBaFd9krfZzvFJ HWlQ== X-Gm-Message-State: AE9vXwOW6FNDCaKpUcukWeJLErq5bokvZ2aN9hNi4v+ZRUuezqGdQ5Cb0Ci7bhIbPFGUVA== X-Received: by 10.66.245.204 with SMTP id xq12mr25399642pac.37.1474761592897; Sat, 24 Sep 2016 16:59:52 -0700 (PDT) Received: from chimagu (x234002.dynamic.ppp.asahi-net.or.jp. [122.249.234.2]) by smtp.gmail.com with ESMTPSA id ic2sm20815434pad.24.2016.09.24.16.59.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 24 Sep 2016 16:59:52 -0700 (PDT) Received: from iwamatsu by chimagu with local (Exim 4.87) (envelope-from ) id 1bnwrG-0008Mw-Lx; Sun, 25 Sep 2016 08:59:50 +0900 From: Nobuhiro Iwamatsu To: dinguyen@opensource.altera.com Subject: [PATCH v2] ARM: dts: socfpga: Add Macnica sodia board Date: Sun, 25 Sep 2016 08:59:45 +0900 Message-Id: <20160924235945.32128-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160924_170014_960926_926D1B65 X-CRM114-Status: GOOD ( 14.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: f.fainelli@gmail.com, Nobuhiro Iwamatsu , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for board based on the Altera Cyclone V SoC. This board has the following functions: - 1 GiB of DRAM - 1 Gigabit ethernet - 1 SD card slot - 1 USB gadget port - QSPI NOR Flash - I2C EEPROMs and I2C RTC - DVI output - Audio port This commit supports without QSPI, DVI and Audio. Signed-off-by: Nobuhiro Iwamatsu --- V2: move the PHY of setting to the Ethetnet PHY node level. arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/socfpga_cyclone5_sodia.dts | 123 +++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 arch/arm/boot/dts/socfpga_cyclone5_sodia.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index befcd26..7c5f0c3 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -696,6 +696,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) += \ socfpga_cyclone5_de0_sockit.dtb \ socfpga_cyclone5_sockit.dtb \ socfpga_cyclone5_socrates.dtb \ + socfpga_cyclone5_sodia.dtb \ socfpga_cyclone5_vining_fpga.dtb \ socfpga_vt.dtb dtb-$(CONFIG_ARCH_SPEAR13XX) += \ diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sodia.dts b/arch/arm/boot/dts/socfpga_cyclone5_sodia.dts new file mode 100644 index 0000000..9aaf413 --- /dev/null +++ b/arch/arm/boot/dts/socfpga_cyclone5_sodia.dts @@ -0,0 +1,123 @@ +/* + * Copyright (C) 2016 Nobuhiro Iwamatsu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "socfpga_cyclone5.dtsi" +#include +#include + +/ { + model = "Altera SOCFPGA Cyclone V SoC Macnica Sodia board"; + compatible = "altr,socfpga-cyclone5", "altr,socfpga"; + + chosen { + bootargs = "earlyprintk"; + stdout-path = "serial0:115200n8"; + }; + + memory { + name = "memory"; + device_type = "memory"; + reg = <0x0 0x40000000>; + }; + + aliases { + ethernet0 = &gmac1; + }; + + regulator_3_3v: 3-3-v-regulator { + compatible = "regulator-fixed"; + regulator-name = "3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + leds: gpio-leds { + compatible = "gpio-leds"; + + hps_led0 { + label = "hps:green:led0"; + gpios = <&portb 12 GPIO_ACTIVE_LOW>; + }; + + hps_led1 { + label = "hps:green:led1"; + gpios = <&portb 13 GPIO_ACTIVE_LOW>; + }; + + hps_led2 { + label = "hps:green:led2"; + gpios = <&portb 14 GPIO_ACTIVE_LOW>; + }; + + hps_led3 { + label = "hps:green:led3"; + gpios = <&portb 15 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gmac1 { + status = "okay"; + phy-mode = "rgmii"; + phy = <&phy0>; + + mdio0 { + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@0 { + reg = <0>; + rxd0-skew-ps = <0>; + rxd1-skew-ps = <0>; + rxd2-skew-ps = <0>; + rxd3-skew-ps = <0>; + rxdv-skew-ps = <0>; + rxc-skew-ps = <3000>; + txen-skew-ps = <0>; + txc-skew-ps = <3000>; + }; + }; +}; + +&gpio1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; + + eeprom@51 { + compatible = "atmel,24c32"; + reg = <0x51>; + pagesize = <32>; + }; + + rtc@68 { + compatible = "dallas,ds1339"; + reg = <0x68>; + }; +}; + +&mmc0 { + cd-gpios = <&portb 18 0>; + vmmc-supply = <®ulator_3_3v>; + vqmmc-supply = <®ulator_3_3v>; + status = "okay"; +}; + +&usb1 { + status = "okay"; +};