From patchwork Sun Dec 28 13:13:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Mulvihill X-Patchwork-Id: 424313 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8D6CE1400DE for ; Mon, 29 Dec 2014 00:13:52 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id EB7F228BCF1; Sun, 28 Dec 2014 14:11:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 304F228BCD2 for ; Sun, 28 Dec 2014 14:11:36 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 28 Dec 2014 14:11:35 +0100 (CET) Received: by mail-wg0-f43.google.com with SMTP id l18so17158896wgh.30 for ; Sun, 28 Dec 2014 05:13:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:content-type :content-transfer-encoding:mime-version; bh=W+0pn+ifH8tQhQtRVJiEzMOFuVMCy5l4v85gx4sIshA=; b=w82PEhCFXLRu4SMv7WsbWW8BJ2T8NN4gMZcQf4QdS2yjjlIlgDrlhN73kgyQyZBD1p K4ThfvjJerzEMUIIV4/0M0Zkmv6Ydo5Hr2dR7mqWM5S5ohde87Ow4Zml/vlJIODG6F+e Ma03bKBof2UXcnvU2mTvEqLtXTFc5RuvJwK7CfsHBSTdJwScd4ILPZQ4TghpzIERuPxh 4/lOljsVZfSEwcu9bSWXJ93r2NLNupXFhvqmUujQeCz84YbVaJNxZSHS2EMkZCV9D59A RY5M2FQr8ZzVH+FACwmCoZhATGdOx9f+9Is9N1mbn+TM04d1sE3UUzRyeqhPOm2x5buk /TPQ== X-Received: by 10.195.12.35 with SMTP id en3mr101716870wjd.129.1419772415585; Sun, 28 Dec 2014 05:13:35 -0800 (PST) Received: from [10.7.1.191] ([87.114.47.195]) by mx.google.com with ESMTPSA id t12sm33025336wju.19.2014.12.28.05.13.34 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 28 Dec 2014 05:13:35 -0800 (PST) Message-ID: <1419772414.5692.96.camel@merveille.lan> From: Ben Mulvihill To: openwrt-devel@lists.openwrt.org Date: Sun, 28 Dec 2014 14:13:34 +0100 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH 1/3] lantiq: BT Home Hub3A - device tree X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" BT Home Hub3A - device tree Signed-off-by: Ben Mulvihill diff -uprN a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts 1970-01-01 01:00:00.000000000 +0100 +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts 2014-12-27 11:36:15.000000000 +0100 @@ -0,0 +1,210 @@ +/dts-v1/; + +/include/ "ar9.dtsi" + +/ { + model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */ + + chosen { + bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; + + memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */ + reg = <0x0 0x4000000>; + }; + + sram@1F000000 { + vmmc@107000 { + status = "okay"; + gpios = <&gpio 31 0>; + }; + }; + + fpi@10000000 { + #address-cells = <1>; + #size-cells = <1>; + localbus@0 { + #address-cells = <2>; + #size-cells = <1>; + ranges = <0 0 0x0 0x3ffffff /* addrsel0 */ + 1 0 0x4000000 0x4000010>; /* addsel1 */ + compatible = "lantiq,localbus", "simple-bus"; + + nand-parts@0 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */ + compatible = "gen_nand", "lantiq,nand-xway"; + lantiq,cs = <1>; + bank-width = <2>; + reg = <1 0x0 0x2000000 >; + #address-cells = <1>; + #size-cells = <1>; + req-mask = <0x1>; /* PCI request lines to mask during NAND access */ + + partition@0 { + label = "preboot"; + reg = <0x00000 0x8000>; + read-only; + }; + partition@8000 { + label = "u-boot"; + reg = <0x8000 0x05c000>; + read-only; + }; + partition@64000 { + label = "uboot-config"; + reg = <0x64000 0x004000>; + read-only; + }; + ath9k_cal: partition@68000 { + label = "art-copy"; + reg = <0x68000 0x004000>; + read-only; + }; + partition@6c000 { + label = "kernel"; + reg = <0x6c000 0x200000>; + }; + partition@26c000 { + label = "ubi"; + reg = <0x26c000 0x1d94000>; + }; + }; + + ath9k_eep { + compatible = "ath9k,eeprom"; + ath,eep-flash = <&ath9k_cal 0x0000>; + ath,mac-offset = <0x10c>; + ath,pci-slot = <14>; + ath,eep-endian; + }; + }; + + gpio: pinmux@E100B10 { + compatible = "lantiq,pinctrl-xr9"; + pinctrl-names = "default"; + pinctrl-0 = <&state_default>; + + #gpio-cells = <2>; + gpio-controller; + reg = <0xE100B10 0xA0>; + + state_default: pinmux { + nand_out { + lantiq,groups = "nand cle", "nand ale"; + lantiq,function = "ebu"; + lantiq,output = <1>; + lantiq,open-drain = <0>; + lantiq,pull = <0>; + }; + nand_cs1 { + lantiq,groups = "nand cs1"; + lantiq,function = "ebu"; + lantiq,open-drain = <0>; + lantiq,pull = <0>; + }; + + pci_in { + lantiq,groups = "req1"; + lantiq,function = "pci"; + lantiq,output = <0>; + lantiq,open-drain = <1>; + lantiq,pull = <2>; + }; + pci_out { + lantiq,groups = "gnt1"; + lantiq,function = "pci"; + lantiq,output = <1>; + lantiq,open-drain = <0>; + lantiq,pull = <0>; + }; + + pci_rst { + lantiq,pins = "io21"; + lantiq,output = <1>; + lantiq,open-drain = <0>; + }; + }; + }; + + etop@E180000 { + phy-mode = "rgmii"; + }; + + ifxhcd@E101000 { + status = "okay"; + gpios = <&gpio 33 0>; + }; + + pci@E105400 { + status = "okay"; + gpio-reset = <&gpio 21 0>; + }; + + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <100>; + reset { + label = "reset"; + gpios = <&gpio 54 1>; + linux,code = <0x198>; + }; + restart { + label = "restart"; + gpios = <&gpio 52 1>; + linux,code = <0x198>; + }; + wps { + label = "wps"; + gpios = <&gpio 53 1>; + linux,code = <0x211>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + wireless-red { + label = "soc:red:wireless"; + gpios = <&gpio 2 1>; + }; + wireless-orange { + label = "soc:orange:wireless"; + gpios = <&gpio 6 1>; + }; + wireless-blue { + label = "soc:blue:wireless"; + gpios = <&gpio 9 1>; + }; + + broadband-red { + label = "soc:red:broadband"; + gpios = <&gpio 11 1>; + }; + broadband-orange { + label = "soc:orange:broadband"; + gpios = <&gpio 0 1>; + }; + broadband-blue { + label = "soc:blue:broadband"; + gpios = <&gpio 12 1>; + }; + + power-red { + label = "soc:red:power"; + gpios = <&gpio 14 1>; + }; + power-orange { + label = "soc:orange:power"; + gpios = <&gpio 5 1>; + }; + power-blue { + label = "soc:blue:power"; + gpios = <&gpio 1 1>; + }; + }; + +}; +