Merge tag 'arm-soc/for-4.8/devicetree-part2' of http://github.com/Broadcom/stblinux...
authorArnd Bergmann <arnd@arndb.de>
Thu, 7 Jul 2016 13:28:37 +0000 (15:28 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 7 Jul 2016 13:28:37 +0000 (15:28 +0200)
Merge "additional Broadcom ARM-based SoC Device Tree changes" from Florian Fainelli:

- Lubomir updates all BCM2835 (Raspberry Pi family) Device Tree source files with
  their proper information about the on-board USB Ethernet adapter so there is
  appropriate binding between this USB device and a device_node (useful for MAC
  address fetching and stuff)

- Raveendra adds the ADC controller Device Tree nodes to the Cygnus SoC device
  tree include files

- Rafal updates the BCM5301x Device Tree by separating how we specify the NAND
  chip-select information in a first change and then fixes the NAND controller
  ECC configuration for the D-Link DIR-885L

- Florian adds support for the BCM953012ER reference board, adds the HW random
  number generator DT node and adds proper memory node information to the
  BCM958625HR reference board

* tag 'arm-soc/for-4.8/devicetree-part2' of http://github.com/Broadcom/stblinux:
  ARM: dts: NSP: Specify RAM amount for BCM958625HR board
  ARM: BCM5301X: Fix NAND ECC parameters for D-Link DIR-885L
  ARM: BCM5301X: Specify NAND chip select and ECC in separated files
  ARM: dts: Cygnus: Add Broadcom iproc-static-adc DT node
  ARM: dts: BCM5301x: Add BCM953012ER board
  ARM: dts: BCM5301x: Add RNG Device Tree node
  ARM: bcm2835: dt: Add the ethernet to the device trees

16 files changed:
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/bcm-cygnus.dtsi
arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
arch/arm/boot/dts/bcm2835-rpi-b.dts
arch/arm/boot/dts/bcm2836-rpi-2-b.dts
arch/arm/boot/dts/bcm283x-rpi-smsc9512.dtsi [new file with mode: 0644]
arch/arm/boot/dts/bcm283x-rpi-smsc9514.dtsi [new file with mode: 0644]
arch/arm/boot/dts/bcm283x.dtsi
arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi [new file with mode: 0644]
arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi
arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi [new file with mode: 0644]
arch/arm/boot/dts/bcm5301x.dtsi
arch/arm/boot/dts/bcm953012er.dts [new file with mode: 0644]
arch/arm/boot/dts/bcm958625hr.dts

index 8f780c75ee3acea5f02f37b9c6abffcb278bc9f5..3cc5f0841c00d0a7c842f2bdaf941d1420fafb93 100644 (file)
@@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
        bcm47094-dlink-dir-885l.dtb \
        bcm94708.dtb \
        bcm94709.dtb \
+       bcm953012er.dtb \
        bcm953012k.dtb
 dtb-$(CONFIG_ARCH_BCM_63XX) += \
        bcm963138dvt.dtb
index b42fe5596b94a0d6c0dd5e95eb46acbf84478543..fabc9f36c4084caab6e88b7bac0f30363bdfe3b5 100644 (file)
                        interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
                        status = "disabled";
                };
+
+               adc: adc@180a6000 {
+                       compatible = "brcm,iproc-static-adc";
+                       #io-channel-cells = <1>;
+                       io-channel-ranges;
+                       adc-syscon = <&ts_adc_syscon>;
+                       clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
+                       clock-names = "tsc_clk";
+                       interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
+               };
        };
 };
index 57d313b6afaf6baeea75ff9894ff700d47ff038d..d5fdb8e761a39ef4ac063c916e9f889342b525e7 100644 (file)
@@ -1,6 +1,7 @@
 /dts-v1/;
 #include "bcm2835.dtsi"
 #include "bcm2835-rpi.dtsi"
