Commit f9228c38 authored by Olof Johansson's avatar Olof Johansson

Merge tag 'arm-soc/for-4.19/devicetree-arm64' of https://github.com/Broadcom/stblinux into next/dt

This pull request contains Broadcom ARM64-based SoCs Device Tree changes
for 4.19, please pull the following:

- Scott does a bunch of updates to the Stingray DTS and DTS include
  files to better support the addition of new boards. Scott also adds
  the Stingray OTP Device Tree node

- Pramod updates the Stingray clocks such that they match the latest
  revision of the ASIC and datasheets

- Ray sets the Stingray initial watchdog timeout to 60 seconds to give
  sufficient time for the kernel to boot and then adds PAXC (internal
  PCIe) support to the Stingray base DTS files

- Vladimir adds support for the Stingray smart NIC PS225 boards variants

* tag 'arm-soc/for-4.19/devicetree-arm64' of https://github.com/Broadcom/stblinux:
  arm64: dts: stingray: add bcm958802a802x dts
  arm64: dts: stingray: add PAXC support
  arm64: dts: set initial SR watchdog timeout to 60 seconds
  arm64: dts: Update Stingray clock DT nodes
  arm64: dts: stingray: Add OTP device node
  arm64: dts: stingray: move common board components to stingray-board-base
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parents c79306d5 e28e6816
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_BCM_IPROC) += bcm958742k.dtb
dtb-$(CONFIG_ARCH_BCM_IPROC) += bcm958742t.dtb
dtb-$(CONFIG_ARCH_BCM_IPROC) += bcm958802a802x.dtb
......@@ -30,20 +30,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "stingray.dtsi"
#include "stingray-board-base.dtsi"
/ {
chosen {
stdout-path = "serial0:115200n8";
};
aliases {
serial0 = &uart1;
serial1 = &uart0;
serial2 = &uart2;
serial3 = &uart3;
};
sdio0_vddo_ctrl_reg: sdio0_vddo_ctrl {
compatible = "regulator-gpio";
regulator-name = "sdio0_vddo_ctrl_reg";
......@@ -67,11 +56,6 @@ sdio1_vddo_ctrl_reg: sdio1_vddo_ctrl {
};
};
&memory { /* Default DRAM banks */
reg = <0x00000000 0x80000000 0x0 0x80000000>, /* 2G @ 2G */
<0x00000008 0x80000000 0x1 0x80000000>; /* 6G @ 34G */
};
&sata0 {
status = "okay";
};
......@@ -136,18 +120,6 @@ &sata_phy7{
status = "okay";
};
&mdio_mux_iproc {
mdio@10 {
gphy0: eth-phy@10 {
reg = <0x10>;
};
};
};
&uart1 {
status = "okay";
};
&pwm {
status = "okay";
};
......@@ -175,8 +147,6 @@ pcf8574: pcf8574@20 {
};
&enet {
phy-mode = "rgmii-id";
phy-handle = <&gphy0>;
status = "okay";
};
......@@ -197,13 +167,10 @@ nandcs@0 {
&sdio0 {
vqmmc-supply = <&sdio0_vddo_ctrl_reg>;
non-removable;
full-pwr-cycle;
status = "okay";
};
&sdio1 {
vqmmc-supply = <&sdio1_vddo_ctrl_reg>;
full-pwr-cycle;
status = "okay";
};
// SPDX-License-Identifier: (GPL-2.0 or BSD-3-Clause)
/*
*Copyright(c) 2018 Broadcom
*/
/dts-v1/;
#include "stingray-board-base.dtsi"
/ {
compatible = "brcm,bcm958802a802x", "brcm,stingray";
model = "Stingray PS225xx (BCM958802A802x)";
};
&enet {
status = "disabled";
};
&sdio0 {
no-1-8-v;
status = "okay";
};
&uart0 {
status = "okay";
};
// SPDX-License-Identifier: (GPL-2.0 or BSD-3-Clause)
/*
* Copyright(c) 2016-2018 Broadcom
*/
#include "stingray.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
aliases {
serial0 = &uart1;
serial1 = &uart0;
serial2 = &uart2;
serial3 = &uart3;
};
chosen {
stdout-path = "serial0:115200n8";
};
};
&memory { /* Default DRAM banks */
reg = <0x00000000 0x80000000 0x0 0x80000000>, /* 2G @ 2G */
<0x00000008 0x80000000 0x1 0x80000000>; /* 6G @ 34G */
};
&enet {
phy-mode = "rgmii-id";
phy-handle = <&gphy0>;
};
&uart1 {
status = "okay";
};
&sdio0 {
non-removable;
full-pwr-cycle;
};
&sdio1 {
full-pwr-cycle;
};
&mdio_mux_iproc {
mdio@10 {
gphy0: eth-phy@10 {
reg = <0x10>;
};
};
};
......@@ -52,12 +52,24 @@ genpll0: genpll0@1d104 {
reg = <0x0001d104 0x32>,
<0x0001c854 0x4>;
clocks = <&osc>;
clock-output-names = "genpll0", "clk_125", "clk_scr",
clock-output-names = "genpll0", "clk_125m", "clk_scr",
"clk_250", "clk_pcie_axi",
"clk_paxc_axi_x2",
"clk_paxc_axi";
};
genpll2: genpll2@1d1ac {
#clock-cells = <1>;
compatible = "brcm,sr-genpll2";
reg = <0x0001d1ac 0x32>,
<0x0001c854 0x4>;
clocks = <&osc>;
clock-output-names = "genpll2", "clk_nic",
"clk_ts_500_ref", "clk_125_nitro",
"clk_chimp", "clk_nic_flash",
"clk_fs";
};
genpll3: genpll3@1d1e0 {
#clock-cells = <1>;
compatible = "brcm,sr-genpll3";
......@@ -75,8 +87,8 @@ genpll4: genpll4@1d214 {
<0x0001c854 0x4>;
clocks = <&osc>;
clock-output-names = "genpll4", "clk_ccn",
"clk_tpiu_pll", "noc_clk",
"pll_chclk_fs4",
"clk_tpiu_pll", "clk_noc",
"clk_chclk_fs4",
"clk_bridge_fscpu";
};
......@@ -86,8 +98,8 @@ genpll5: genpll5@1d248 {
reg = <0x0001d248 0x32>,
<0x0001c870 0x4>;
clocks = <&osc>;
clock-output-names = "genpll5", "fs4_hf_clk",
"crypto_ae_clk", "raid_ae_clk";
clock-output-names = "genpll5", "clk_fs4_hf",
"clk_crypto_ae", "clk_raid_ae";
};
lcpll0: lcpll0@1d0c4 {
......@@ -107,9 +119,9 @@ lcpll1: lcpll1@1d138 {
reg = <0x0001d138 0x3c>,
<0x0001c870 0x4>;
clocks = <&osc>;
clock-output-names = "lcpll1", "clk_wanpn",
clock-output-names = "lcpll1", "clk_wan",
"clk_usb_ref",
"timesync_evt_clk";
"clk_crmu_ts";
};
hsls_clk: hsls_clk {
......
// SPDX-License-Identifier: (GPL-2.0 or BSD-3-Clause)
/*
*Copyright(c) 2018 Broadcom
*/
pcie8: pcie@60400000 {
compatible = "brcm,iproc-pcie-paxc-v2";
reg = <0 0x60400000 0 0x1000>;
linux,pci-domain = <8>;
bus-range = <0x0 0x1>;
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
ranges = <0x83000000 0 0x10000000 0 0x10000000 0 0x20000000>;
dma-coherent;
msi-map = <0x100 &gic_its 0x2000 0x1>, /* PF0 */
<0x108 &gic_its 0x2040 0x8>, /* PF0-VF0-7 */
<0x101 &gic_its 0x2080 0x1>, /* PF1 */
<0x110 &gic_its 0x20c8 0x8>, /* PF1-VF8-15 */
<0x102 &gic_its 0x2100 0x1>, /* PF2 */
<0x118 &gic_its 0x2150 0x8>, /* PF2-VF16-23 */
<0x103 &gic_its 0x2180 0x1>, /* PF3 */
<0x120 &gic_its 0x21d8 0x8>, /* PF3-VF24-31 */
<0x104 &gic_its 0x2200 0x1>, /* PF4 */
<0x128 &gic_its 0x2260 0x8>, /* PF4-VF32-39 */
<0x105 &gic_its 0x2280 0x1>, /* PF5 */
<0x130 &gic_its 0x22e8 0x8>, /* PF5-VF40-47 */
<0x106 &gic_its 0x2300 0x1>, /* PF6 */
<0x138 &gic_its 0x2370 0x8>, /* PF6-VF48-55 */
<0x107 &gic_its 0x2380 0x1>, /* PF7 */
<0x140 &gic_its 0x23f8 0x8>; /* PF7-VF56-63 */
phys = <&pcie_phy 8>;
phy-names = "pcie-phy";
};
pcie-ss {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x0 0x40000000 0x800>;
pcie_phy: phy@0 {
compatible = "brcm,sr-pcie-phy";
reg = <0x0 0x200>;
brcm,sr-cdru = <&cdru>;
brcm,sr-mhb = <&mhb>;
#phy-cells = <1>;
};
};
......@@ -146,6 +146,11 @@ timer {
<GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
};
mhb: syscon@60401000 {
compatible = "brcm,sr-mhb", "syscon";
reg = <0 0x60401000 0 0x38c>;
};
scr {
compatible = "simple-bus";
#address-cells = <1>;
......@@ -258,6 +263,18 @@ crmu: crmu {
#include "stingray-clock.dtsi"
otp: otp@1c400 {
compatible = "brcm,ocotp-v2";
reg = <0x0001c400 0x68>;
brcm,ocotp-size = <2048>;
status = "okay";
};
cdru: syscon@1d000 {
compatible = "brcm,sr-cdru", "syscon";
reg = <0x0001d000 0x400>;
};
gpio_crmu: gpio@24800 {
compatible = "brcm,iproc-gpio";
reg = <0x00024800 0x4c>;
......@@ -269,6 +286,7 @@ gpio_crmu: gpio@24800 {
#include "stingray-fs4.dtsi"
#include "stingray-sata.dtsi"
#include "stingray-pcie.dtsi"
hsls {
compatible = "simple-bus";
......@@ -420,6 +438,7 @@ wdt0: watchdog@c0000 {
interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&hsls_25m_div2_clk>, <&hsls_div4_clk>;
clock-names = "wdogclk", "apb_pclk";
timeout-sec = <60>;
};
gpio_hsls: gpio@d0000 {
......
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