Commit 1b188329 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'arm-soc/for-4.12/devicetree' of http://github.com/Broadcom/stblinux into next/dt

Pull "Broadcom devicetree changes for 4.12" from Florian Fainelli:

This pull request contains Broadcom ARM-based SoCs Device Tree updates for
4.12, please pull the following:

- Rafal:

	* adds basic support for the Linksys EA9200, Linksys EA6300 V1, Linksys
	  EA9500, TP-Link Archer C5 V2 which are all based on BCM470x SoCs with
	  a bunch of BCM43602 radios.

	* updates the BCM5301X DTS and DTS include file and moves the serial
	  console parameters to the DTS include file since all BCM5301X that we have so
	  far are consistent in using the same UART. He also does the same for the
	  BCM53573 DTS.

	* makes some updates to the Tenda AC9 platform by describing its
	  PCIe controllers and endpoints in order to be able to represent GPIOs attached
	  to the on-chip Wi-Fi module. Once done, he adds the 2Ghz LED which is connected
	  to one of these GPIOs.

	* re-licenses the DTS files he created to the ISC license

	* removes the use of the non-existend "default-off" LED trigger in the
	  BCM53573 and BCM5301X DTS files

- Aditya adds missing Netgear R8000 LEDS and keys for WAN status LEDS and brightness

- Jon:
	* adds NAND controller Device Tree nodes to the BCM953012K reference board

  	* converts the BCM5301X SoC to use the recently introduced Broadcom QSPI controller
  	  Device Tree nodes.

	* fixes the GIC PPI interrupt flags that the kernel now
  	  reports about.

	* adds ARM TWD watchdog entries to the BCM5301X DTS include file
  	* adds I2C entries to the BCM5301X DTS include files.

	* disables i2c by default in the Northstar Plus DTS include file, and
	 ,enables it at the board level instead.

	* adds USB (OHCI & EHCI) Device Tree nodes to the Northstar Plus DTS
	  include files.

- Steven adds the mailbox (PDC) unit and the crytographic unit (SPU) to the
  Broadcom Northstar Plus SoC DTS include file. Steven also adds proper ethernet
  aliases to the BCM53012HR board since some bootloaders require that for MAC address
  patching.

- Eric adds the DSI and its corresponding clock nodes to the BCM283x DTS files
  but leaves them disabled by default (overlays should take care of enabling it)

- Boris adds support for HDMI audio and related DMA channels to the BCM283x SoCs

- Gerd adds support for the BCM2835 specific SDHCI controller to the BCM283x SoCs

- Rob fixes the iProc msi-controller name and unit address now that DTC can produce
  additional errors

* tag 'arm-soc/for-4.12/devicetree' of http://github.com/Broadcom/stblinux: (27 commits)
  ARM: dts: bcm: fix msi-controller name and unit address
  ARM: dts: BCM53573: Specify serial console parameters
  ARM: dts: BCM5301X: Specify serial console params in dtsi files
  ARM: dts: NSP: Add crypto (SPU) to dtsi
  ARM: dts: NSP: Add mailbox (PDC) to NSP
  ARM: dts: BCM953012HR: Add ethernet aliases
  ARM: dts: BCM5301X: Add support for TP-LINK Archer C5 V2
  ARM: dts: NSP: disable i2c DT entry by default
  ARM: dts: NSP: Add EHCI/OHCI USB nodes to device tree
  ARM: dts: BCM5301X: Add I2C support to the DT
  ARM: dts: BCM5301X: Add TWD WD Support to DT
  ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags
  ARM: dts: bcm2835: add sdhost controller to devicetree
  ARM: dts: bcm283x: Add HDMI audio related properties
  ARM: dts: BCM5301X: Don't use nonexistent "default-off" LED trigger
  ARM: dts: BCM53573: Don't use nonexistent "default-off" LED trigger
  ARM: dts: BCM5301X: Add missing Netgear R8000 LEDs and Keys
  ARM: dts: BCM5301X: Relicense DTS files I created to the ISC
  ARM: dts: bcm2835: Add the DSI module nodes and clocks.
  ARM: dts: BCM53573: Add Tenda AC9 2 GHz LED
  ...