+#include "bcm283x-rpi-smsc9514.dtsi"
 
 / {
        compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
index cf2774ec0834167bd6345e6023cdfbcb698fef08..bfc4bd9b7733f41b05c40238be120bcc96c157f7 100644 (file)
@@ -1,6 +1,7 @@
 /dts-v1/;
 #include "bcm2835.dtsi"
 #include "bcm2835-rpi.dtsi"
+#include "bcm283x-rpi-smsc9512.dtsi"
 
 / {
        compatible = "raspberrypi,model-b-rev2", "brcm,bcm2835";
index 8b15f9c356438a36f62cf130496a7f7b6ba1933a..0371bb7374b88c63db7acc17300f07d4a96996b2 100644 (file)
@@ -1,6 +1,7 @@
 /dts-v1/;
 #include "bcm2835.dtsi"
 #include "bcm2835-rpi.dtsi"
+#include "bcm283x-rpi-smsc9512.dtsi"
 
 / {
        compatible = "raspberrypi,model-b", "brcm,bcm2835";
index c4743f42237be14b0526bbe77b2724bff09ab963..29e1cfe8eb142bd1af81e5b1869b8c406c46ad0b 100644 (file)
@@ -1,6 +1,7 @@
 /dts-v1/;
 #include "bcm2836.dtsi"
 #include "bcm2835-rpi.dtsi"
+#include "bcm283x-rpi-smsc9514.dtsi"
 
 / {
        compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
diff --git a/arch/arm/boot/dts/bcm283x-rpi-smsc9512.dtsi b/arch/arm/boot/dts/bcm283x-rpi-smsc9512.dtsi
new file mode 100644 (file)
index 0000000..12c981e
--- /dev/null
@@ -0,0 +1,19 @@
+/ {
+       aliases {
+               ethernet = &ethernet;
+       };
+};
+
+&usb {
+       usb1@1 {
+               compatible = "usb424,9512";
+               reg = <1>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethernet: usbether@1 {
+                       compatible = "usb424,ec00";
+                       reg = <1>;
+               };
+       };
+};
diff --git a/arch/arm/boot/dts/bcm283x-rpi-smsc9514.dtsi b/arch/arm/boot/dts/bcm283x-rpi-smsc9514.dtsi
new file mode 100644 (file)
index 0000000..3f0a56e
--- /dev/null
@@ -0,0 +1,19 @@
+/ {
+       aliases {
+               ethernet = &ethernet;
+       };
+};
+
+&usb {
+       usb1@1 {
+               compatible = "usb424,9514";
+               reg = <1>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethernet: usbether@1 {
+                       compatible = "usb424,ec00";
+                       reg = <1>;
+               };
+       };
+};
index 10b27b912bac74b8193ac65c8397bd679624f8e4..b98252232d200ab476c2e8eaf8dc07e637ffc62f 100644 (file)
                        compatible = "brcm,bcm2835-usb";
                        reg = <0x7e980000 0x10000>;
                        interrupts = <1 9>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                };
 
                v3d: v3d@7ec00000 {
index 50cf80489cbf1e203abf9829a958eb0bd502b2e8..c8c0b3616935f7ca6a400c23627a2f966aade535 100644 (file)
@@ -10,7 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
-#include "bcm5301x-nand-cs0-bch8.dtsi"
+#include "bcm5301x-nand-cs0-bch1.dtsi"
 
 / {
        compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
diff --git a/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi
new file mode 100644 (file)
index 0000000..24b099c
--- /dev/null
@@ -0,0 +1,15 @@
+/*
+ * Broadcom Northstar NAND.
+ *
+ * Copyright (C) 2016 Rafał Miłecki <rafal.milecki@gmail.com>
+ *
+ * Licensed under the ISC license.
+ */
+
+#include "bcm5301x-nand-cs0.dtsi"
+
+&nandcs {
+       nand-ecc-algo = "bch";
+       nand-ecc-strength = <1>;
+       nand-ecc-step-size = <512>;
+};
index d10781e36f54e85aaf5edc65a51862f3caf6de90..9a9630ded306a2f96e3f581f9761ed2e4cedde53 100644 (file)
@@ -9,16 +9,10 @@
  * Licensed under the GNU/GPL. See COPYING for details.
  */
 
-/ {
-       nand@18028000 {
-               nandcs@0 {
-                       compatible = "brcm,nandcs";
-                       reg = <0>;
-                       #address-cells = <1>;
-                       #size-cells = <1>;
+#include "bcm5301x-nand-cs0.dtsi"
 
-                       nand-ecc-strength = <8>;
-                       nand-ecc-step-size = <512>;
-               };
-       };
+&nandcs {
+       nand-ecc-algo = "bch";
+       nand-ecc-strength = <8>;
+       nand-ecc-step-size = <512>;
 };
diff --git a/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi b/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
new file mode 100644 (file)
index 0000000..1684951
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Broadcom Northstar NAND.
+ *
+ * Copyright (C) 2015 Hauke Mehrtens <hauke@hauke-m.de>
+ *
+ * Licensed under the GNU/GPL. See COPYING for details.
+ */
+
+/ {
+       nand@18028000 {
+               nandcs: nandcs@0 {
+                       compatible = "brcm,nandcs";
+                       reg = <0>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+               };
+       };
+};
index a20ebd2ac9a2825e52251c04e7364a36e352bd71..8af47913b3b441b0903697c968b8600ec0ac497b 100644 (file)
                /* ports are defined in board DTS */
        };
 
+       rng: rng@18004000 {
+               compatible = "brcm,bcm5301x-rng";
+               reg = <0x18004000 0x14>;
+       };
+
        nand: nand@18028000 {
                compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
                reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
diff --git a/arch/arm/boot/dts/bcm953012er.dts b/arch/arm/boot/dts/bcm953012er.dts
new file mode 100644 (file)
index 0000000..0a9abec
--- /dev/null
@@ -0,0 +1,104 @@
+/*
+ *  BSD LICENSE
+ *
+ *  Copyright(c) 2016 Broadcom. All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions
+ *  are met:
+ *
+ *    * Redistributions of source code must retain the above copyright
+ *      notice, this list of conditions and the following disclaimer.
+ *    * Redistributions in binary form must reproduce the above copyright
+ *      notice, this list of conditions and the following disclaimer in
+ *      the documentation and/or other materials provided with the
+ *      distribution.
+ *    * Neither the name of Broadcom Corporation nor the names of its
+ *      contributors may be used to endorse or promote products derived
+ *      from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/dts-v1/;
+
+#include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
+
+/ {
+       model = "NorthStar Enterprise Router (BCM953012ER)";
+       compatible = "brcm,bcm953012er", "brcm,brcm53012", "brcm,bcm4708";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory {
+               reg = <0x00000000 0x8000000>;
+       };
+
+       gpio-keys {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               wps {
+                       label = "WPS";
+                       linux,code = <KEY_WPS_BUTTON>;
+                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
+               };
+
+               restart {
+                       label = "Reset";
+                       linux,code = <KEY_RESTART>;
+                       gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
+               };
+       };
+};
+
+&uart0 {
+       status = "okay";
+};
+
+&spi_nor {
+       status = "okay";
+};
+
+&srab {
+       status = "okay";
+
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               port@0 {
+                       reg = <0>;
+                       label = "port0";
+               };
+
+               port@1 {
+                       reg = <1>;
+                       label = "port1";
+               };
+
+               port@5 {
+                       reg = <5>;
+                       label = "cpu";
+                       ethernet = <&gmac0>;
+               };
+       };
+};
index d82cc96db195c9d3ef926d6863935548f6f276e4..03b8bbeb694fcb65c2abf5db7903b5094a9030dc 100644 (file)
        chosen {
                stdout-path = "serial0:115200n8";
        };
+
+       memory {
+               reg = <0x60000000 0x20000000>;
+       };
 };
 
 &nand {
This page took 0.057054 seconds and 5 git commands to generate.