parents b916a609 414ce21a
...@@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ ...@@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
bcm4708-asus-rt-ac56u.dtb \ bcm4708-asus-rt-ac56u.dtb \
bcm4708-asus-rt-ac68u.dtb \ bcm4708-asus-rt-ac68u.dtb \
bcm4708-buffalo-wzr-1750dhp.dtb \ bcm4708-buffalo-wzr-1750dhp.dtb \
bcm4708-linksys-ea6300-v1.dtb \
bcm4708-luxul-xap-1510.dtb \ bcm4708-luxul-xap-1510.dtb \
bcm4708-luxul-xwc-1000.dtb \ bcm4708-luxul-xwc-1000.dtb \
bcm4708-netgear-r6250.dtb \ bcm4708-netgear-r6250.dtb \
...@@ -87,17 +88,21 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ ...@@ -87,17 +88,21 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
bcm47081-buffalo-wzr-900dhp.dtb \ bcm47081-buffalo-wzr-900dhp.dtb \
bcm47081-luxul-xap-1410.dtb \ bcm47081-luxul-xap-1410.dtb \
bcm47081-luxul-xwr-1200.dtb \ bcm47081-luxul-xwr-1200.dtb \
bcm47081-tplink-archer-c5-v2.dtb \
bcm4709-asus-rt-ac87u.dtb \ bcm4709-asus-rt-ac87u.dtb \
bcm4709-buffalo-wxr-1900dhp.dtb \ bcm4709-buffalo-wxr-1900dhp.dtb \
bcm4709-linksys-ea9200.dtb \
bcm4709-netgear-r7000.dtb \ bcm4709-netgear-r7000.dtb \
bcm4709-netgear-r8000.dtb \ bcm4709-netgear-r8000.dtb \
bcm4709-tplink-archer-c9-v1.dtb \ bcm4709-tplink-archer-c9-v1.dtb \
bcm47094-dlink-dir-885l.dtb \ bcm47094-dlink-dir-885l.dtb \
bcm47094-linksys-panamera.dtb \
bcm47094-luxul-xwr-3100.dtb \ bcm47094-luxul-xwr-3100.dtb \
bcm47094-netgear-r8500.dtb \ bcm47094-netgear-r8500.dtb \
bcm94708.dtb \ bcm94708.dtb \
bcm94709.dtb \ bcm94709.dtb \
bcm953012er.dtb \ bcm953012er.dtb \
bcm953012hr.dtb \
bcm953012k.dtb bcm953012k.dtb
dtb-$(CONFIG_ARCH_BCM_53573) += \ dtb-$(CONFIG_ARCH_BCM_53573) += \
bcm47189-tenda-ac9.dtb bcm47189-tenda-ac9.dtb
......
...@@ -205,7 +205,7 @@ pcie0: pcie@18012000 { ...@@ -205,7 +205,7 @@ pcie0: pcie@18012000 {
status = "disabled"; status = "disabled";
msi-parent = <&msi0>; msi-parent = <&msi0>;
msi0: msi@18012000 { msi0: msi-controller {
compatible = "brcm,iproc-msi"; compatible = "brcm,iproc-msi";
msi-controller; msi-controller;
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
...@@ -240,7 +240,7 @@ pcie1: pcie@18013000 { ...@@ -240,7 +240,7 @@ pcie1: pcie@18013000 {
status = "disabled"; status = "disabled";
msi-parent = <&msi1>; msi-parent = <&msi1>;
msi1: msi@18013000 { msi1: msi-controller {
compatible = "brcm,iproc-msi"; compatible = "brcm,iproc-msi";
msi-controller; msi-controller;
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
......
...@@ -245,6 +245,15 @@ amac2: ethernet@24000 { ...@@ -245,6 +245,15 @@ amac2: ethernet@24000 {
status = "disabled"; status = "disabled";
}; };
mailbox: mailbox@25000 {
compatible = "brcm,iproc-fa2-mbox";
reg = <0x25000 0x445>;
interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
brcm,rx-status-len = <32>;
brcm,use-bcm-hdr;
};
nand: nand@26000 { nand: nand@26000 {
compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
reg = <0x026000 0x600>, reg = <0x026000 0x600>,
...@@ -288,6 +297,12 @@ qspi: qspi@27200 { ...@@ -288,6 +297,12 @@ qspi: qspi@27200 {
#size-cells = <0>; #size-cells = <0>;
}; };
crypto@2f000 {
compatible = "brcm,spum-nsp-crypto";
reg = <0x2f000 0x900>;
mboxes = <&mailbox 0>;
};
gpiob: gpio@30000 { gpiob: gpio@30000 {
compatible = "brcm,iproc-nsp-gpio", "brcm,iproc-gpio"; compatible = "brcm,iproc-nsp-gpio", "brcm,iproc-gpio";
reg = <0x30000 0x50>; reg = <0x30000 0x50>;
...@@ -306,6 +321,20 @@ pwm: pwm@31000 { ...@@ -306,6 +321,20 @@ pwm: pwm@31000 {
status = "disabled"; status = "disabled";
}; };
ehci0: usb@2a000 {
compatible = "generic-ehci";
reg = <0x2a000 0x100>;
interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
ohci0: usb@2b000 {
compatible = "generic-ohci";
reg = <0x2b000 0x100>;
interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
rng: rng@33000 { rng: rng@33000 {
compatible = "brcm,bcm-nsp-rng"; compatible = "brcm,bcm-nsp-rng";
reg = <0x33000 0x14>; reg = <0x33000 0x14>;
...@@ -347,6 +376,7 @@ i2c0: i2c@38000 { ...@@ -347,6 +376,7 @@ i2c0: i2c@38000 {
#size-cells = <0>; #size-cells = <0>;
interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>;
clock-frequency = <100000>; clock-frequency = <100000>;
status = "disabled";
}; };
watchdog@39000 { watchdog@39000 {
...@@ -450,7 +480,7 @@ pcie0: pcie@18012000 { ...@@ -450,7 +480,7 @@ pcie0: pcie@18012000 {
status = "disabled"; status = "disabled";
msi-parent = <&msi0>; msi-parent = <&msi0>;
msi0: msi@18012000 { msi0: msi-controller {
compatible = "brcm,iproc-msi"; compatible = "brcm,iproc-msi";
msi-controller; msi-controller;
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
...@@ -486,7 +516,7 @@ pcie1: pcie@18013000 { ...@@ -486,7 +516,7 @@ pcie1: pcie@18013000 {
status = "disabled"; status = "disabled";
msi-parent = <&msi1>; msi-parent = <&msi1>;
msi1: msi@18013000 { msi1: msi-controller {
compatible = "brcm,iproc-msi"; compatible = "brcm,iproc-msi";
msi-controller; msi-controller;
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
...@@ -522,7 +552,7 @@ pcie2: pcie@18014000 { ...@@ -522,7 +552,7 @@ pcie2: pcie@18014000 {
status = "disabled"; status = "disabled";
msi-parent = <&msi2>; msi-parent = <&msi2>;
msi2: msi@18014000 { msi2: msi-controller {
compatible = "brcm,iproc-msi"; compatible = "brcm,iproc-msi";
msi-controller; msi-controller;
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
......
...@@ -69,6 +69,12 @@ &sdhci { ...@@ -69,6 +69,12 @@ &sdhci {
bus-width = <4>; bus-width = <4>;
}; };
&sdhost {
pinctrl-names = "default";
pinctrl-0 = <&sdhost_gpio48>;
bus-width = <4>;
};
&pwm { &pwm {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>; pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
...@@ -92,3 +98,11 @@ &vec { ...@@ -92,3 +98,11 @@ &vec {
power-domains = <&power RPI_POWER_DOMAIN_VEC>; power-domains = <&power RPI_POWER_DOMAIN_VEC>;
status = "okay"; status = "okay";
}; };
&dsi0 {
power-domains = <&power RPI_POWER_DOMAIN_DSI0>;
};
&dsi1 {
power-domains = <&power RPI_POWER_DOMAIN_DSI1>;
};
...@@ -93,10 +93,13 @@ clocks: cprman@7e101000 { ...@@ -93,10 +93,13 @@ clocks: cprman@7e101000 {
#clock-cells = <1>; #clock-cells = <1>;
reg = <0x7e101000 0x2000>; reg = <0x7e101000 0x2000>;
/* CPRMAN derives everything from the platform's /* CPRMAN derives almost everything from the
* oscillator. * platform's oscillator. However, the DSI
* pixel clocks come from the DSI analog PHY.
*/ */
clocks = <&clk_osc>; clocks = <&clk_osc>,
<&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
<&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
}; };
rng@7e104000 { rng@7e104000 {
...@@ -347,6 +350,16 @@ uart0: serial@7e201000 { ...@@ -347,6 +350,16 @@ uart0: serial@7e201000 {
arm,primecell-periphid = <0x00241011>; arm,primecell-periphid = <0x00241011>;
}; };
sdhost: mmc@7e202000 {
compatible = "brcm,bcm2835-sdhost";
reg = <0x7e202000 0x100>;
interrupts = <2 24>;
clocks = <&clocks BCM2835_CLOCK_VPU>;
dmas = <&dma 13>;
dma-names = "rx-tx";
status = "disabled";
};
i2s: i2s@7e203000 { i2s: i2s@7e203000 {
compatible = "brcm,bcm2835-i2s"; compatible = "brcm,bcm2835-i2s";
reg = <0x7e203000 0x20>, reg = <0x7e203000 0x20>,
...@@ -390,6 +403,25 @@ pixelvalve@7e207000 { ...@@ -390,6 +403,25 @@ pixelvalve@7e207000 {
interrupts = <2 14>; /* pwa1 */ interrupts = <2 14>; /* pwa1 */
}; };
dsi0: dsi@7e209000 {
compatible = "brcm,bcm2835-dsi0";
reg = <0x7e209000 0x78>;
interrupts = <2 4>;
#address-cells = <1>;
#size-cells = <0>;
#clock-cells = <1>;
clocks = <&clocks BCM2835_PLLA_DSI0>,
<&clocks BCM2835_CLOCK_DSI0E>,
<&clocks BCM2835_CLOCK_DSI0P>;
clock-names = "phy", "escape", "pixel";
clock-output-names = "dsi0_byte",
"dsi0_ddr2",
"dsi0_ddr";
};
thermal: thermal@7e212000 { thermal: thermal@7e212000 {
compatible = "brcm,bcm2835-thermal"; compatible = "brcm,bcm2835-thermal";
reg = <0x7e212000 0x8>; reg = <0x7e212000 0x8>;
...@@ -456,6 +488,26 @@ hvs@7e400000 { ...@@ -456,6 +488,26 @@ hvs@7e400000 {
interrupts = <2 1>; interrupts = <2 1>;
}; };
dsi1: dsi@7e700000 {
compatible = "brcm,bcm2835-dsi1";
reg = <0x7e700000 0x8c>;
interrupts = <2 12>;
#address-cells = <1>;
#size-cells = <0>;
#clock-cells = <1>;
clocks = <&clocks BCM2835_PLLD_DSI1>,
<&clocks BCM2835_CLOCK_DSI1E>,
<&clocks BCM2835_CLOCK_DSI1P>;
clock-names = "phy", "escape", "pixel";
clock-output-names = "dsi1_byte",
"dsi1_ddr2",
"dsi1_ddr";
status = "disabled";
};
i2c1: i2c@7e804000 { i2c1: i2c@7e804000 {
compatible = "brcm,bcm2835-i2c"; compatible = "brcm,bcm2835-i2c";
reg = <0x7e804000 0x1000>; reg = <0x7e804000 0x1000>;
...@@ -499,6 +551,8 @@ hdmi: hdmi@7e902000 { ...@@ -499,6 +551,8 @@ hdmi: hdmi@7e902000 {
clocks = <&clocks BCM2835_PLLH_PIX>, clocks = <&clocks BCM2835_PLLH_PIX>,
<&clocks BCM2835_CLOCK_HSM>; <&clocks BCM2835_CLOCK_HSM>;
clock-names = "pixel", "hdmi"; clock-names = "pixel", "hdmi";
dmas = <&dma 17>;
dma-names = "audio-rx";
status = "disabled"; status = "disabled";
}; };
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -31,19 +41,16 @@ leds { ...@@ -31,19 +41,16 @@ leds {
usb3 { usb3 {
label = "bcm53xx:blue:usb3"; label = "bcm53xx:blue:usb3";
gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
wan { wan {
label = "bcm53xx:blue:wan"; label = "bcm53xx:blue:wan";
gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
lan { lan {
label = "bcm53xx:blue:lan"; label = "bcm53xx:blue:lan";
gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
power { power {
...@@ -61,14 +68,12 @@ all { ...@@ -61,14 +68,12 @@ all {
2ghz { 2ghz {
label = "bcm53xx:blue:2ghz"; label = "bcm53xx:blue:2ghz";
gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb2 { usb2 {
label = "bcm53xx:blue:usb2"; label = "bcm53xx:blue:usb2";
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -31,7 +41,6 @@ leds { ...@@ -31,7 +41,6 @@ leds {
usb2 { usb2 {
label = "bcm53xx:blue:usb2"; label = "bcm53xx:blue:usb2";
gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
power { power {
...@@ -49,7 +58,6 @@ logo { ...@@ -49,7 +58,6 @@ logo {
usb3 { usb3 {
label = "bcm53xx:blue:usb3"; label = "bcm53xx:blue:usb3";
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -52,13 +52,11 @@ leds { ...@@ -52,13 +52,11 @@ leds {
usb { usb {
label = "bcm53xx:blue:usb"; label = "bcm53xx:blue:usb";
gpios = <&hc595 0 GPIO_ACTIVE_HIGH>; gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
power0 { power0 {
label = "bcm53xx:red:power"; label = "bcm53xx:red:power";
gpios = <&hc595 1 GPIO_ACTIVE_HIGH>; gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
power1 { power1 {
...@@ -76,7 +74,6 @@ router0 { ...@@ -76,7 +74,6 @@ router0 {
router1 { router1 {
label = "bcm53xx:amber:router"; label = "bcm53xx:amber:router";
gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wan { wan {
...@@ -88,13 +85,11 @@ wan { ...@@ -88,13 +85,11 @@ wan {
wireless0 { wireless0 {
label = "bcm53xx:blue:wireless"; label = "bcm53xx:blue:wireless";
gpios = <&hc595 6 GPIO_ACTIVE_HIGH>; gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wireless1 { wireless1 {
label = "bcm53xx:amber:wireless"; label = "bcm53xx:amber:wireless";
gpios = <&hc595 7 GPIO_ACTIVE_HIGH>; gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
}; };
......
/*
* Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
*
* Licensed under the ISC license.
*/
/dts-v1/;
#include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ {
compatible = "linksys,ea6300-v1", "brcm,bcm4708";
model = "Linksys EA6300 V1";
chosen {
bootargs = "console=ttyS0,115200";
};
memory {
reg = <0x00000000 0x08000000>;
};
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
wps {
label = "WPS";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
};
restart {
label = "Reset";
linux,code = <KEY_RESTART>;
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
};
};
};
...@@ -43,19 +43,16 @@ power0 { ...@@ -43,19 +43,16 @@ power0 {
power1 { power1 {
label = "bcm53xx:amber:power"; label = "bcm53xx:amber:power";
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb { usb {
label = "bcm53xx:blue:usb"; label = "bcm53xx:blue:usb";
gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
wireless { wireless {
label = "bcm53xx:blue:wireless"; label = "bcm53xx:blue:wireless";
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -37,7 +47,6 @@ logo { ...@@ -37,7 +47,6 @@ logo {
power0 { power0 {
label = "bcm53xx:green:power"; label = "bcm53xx:green:power";
gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
power1 { power1 {
...@@ -49,13 +58,11 @@ power1 { ...@@ -49,13 +58,11 @@ power1 {
usb { usb {
label = "bcm53xx:blue:usb"; label = "bcm53xx:blue:usb";
gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
wireless { wireless {
label = "bcm53xx:blue:wireless"; label = "bcm53xx:blue:wireless";
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -37,61 +37,51 @@ power-white { ...@@ -37,61 +37,51 @@ power-white {
power-amber { power-amber {
label = "bcm53xx:amber:power"; label = "bcm53xx:amber:power";
gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
usb2 { usb2 {
label = "bcm53xx:white:usb2"; label = "bcm53xx:white:usb2";
gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
usb3-white { usb3-white {
label = "bcm53xx:white:usb3"; label = "bcm53xx:white:usb3";
gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
usb3-green { usb3-green {
label = "bcm53xx:green:usb3"; label = "bcm53xx:green:usb3";
gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wps { wps {
label = "bcm53xx:white:wps"; label = "bcm53xx:white:wps";
gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
status-red { status-red {
label = "bcm53xx:red:status"; label = "bcm53xx:red:status";
gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
status-green { status-green {
label = "bcm53xx:green:status"; label = "bcm53xx:green:status";
gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
status-blue { status-blue {
label = "bcm53xx:blue:status"; label = "bcm53xx:blue:status";
gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wan-white { wan-white {
label = "bcm53xx:white:wan"; label = "bcm53xx:white:wan";
gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wan-red { wan-red {
label = "bcm53xx:red:wan"; label = "bcm53xx:red:wan";
gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -12,6 +12,14 @@ ...@@ -12,6 +12,14 @@
/ { / {
compatible = "brcm,bcm4708"; compatible = "brcm,bcm4708";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};
cpus { cpus {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -37,7 +47,6 @@ power { ...@@ -37,7 +47,6 @@ power {
usb2 { usb2 {
label = "bcm53xx:blue:usb2"; label = "bcm53xx:blue:usb2";
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
wan { wan {
...@@ -55,7 +64,6 @@ lan { ...@@ -55,7 +64,6 @@ lan {
usb3 { usb3 {
label = "bcm53xx:blue:usb3"; label = "bcm53xx:blue:usb3";
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -58,7 +68,6 @@ power0 { ...@@ -58,7 +68,6 @@ power0 {
power1 { power1 {
label = "bcm53xx:red:power"; label = "bcm53xx:red:power";
gpios = <&hc595 2 GPIO_ACTIVE_HIGH>; gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
router0 { router0 {
...@@ -70,7 +79,6 @@ router0 { ...@@ -70,7 +79,6 @@ router0 {
router1 { router1 {
label = "bcm53xx:amber:router"; label = "bcm53xx:amber:router";
gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wan { wan {
...@@ -82,13 +90,11 @@ wan { ...@@ -82,13 +90,11 @@ wan {
wireless0 { wireless0 {
label = "bcm53xx:green:wireless"; label = "bcm53xx:green:wireless";
gpios = <&hc595 6 GPIO_ACTIVE_HIGH>; gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wireless1 { wireless1 {
label = "bcm53xx:amber:wireless"; label = "bcm53xx:amber:wireless";
gpios = <&hc595 7 GPIO_ACTIVE_HIGH>; gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
......
/*
* Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
*
* Licensed under the ISC license.
*/
/dts-v1/;
#include "bcm47081.dtsi"
/ {
compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708";
model = "TP-LINK Archer C5 V2";
chosen {
bootargs = "earlycon";
};
memory {
reg = <0x00000000 0x08000000>;
};
leds {
compatible = "gpio-leds";
2ghz {
label = "bcm53xx:green:2ghz";
gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
};
lan {
label = "bcm53xx:green:lan";
gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
};
usb2-port1 {
label = "bcm53xx:green:usb2-port1";
gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
};
power {
label = "bcm53xx:green:power";
gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-on";
};
wan-green {
label = "bcm53xx:green:wan";
gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
};
wps {
label = "bcm53xx:green:wps";
gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
};
wan-amber {
label = "bcm53xx:amber:wan";
gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
};
5ghz {
label = "bcm53xx:green:5ghz";
gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
};
usb2-port2 {
label = "bcm53xx:green:usb2-port2";
gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
};
};
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
rfkill {
label = "WiFi";
linux,code = <KEY_RFKILL>;
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
};
restart {
label = "Reset";
linux,code = <KEY_RESTART>;
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
};
};
};
&spi_nor {
status = "okay";
};
&usb2 {
vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
};
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright © 2014 Rafał Miłecki <zajec5@gmail.com> * Copyright © 2014 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "bcm5301x.dtsi" #include "bcm5301x.dtsi"
...@@ -12,6 +22,14 @@ ...@@ -12,6 +22,14 @@
/ { / {
compatible = "brcm,bcm47081"; compatible = "brcm,bcm47081";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};
cpus { cpus {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -31,7 +41,6 @@ leds { ...@@ -31,7 +41,6 @@ leds {
wps { wps {
label = "bcm53xx:blue:wps"; label = "bcm53xx:blue:wps";
gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
power { power {
...@@ -43,7 +52,6 @@ power { ...@@ -43,7 +52,6 @@ power {
wan { wan {
label = "bcm53xx:red:wan"; label = "bcm53xx:red:wan";
gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -31,13 +31,11 @@ leds { ...@@ -31,13 +31,11 @@ leds {
usb { usb {
label = "bcm53xx:green:usb"; label = "bcm53xx:green:usb";
gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
power-amber { power-amber {
label = "bcm53xx:amber:power"; label = "bcm53xx:amber:power";
gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
power-white { power-white {
...@@ -49,37 +47,31 @@ power-white { ...@@ -49,37 +47,31 @@ power-white {
router-amber { router-amber {
label = "bcm53xx:amber:router"; label = "bcm53xx:amber:router";
gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
router-white { router-white {
label = "bcm53xx:white:router"; label = "bcm53xx:white:router";
gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wan-amber { wan-amber {
label = "bcm53xx:amber:wan"; label = "bcm53xx:amber:wan";
gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wan-white { wan-white {
label = "bcm53xx:white:wan"; label = "bcm53xx:white:wan";
gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wireless-amber { wireless-amber {
label = "bcm53xx:amber:wireless"; label = "bcm53xx:amber:wireless";
gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wireless-white { wireless-white {
label = "bcm53xx:white:wireless"; label = "bcm53xx:white:wireless";
gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
}; };
......
/*
* Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
*
* Licensed under the ISC license.
*/
/dts-v1/;
#include "bcm4709.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ {
compatible = "linksys,ea9200", "brcm,bcm4709", "brcm,bcm4708";
model = "Linksys EA9200";
chosen {
bootargs = "console=ttyS0,115200";
};
memory {
reg = <0x00000000 0x08000000
0x88000000 0x08000000>;
};
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
wps {
label = "WPS";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
};
restart {
label = "Reset";
linux,code = <KEY_RESTART>;
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
};
};
};
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -37,43 +47,36 @@ power-white { ...@@ -37,43 +47,36 @@ power-white {
power-amber { power-amber {
label = "bcm53xx:amber:power"; label = "bcm53xx:amber:power";
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
5ghz { 5ghz {
label = "bcm53xx:white:5ghz"; label = "bcm53xx:white:5ghz";
gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
2ghz { 2ghz {
label = "bcm53xx:white:2ghz"; label = "bcm53xx:white:2ghz";
gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
wps { wps {
label = "bcm53xx:white:wps"; label = "bcm53xx:white:wps";
gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wireless { wireless {
label = "bcm53xx:white:wireless"; label = "bcm53xx:white:wireless";
gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
usb3 { usb3 {
label = "bcm53xx:white:usb3"; label = "bcm53xx:white:usb3";
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb2 { usb2 {
label = "bcm53xx:white:usb2"; label = "bcm53xx:white:usb2";
gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -28,58 +38,61 @@ memory { ...@@ -28,58 +38,61 @@ memory {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power0 { power-white {
label = "bcm53xx:white:power"; label = "bcm53xx:white:power";
gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-on"; linux,default-trigger = "default-on";
}; };
power1 { power-amber {
label = "bcm53xx:amber:power"; label = "bcm53xx:amber:power";
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off"; };
wan-white {
label = "bcm53xx:white:wan";
gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-on";
};
wan-amber {
label = "bcm53xx:amber:wan";
gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
}; };
5ghz-1 { 5ghz-1 {
label = "bcm53xx:white:5ghz-1"; label = "bcm53xx:white:5ghz-1";
gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
2ghz { 2ghz {
label = "bcm53xx:white:2ghz"; label = "bcm53xx:white:2ghz";
gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
wireless { wireless {
label = "bcm53xx:white:wireless"; label = "bcm53xx:white:wireless";
gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wps { wps {
label = "bcm53xx:white:wps"; label = "bcm53xx:white:wps";
gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
5ghz-2 { 5ghz-2 {
label = "bcm53xx:white:5ghz-2"; label = "bcm53xx:white:5ghz-2";
gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb3 { usb3 {
label = "bcm53xx:white:usb3"; label = "bcm53xx:white:usb3";
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb2 { usb2 {
label = "bcm53xx:white:usb2"; label = "bcm53xx:white:usb2";
gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
...@@ -105,6 +118,12 @@ restart { ...@@ -105,6 +118,12 @@ restart {
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
}; };
brightness {
label = "Backlight";
linux,code = <KEY_BRIGHTNESS_ZERO>;
gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
};
}; };
}; };
......
...@@ -26,49 +26,41 @@ leds { ...@@ -26,49 +26,41 @@ leds {
lan { lan {
label = "bcm53xx:blue:lan"; label = "bcm53xx:blue:lan";
gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wps { wps {
label = "bcm53xx:blue:wps"; label = "bcm53xx:blue:wps";
gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
2ghz { 2ghz {
label = "bcm53xx:blue:2ghz"; label = "bcm53xx:blue:2ghz";
gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
5ghz { 5ghz {
label = "bcm53xx:blue:5ghz"; label = "bcm53xx:blue:5ghz";
gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
usb3 { usb3 {
label = "bcm53xx:blue:usb3"; label = "bcm53xx:blue:usb3";
gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
usb2 { usb2 {
label = "bcm53xx:blue:usb2"; label = "bcm53xx:blue:usb2";
gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wan-blue { wan-blue {
label = "bcm53xx:blue:wan"; label = "bcm53xx:blue:wan";
gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wan-amber { wan-amber {
label = "bcm53xx:amber:wan"; label = "bcm53xx:amber:wan";
gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
power { power {
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
* *
* Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com> * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com>
* *
* Licensed under the GNU/GPL. See COPYING for details. * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/ */
/dts-v1/; /dts-v1/;
...@@ -46,37 +56,31 @@ power-white { ...@@ -46,37 +56,31 @@ power-white {
wan-white { wan-white {
label = "bcm53xx:white:wan"; label = "bcm53xx:white:wan";
gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
power-amber { power-amber {
label = "bcm53xx:amber:power"; label = "bcm53xx:amber:power";
gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
wan-amber { wan-amber {
label = "bcm53xx:amber:wan"; label = "bcm53xx:amber:wan";
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb3-white { usb3-white {
label = "bcm53xx:white:usb3"; label = "bcm53xx:white:usb3";
gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
2ghz { 2ghz {
label = "bcm53xx:white:2ghz"; label = "bcm53xx:white:2ghz";
gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
5ghz { 5ghz {
label = "bcm53xx:white:5ghz"; label = "bcm53xx:white:5ghz";
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
/*
* Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
*
* Licensed under the ISC license.
*/
/dts-v1/;
#include "bcm47094.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ {
compatible = "linksys,panamera", "brcm,bcm47094", "brcm,bcm4708";
model = "Linksys EA9500";
chosen {
bootargs = "console=ttyS0,115200";
};
memory {
reg = <0x00000000 0x08000000
0x88000000 0x08000000>;
};
gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
wps {
label = "WPS";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
};
};
};
...@@ -34,37 +34,31 @@ power { ...@@ -34,37 +34,31 @@ power {
lan3 { lan3 {
label = "bcm53xx:green:lan3"; label = "bcm53xx:green:lan3";
gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
lan4 { lan4 {
label = "bcm53xx:green:lan4"; label = "bcm53xx:green:lan4";
gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
wan { wan {
label = "bcm53xx:green:wan"; label = "bcm53xx:green:wan";
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
lan1 { lan1 {
label = "bcm53xx:green:lan1"; label = "bcm53xx:green:lan1";
gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
lan2 { lan2 {
label = "bcm53xx:green:lan2"; label = "bcm53xx:green:lan2";
gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb3 { usb3 {
label = "bcm53xx:green:usb3"; label = "bcm53xx:green:usb3";
gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
status { status {
...@@ -76,13 +70,11 @@ status { ...@@ -76,13 +70,11 @@ status {
2ghz { 2ghz {
label = "bcm53xx:green:2ghz"; label = "bcm53xx:green:2ghz";
gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
5ghz { 5ghz {
label = "bcm53xx:green:5ghz"; label = "bcm53xx:green:5ghz";
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -34,37 +34,31 @@ power0 { ...@@ -34,37 +34,31 @@ power0 {
power1 { power1 {
label = "bcm53xx:amber:power"; label = "bcm53xx:amber:power";
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
5ghz-1 { 5ghz-1 {
label = "bcm53xx:white:5ghz-1"; label = "bcm53xx:white:5ghz-1";
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
5ghz-2 { 5ghz-2 {
label = "bcm53xx:white:5ghz-2"; label = "bcm53xx:white:5ghz-2";
gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
2ghz { 2ghz {
label = "bcm53xx:white:2ghz"; label = "bcm53xx:white:2ghz";
gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb2 { usb2 {
label = "bcm53xx:white:usb2"; label = "bcm53xx:white:usb2";
gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
usb3 { usb3 {
label = "bcm53xx:white:usb3"; label = "bcm53xx:white:usb3";
gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-off";
}; };
}; };
......
...@@ -26,19 +26,16 @@ leds { ...@@ -26,19 +26,16 @@ leds {
usb { usb {
label = "bcm53xx:blue:usb"; label = "bcm53xx:blue:usb";
gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
wps { wps {
label = "bcm53xx:blue:wps"; label = "bcm53xx:blue:wps";
gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
5ghz { 5ghz {
label = "bcm53xx:blue:5ghz"; label = "bcm53xx:blue:5ghz";
gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "default-off";
}; };
system { system {
...@@ -48,6 +45,15 @@ system { ...@@ -48,6 +45,15 @@ system {
}; };
}; };
pcie0_leds {
compatible = "gpio-leds";
2ghz {
label = "bcm53xx:blue:2ghz";
gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>;
};
};
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
#address-cells = <1>; #address-cells = <1>;
...@@ -72,3 +78,30 @@ wps { ...@@ -72,3 +78,30 @@ wps {
}; };
}; };
}; };
&pcie0 {
ranges = <0x00000000 0 0 0 0 0x00100000>;
#address-cells = <3>;
#size-cells = <2>;
bridge@0,0,0 {
reg = <0x0000 0 0 0 0>;
ranges = <0x00000000 0 0 0 0 0 0 0x00100000>;
#address-cells = <3>;
#size-cells = <2>;
wifi@0,1,0 {
reg = <0x0000 0 0 0 0>;
ranges = <0x00000000 0 0 0 0x00100000>;
#address-cells = <1>;
#size-cells = <1>;
pcie0_chipcommon: chipcommon@0 {
reg = <0 0x1000>;
gpio-controller;
#gpio-cells = <2>;
};
};
};
};
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
/ { / {
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
chosen {
stdout-path = &uart0;
};
chipcommonA { chipcommonA {
compatible = "simple-bus"; compatible = "simple-bus";
ranges = <0x00000000 0x18000000 0x00001000>; ranges = <0x00000000 0x18000000 0x00001000>;
...@@ -66,14 +62,23 @@ scu@20000 { ...@@ -66,14 +62,23 @@ scu@20000 {
timer@20200 { timer@20200 {
compatible = "arm,cortex-a9-global-timer"; compatible = "arm,cortex-a9-global-timer";
reg = <0x20200 0x100>; reg = <0x20200 0x100>;
interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
clocks = <&periph_clk>; clocks = <&periph_clk>;
}; };
local-timer@20600 { timer@20600 {
compatible = "arm,cortex-a9-twd-timer"; compatible = "arm,cortex-a9-twd-timer";
reg = <0x20600 0x100>; reg = <0x20600 0x20>;
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
IRQ_TYPE_EDGE_RISING)>;
clocks = <&periph_clk>;
};
watchdog@20620 {
compatible = "arm,cortex-a9-twd-wdt";
reg = <0x20620 0x20>;
interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
IRQ_TYPE_EDGE_RISING)>;
clocks = <&periph_clk>; clocks = <&periph_clk>;
}; };
...@@ -298,20 +303,6 @@ xhci: xhci@23000 { ...@@ -298,20 +303,6 @@ xhci: xhci@23000 {
}; };
}; };
spi@29000 {
reg = <0x00029000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
spi_nor: spi-nor@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <20000000>;
linux,part-probe = "ofpart", "bcm47xxpart";
status = "disabled";
};
};
gmac0: ethernet@24000 { gmac0: ethernet@24000 {
reg = <0x24000 0x800>; reg = <0x24000 0x800>;
}; };
...@@ -329,6 +320,16 @@ gmac3: ethernet@27000 { ...@@ -329,6 +320,16 @@ gmac3: ethernet@27000 {
}; };
}; };
i2c0: i2c@18009000 {
compatible = "brcm,iproc-i2c";
reg = <0x18009000 0x50>;
interrupts = <GIC_SPI 121 IRQ_TYPE_NONE>;
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <100000>;
status = "disabled";
};
lcpll0: lcpll0@1800c100 { lcpll0: lcpll0@1800c100 {
#clock-cells = <1>; #clock-cells = <1>;
compatible = "brcm,nsp-lcpll0"; compatible = "brcm,nsp-lcpll0";
...@@ -375,4 +376,40 @@ nand: nand@18028000 { ...@@ -375,4 +376,40 @@ nand: nand@18028000 {
brcm,nand-has-wp; brcm,nand-has-wp;
}; };
spi@18029200 {
compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi";
reg = <0x18029200 0x184>,
<0x18029000 0x124>,
<0x1811b408 0x004>,
<0x180293a0 0x01c>;
reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg";
interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
"spi_lr_overhead",
"mspi_done",
"mspi_halted";
clocks = <&iprocmed>;
clock-names = "iprocmed";
num-cs = <2>;
#address-cells = <1>;
#size-cells = <0>;
spi_nor: spi-nor@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <20000000>;
linux,part-probe = "ofpart", "bcm47xxpart";
status = "disabled";
};
};
}; };
...@@ -13,8 +13,12 @@ ...@@ -13,8 +13,12 @@
/ { / {
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
aliases {
serial0 = &uart0;
};
chosen { chosen {
stdout-path = &uart0; stdout-path = "serial0:115200n8";
}; };
cpus { cpus {
...@@ -113,6 +117,10 @@ uart0: serial@0300 { ...@@ -113,6 +117,10 @@ uart0: serial@0300 {
}; };
}; };
pcie0: pcie@2000 {
reg = <0x00002000 0x1000>;
};
usb2: usb2@4000 { usb2: usb2@4000 {
reg = <0x4000 0x1000>; reg = <0x4000 0x1000>;
ranges; ranges;
......
...@@ -38,14 +38,6 @@ / { ...@@ -38,14 +38,6 @@ / {
model = "NorthStar SVK (BCM94708)"; model = "NorthStar SVK (BCM94708)";
compatible = "brcm,bcm94708", "brcm,bcm4708"; compatible = "brcm,bcm94708", "brcm,bcm4708";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};
memory { memory {
reg = <0x00000000 0x08000000>; reg = <0x00000000 0x08000000>;
}; };
......
...@@ -38,14 +38,6 @@ / { ...@@ -38,14 +38,6 @@ / {
model = "NorthStar SVK (BCM94709)"; model = "NorthStar SVK (BCM94709)";
compatible = "brcm,bcm94709", "brcm,bcm4709", "brcm,bcm4708"; compatible = "brcm,bcm94709", "brcm,bcm4709", "brcm,bcm4708";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};
memory { memory {
reg = <0x00000000 0x08000000>; reg = <0x00000000 0x08000000>;
}; };
......
...@@ -39,14 +39,6 @@ / { ...@@ -39,14 +39,6 @@ / {
model = "NorthStar Enterprise Router (BCM953012ER)"; model = "NorthStar Enterprise Router (BCM953012ER)";
compatible = "brcm,bcm953012er", "brcm,brcm53012", "brcm,bcm4708"; compatible = "brcm,bcm953012er", "brcm,brcm53012", "brcm,bcm4708";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};
memory { memory {
reg = <0x00000000 0x8000000>; reg = <0x00000000 0x8000000>;
}; };
......
/*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2017 Broadcom
*
* 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 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-bch4.dtsi"
/ {
model = "NorthStar HR (BCM953012HR)";
compatible = "brcm,bcm953012hr", "brcm,brcm53012", "brcm,bcm4708";
aliases {
ethernet0 = &gmac0;
ethernet1 = &gmac1;
ethernet2 = &gmac2;
};
memory@80000000 {
reg = <0x80000000 0x10000000>;
};
};
&nandcs {
partition@0 {
label = "nboot";
reg = <0x00000000 0x00200000>;
read-only;
};
partition@200000 {
label = "nenv";
reg = <0x00200000 0x00400000>;
};
partition@600000 {
label = "nsystem";
reg = <0x00600000 0x00a00000>;
};
partition@1000000 {
label = "nrootfs";
reg = <0x01000000 0x07000000>;
};
};
&spi_nor {
status = "okay";
spi-max-frequency = <62500000>;
m25p,default-addr-width = <3>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot";
reg = <0x00000000 0x000d0000>;
};
partition@d000 {
label = "env";
reg = <0x000d0000 0x00030000>;
};
partition@100000 {
label = "system";
reg = <0x00100000 0x00600000>;
};
partition@700000 {
label = "rootfs";
reg = <0x00700000 0x00900000>;
};
};
...@@ -43,15 +43,69 @@ aliases { ...@@ -43,15 +43,69 @@ aliases {
serial1 = &uart1; serial1 = &uart1;
}; };
chosen {
stdout-path = "serial0:115200n8";
};
memory { memory {
reg = <0x00000000 0x10000000>; reg = <0x00000000 0x10000000>;
}; };
}; };
&nand {
nandcs@0 {
compatible = "brcm,nandcs";
reg = <0>;
nand-on-flash-bbt;
#address-cells = <1>;
#size-cells = <1>;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
partition@0 {
label = "nboot";
reg = <0x00000000 0x00200000>;
read-only;
};
partition@200000 {
label = "nenv";
reg = <0x00200000 0x00400000>;
};
partition@600000 {
label = "nsystem";
reg = <0x00600000 0x00a00000>;
};
partition@1000000 {
label = "nrootfs";
reg = <0x01000000 0x07000000>;
};
};
};
&spi_nor {
status = "okay";
spi-max-frequency = <62500000>;
m25p,default-addr-width = <3>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot";
reg = <0x00000000 0x000d0000>;
};
partition@d000 {
label = "env";
reg = <0x000d0000 0x00030000>;
};
partition@100000 {
label = "system";
reg = <0x00100000 0x00600000>;
};
partition@700000 {
label = "rootfs";
reg = <0x00700000 0x00900000>;
};
};
&uart0 { &uart0 {
clock-frequency = <62499840>; clock-frequency = <62499840>;
}; };
......
...@@ -59,7 +59,7 @@ gpio-restart { ...@@ -59,7 +59,7 @@ gpio-restart {
}; };
}; };
/* USB 2/3 support needed to be complete */ /* USB 3 support needed to be complete */
&amac0 { &amac0 {
status = "okay"; status = "okay";
...@@ -69,6 +69,10 @@ &amac1 { ...@@ -69,6 +69,10 @@ &amac1 {
status = "okay"; status = "okay";
}; };
&ehci0 {
status = "okay";
};
&nand { &nand {
nandcs@0 { nandcs@0 {
compatible = "brcm,nandcs"; compatible = "brcm,nandcs";
...@@ -107,6 +111,10 @@ partition@4000000 { ...@@ -107,6 +111,10 @@ partition@4000000 {
}; };
}; };
&ohci0 {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
......
...@@ -59,7 +59,7 @@ gpio-restart { ...@@ -59,7 +59,7 @@ gpio-restart {
}; };
}; };
/* USB 2/3 support needed to be complete */ /* USB 3 support needed to be complete */
&amac0 { &amac0 {
status = "okay"; status = "okay";
...@@ -69,6 +69,10 @@ &amac1 { ...@@ -69,6 +69,10 @@ &amac1 {
status = "okay"; status = "okay";
}; };
&ehci0 {
status = "okay";
};
&nand { &nand {
nandcs@0 { nandcs@0 {
compatible = "brcm,nandcs"; compatible = "brcm,nandcs";
...@@ -107,6 +111,10 @@ partition@4000000 { ...@@ -107,6 +111,10 @@ partition@4000000 {
}; };
}; };
&ohci0 {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
......
...@@ -65,7 +65,13 @@ &amac0 { ...@@ -65,7 +65,13 @@ &amac0 {
status = "okay"; status = "okay";
}; };
&ehci0 {
status = "okay";
};
&i2c0 { &i2c0 {
status = "okay";
temperature-sensor@4c { temperature-sensor@4c {
compatible = "adi,adt7461a"; compatible = "adi,adt7461a";
reg = <0x4c>; reg = <0x4c>;
...@@ -121,6 +127,10 @@ partition@4000000 { ...@@ -121,6 +127,10 @@ partition@4000000 {
}; };
}; };
&ohci0 {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
......
...@@ -59,7 +59,7 @@ gpio-restart { ...@@ -59,7 +59,7 @@ gpio-restart {
}; };
}; };
/* USB 2/3 and SLIC support needed to be complete */ /* USB 3 and SLIC support needed to be complete */
&amac0 { &amac0 {
status = "okay"; status = "okay";
...@@ -73,6 +73,10 @@ &amac2 { ...@@ -73,6 +73,10 @@ &amac2 {
status = "okay"; status = "okay";
}; };
&ehci0 {
status = "okay";
};
&nand { &nand {
nandcs@0 { nandcs@0 {
compatible = "brcm,nandcs"; compatible = "brcm,nandcs";
...@@ -111,6 +115,10 @@ partition@4000000 { ...@@ -111,6 +115,10 @@ partition@4000000 {
}; };
}; };
&ohci0 {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
......
...@@ -59,7 +59,7 @@ gpio-restart { ...@@ -59,7 +59,7 @@ gpio-restart {
}; };
}; };
/* USB 2/3 and SLIC support needed to be complete */ /* USB 3 and SLIC support needed to be complete */
&amac0 { &amac0 {
status = "okay"; status = "okay";
...@@ -73,6 +73,10 @@ &amac2 { ...@@ -73,6 +73,10 @@ &amac2 {
status = "okay"; status = "okay";
}; };
&ehci0 {
status = "okay";
};
&nand { &nand {
nandcs@0 { nandcs@0 {
compatible = "brcm,nandcs"; compatible = "brcm,nandcs";
...@@ -111,6 +115,10 @@ partition@4000000 { ...@@ -111,6 +115,10 @@ partition@4000000 {
}; };
}; };
&ohci0 {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
......
...@@ -71,6 +71,10 @@ &amac2 { ...@@ -71,6 +71,10 @@ &amac2 {
status = "okay"; status = "okay";
}; };
&ehci0 {
status = "okay";
};
&nand { &nand {
nandcs@0 { nandcs@0 {
compatible = "brcm,nandcs"; compatible = "brcm,nandcs";
...@@ -109,6 +113,10 @@ partition@4000000 { ...@@ -109,6 +113,10 @@ partition@4000000 {
}; };
}; };
&ohci0 {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
......
...@@ -65,6 +65,10 @@ &amac2 { ...@@ -65,6 +65,10 @@ &amac2 {
status = "okay"; status = "okay";
}; };
&ehci0 {
status = "okay";
};
&nand { &nand {
nandcs@0 { nandcs@0 {
compatible = "brcm,nandcs"; compatible = "brcm,nandcs";
...@@ -103,6 +107,10 @@ partition@4000000 { ...@@ -103,6 +107,10 @@ partition@4000000 {
}; };
}; };
&ohci0 {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
......
...@@ -59,7 +59,7 @@ gpio-restart { ...@@ -59,7 +59,7 @@ gpio-restart {
}; };
}; };
/* USB 2/3 support needed to be complete */ /* USB 3 support needed to be complete */
&amac0 { &amac0 {
status = "okay"; status = "okay";
...@@ -73,6 +73,10 @@ &amac2 { ...@@ -73,6 +73,10 @@ &amac2 {
status = "okay"; status = "okay";
}; };
&ehci0 {
status = "okay";
};
&nand { &nand {
nandcs@0 { nandcs@0 {
compatible = "brcm,nandcs"; compatible = "brcm,nandcs";
...@@ -111,6 +115,10 @@ partition@4000000 { ...@@ -111,6 +115,10 @@ partition@4000000 {
}; };
}; };
&ohci0 {
status = "okay";
};
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment