Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
commit
3f1589c8d9
@ -6,11 +6,11 @@ ifdef CONFIG_TESTING_KERNEL
|
||||
KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER)
|
||||
endif
|
||||
|
||||
LINUX_VERSION-5.4 = .142
|
||||
LINUX_VERSION-5.10 = .60
|
||||
LINUX_VERSION-5.4 = .143
|
||||
LINUX_VERSION-5.10 = .61
|
||||
|
||||
LINUX_KERNEL_HASH-5.4.142 = 99785728968564ba27c7e552d024b560072dcbc885540912eabb5c021e231451
|
||||
LINUX_KERNEL_HASH-5.10.60 = 696ff7753f6c7c5123dbcb0a22d693cb358c760c61a76649531b6a207155f78d
|
||||
LINUX_KERNEL_HASH-5.4.143 = 0953650b05a5f806d76c5691583e94e141f4f691bc0ba75a60b643740f021d24
|
||||
LINUX_KERNEL_HASH-5.10.61 = 82eae38cc5cd11dd6aaac91c02ff0d006c7bafd6d4cf5c6a791930820a3a91d1
|
||||
|
||||
remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1))))
|
||||
sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1)))))))
|
||||
|
||||
@ -386,6 +386,9 @@ CONFIG_TLS=internal
|
||||
# Airtime policy support
|
||||
CONFIG_AIRTIME_POLICY=y
|
||||
|
||||
# Proxy ARP support
|
||||
#CONFIG_PROXYARP=y
|
||||
|
||||
# Override default value for the wpa_disable_eapol_key_retries configuration
|
||||
# parameter. See that parameter in hostapd.conf for more details.
|
||||
#CFLAGS += -DDEFAULT_WPA_DISABLE_EAPOL_KEY_RETRIES=1
|
||||
|
||||
@ -386,6 +386,9 @@ CONFIG_TAXONOMY=y
|
||||
# Airtime policy support
|
||||
CONFIG_AIRTIME_POLICY=y
|
||||
|
||||
# Proxy ARP support
|
||||
CONFIG_PROXYARP=y
|
||||
|
||||
# Override default value for the wpa_disable_eapol_key_retries configuration
|
||||
# parameter. See that parameter in hostapd.conf for more details.
|
||||
#CFLAGS += -DDEFAULT_WPA_DISABLE_EAPOL_KEY_RETRIES=1
|
||||
|
||||
@ -386,6 +386,9 @@ CONFIG_TLS=internal
|
||||
# Airtime policy support
|
||||
#CONFIG_AIRTIME_POLICY=y
|
||||
|
||||
# Proxy ARP support
|
||||
#CONFIG_PROXYARP=y
|
||||
|
||||
# Override default value for the wpa_disable_eapol_key_retries configuration
|
||||
# parameter. See that parameter in hostapd.conf for more details.
|
||||
#CFLAGS += -DDEFAULT_WPA_DISABLE_EAPOL_KEY_RETRIES=1
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
--- a/src/drivers/driver_nl80211.c
|
||||
+++ b/src/drivers/driver_nl80211.c
|
||||
@@ -4973,7 +4973,7 @@ static int nl80211_set_channel(struct i8
|
||||
@@ -4970,7 +4970,7 @@ static int nl80211_set_channel(struct i8
|
||||
freq->freq, freq->ht_enabled, freq->vht_enabled, freq->he_enabled,
|
||||
freq->bandwidth, freq->center_freq1, freq->center_freq2);
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
--- a/src/drivers/driver_nl80211.c
|
||||
+++ b/src/drivers/driver_nl80211.c
|
||||
@@ -2918,10 +2918,15 @@ static int wpa_driver_nl80211_del_beacon
|
||||
@@ -2915,10 +2915,15 @@ static int wpa_driver_nl80211_del_beacon
|
||||
struct nl_msg *msg;
|
||||
struct wpa_driver_nl80211_data *drv = bss->drv;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
return send_and_recv_msgs(drv, msg, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
@@ -5602,7 +5607,7 @@ static void nl80211_teardown_ap(struct i
|
||||
@@ -5601,7 +5606,7 @@ static void nl80211_teardown_ap(struct i
|
||||
nl80211_mgmt_unsubscribe(bss, "AP teardown");
|
||||
|
||||
nl80211_put_wiphy_data_ap(bss);
|
||||
@ -27,7 +27,7 @@
|
||||
}
|
||||
|
||||
|
||||
@@ -8051,8 +8056,6 @@ static int wpa_driver_nl80211_if_remove(
|
||||
@@ -8048,8 +8053,6 @@ static int wpa_driver_nl80211_if_remove(
|
||||
} else {
|
||||
wpa_printf(MSG_DEBUG, "nl80211: First BSS - reassign context");
|
||||
nl80211_teardown_ap(bss);
|
||||
@ -36,7 +36,7 @@
|
||||
nl80211_destroy_bss(bss);
|
||||
if (!bss->added_if)
|
||||
i802_set_iface_flags(bss, 0);
|
||||
@@ -8449,7 +8452,6 @@ static int wpa_driver_nl80211_deinit_ap(
|
||||
@@ -8446,7 +8449,6 @@ static int wpa_driver_nl80211_deinit_ap(
|
||||
if (!is_ap_interface(drv->nlmode))
|
||||
return -1;
|
||||
wpa_driver_nl80211_del_beacon(bss);
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
/*
|
||||
* If the P2P GO interface was dynamically added, then it is
|
||||
@@ -8469,7 +8471,6 @@ static int wpa_driver_nl80211_stop_ap(vo
|
||||
@@ -8466,7 +8468,6 @@ static int wpa_driver_nl80211_stop_ap(vo
|
||||
if (!is_ap_interface(drv->nlmode))
|
||||
return -1;
|
||||
wpa_driver_nl80211_del_beacon(bss);
|
||||
|
||||
@ -10,7 +10,7 @@ Signed-hostap: Antonio Quartulli <ordex@autistici.org>
|
||||
|
||||
--- a/src/drivers/driver_nl80211.c
|
||||
+++ b/src/drivers/driver_nl80211.c
|
||||
@@ -5951,7 +5951,7 @@ static int wpa_driver_nl80211_ibss(struc
|
||||
@@ -5950,7 +5950,7 @@ static int wpa_driver_nl80211_ibss(struc
|
||||
struct wpa_driver_associate_params *params)
|
||||
{
|
||||
struct nl_msg *msg;
|
||||
@ -19,7 +19,7 @@ Signed-hostap: Antonio Quartulli <ordex@autistici.org>
|
||||
int count = 0;
|
||||
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Join IBSS (ifindex=%d)", drv->ifindex);
|
||||
@@ -5978,6 +5978,37 @@ retry:
|
||||
@@ -5977,6 +5977,37 @@ retry:
|
||||
nl80211_put_beacon_int(msg, params->beacon_int))
|
||||
goto fail;
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ Tested-by: Simon Wunderlich <simon.wunderlich@openmesh.com>
|
||||
struct wpa_driver_set_key_params {
|
||||
--- a/src/drivers/driver_nl80211.c
|
||||
+++ b/src/drivers/driver_nl80211.c
|
||||
@@ -10476,6 +10476,18 @@ static int nl80211_put_mesh_id(struct nl
|
||||
@@ -10473,6 +10473,18 @@ static int nl80211_put_mesh_id(struct nl
|
||||
}
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ Tested-by: Simon Wunderlich <simon.wunderlich@openmesh.com>
|
||||
static int nl80211_put_mesh_config(struct nl_msg *msg,
|
||||
struct wpa_driver_mesh_bss_params *params)
|
||||
{
|
||||
@@ -10537,6 +10549,7 @@ static int nl80211_join_mesh(struct i802
|
||||
@@ -10534,6 +10546,7 @@ static int nl80211_join_mesh(struct i802
|
||||
nl80211_put_basic_rates(msg, params->basic_rates) ||
|
||||
nl80211_put_mesh_id(msg, params->meshid, params->meshid_len) ||
|
||||
nl80211_put_beacon_int(msg, params->beacon_int) ||
|
||||
|
||||
@ -175,7 +175,7 @@
|
||||
hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface,
|
||||
--- a/src/drivers/driver_nl80211.c
|
||||
+++ b/src/drivers/driver_nl80211.c
|
||||
@@ -4820,6 +4820,9 @@ static int wpa_driver_nl80211_set_ap(voi
|
||||
@@ -4817,6 +4817,9 @@ static int wpa_driver_nl80211_set_ap(voi
|
||||
if (ret) {
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Beacon set failed: %d (%s)",
|
||||
ret, strerror(-ret));
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
struct hapd_interfaces *interfaces = iface->interfaces;
|
||||
--- a/src/ap/beacon.c
|
||||
+++ b/src/ap/beacon.c
|
||||
@@ -1039,7 +1039,7 @@ void handle_probe_req(struct hostapd_dat
|
||||
@@ -1042,7 +1042,7 @@ void handle_probe_req(struct hostapd_dat
|
||||
if (hapd->conf->no_probe_resp_if_max_sta &&
|
||||
is_multicast_ether_addr(mgmt->da) &&
|
||||
is_multicast_ether_addr(mgmt->bssid) &&
|
||||
|
||||
@ -0,0 +1,51 @@
|
||||
From ad694836b2ded6b97b426bf331627537cdbff591 Mon Sep 17 00:00:00 2001
|
||||
From: David Bauer <mail@david-bauer.net>
|
||||
Date: Thu, 19 Aug 2021 00:52:04 +0200
|
||||
Subject: [PATCH] proxyarp: fix compilation with Hotspot 2.0 disabled
|
||||
|
||||
The disable_dgaf config fiels is only available in case Hostapd is
|
||||
compiled with Hotspot 2.0 support, however Proxy-ARP does not depend on
|
||||
Hotspot 2.0.
|
||||
|
||||
Only add the code related to this config field when Hotspot 2.0 is
|
||||
enabled to fix compilation with the aformentioned preconditions.
|
||||
|
||||
Signed-off-by: David Bauer <mail@david-bauer.net>
|
||||
---
|
||||
src/ap/dhcp_snoop.c | 2 ++
|
||||
src/ap/ndisc_snoop.c | 2 ++
|
||||
2 files changed, 4 insertions(+)
|
||||
|
||||
--- a/src/ap/dhcp_snoop.c
|
||||
+++ b/src/ap/dhcp_snoop.c
|
||||
@@ -88,6 +88,7 @@ static void handle_dhcp(void *ctx, const
|
||||
}
|
||||
}
|
||||
|
||||
+#ifdef CONFIG_HS20
|
||||
if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) {
|
||||
for (sta = hapd->sta_list; sta; sta = sta->next) {
|
||||
if (!(sta->flags & WLAN_STA_AUTHORIZED))
|
||||
@@ -96,6 +97,7 @@ static void handle_dhcp(void *ctx, const
|
||||
(u8 *) buf, len);
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (msgtype == DHCPACK) {
|
||||
if (b->your_ip == 0)
|
||||
--- a/src/ap/ndisc_snoop.c
|
||||
+++ b/src/ap/ndisc_snoop.c
|
||||
@@ -151,10 +151,12 @@ static void handle_ndisc(void *ctx, cons
|
||||
return;
|
||||
}
|
||||
break;
|
||||
+#ifdef CONFIG_HS20
|
||||
case ROUTER_ADVERTISEMENT:
|
||||
if (hapd->conf->disable_dgaf)
|
||||
ucast_to_stas(hapd, buf, len);
|
||||
break;
|
||||
+#endif
|
||||
case NEIGHBOR_ADVERTISEMENT:
|
||||
if (hapd->conf->na_mcast_to_ucast)
|
||||
ucast_to_stas(hapd, buf, len);
|
||||
@ -11,12 +11,12 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=wireguard-tools
|
||||
|
||||
PKG_VERSION:=1.0.20210223
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=1.0.20210424
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=wireguard-tools-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=https://git.zx2c4.com/wireguard-tools/snapshot/
|
||||
PKG_HASH:=1f72da217044622d79e0bab57779e136a3df795e3761a3fc1dc0941a9055877c
|
||||
PKG_HASH:=b288b0c43871d919629d7e77846ef0b47f8eeaa9ebc9cedeee8233fc6cc376ad
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
@ -163,8 +163,6 @@ CONFIG_PREEMPT_COUNT=y
|
||||
CONFIG_PREEMPT_RCU=y
|
||||
CONFIG_PTP_1588_CLOCK=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_RESET_AXS10X=y
|
||||
|
||||
@ -226,8 +226,6 @@ CONFIG_PREEMPT_RCU=y
|
||||
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
|
||||
CONFIG_PTP_1588_CLOCK=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_I2C=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
|
||||
@ -128,8 +128,6 @@ CONFIG_PCI_MSI_IRQ_DOMAIN=y
|
||||
CONFIG_PGTABLE_LEVELS=3
|
||||
CONFIG_PHYS_ADDR_T_64BIT=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_RFS_ACCEL=y
|
||||
CONFIG_RPS=y
|
||||
CONFIG_RTC_CLASS=y
|
||||
|
||||
@ -122,8 +122,6 @@ CONFIG_PCI_MSI_IRQ_DOMAIN=y
|
||||
CONFIG_PGTABLE_LEVELS=3
|
||||
CONFIG_PHYS_ADDR_T_64BIT=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REFCOUNT_FULL=y
|
||||
CONFIG_RFS_ACCEL=y
|
||||
CONFIG_RPS=y
|
||||
|
||||
@ -883,7 +883,7 @@ define Device/dlink_dap-2695-a1
|
||||
SOC := qca9558
|
||||
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
|
||||
DEVICE_VENDOR := D-Link
|
||||
DEVICE_MODEL := DAP-2965
|
||||
DEVICE_MODEL := DAP-2695
|
||||
DEVICE_VARIANT := A1
|
||||
IMAGES := factory.img sysupgrade.bin
|
||||
IMAGE_SIZE := 15360k
|
||||
@ -1732,7 +1732,6 @@ define Device/openmesh_common_64k
|
||||
DEVICE_VENDOR := OpenMesh
|
||||
DEVICE_PACKAGES := uboot-envtools
|
||||
IMAGE_SIZE := 7808k
|
||||
BLOCKSIZE := 64k
|
||||
OPENMESH_CE_TYPE :=
|
||||
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | \
|
||||
pad-to $$(BLOCKSIZE)
|
||||
@ -2005,7 +2004,6 @@ define Device/plasmacloud_pa300-common
|
||||
DEVICE_VENDOR := Plasma Cloud
|
||||
DEVICE_PACKAGES := uboot-envtools
|
||||
IMAGE_SIZE := 7168k
|
||||
BLOCKSIZE := 64k
|
||||
IMAGES += factory.bin
|
||||
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-to $$(BLOCKSIZE)
|
||||
IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA300
|
||||
|
||||
@ -102,7 +102,6 @@ TARGET_DEVICES += glinet_gl-ar300m-nand
|
||||
define Device/glinet_gl-ar300m-nor
|
||||
$(Device/glinet_gl-ar300m-common-nand)
|
||||
DEVICE_VARIANT := NOR
|
||||
BLOCKSIZE := 64k
|
||||
SUPPORTED_DEVICES += glinet,gl-ar300m-nand gl-ar300m
|
||||
endef
|
||||
TARGET_DEVICES += glinet_gl-ar300m-nor
|
||||
@ -128,7 +127,6 @@ TARGET_DEVICES += glinet_gl-ar750s-nor-nand
|
||||
define Device/glinet_gl-ar750s-nor
|
||||
$(Device/glinet_gl-ar750s-common)
|
||||
DEVICE_VARIANT := NOR
|
||||
BLOCKSIZE := 64k
|
||||
SUPPORTED_DEVICES += gl-ar750s glinet,gl-ar750s glinet,gl-ar750s-nor-nand
|
||||
endef
|
||||
TARGET_DEVICES += glinet_gl-ar750s-nor
|
||||
|
||||
@ -369,8 +369,6 @@ CONFIG_RASPBERRYPI_POWER=y
|
||||
CONFIG_RATIONAL=y
|
||||
# CONFIG_RAVE_SP_CORE is not set
|
||||
CONFIG_RAW_DRIVER=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_REGULATOR=y
|
||||
|
||||
@ -368,8 +368,6 @@ CONFIG_RASPBERRYPI_POWER=y
|
||||
CONFIG_RATIONAL=y
|
||||
# CONFIG_RAVE_SP_CORE is not set
|
||||
CONFIG_RAW_DRIVER=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REFCOUNT_FULL=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
|
||||
@ -360,8 +360,6 @@ CONFIG_RASPBERRYPI_POWER=y
|
||||
CONFIG_RATIONAL=y
|
||||
# CONFIG_RAVE_SP_CORE is not set
|
||||
CONFIG_RAW_DRIVER=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_REGULATOR=y
|
||||
|
||||
@ -364,8 +364,6 @@ CONFIG_RASPBERRYPI_POWER=y
|
||||
CONFIG_RATIONAL=y
|
||||
# CONFIG_RAVE_SP_CORE is not set
|
||||
CONFIG_RAW_DRIVER=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REFCOUNT_FULL=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
|
||||
@ -372,8 +372,6 @@ CONFIG_RASPBERRYPI_POWER=y
|
||||
CONFIG_RATIONAL=y
|
||||
# CONFIG_RAVE_SP_CORE is not set
|
||||
CONFIG_RAW_DRIVER=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_REGULATOR=y
|
||||
|
||||
@ -376,8 +376,6 @@ CONFIG_RASPBERRYPI_POWER=y
|
||||
CONFIG_RATIONAL=y
|
||||
# CONFIG_RAVE_SP_CORE is not set
|
||||
CONFIG_RAW_DRIVER=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REFCOUNT_FULL=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
|
||||
@ -14,7 +14,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2453,6 +2453,11 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -2461,6 +2461,11 @@ static int lan78xx_reset(struct lan78xx_
|
||||
int ret = 0;
|
||||
unsigned long timeout;
|
||||
u8 sig;
|
||||
@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
ret = lan78xx_read_reg(dev, HW_CFG, &buf);
|
||||
buf |= HW_CFG_LRST_;
|
||||
@@ -2506,6 +2511,9 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -2514,6 +2519,9 @@ static int lan78xx_reset(struct lan78xx_
|
||||
|
||||
ret = lan78xx_read_reg(dev, HW_CFG, &buf);
|
||||
buf |= HW_CFG_MEF_;
|
||||
@ -36,7 +36,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
ret = lan78xx_write_reg(dev, HW_CFG, buf);
|
||||
|
||||
ret = lan78xx_read_reg(dev, USB_CFG0, &buf);
|
||||
@@ -2561,6 +2569,9 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -2569,6 +2577,9 @@ static int lan78xx_reset(struct lan78xx_
|
||||
buf |= MAC_CR_AUTO_DUPLEX_ | MAC_CR_AUTO_SPEED_;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1134,7 +1134,7 @@ Signed-off-by: Jonathan Bell <jonathan@raspberrypi.org>
|
||||
USB_PORT_FEAT_C_OVER_CURRENT);
|
||||
--- a/drivers/usb/core/message.c
|
||||
+++ b/drivers/usb/core/message.c
|
||||
@@ -2129,6 +2129,85 @@ free_interfaces:
|
||||
@@ -2135,6 +2135,85 @@ free_interfaces:
|
||||
if (cp->string == NULL &&
|
||||
!(dev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS))
|
||||
cp->string = usb_cache_string(dev, cp->desc.iConfiguration);
|
||||
|
||||
@ -15,7 +15,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2635,6 +2635,22 @@ static int lan78xx_open(struct net_devic
|
||||
@@ -2643,6 +2643,22 @@ static int lan78xx_open(struct net_devic
|
||||
|
||||
netif_dbg(dev, ifup, dev->net, "phy initialised successfully");
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
||||
static int lan78xx_read_reg(struct lan78xx_net *dev, u32 index, u32 *data)
|
||||
{
|
||||
u32 *buf = kmalloc(sizeof(u32), GFP_KERNEL);
|
||||
@@ -2917,8 +2926,14 @@ static int lan78xx_bind(struct lan78xx_n
|
||||
@@ -2925,8 +2934,14 @@ static int lan78xx_bind(struct lan78xx_n
|
||||
if (DEFAULT_RX_CSUM_ENABLE)
|
||||
dev->net->features |= NETIF_F_RXCSUM;
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2167,6 +2167,22 @@ static int lan78xx_phy_init(struct lan78
|
||||
@@ -2175,6 +2175,22 @@ static int lan78xx_phy_init(struct lan78
|
||||
mii_adv_to_linkmode_adv_t(fc, mii_adv);
|
||||
linkmode_or(phydev->advertising, fc, phydev->advertising);
|
||||
|
||||
@ -39,7 +39,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
if (phydev->mdio.dev.of_node) {
|
||||
u32 reg;
|
||||
int len;
|
||||
@@ -2644,22 +2660,6 @@ static int lan78xx_open(struct net_devic
|
||||
@@ -2652,22 +2668,6 @@ static int lan78xx_open(struct net_devic
|
||||
|
||||
netif_dbg(dev, ifup, dev->net, "phy initialised successfully");
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ See: https://github.com/raspberrypi/linux/issues/2447
|
||||
static int lan78xx_read_reg(struct lan78xx_net *dev, u32 index, u32 *data)
|
||||
{
|
||||
u32 *buf = kmalloc(sizeof(u32), GFP_KERNEL);
|
||||
@@ -3760,7 +3765,13 @@ static int lan78xx_probe(struct usb_inte
|
||||
@@ -3768,7 +3773,13 @@ static int lan78xx_probe(struct usb_inte
|
||||
netdev->max_mtu = MAX_SINGLE_PACKET_SIZE;
|
||||
netif_set_gso_max_size(netdev, MAX_SINGLE_PACKET_SIZE - MAX_HEADER);
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2172,7 +2172,7 @@ static int lan78xx_phy_init(struct lan78
|
||||
@@ -2180,7 +2180,7 @@ static int lan78xx_phy_init(struct lan78
|
||||
mii_adv_to_linkmode_adv_t(fc, mii_adv);
|
||||
linkmode_or(phydev->advertising, fc, phydev->advertising);
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ in both dwc_otg and in ipv6 processing.
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -3161,7 +3161,7 @@ static int rx_submit(struct lan78xx_net
|
||||
@@ -3169,7 +3169,7 @@ static int rx_submit(struct lan78xx_net
|
||||
size_t size = dev->rx_urb_size;
|
||||
int ret = 0;
|
||||
|
||||
|
||||
@ -18,8 +18,8 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/mmc/host/sdhci-iproc.c
|
||||
+++ b/drivers/mmc/host/sdhci-iproc.c
|
||||
@@ -173,6 +173,17 @@ static unsigned int sdhci_iproc_get_max_
|
||||
return pltfm_host->clock;
|
||||
@@ -190,6 +190,17 @@ static unsigned int sdhci_iproc_bcm2711_
|
||||
return 200000;
|
||||
}
|
||||
|
||||
+static void sdhci_iproc_set_power(struct sdhci_host *host, unsigned char mode,
|
||||
@ -36,7 +36,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
static const struct sdhci_ops sdhci_iproc_ops = {
|
||||
.set_clock = sdhci_set_clock,
|
||||
.get_max_clock = sdhci_iproc_get_max_clock,
|
||||
@@ -190,6 +201,7 @@ static const struct sdhci_ops sdhci_ipro
|
||||
@@ -207,6 +218,7 @@ static const struct sdhci_ops sdhci_ipro
|
||||
.write_b = sdhci_iproc_writeb,
|
||||
.set_clock = sdhci_set_clock,
|
||||
.get_max_clock = sdhci_iproc_get_max_clock,
|
||||
|
||||
@ -46,7 +46,7 @@ Signed-off-by: Jonathan Bell <jonathan@raspberrypi.org>
|
||||
* have been called previously. Use for set_configuration, set_interface,
|
||||
--- a/drivers/usb/core/message.c
|
||||
+++ b/drivers/usb/core/message.c
|
||||
@@ -1259,6 +1259,21 @@ static void remove_intf_ep_devs(struct u
|
||||
@@ -1265,6 +1265,21 @@ static void remove_intf_ep_devs(struct u
|
||||
intf->ep_devs_created = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -27,6 +27,6 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
+ /* Acknowledge any pending PHY interrupt, lest it be the last */
|
||||
+ phy_read(phydev, LAN88XX_INT_STS);
|
||||
+
|
||||
mutex_lock(&phydev->lock);
|
||||
phy_read_status(phydev);
|
||||
|
||||
if (!phydev->link && dev->link_on) {
|
||||
link = phydev->link;
|
||||
|
||||
@ -920,7 +920,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
|
||||
+ case RTL_VER_15:
|
||||
default:
|
||||
if (type == MCU_TYPE_USB) {
|
||||
ocp_write_byte(tp, MCU_TYPE_USB, USB_BP2_EN, 0);
|
||||
ocp_write_word(tp, MCU_TYPE_USB, USB_BP2_EN, 0);
|
||||
@@ -3653,6 +4100,11 @@ static bool rtl8152_is_fw_mac_ok(struct
|
||||
case RTL_VER_06:
|
||||
case RTL_VER_08:
|
||||
|
||||
@ -14,7 +14,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2461,6 +2461,11 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -2469,6 +2469,11 @@ static int lan78xx_reset(struct lan78xx_
|
||||
int ret = 0;
|
||||
unsigned long timeout;
|
||||
u8 sig;
|
||||
@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
ret = lan78xx_read_reg(dev, HW_CFG, &buf);
|
||||
buf |= HW_CFG_LRST_;
|
||||
@@ -2514,6 +2519,9 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -2522,6 +2527,9 @@ static int lan78xx_reset(struct lan78xx_
|
||||
|
||||
ret = lan78xx_read_reg(dev, HW_CFG, &buf);
|
||||
buf |= HW_CFG_MEF_;
|
||||
@ -36,7 +36,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
ret = lan78xx_write_reg(dev, HW_CFG, buf);
|
||||
|
||||
ret = lan78xx_read_reg(dev, USB_CFG0, &buf);
|
||||
@@ -2569,6 +2577,9 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -2577,6 +2585,9 @@ static int lan78xx_reset(struct lan78xx_
|
||||
buf |= MAC_CR_AUTO_DUPLEX_ | MAC_CR_AUTO_SPEED_;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1051,7 +1051,7 @@ Signed-off-by: Jonathan Bell <jonathan@raspberrypi.org>
|
||||
USB_PORT_FEAT_C_OVER_CURRENT);
|
||||
--- a/drivers/usb/core/message.c
|
||||
+++ b/drivers/usb/core/message.c
|
||||
@@ -1993,6 +1993,85 @@ free_interfaces:
|
||||
@@ -1999,6 +1999,85 @@ free_interfaces:
|
||||
if (cp->string == NULL &&
|
||||
!(dev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS))
|
||||
cp->string = usb_cache_string(dev, cp->desc.iConfiguration);
|
||||
|
||||
@ -15,7 +15,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2643,6 +2643,22 @@ static int lan78xx_open(struct net_devic
|
||||
@@ -2651,6 +2651,22 @@ static int lan78xx_open(struct net_devic
|
||||
|
||||
netif_dbg(dev, ifup, dev->net, "phy initialised successfully");
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
||||
static int lan78xx_read_reg(struct lan78xx_net *dev, u32 index, u32 *data)
|
||||
{
|
||||
u32 *buf = kmalloc(sizeof(u32), GFP_KERNEL);
|
||||
@@ -2925,8 +2934,14 @@ static int lan78xx_bind(struct lan78xx_n
|
||||
@@ -2933,8 +2942,14 @@ static int lan78xx_bind(struct lan78xx_n
|
||||
if (DEFAULT_RX_CSUM_ENABLE)
|
||||
dev->net->features |= NETIF_F_RXCSUM;
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2175,6 +2175,22 @@ static int lan78xx_phy_init(struct lan78
|
||||
@@ -2183,6 +2183,22 @@ static int lan78xx_phy_init(struct lan78
|
||||
mii_adv_to_linkmode_adv_t(fc, mii_adv);
|
||||
linkmode_or(phydev->advertising, fc, phydev->advertising);
|
||||
|
||||
@ -39,7 +39,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
if (phydev->mdio.dev.of_node) {
|
||||
u32 reg;
|
||||
int len;
|
||||
@@ -2652,22 +2668,6 @@ static int lan78xx_open(struct net_devic
|
||||
@@ -2660,22 +2676,6 @@ static int lan78xx_open(struct net_devic
|
||||
|
||||
netif_dbg(dev, ifup, dev->net, "phy initialised successfully");
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ See: https://github.com/raspberrypi/linux/issues/2447
|
||||
static int lan78xx_read_reg(struct lan78xx_net *dev, u32 index, u32 *data)
|
||||
{
|
||||
u32 *buf = kmalloc(sizeof(u32), GFP_KERNEL);
|
||||
@@ -3768,7 +3773,12 @@ static int lan78xx_probe(struct usb_inte
|
||||
@@ -3776,7 +3781,12 @@ static int lan78xx_probe(struct usb_inte
|
||||
netdev->max_mtu = MAX_SINGLE_PACKET_SIZE;
|
||||
netif_set_gso_max_size(netdev, MAX_SINGLE_PACKET_SIZE - MAX_HEADER);
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2180,7 +2180,7 @@ static int lan78xx_phy_init(struct lan78
|
||||
@@ -2188,7 +2188,7 @@ static int lan78xx_phy_init(struct lan78
|
||||
mii_adv_to_linkmode_adv_t(fc, mii_adv);
|
||||
linkmode_or(phydev->advertising, fc, phydev->advertising);
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ in both dwc_otg and in ipv6 processing.
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -3169,7 +3169,7 @@ static int rx_submit(struct lan78xx_net
|
||||
@@ -3177,7 +3177,7 @@ static int rx_submit(struct lan78xx_net
|
||||
size_t size = dev->rx_urb_size;
|
||||
int ret = 0;
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ Signed-off-by: Jonathan Bell <jonathan@raspberrypi.org>
|
||||
* have been called previously. Use for set_configuration, set_interface,
|
||||
--- a/drivers/usb/core/message.c
|
||||
+++ b/drivers/usb/core/message.c
|
||||
@@ -1120,6 +1120,21 @@ static void remove_intf_ep_devs(struct u
|
||||
@@ -1126,6 +1126,21 @@ static void remove_intf_ep_devs(struct u
|
||||
intf->ep_devs_created = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -23,10 +23,10 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
@@ -1181,6 +1181,9 @@ static int lan78xx_link_reset(struct lan
|
||||
if (unlikely(ret < 0))
|
||||
return -EIO;
|
||||
|
||||
|
||||
+ /* Acknowledge any pending PHY interrupt, lest it be the last */
|
||||
+ phy_read(phydev, LAN88XX_INT_STS);
|
||||
+
|
||||
mutex_lock(&phydev->lock);
|
||||
phy_read_status(phydev);
|
||||
|
||||
if (!phydev->link && dev->link_on) {
|
||||
link = phydev->link;
|
||||
|
||||
@ -184,8 +184,6 @@ CONFIG_POWER_SUPPLY=y
|
||||
CONFIG_QUEUED_RWLOCKS=y
|
||||
CONFIG_QUEUED_SPINLOCKS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REFCOUNT_FULL=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
|
||||
@ -247,8 +247,6 @@ CONFIG_PWM=y
|
||||
CONFIG_PWM_BCM_IPROC=y
|
||||
CONFIG_PWM_SYSFS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_RFS_ACCEL=y
|
||||
|
||||
@ -310,8 +310,6 @@ CONFIG_PWM=y
|
||||
CONFIG_PWM_BCM_IPROC=y
|
||||
CONFIG_PWM_SYSFS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REFCOUNT_FULL=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
|
||||
@ -0,0 +1,85 @@
|
||||
From 776461b1795b4dc4084894cf53399044aafa1d21 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Wed, 11 Nov 2020 15:55:38 +0100
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Move CRU devices to the CRU node
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Clocks and thermal blocks are part of the CRU ("Clock and Reset Unit" or
|
||||
"Central Resource Unit").
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm5301x.dtsi | 51 +++++++++++++++++----------------
|
||||
1 file changed, 26 insertions(+), 25 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -428,6 +428,26 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
+ lcpll0: lcpll0@100 {
|
||||
+ #clock-cells = <1>;
|
||||
+ compatible = "brcm,nsp-lcpll0";
|
||||
+ reg = <0x100 0x14>;
|
||||
+ clocks = <&osc>;
|
||||
+ clock-output-names = "lcpll0", "pcie_phy",
|
||||
+ "sdio", "ddr_phy";
|
||||
+ };
|
||||
+
|
||||
+ genpll: genpll@140 {
|
||||
+ #clock-cells = <1>;
|
||||
+ compatible = "brcm,nsp-genpll";
|
||||
+ reg = <0x140 0x24>;
|
||||
+ clocks = <&osc>;
|
||||
+ clock-output-names = "genpll", "phy",
|
||||
+ "ethernetclk",
|
||||
+ "usbclk", "iprocfast",
|
||||
+ "sata1", "sata2";
|
||||
+ };
|
||||
+
|
||||
pinctrl: pin-controller@1c0 {
|
||||
compatible = "brcm,bcm4708-pinmux";
|
||||
reg = <0x1c0 0x24>;
|
||||
@@ -454,32 +474,13 @@
|
||||
function = "uart1";
|
||||
};
|
||||
};
|
||||
- };
|
||||
- };
|
||||
|
||||
- lcpll0: lcpll0@1800c100 {
|
||||
- #clock-cells = <1>;
|
||||
- compatible = "brcm,nsp-lcpll0";
|
||||
- reg = <0x1800c100 0x14>;
|
||||
- clocks = <&osc>;
|
||||
- clock-output-names = "lcpll0", "pcie_phy", "sdio",
|
||||
- "ddr_phy";
|
||||
- };
|
||||
-
|
||||
- genpll: genpll@1800c140 {
|
||||
- #clock-cells = <1>;
|
||||
- compatible = "brcm,nsp-genpll";
|
||||
- reg = <0x1800c140 0x24>;
|
||||
- clocks = <&osc>;
|
||||
- clock-output-names = "genpll", "phy", "ethernetclk",
|
||||
- "usbclk", "iprocfast", "sata1",
|
||||
- "sata2";
|
||||
- };
|
||||
-
|
||||
- thermal: thermal@1800c2c0 {
|
||||
- compatible = "brcm,ns-thermal";
|
||||
- reg = <0x1800c2c0 0x10>;
|
||||
- #thermal-sensor-cells = <0>;
|
||||
+ thermal: thermal@2c0 {
|
||||
+ compatible = "brcm,ns-thermal";
|
||||
+ reg = <0x2c0 0x10>;
|
||||
+ #thermal-sensor-cells = <0>;
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
srab: srab@18007000 {
|
||||
@ -21,8 +21,8 @@ Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -482,7 +482,7 @@
|
||||
#thermal-sensor-cells = <0>;
|
||||
@@ -483,7 +483,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
- srab: srab@18007000 {
|
||||
|
||||
@ -71,7 +71,7 @@ Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
+};
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -483,7 +483,7 @@
|
||||
@@ -484,7 +484,7 @@
|
||||
};
|
||||
|
||||
srab: ethernet-switch@18007000 {
|
||||
|
||||
@ -155,7 +155,7 @@ Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
label = "lan4";
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -489,6 +489,10 @@
|
||||
@@ -490,6 +490,10 @@
|
||||
status = "disabled";
|
||||
|
||||
/* ports are defined in board DTS */
|
||||
|
||||
@ -0,0 +1,32 @@
|
||||
From fd66cd0d79cb836badecb91fdd19afd32afbb443 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Fainelli <f.fainelli@gmail.com>
|
||||
Date: Mon, 9 Nov 2020 12:02:08 -0800
|
||||
Subject: [PATCH 13/16] ARM: dts: NSP: Update ethernet switch node name
|
||||
|
||||
Update the switch unit name from srab to ethernet-switch, allowing us
|
||||
to fix warnings such as:
|
||||
|
||||
CHECK arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dt.yaml
|
||||
arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dt.yaml:
|
||||
srab@18007000: $nodename:0: 'srab@18007000' does not match
|
||||
'^(ethernet-)?switch(@.*)?$'
|
||||
From schema:
|
||||
Documentation/devicetree/bindings/net/dsa/b53.yaml
|
||||
|
||||
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm-nsp.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
@@ -385,7 +385,7 @@
|
||||
clock-names = "apb_pclk";
|
||||
};
|
||||
|
||||
- srab: srab@36000 {
|
||||
+ srab: ethernet-switch@36000 {
|
||||
compatible = "brcm,nsp-srab";
|
||||
reg = <0x36000 0x1000>,
|
||||
<0x3f308 0x8>,
|
||||
@ -0,0 +1,26 @@
|
||||
From 8b0235d1deace8f1bd8cdd149d698fee3974fdf4 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Fainelli <f.fainelli@gmail.com>
|
||||
Date: Mon, 9 Nov 2020 12:06:15 -0800
|
||||
Subject: [PATCH 14/16] ARM: dts: NSP: Fix Ethernet switch SGMII register name
|
||||
|
||||
The register name should be "sgmii_config", not "sgmii", this is not a
|
||||
functional change since no code is currently looking for that register
|
||||
by name (or at all).
|
||||
|
||||
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm-nsp.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
@@ -390,7 +390,7 @@
|
||||
reg = <0x36000 0x1000>,
|
||||
<0x3f308 0x8>,
|
||||
<0x3f410 0xc>;
|
||||
- reg-names = "srab", "mux_config", "sgmii";
|
||||
+ reg-names = "srab", "mux_config", "sgmii_config";
|
||||
interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
|
||||
@ -0,0 +1,77 @@
|
||||
From 42791b317db4cda36751f57bada27857849811d3 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Fainelli <f.fainelli@gmail.com>
|
||||
Date: Mon, 9 Nov 2020 17:41:32 -0800
|
||||
Subject: [PATCH 15/16] ARM: dts: NSP: Add a SRAB compatible string for each
|
||||
board
|
||||
|
||||
Provide a valid compatible string for the Ethernet switch node based on
|
||||
the board including the switch. This allows us to have sane defaults and
|
||||
silences the following warnings:
|
||||
|
||||
arch/arm/boot/dts/bcm958522er.dt.yaml:
|
||||
ethernet-switch@36000: compatible: 'oneOf' conditional failed,
|
||||
one
|
||||
must be fixed:
|
||||
['brcm,bcm5301x-srab'] is too short
|
||||
'brcm,bcm5325' was expected
|
||||
'brcm,bcm53115' was expected
|
||||
'brcm,bcm53125' was expected
|
||||
'brcm,bcm53128' was expected
|
||||
'brcm,bcm5365' was expected
|
||||
'brcm,bcm5395' was expected
|
||||
'brcm,bcm5389' was expected
|
||||
'brcm,bcm5397' was expected
|
||||
'brcm,bcm5398' was expected
|
||||
'brcm,bcm11360-srab' was expected
|
||||
'brcm,bcm5301x-srab' is not one of ['brcm,bcm53010-srab',
|
||||
'brcm,bcm53011-srab', 'brcm,bcm53012-srab', 'brcm,bcm53018-srab',
|
||||
'brcm,bcm53019-srab']
|
||||
'brcm,bcm5301x-srab' is not one of ['brcm,bcm11404-srab',
|
||||
'brcm,bcm11407-srab', 'brcm,bcm11409-srab', 'brcm,bcm58310-srab',
|
||||
'brcm,bcm58311-srab', 'brcm,bcm58313-srab']
|
||||
'brcm,bcm5301x-srab' is not one of ['brcm,bcm58522-srab',
|
||||
'brcm,bcm58523-srab', 'brcm,bcm58525-srab', 'brcm,bcm58622-srab',
|
||||
'brcm,bcm58623-srab', 'brcm,bcm58625-srab', 'brcm,bcm88312-srab']
|
||||
'brcm,bcm5301x-srab' is not one of ['brcm,bcm3384-switch',
|
||||
'brcm,bcm6328-switch', 'brcm,bcm6368-switch']
|
||||
From schema:
|
||||
Documentation/devicetree/bindings/net/dsa/b53.yaml
|
||||
|
||||
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm958522er.dts | 4 ++++
|
||||
arch/arm/boot/dts/bcm958525er.dts | 4 ++++
|
||||
arch/arm/boot/dts/bcm958525xmc.dts | 4 ++++
|
||||
3 files changed, 12 insertions(+)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm958522er.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958522er.dts
|
||||
@@ -178,3 +178,7 @@
|
||||
&xhci {
|
||||
status = "okay";
|
||||
};
|
||||
+
|
||||
+&srab {
|
||||
+ compatible = "brcm,bcm58522-srab", "brcm,nsp-srab";
|
||||
+};
|
||||
--- a/arch/arm/boot/dts/bcm958525er.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958525er.dts
|
||||
@@ -190,3 +190,7 @@
|
||||
&xhci {
|
||||
status = "okay";
|
||||
};
|
||||
+
|
||||
+&srab {
|
||||
+ compatible = "brcm,bcm58525-srab", "brcm,nsp-srab";
|
||||
+};
|
||||
--- a/arch/arm/boot/dts/bcm958525xmc.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958525xmc.dts
|
||||
@@ -210,3 +210,7 @@
|
||||
&xhci {
|
||||
status = "okay";
|
||||
};
|
||||
+
|
||||
+&srab {
|
||||
+ compatible = "brcm,bcm58525-srab", "brcm,nsp-srab";
|
||||
+};
|
||||
@ -0,0 +1,99 @@
|
||||
From 51e40c25aa18d926a8eb1c07289d01611b21123a Mon Sep 17 00:00:00 2001
|
||||
From: Florian Fainelli <f.fainelli@gmail.com>
|
||||
Date: Mon, 9 Nov 2020 17:44:33 -0800
|
||||
Subject: [PATCH 16/16] ARM: dts: NSP: Provide defaults ports container node
|
||||
|
||||
Provide an empty 'ports' container node with the correct #address-cells
|
||||
and #size-cells properties. This silences the following warning:
|
||||
|
||||
arch/arm/boot/dts/bcm958522er.dt.yaml:
|
||||
ethernet-switch@36000: 'oneOf' conditional failed, one must be fixed:
|
||||
'ports' is a required property
|
||||
'ethernet-ports' is a required property
|
||||
From schema:
|
||||
Documentation/devicetree/bindings/net/dsa/b53.yaml
|
||||
|
||||
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm-nsp.dtsi | 4 ++++
|
||||
arch/arm/boot/dts/bcm958622hr.dts | 3 ---
|
||||
arch/arm/boot/dts/bcm958623hr.dts | 3 ---
|
||||
arch/arm/boot/dts/bcm958625hr.dts | 3 ---
|
||||
arch/arm/boot/dts/bcm958625k.dts | 3 ---
|
||||
arch/arm/boot/dts/bcm988312hr.dts | 3 ---
|
||||
6 files changed, 4 insertions(+), 15 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
@@ -420,6 +420,10 @@
|
||||
status = "disabled";
|
||||
|
||||
/* ports are defined in board DTS */
|
||||
+ ports {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ };
|
||||
};
|
||||
|
||||
i2c0: i2c@38000 {
|
||||
--- a/arch/arm/boot/dts/bcm958622hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958622hr.dts
|
||||
@@ -176,9 +176,6 @@
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
- #address-cells = <1>;
|
||||
- #size-cells = <0>;
|
||||
-
|
||||
port@0 {
|
||||
label = "port0";
|
||||
reg = <0>;
|
||||
--- a/arch/arm/boot/dts/bcm958623hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958623hr.dts
|
||||
@@ -180,9 +180,6 @@
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
- #address-cells = <1>;
|
||||
- #size-cells = <0>;
|
||||
-
|
||||
port@0 {
|
||||
label = "port0";
|
||||
reg = <0>;
|
||||
--- a/arch/arm/boot/dts/bcm958625hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958625hr.dts
|
||||
@@ -195,9 +195,6 @@
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
- #address-cells = <1>;
|
||||
- #size-cells = <0>;
|
||||
-
|
||||
port@0 {
|
||||
label = "port0";
|
||||
reg = <0>;
|
||||
--- a/arch/arm/boot/dts/bcm958625k.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958625k.dts
|
||||
@@ -216,9 +216,6 @@
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
- #address-cells = <1>;
|
||||
- #size-cells = <0>;
|
||||
-
|
||||
port@0 {
|
||||
label = "port0";
|
||||
reg = <0>;
|
||||
--- a/arch/arm/boot/dts/bcm988312hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm988312hr.dts
|
||||
@@ -184,9 +184,6 @@
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
- #address-cells = <1>;
|
||||
- #size-cells = <0>;
|
||||
-
|
||||
port@0 {
|
||||
label = "port0";
|
||||
reg = <0>;
|
||||
@ -0,0 +1,77 @@
|
||||
From b660269cba748dfd07eb5551a88ff34d5ea0b86e Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Fri, 16 Apr 2021 15:37:48 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix NAND nodes names
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This matches nand-controller.yaml requirements.
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
|
||||
@@ -24,8 +24,8 @@
|
||||
reg = <0x00000000 0x08000000>;
|
||||
};
|
||||
|
||||
- nand: nand@18028000 {
|
||||
- nandcs@0 {
|
||||
+ nand_controller: nand-controller@18028000 {
|
||||
+ nand@0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
|
||||
+++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
|
||||
@@ -25,8 +25,8 @@
|
||||
<0x88000000 0x08000000>;
|
||||
};
|
||||
|
||||
- nand: nand@18028000 {
|
||||
- nandcs@0 {
|
||||
+ nand_controller: nand-controller@18028000 {
|
||||
+ nand@0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
|
||||
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
- nand@18028000 {
|
||||
- nandcs: nandcs@0 {
|
||||
+ nand-controller@18028000 {
|
||||
+ nandcs: nand@0 {
|
||||
compatible = "brcm,nandcs";
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -501,7 +501,7 @@
|
||||
reg = <0x18004000 0x14>;
|
||||
};
|
||||
|
||||
- nand: nand@18028000 {
|
||||
+ nand_controller: nand-controller@18028000 {
|
||||
compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
|
||||
reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
|
||||
reg-names = "nand", "iproc-idm", "iproc-ext";
|
||||
--- a/arch/arm/boot/dts/bcm953012k.dts
|
||||
+++ b/arch/arm/boot/dts/bcm953012k.dts
|
||||
@@ -49,8 +49,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
-&nand {
|
||||
- nandcs@0 {
|
||||
+&nand_controller {
|
||||
+ nand@0 {
|
||||
compatible = "brcm,nandcs";
|
||||
reg = <0>;
|
||||
nand-on-flash-bbt;
|
||||
@ -0,0 +1,52 @@
|
||||
From bb95d7d440fefd104c593d9cb20da6d34a474e97 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Wed, 21 Apr 2021 11:00:06 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix pinmux subnodes names
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This matches pinmux-node.yaml requirements.
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm47094.dtsi | 2 +-
|
||||
arch/arm/boot/dts/bcm5301x.dtsi | 6 +++---
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm47094.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm47094.dtsi
|
||||
@@ -11,7 +11,7 @@
|
||||
&pinctrl {
|
||||
compatible = "brcm,bcm4709-pinmux";
|
||||
|
||||
- pinmux_mdio: mdio {
|
||||
+ pinmux_mdio: mdio-pins {
|
||||
groups = "mdio_grp";
|
||||
function = "mdio";
|
||||
};
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -458,18 +458,18 @@
|
||||
function = "spi";
|
||||
};
|
||||
|
||||
- pinmux_i2c: i2c {
|
||||
+ pinmux_i2c: i2c-pins {
|
||||
groups = "i2c_grp";
|
||||
function = "i2c";
|
||||
};
|
||||
|
||||
- pinmux_pwm: pwm {
|
||||
+ pinmux_pwm: pwm-pins {
|
||||
groups = "pwm0_grp", "pwm1_grp",
|
||||
"pwm2_grp", "pwm3_grp";
|
||||
function = "pwm";
|
||||
};
|
||||
|
||||
- pinmux_uart1: uart1 {
|
||||
+ pinmux_uart1: uart1-pins {
|
||||
groups = "uart1_grp";
|
||||
function = "uart1";
|
||||
};
|
||||
@ -0,0 +1,97 @@
|
||||
From 465078bfdf5271601f098450ae2fc974865c59fd Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Thu, 10 Jun 2021 21:35:10 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: add device names to compatible
|
||||
|
||||
Currently only the SoC type and platform are specified for all NSP
|
||||
devices. This patch adds the device names.
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm958522er.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm958525er.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm958525xmc.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm958622hr.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm958625hr.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm958625k.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm988312hr.dts | 2 +-
|
||||
7 files changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm958522er.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958522er.dts
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/ {
|
||||
model = "NorthStar Plus SVK (BCM958522ER)";
|
||||
- compatible = "brcm,bcm58522", "brcm,nsp";
|
||||
+ compatible = "brcm,bcm958522er", "brcm,bcm58522", "brcm,nsp";
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
--- a/arch/arm/boot/dts/bcm958525er.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958525er.dts
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/ {
|
||||
model = "NorthStar Plus SVK (BCM958525ER)";
|
||||
- compatible = "brcm,bcm58525", "brcm,nsp";
|
||||
+ compatible = "brcm,bcm958525er", "brcm,bcm58525", "brcm,nsp";
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
--- a/arch/arm/boot/dts/bcm958525xmc.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958525xmc.dts
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/ {
|
||||
model = "NorthStar Plus XMC (BCM958525xmc)";
|
||||
- compatible = "brcm,bcm58525", "brcm,nsp";
|
||||
+ compatible = "brcm,bcm958525xmc", "brcm,bcm58525", "brcm,nsp";
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
--- a/arch/arm/boot/dts/bcm958622hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958622hr.dts
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/ {
|
||||
model = "NorthStar Plus SVK (BCM958622HR)";
|
||||
- compatible = "brcm,bcm58622", "brcm,nsp";
|
||||
+ compatible = "brcm,bcm958622hr", "brcm,bcm58622", "brcm,nsp";
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
--- a/arch/arm/boot/dts/bcm958625hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958625hr.dts
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/ {
|
||||
model = "NorthStar Plus SVK (BCM958625HR)";
|
||||
- compatible = "brcm,bcm58625", "brcm,nsp";
|
||||
+ compatible = "brcm,bcm958625hr", "brcm,bcm58625", "brcm,nsp";
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
--- a/arch/arm/boot/dts/bcm958625k.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958625k.dts
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
/ {
|
||||
model = "NorthStar Plus SVK (BCM958625K)";
|
||||
- compatible = "brcm,bcm58625", "brcm,nsp";
|
||||
+ compatible = "brcm,bcm958625k", "brcm,bcm58625", "brcm,nsp";
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
--- a/arch/arm/boot/dts/bcm988312hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm988312hr.dts
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/ {
|
||||
model = "NorthStar Plus SVK (BCM988312HR)";
|
||||
- compatible = "brcm,bcm88312", "brcm,nsp";
|
||||
+ compatible = "brcm,bcm988312hr", "brcm,bcm88312", "brcm,nsp";
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
@ -0,0 +1,29 @@
|
||||
From 1b90dde4278a7b459979706b572785bc3a10bbb5 Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Thu, 10 Jun 2021 21:35:12 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: enable DMA on bcm988312hr
|
||||
|
||||
The previous patch "ARM: dts: NSP: Disable PL330 by default, add
|
||||
dma-coherent property" set the DMAC to disabled by default, requiring it
|
||||
to be manually enabled on each device. The bcm988312hr was mistakenly
|
||||
omitted. This patch adds it back.
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm988312hr.dts | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm988312hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm988312hr.dts
|
||||
@@ -58,6 +58,10 @@
|
||||
|
||||
/* USB 3 support needed to be complete */
|
||||
|
||||
+&dma {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&amac0 {
|
||||
status = "okay";
|
||||
};
|
||||
@ -0,0 +1,113 @@
|
||||
From 091a12b1814142eac16a115dab206f735b5476a9 Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Sun, 13 Jun 2021 10:46:34 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: disable qspi node by default
|
||||
|
||||
The QSPI bus is enabled by default, however this may not used on all
|
||||
devices. This patch disables by default, requiring it to be explicitly
|
||||
enabled where required.
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm-nsp.dtsi | 1 +
|
||||
arch/arm/boot/dts/bcm958522er.dts | 1 +
|
||||
arch/arm/boot/dts/bcm958525er.dts | 1 +
|
||||
arch/arm/boot/dts/bcm958525xmc.dts | 1 +
|
||||
arch/arm/boot/dts/bcm958622hr.dts | 1 +
|
||||
arch/arm/boot/dts/bcm958623hr.dts | 1 +
|
||||
arch/arm/boot/dts/bcm958625hr.dts | 1 +
|
||||
arch/arm/boot/dts/bcm958625k.dts | 1 +
|
||||
arch/arm/boot/dts/bcm988312hr.dts | 1 +
|
||||
9 files changed, 9 insertions(+)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
@@ -310,6 +310,7 @@
|
||||
num-cs = <2>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
+ status = "disabled";
|
||||
};
|
||||
|
||||
xhci: usb@29000 {
|
||||
--- a/arch/arm/boot/dts/bcm958522er.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958522er.dts
|
||||
@@ -134,6 +134,7 @@
|
||||
};
|
||||
|
||||
&qspi {
|
||||
+ status = "okay";
|
||||
bspi-sel = <0>;
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm958525er.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958525er.dts
|
||||
@@ -134,6 +134,7 @@
|
||||
};
|
||||
|
||||
&qspi {
|
||||
+ status = "okay";
|
||||
bspi-sel = <0>;
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm958525xmc.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958525xmc.dts
|
||||
@@ -150,6 +150,7 @@
|
||||
};
|
||||
|
||||
&qspi {
|
||||
+ status = "okay";
|
||||
bspi-sel = <0>;
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm958622hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958622hr.dts
|
||||
@@ -138,6 +138,7 @@
|
||||
};
|
||||
|
||||
&qspi {
|
||||
+ status = "okay";
|
||||
bspi-sel = <0>;
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm958623hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958623hr.dts
|
||||
@@ -142,6 +142,7 @@
|
||||
};
|
||||
|
||||
&qspi {
|
||||
+ status = "okay";
|
||||
bspi-sel = <0>;
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm958625hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958625hr.dts
|
||||
@@ -149,6 +149,7 @@
|
||||
};
|
||||
|
||||
&qspi {
|
||||
+ status = "okay";
|
||||
bspi-sel = <0>;
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm958625k.dts
|
||||
+++ b/arch/arm/boot/dts/bcm958625k.dts
|
||||
@@ -153,6 +153,7 @@
|
||||
};
|
||||
|
||||
&qspi {
|
||||
+ status = "okay";
|
||||
bspi-sel = <0>;
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm988312hr.dts
|
||||
+++ b/arch/arm/boot/dts/bcm988312hr.dts
|
||||
@@ -138,6 +138,7 @@
|
||||
};
|
||||
|
||||
&qspi {
|
||||
+ status = "okay";
|
||||
bspi-sel = <0>;
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
@ -0,0 +1,30 @@
|
||||
From 236b31b1d84eb0e4f10c5f113a2675529456f919 Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Sun, 13 Jun 2021 10:46:36 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: add MDIO bus controller node
|
||||
|
||||
This patch adds the node for the MDIO bus controller, present on the NSP
|
||||
SoC.
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm-nsp.dtsi | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
@@ -363,6 +363,13 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
+ mdio: mdio@32000 {
|
||||
+ compatible = "brcm,iproc-mdio";
|
||||
+ reg = <0x32000 0x8>;
|
||||
+ #size-cells = <0>;
|
||||
+ #address-cells = <1>;
|
||||
+ };
|
||||
+
|
||||
rng: rng@33000 {
|
||||
compatible = "brcm,bcm-nsp-rng";
|
||||
reg = <0x33000 0x14>;
|
||||
@ -0,0 +1,85 @@
|
||||
From 1c615401bddb1be21e1d375aaa071680f40f1ae2 Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Sun, 13 Jun 2021 10:46:37 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: Move USB3 PHY to internal MDIO bus
|
||||
|
||||
This patch largely replicates Vivek Unune's patch "ARM: dts:
|
||||
BCM5301X:Make usb3 phy use mdio phy driver"[1] for the NSP platform,
|
||||
whereby we need to create an mdio-mux to facilitate switches
|
||||
configured via external MDIO, in this case on the Meraki MX65.
|
||||
|
||||
However in doing so, we are creating an overlap with usb3_phy's
|
||||
ccb-mii range. To resolve this, usb3_phy should be moved to a child
|
||||
node of the internal MDIO bus. The result is heavily based upon Vivek's
|
||||
patch. This has also been cross-referenced with Yendapally Reddy's
|
||||
earlier work which utilised the subsequently dropped brcm,nsp-usb3-phy
|
||||
driver: "[PATCH v2 4/4] arm: dts: nsp: Add USB nodes to device tree"
|
||||
[2]. Finally, this change provides conformance to the bcm-ns-usb3-phy
|
||||
documentation, utilising the required usb3-dmp-syscon property. Note
|
||||
that support for the deprecated ccb-mii bindings has been dropped as of
|
||||
"phy: phy-bcm-ns-usb3: drop support for deprecated DT binding"[3].
|
||||
|
||||
[1] https://lore.kernel.org/patchwork/patch/933971/
|
||||
[2] https://www.spinics.net/lists/arm-kernel/msg555132.html
|
||||
[3] https://lore.kernel.org/linux-devicetree/20201113113423.9466-1-zajec5@gmail.com/
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm-nsp.dtsi | 38 +++++++++++++++++++++++++++-------
|
||||
1 file changed, 31 insertions(+), 7 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm-nsp.dtsi
|
||||
@@ -370,6 +370,35 @@
|
||||
#address-cells = <1>;
|
||||
};
|
||||
|
||||
+ mdio-mux@32000 {
|
||||
+ compatible = "mdio-mux-mmioreg";
|
||||
+ reg = <0x32000 0x4>;
|
||||
+ mux-mask = <0x200>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ mdio-parent-bus = <&mdio>;
|
||||
+
|
||||
+ mdio_int: mdio@0 {
|
||||
+ reg = <0x0>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ usb3_phy: usb3-phy@10 {
|
||||
+ compatible = "brcm,ns-bx-usb3-phy";
|
||||
+ reg = <0x10>;
|
||||
+ usb3-dmp-syscon = <&usb3_dmp>;
|
||||
+ #phy-cells = <0>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ mdio_ext: mdio@200 {
|
||||
+ reg = <0x200>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
rng: rng@33000 {
|
||||
compatible = "brcm,bcm-nsp-rng";
|
||||
reg = <0x33000 0x14>;
|
||||
@@ -528,13 +557,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
- usb3_phy: usb3-phy@104000 {
|
||||
- compatible = "brcm,ns-bx-usb3-phy";
|
||||
- reg = <0x104000 0x1000>,
|
||||
- <0x032000 0x1000>;
|
||||
- reg-names = "dmp", "ccb-mii";
|
||||
- #phy-cells = <0>;
|
||||
- status = "disabled";
|
||||
+ usb3_dmp: syscon@104000 {
|
||||
+ reg = <0x104000 0x1000>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -0,0 +1,148 @@
|
||||
From f111016a8293b968f05450fec83020c94d0f88c2 Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Fri, 6 Aug 2021 21:44:32 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: Add common bindings for MX64/MX65
|
||||
|
||||
These bindings are required for all Meraki MX64/MX65 devices. These
|
||||
common bindings include memory (2GB), PWM LEDs, AMAC, I2C (AT24), NAND
|
||||
partitions, EHCI, OHCI and pinctrl.
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
.../dts/bcm958625-meraki-mx6x-common.dtsi | 129 ++++++++++++++++++
|
||||
1 file changed, 129 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi
|
||||
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi
|
||||
@@ -0,0 +1,129 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Common Bindings for Cisco Meraki MX64 (Kingpin) and MX65 (Alamo) devices.
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+#include "bcm-nsp.dtsi"
|
||||
+#include <dt-bindings/gpio/gpio.h>
|
||||
+#include <dt-bindings/input/input.h>
|
||||
+#include <dt-bindings/leds/common.h>
|
||||
+
|
||||
+/ {
|
||||
+ pwm-leds {
|
||||
+ compatible = "pwm-leds";
|
||||
+
|
||||
+ led-1 {
|
||||
+ function = LED_FUNCTION_INDICATOR;
|
||||
+ color = <LED_COLOR_ID_RED>;
|
||||
+ pwms = <&pwm 1 50000>;
|
||||
+ max-brightness = <255>;
|
||||
+ };
|
||||
+
|
||||
+ led-2 {
|
||||
+ function = LED_FUNCTION_INDICATOR;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ pwms = <&pwm 2 50000>;
|
||||
+ max-brightness = <255>;
|
||||
+ };
|
||||
+
|
||||
+ led-3 {
|
||||
+ function = LED_FUNCTION_INDICATOR;
|
||||
+ color = <LED_COLOR_ID_BLUE>;
|
||||
+ pwms = <&pwm 3 50000>;
|
||||
+ max-brightness = <255>;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&amac2 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&ehci0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&i2c0 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ at24@50 {
|
||||
+ compatible = "atmel,24c64";
|
||||
+ reg = <0x50>;
|
||||
+ pagesize = <32>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&nand_controller {
|
||||
+ nand@0 {
|
||||
+ compatible = "brcm,nandcs";
|
||||
+ reg = <0>;
|
||||
+ nand-on-flash-bbt;
|
||||
+
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+
|
||||
+ nand-ecc-strength = <24>;
|
||||
+ nand-ecc-step-size = <1024>;
|
||||
+
|
||||
+ brcm,nand-oob-sector-size = <27>;
|
||||
+
|
||||
+ partition@0 {
|
||||
+ label = "u-boot";
|
||||
+ reg = <0x0 0x80000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ partition@80000 {
|
||||
+ label = "shmoo";
|
||||
+ reg = <0x80000 0x80000>;
|
||||
+ read-only;
|
||||
+ };
|
||||
+
|
||||
+ partition@100000 {
|
||||
+ label = "bootkernel1";
|
||||
+ reg = <0x100000 0x300000>;
|
||||
+ };
|
||||
+
|
||||
+ partition@400000 {
|
||||
+ label = "nvram";
|
||||
+ reg = <0x400000 0x100000>;
|
||||
+ };
|
||||
+
|
||||
+ partition@500000 {
|
||||
+ label = "bootkernel2";
|
||||
+ reg = <0x500000 0x300000>;
|
||||
+ };
|
||||
+
|
||||
+ partition@800000 {
|
||||
+ label = "ubi";
|
||||
+ reg = <0x800000 0x3f700000>;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&ohci0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pinctrl {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pwm_leds>;
|
||||
+
|
||||
+ pwm_leds: pwm_leds {
|
||||
+ function = "pwm";
|
||||
+ groups = "pwm1_grp", "pwm2_grp", "pwm3_grp";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pwm {
|
||||
+ status = "okay";
|
||||
+ #pwm-cells = <2>;
|
||||
+};
|
||||
+
|
||||
+&uart0 {
|
||||
+ clock-frequency = <62500000>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
@ -0,0 +1,90 @@
|
||||
From 2addf9266a1d0f4ba59c9868b3effcd50de441a4 Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Fri, 6 Aug 2021 21:44:33 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: Add Ax stepping modifications
|
||||
|
||||
While uncommon, some Ax NSP SoCs exist in the wild. This stepping
|
||||
requires a modified secondary CPU boot-reg and removal of DMA coherency
|
||||
properties. Without these modifications, the secondary CPU will be
|
||||
inactive and many peripherals will exhibit undefined behaviour.
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm-nsp-ax.dtsi | 70 +++++++++++++++++++++++++++++++
|
||||
1 file changed, 70 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/bcm-nsp-ax.dtsi
|
||||
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm-nsp-ax.dtsi
|
||||
@@ -0,0 +1,70 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Broadcom Northstar Plus Ax stepping-specific bindings.
|
||||
+ * Notable differences from B0+ are the secondary-boot-reg and
|
||||
+ * lack of DMA coherency.
|
||||
+ */
|
||||
+
|
||||
+&cpu1 {
|
||||
+ secondary-boot-reg = <0xffff042c>;
|
||||
+};
|
||||
+
|
||||
+&dma {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&sdio {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&amac0 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&amac1 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&amac2 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&ehci0 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&mailbox {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&xhci {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&ehci0 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&ohci0 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&i2c0 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&sata {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&pcie0 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&pcie1 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
+
|
||||
+&pcie2 {
|
||||
+ /delete-property/ dma-coherent;
|
||||
+};
|
||||
@ -0,0 +1,340 @@
|
||||
From 3f902645280baf0d7dab57c227cc14f43edb45ef Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Fri, 6 Aug 2021 21:44:34 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: Add DT files for Meraki MX64 series
|
||||
|
||||
MX64 & MX64W Hardware info:
|
||||
- CPU: Broadcom BCM58625 Cortex A9 @ 1200Mhz
|
||||
- RAM: 2 GB (4 x 4Gb SK Hynix H5TC4G83CFR)
|
||||
- Storage: 1 GB (Micron MT29F8G08ABACA)
|
||||
- Networking: BCM58625 internal switch (5x 1GbE ports)
|
||||
- USB: 1x USB2.0
|
||||
- Serial: Internal header
|
||||
- WLAN(MX64W only): 2x Broadcom BCM43520KMLG on the PCI bus
|
||||
|
||||
This patch adds the Meraki MX64 series-specific bindings. Since some
|
||||
devices make use of the older A0 SoC, changes need to be made to
|
||||
accommodate this case, including removal of coherency options and
|
||||
modification to the secondary-boot-reg.
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/Makefile | 4 +
|
||||
.../boot/dts/bcm958625-meraki-kingpin.dtsi | 163 ++++++++++++++++++
|
||||
.../arm/boot/dts/bcm958625-meraki-mx64-a0.dts | 25 +++
|
||||
arch/arm/boot/dts/bcm958625-meraki-mx64.dts | 24 +++
|
||||
.../boot/dts/bcm958625-meraki-mx64w-a0.dts | 33 ++++
|
||||
arch/arm/boot/dts/bcm958625-meraki-mx64w.dts | 32 ++++
|
||||
6 files changed, 281 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-kingpin.dtsi
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx64-a0.dts
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx64.dts
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx64w-a0.dts
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx64w.dts
|
||||
|
||||
--- a/arch/arm/boot/dts/Makefile
|
||||
+++ b/arch/arm/boot/dts/Makefile
|
||||
@@ -158,6 +158,10 @@ dtb-$(CONFIG_ARCH_BCM_NSP) += \
|
||||
bcm958525xmc.dtb \
|
||||
bcm958622hr.dtb \
|
||||
bcm958623hr.dtb \
|
||||
+ bcm958625-meraki-mx64.dtb \
|
||||
+ bcm958625-meraki-mx64-a0.dtb \
|
||||
+ bcm958625-meraki-mx64w.dtb \
|
||||
+ bcm958625-meraki-mx64w-a0.dtb \
|
||||
bcm958625hr.dtb \
|
||||
bcm988312hr.dtb \
|
||||
bcm958625k.dtb
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-kingpin.dtsi
|
||||
@@ -0,0 +1,163 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Device Tree Bindings for Cisco Meraki MX64 series (Kingpin).
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+#include "bcm958625-meraki-mx6x-common.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+
|
||||
+ keys {
|
||||
+ compatible = "gpio-keys-polled";
|
||||
+ autorepeat;
|
||||
+ poll-interval = <20>;
|
||||
+
|
||||
+ reset {
|
||||
+ label = "reset";
|
||||
+ linux,code = <KEY_RESTART>;
|
||||
+ gpios = <&gpioa 6 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ led-0 {
|
||||
+ /* green:lan1-left */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <0>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 19 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-1 {
|
||||
+ /* green:lan1-right */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <1>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 18 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-2 {
|
||||
+ /* green:lan2-left */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <2>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 24 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-3 {
|
||||
+ /* green:lan2-right */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <3>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 20 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-4 {
|
||||
+ /* green:lan3-left */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <4>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 26 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-5 {
|
||||
+ /* green:lan3-right */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <5>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 25 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-6 {
|
||||
+ /* green:lan4-left */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <6>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 28 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-7 {
|
||||
+ /* green:lan4-right */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <7>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 27 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-8 {
|
||||
+ /* green:wan-left */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <8>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 30 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-9 {
|
||||
+ /* green:wan-right */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <9>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 29 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-a {
|
||||
+ /* amber:power */
|
||||
+ function = LED_FUNCTION_POWER;
|
||||
+ color = <LED_COLOR_ID_AMBER>;
|
||||
+ gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
|
||||
+ default-state = "on";
|
||||
+ };
|
||||
+
|
||||
+ led-b {
|
||||
+ /* white:status */
|
||||
+ function = LED_FUNCTION_STATUS;
|
||||
+ color = <LED_COLOR_ID_WHITE>;
|
||||
+ gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&srab {
|
||||
+ compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ports {
|
||||
+ port@0 {
|
||||
+ label = "lan1";
|
||||
+ reg = <0>;
|
||||
+ };
|
||||
+
|
||||
+ port@1 {
|
||||
+ label = "lan2";
|
||||
+ reg = <1>;
|
||||
+ };
|
||||
+
|
||||
+ port@2 {
|
||||
+ label = "lan3";
|
||||
+ reg = <2>;
|
||||
+ };
|
||||
+
|
||||
+ port@3 {
|
||||
+ label = "lan4";
|
||||
+ reg = <3>;
|
||||
+ };
|
||||
+
|
||||
+ port@4 {
|
||||
+ label = "wan";
|
||||
+ reg = <4>;
|
||||
+ };
|
||||
+
|
||||
+ port@8 {
|
||||
+ ethernet = <&amac2>;
|
||||
+ reg = <8>;
|
||||
+ fixed-link {
|
||||
+ speed = <1000>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-mx64-a0.dts
|
||||
@@ -0,0 +1,25 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Device Tree Bindings for Cisco Meraki MX64 with A0 SoC.
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "bcm958625-meraki-kingpin.dtsi"
|
||||
+#include "bcm-nsp-ax.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ model = "Cisco Meraki MX64(A0)";
|
||||
+ compatible = "meraki,mx64-a0", "brcm,bcm58625", "brcm,nsp";
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ memory@60000000 {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0x60000000 0x80000000>;
|
||||
+ };
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-mx64.dts
|
||||
@@ -0,0 +1,24 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Device Tree Bindings for Cisco Meraki MX64 with B0+ SoC.
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "bcm958625-meraki-kingpin.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ model = "Cisco Meraki MX64";
|
||||
+ compatible = "meraki,mx64", "brcm,bcm58625", "brcm,nsp";
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ memory@60000000 {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0x60000000 0x80000000>;
|
||||
+ };
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-mx64w-a0.dts
|
||||
@@ -0,0 +1,33 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Device Tree Bindings for Cisco Meraki MX64W with A0 SoC.
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "bcm958625-meraki-kingpin.dtsi"
|
||||
+#include "bcm-nsp-ax.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ model = "Cisco Meraki MX64W(A0)";
|
||||
+ compatible = "meraki,mx64w-a0", "brcm,bcm58625", "brcm,nsp";
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ memory@60000000 {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0x60000000 0x80000000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pcie0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pcie1 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-mx64w.dts
|
||||
@@ -0,0 +1,32 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Device Tree Bindings for Cisco Meraki MX64W with B0+ SoC.
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "bcm958625-meraki-kingpin.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ model = "Cisco Meraki MX64W";
|
||||
+ compatible = "meraki,mx64w", "brcm,bcm58625", "brcm,nsp";
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ memory@60000000 {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0x60000000 0x80000000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pcie0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pcie1 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
@ -0,0 +1,386 @@
|
||||
From 702a8f4744ed5b480f2b2411858184afdb10f9fd Mon Sep 17 00:00:00 2001
|
||||
From: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Date: Fri, 6 Aug 2021 21:44:35 +0100
|
||||
Subject: [PATCH] ARM: dts: NSP: Add DT files for Meraki MX65 series
|
||||
|
||||
MX65 & MX65W Hardware info:
|
||||
- CPU: Broadcom BCM58625 Cortex A9 @ 1200Mhz
|
||||
- RAM: 2 GB (4 x 4Gb SK Hynix H5TC4G83CFR)
|
||||
- Storage: 1 GB (Micron MT29F8G08ABACA)
|
||||
- Networking: BCM58625 switch (2x 1GbE ports)
|
||||
2x Qualcomm QCA8337 switches (10x 1GbE ports total)
|
||||
- PSE: Broadcom BCM59111KMLG connected to LAN ports 11 & 12
|
||||
- USB: 1x USB2.0
|
||||
- Serial: Internal header
|
||||
- WLAN(MX65W Only): 2x Broadcom BCM43520KMLG on the PCI bus.
|
||||
|
||||
Note that a driver and firmware image for the BCM59111 PSE has been
|
||||
released under GPL, but this is not present in the kernel.
|
||||
|
||||
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/Makefile | 2 +
|
||||
arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi | 279 ++++++++++++++++++
|
||||
arch/arm/boot/dts/bcm958625-meraki-mx65.dts | 24 ++
|
||||
arch/arm/boot/dts/bcm958625-meraki-mx65w.dts | 32 ++
|
||||
4 files changed, 337 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx65.dts
|
||||
create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx65w.dts
|
||||
|
||||
--- a/arch/arm/boot/dts/Makefile
|
||||
+++ b/arch/arm/boot/dts/Makefile
|
||||
@@ -162,6 +162,8 @@ dtb-$(CONFIG_ARCH_BCM_NSP) += \
|
||||
bcm958625-meraki-mx64-a0.dtb \
|
||||
bcm958625-meraki-mx64w.dtb \
|
||||
bcm958625-meraki-mx64w-a0.dtb \
|
||||
+ bcm958625-meraki-mx65.dtb \
|
||||
+ bcm958625-meraki-mx65w.dtb \
|
||||
bcm958625hr.dtb \
|
||||
bcm988312hr.dtb \
|
||||
bcm958625k.dtb
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi
|
||||
@@ -0,0 +1,279 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Device Tree Bindings for Cisco Meraki MX65 series (Alamo).
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+#include "bcm958625-meraki-mx6x-common.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ keys {
|
||||
+ compatible = "gpio-keys-polled";
|
||||
+ autorepeat;
|
||||
+ poll-interval = <20>;
|
||||
+
|
||||
+ reset {
|
||||
+ label = "reset";
|
||||
+ linux,code = <KEY_RESTART>;
|
||||
+ gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ led-0 {
|
||||
+ /* green:wan1-left */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <0>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 25 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-1 {
|
||||
+ /* green:wan1-right */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <1>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 24 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-2 {
|
||||
+ /* green:wan2-left */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <2>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 27 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-3 {
|
||||
+ /* green:wan2-right */
|
||||
+ function = LED_FUNCTION_ACTIVITY;
|
||||
+ function-enumerator = <3>;
|
||||
+ color = <LED_COLOR_ID_GREEN>;
|
||||
+ gpios = <&gpioa 26 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led-4 {
|
||||
+ /* amber:power */
|
||||
+ function = LED_FUNCTION_POWER;
|
||||
+ color = <LED_COLOR_ID_AMBER>;
|
||||
+ gpios = <&gpioa 3 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "on";
|
||||
+ };
|
||||
+
|
||||
+ led-5 {
|
||||
+ /* white:status */
|
||||
+ function = LED_FUNCTION_STATUS;
|
||||
+ color = <LED_COLOR_ID_WHITE>;
|
||||
+ gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ mdio-mii-mux {
|
||||
+ compatible = "mdio-mux-mmioreg";
|
||||
+ reg = <0x1803f1c0 0x4>;
|
||||
+ mux-mask = <0x2000>;
|
||||
+ mdio-parent-bus = <&mdio_ext>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ mdio@0 {
|
||||
+ reg = <0x0>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ phy_port6: phy@0 {
|
||||
+ reg = <0>;
|
||||
+ };
|
||||
+
|
||||
+ phy_port7: phy@1 {
|
||||
+ reg = <1>;
|
||||
+ };
|
||||
+
|
||||
+ phy_port8: phy@2 {
|
||||
+ reg = <2>;
|
||||
+ };
|
||||
+
|
||||
+ phy_port9: phy@3 {
|
||||
+ reg = <3>;
|
||||
+ };
|
||||
+
|
||||
+ phy_port10: phy@4 {
|
||||
+ reg = <4>;
|
||||
+ };
|
||||
+
|
||||
+ switch@10 {
|
||||
+ compatible = "qca,qca8337";
|
||||
+ reg = <0x10>;
|
||||
+ dsa,member = <1 0>;
|
||||
+
|
||||
+ ports {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ port@0 {
|
||||
+ reg = <0>;
|
||||
+ ethernet = <&sgmii1>;
|
||||
+ phy-mode = "sgmii";
|
||||
+ fixed-link {
|
||||
+ speed = <1000>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ port@1 {
|
||||
+ reg = <1>;
|
||||
+ label = "lan8";
|
||||
+ phy-handle = <&phy_port6>;
|
||||
+ };
|
||||
+
|
||||
+ port@2 {
|
||||
+ reg = <2>;
|
||||
+ label = "lan9";
|
||||
+ phy-handle = <&phy_port7>;
|
||||
+ };
|
||||
+
|
||||
+ port@3 {
|
||||
+ reg = <3>;
|
||||
+ label = "lan10";
|
||||
+ phy-handle = <&phy_port8>;
|
||||
+ };
|
||||
+
|
||||
+ port@4 {
|
||||
+ reg = <4>;
|
||||
+ label = "lan11";
|
||||
+ phy-handle = <&phy_port9>;
|
||||
+ };
|
||||
+
|
||||
+ port@5 {
|
||||
+ reg = <5>;
|
||||
+ label = "lan12";
|
||||
+ phy-handle = <&phy_port10>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ mdio-mii@2000 {
|
||||
+ reg = <0x2000>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ phy_port1: phy@0 {
|
||||
+ reg = <0>;
|
||||
+ };
|
||||
+
|
||||
+ phy_port2: phy@1 {
|
||||
+ reg = <1>;
|
||||
+ };
|
||||
+
|
||||
+ phy_port3: phy@2 {
|
||||
+ reg = <2>;
|
||||
+ };
|
||||
+
|
||||
+ phy_port4: phy@3 {
|
||||
+ reg = <3>;
|
||||
+ };
|
||||
+
|
||||
+ phy_port5: phy@4 {
|
||||
+ reg = <4>;
|
||||
+ };
|
||||
+
|
||||
+ switch@10 {
|
||||
+ compatible = "qca,qca8337";
|
||||
+ reg = <0x10>;
|
||||
+ dsa,member = <2 0>;
|
||||
+
|
||||
+ ports {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ port@0 {
|
||||
+ reg = <0>;
|
||||
+ ethernet = <&sgmii0>;
|
||||
+ phy-mode = "sgmii";
|
||||
+ fixed-link {
|
||||
+ speed = <1000>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ port@1 {
|
||||
+ reg = <1>;
|
||||
+ label = "lan3";
|
||||
+ phy-handle = <&phy_port1>;
|
||||
+ };
|
||||
+
|
||||
+ port@2 {
|
||||
+ reg = <2>;
|
||||
+ label = "lan4";
|
||||
+ phy-handle = <&phy_port2>;
|
||||
+ };
|
||||
+
|
||||
+ port@3 {
|
||||
+ reg = <3>;
|
||||
+ label = "lan5";
|
||||
+ phy-handle = <&phy_port3>;
|
||||
+ };
|
||||
+
|
||||
+ port@4 {
|
||||
+ reg = <4>;
|
||||
+ label = "lan6";
|
||||
+ phy-handle = <&phy_port4>;
|
||||
+ };
|
||||
+
|
||||
+ port@5 {
|
||||
+ reg = <5>;
|
||||
+ label = "lan7";
|
||||
+ phy-handle = <&phy_port5>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&srab {
|
||||
+ compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
|
||||
+ status = "okay";
|
||||
+ dsa,member = <0 0>;
|
||||
+
|
||||
+ ports {
|
||||
+ port@0 {
|
||||
+ label = "wan1";
|
||||
+ reg = <0>;
|
||||
+ };
|
||||
+
|
||||
+ port@1 {
|
||||
+ label = "wan2";
|
||||
+ reg = <1>;
|
||||
+ };
|
||||
+
|
||||
+ sgmii0: port@4 {
|
||||
+ label = "sw0";
|
||||
+ reg = <4>;
|
||||
+ fixed-link {
|
||||
+ speed = <1000>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ sgmii1: port@5 {
|
||||
+ label = "sw1";
|
||||
+ reg = <5>;
|
||||
+ fixed-link {
|
||||
+ speed = <1000>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ port@8 {
|
||||
+ ethernet = <&amac2>;
|
||||
+ reg = <8>;
|
||||
+ fixed-link {
|
||||
+ speed = <1000>;
|
||||
+ full-duplex;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-mx65.dts
|
||||
@@ -0,0 +1,24 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Device Tree Bindings for Cisco Meraki MX65.
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "bcm958625-meraki-alamo.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ model = "Cisco Meraki MX65";
|
||||
+ compatible = "meraki,mx65", "brcm,bcm58625", "brcm,nsp";
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ memory@60000000 {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0x60000000 0x80000000>;
|
||||
+ };
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm958625-meraki-mx65w.dts
|
||||
@@ -0,0 +1,32 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/*
|
||||
+ * Device Tree Bindings for Cisco Meraki MX65W.
|
||||
+ *
|
||||
+ * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
|
||||
+ */
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "bcm958625-meraki-alamo.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ model = "Cisco Meraki MX65W";
|
||||
+ compatible = "meraki,mx65w", "brcm,bcm58625", "brcm,nsp";
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ memory@60000000 {
|
||||
+ device_type = "memory";
|
||||
+ reg = <0x60000000 0x80000000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pcie0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&pcie1 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
@ -0,0 +1,70 @@
|
||||
From 0e89c0d8e8edece7f8e4607841ca6651885d23b1 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Thu, 19 Aug 2021 08:57:00 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix nodes names
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This fixes following errors for all BCM5301X dts files:
|
||||
chipcommonA@18000000: $nodename:0: 'chipcommonA@18000000' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
|
||||
mpcore@19000000: $nodename:0: 'mpcore@19000000' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
|
||||
mdio-bus-mux@18003000: $nodename:0: 'mdio-bus-mux@18003000' does not match '^mdio-mux[\\-@]?'
|
||||
dmu@1800c000: $nodename:0: 'dmu@1800c000' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm5301x.dtsi | 8 ++++----
|
||||
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
|
||||
+++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
|
||||
@@ -129,7 +129,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
- mdio-bus-mux@18003000 {
|
||||
+ mdio-mux@18003000 {
|
||||
|
||||
/* BIT(9) = 1 => external mdio */
|
||||
mdio@200 {
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -19,7 +19,7 @@
|
||||
#size-cells = <1>;
|
||||
interrupt-parent = <&gic>;
|
||||
|
||||
- chipcommonA@18000000 {
|
||||
+ chipcommon-a-bus@18000000 {
|
||||
compatible = "simple-bus";
|
||||
ranges = <0x00000000 0x18000000 0x00001000>;
|
||||
#address-cells = <1>;
|
||||
@@ -44,7 +44,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
- mpcore@19000000 {
|
||||
+ mpcore-bus@19000000 {
|
||||
compatible = "simple-bus";
|
||||
ranges = <0x00000000 0x19000000 0x00023000>;
|
||||
#address-cells = <1>;
|
||||
@@ -369,7 +369,7 @@
|
||||
#address-cells = <1>;
|
||||
};
|
||||
|
||||
- mdio-bus-mux@18003000 {
|
||||
+ mdio-mux@18003000 {
|
||||
compatible = "mdio-mux-mmioreg";
|
||||
mdio-parent-bus = <&mdio>;
|
||||
#address-cells = <1>;
|
||||
@@ -415,7 +415,7 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
- dmu@1800c000 {
|
||||
+ dmu-bus@1800c000 {
|
||||
compatible = "simple-bus";
|
||||
ranges = <0 0x1800c000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
@ -0,0 +1,28 @@
|
||||
From 75a5646c26895c4cfadc8d54aa53ac5455947895 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Thu, 19 Aug 2021 08:57:01 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix MDIO mux binding
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This fixes following error for all BCM5301X dts files:
|
||||
mdio-bus-mux@18003000: compatible: ['mdio-mux-mmioreg'] is too short
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm5301x.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -370,7 +370,7 @@
|
||||
};
|
||||
|
||||
mdio-mux@18003000 {
|
||||
- compatible = "mdio-mux-mmioreg";
|
||||
+ compatible = "mdio-mux-mmioreg", "mdio-mux";
|
||||
mdio-parent-bus = <&mdio>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@ -0,0 +1,158 @@
|
||||
From def3d0357e0539e6f6b82f079ff156def6ec2107 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Thu, 19 Aug 2021 08:57:02 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix memory nodes names
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Thix fixes:
|
||||
arch/arm/boot/dts/bcm4708-netgear-r6250.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 402653184]]}
|
||||
arch/arm/boot/dts/bcm4709-linksys-ea9200.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-netgear-r7000.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-netgear-r8000.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728]]}
|
||||
arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 402653184]]}
|
||||
arch/arm/boot/dts/bcm53016-meraki-mr32.dt.yaml: /: memory: False schema does not allow {'reg': [[0, 134217728]], 'device_type': ['memory']}
|
||||
arch/arm/boot/dts/bcm94708.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728]]}
|
||||
arch/arm/boot/dts/bcm94709.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728]]}
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-linksys-ea9200.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm53016-meraki-mr32.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm94708.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm94709.dts | 2 +-
|
||||
11 files changed, 11 insertions(+), 11 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
|
||||
@@ -20,7 +20,7 @@
|
||||
bootargs = "console=ttyS0,115200 earlycon";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
|
||||
@@ -19,7 +19,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
|
||||
@@ -19,7 +19,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x18000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
|
||||
@@ -16,7 +16,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
|
||||
@@ -19,7 +19,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
|
||||
@@ -30,7 +30,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
|
||||
@@ -15,7 +15,7 @@
|
||||
bootargs = "console=ttyS0,115200 earlycon";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>;
|
||||
};
|
||||
--- a/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
|
||||
+++ b/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
|
||||
@@ -16,7 +16,7 @@
|
||||
bootargs = "earlycon";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x18000000>;
|
||||
--- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
|
||||
+++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
|
||||
@@ -20,7 +20,7 @@
|
||||
bootargs = " console=ttyS0,115200n8 earlycon";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
reg = <0x00000000 0x08000000>;
|
||||
device_type = "memory";
|
||||
};
|
||||
--- a/arch/arm/boot/dts/bcm94708.dts
|
||||
+++ b/arch/arm/boot/dts/bcm94708.dts
|
||||
@@ -38,7 +38,7 @@
|
||||
model = "NorthStar SVK (BCM94708)";
|
||||
compatible = "brcm,bcm94708", "brcm,bcm4708";
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>;
|
||||
};
|
||||
--- a/arch/arm/boot/dts/bcm94709.dts
|
||||
+++ b/arch/arm/boot/dts/bcm94709.dts
|
||||
@@ -38,7 +38,7 @@
|
||||
model = "NorthStar SVK (BCM94709)";
|
||||
compatible = "brcm,bcm94709", "brcm,bcm4709", "brcm,bcm4708";
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>;
|
||||
};
|
||||
@ -9,19 +9,21 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -422,16 +422,12 @@
|
||||
@@ -422,7 +422,7 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
cru@100 {
|
||||
- compatible = "simple-bus";
|
||||
+ compatible = "syscon", "simple-mfd";
|
||||
reg = <0x100 0x1a4>;
|
||||
- ranges;
|
||||
- #address-cells = <1>;
|
||||
- #size-cells = <1>;
|
||||
ranges;
|
||||
#address-cells = <1>;
|
||||
@@ -448,10 +448,9 @@
|
||||
"sata1", "sata2";
|
||||
};
|
||||
|
||||
- pinctrl: pin-controller@1c0 {
|
||||
+ pinctrl: pinctrl {
|
||||
+ pinctrl: pin-controller {
|
||||
compatible = "brcm,bcm4708-pinmux";
|
||||
- reg = <0x1c0 0x24>;
|
||||
- reg-names = "cru_gpio_control";
|
||||
|
||||
@ -113,4 +113,4 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
+ bootargs = "console=ttyS0,115200 earlycon";
|
||||
};
|
||||
|
||||
memory {
|
||||
memory@0 {
|
||||
|
||||
@ -0,0 +1,85 @@
|
||||
From 776461b1795b4dc4084894cf53399044aafa1d21 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Wed, 11 Nov 2020 15:55:38 +0100
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Move CRU devices to the CRU node
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Clocks and thermal blocks are part of the CRU ("Clock and Reset Unit" or
|
||||
"Central Resource Unit").
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm5301x.dtsi | 51 +++++++++++++++++----------------
|
||||
1 file changed, 26 insertions(+), 25 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -428,6 +428,26 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
+ lcpll0: lcpll0@100 {
|
||||
+ #clock-cells = <1>;
|
||||
+ compatible = "brcm,nsp-lcpll0";
|
||||
+ reg = <0x100 0x14>;
|
||||
+ clocks = <&osc>;
|
||||
+ clock-output-names = "lcpll0", "pcie_phy",
|
||||
+ "sdio", "ddr_phy";
|
||||
+ };
|
||||
+
|
||||
+ genpll: genpll@140 {
|
||||
+ #clock-cells = <1>;
|
||||
+ compatible = "brcm,nsp-genpll";
|
||||
+ reg = <0x140 0x24>;
|
||||
+ clocks = <&osc>;
|
||||
+ clock-output-names = "genpll", "phy",
|
||||
+ "ethernetclk",
|
||||
+ "usbclk", "iprocfast",
|
||||
+ "sata1", "sata2";
|
||||
+ };
|
||||
+
|
||||
pinctrl: pin-controller@1c0 {
|
||||
compatible = "brcm,bcm4708-pinmux";
|
||||
reg = <0x1c0 0x24>;
|
||||
@@ -454,32 +474,13 @@
|
||||
function = "uart1";
|
||||
};
|
||||
};
|
||||
- };
|
||||
- };
|
||||
|
||||
- lcpll0: lcpll0@1800c100 {
|
||||
- #clock-cells = <1>;
|
||||
- compatible = "brcm,nsp-lcpll0";
|
||||
- reg = <0x1800c100 0x14>;
|
||||
- clocks = <&osc>;
|
||||
- clock-output-names = "lcpll0", "pcie_phy", "sdio",
|
||||
- "ddr_phy";
|
||||
- };
|
||||
-
|
||||
- genpll: genpll@1800c140 {
|
||||
- #clock-cells = <1>;
|
||||
- compatible = "brcm,nsp-genpll";
|
||||
- reg = <0x1800c140 0x24>;
|
||||
- clocks = <&osc>;
|
||||
- clock-output-names = "genpll", "phy", "ethernetclk",
|
||||
- "usbclk", "iprocfast", "sata1",
|
||||
- "sata2";
|
||||
- };
|
||||
-
|
||||
- thermal: thermal@1800c2c0 {
|
||||
- compatible = "brcm,ns-thermal";
|
||||
- reg = <0x1800c2c0 0x10>;
|
||||
- #thermal-sensor-cells = <0>;
|
||||
+ thermal: thermal@2c0 {
|
||||
+ compatible = "brcm,ns-thermal";
|
||||
+ reg = <0x2c0 0x10>;
|
||||
+ #thermal-sensor-cells = <0>;
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
srab: srab@18007000 {
|
||||
@ -21,8 +21,8 @@ Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -482,7 +482,7 @@
|
||||
#thermal-sensor-cells = <0>;
|
||||
@@ -483,7 +483,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
- srab: srab@18007000 {
|
||||
|
||||
@ -71,7 +71,7 @@ Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
+};
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -483,7 +483,7 @@
|
||||
@@ -484,7 +484,7 @@
|
||||
};
|
||||
|
||||
srab: ethernet-switch@18007000 {
|
||||
|
||||
@ -155,7 +155,7 @@ Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
label = "lan4";
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -489,6 +489,10 @@
|
||||
@@ -490,6 +490,10 @@
|
||||
status = "disabled";
|
||||
|
||||
/* ports are defined in board DTS */
|
||||
|
||||
@ -0,0 +1,77 @@
|
||||
From b660269cba748dfd07eb5551a88ff34d5ea0b86e Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Fri, 16 Apr 2021 15:37:48 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix NAND nodes names
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This matches nand-controller.yaml requirements.
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
|
||||
@@ -24,8 +24,8 @@
|
||||
reg = <0x00000000 0x08000000>;
|
||||
};
|
||||
|
||||
- nand: nand@18028000 {
|
||||
- nandcs@0 {
|
||||
+ nand_controller: nand-controller@18028000 {
|
||||
+ nand@0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
|
||||
+++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
|
||||
@@ -25,8 +25,8 @@
|
||||
<0x88000000 0x08000000>;
|
||||
};
|
||||
|
||||
- nand: nand@18028000 {
|
||||
- nandcs@0 {
|
||||
+ nand_controller: nand-controller@18028000 {
|
||||
+ nand@0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
|
||||
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
- nand@18028000 {
|
||||
- nandcs: nandcs@0 {
|
||||
+ nand-controller@18028000 {
|
||||
+ nandcs: nand@0 {
|
||||
compatible = "brcm,nandcs";
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -501,7 +501,7 @@
|
||||
reg = <0x18004000 0x14>;
|
||||
};
|
||||
|
||||
- nand: nand@18028000 {
|
||||
+ nand_controller: nand-controller@18028000 {
|
||||
compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
|
||||
reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
|
||||
reg-names = "nand", "iproc-idm", "iproc-ext";
|
||||
--- a/arch/arm/boot/dts/bcm953012k.dts
|
||||
+++ b/arch/arm/boot/dts/bcm953012k.dts
|
||||
@@ -49,8 +49,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
-&nand {
|
||||
- nandcs@0 {
|
||||
+&nand_controller {
|
||||
+ nand@0 {
|
||||
compatible = "brcm,nandcs";
|
||||
reg = <0>;
|
||||
nand-on-flash-bbt;
|
||||
@ -0,0 +1,52 @@
|
||||
From bb95d7d440fefd104c593d9cb20da6d34a474e97 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Wed, 21 Apr 2021 11:00:06 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix pinmux subnodes names
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This matches pinmux-node.yaml requirements.
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm47094.dtsi | 2 +-
|
||||
arch/arm/boot/dts/bcm5301x.dtsi | 6 +++---
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm47094.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm47094.dtsi
|
||||
@@ -11,7 +11,7 @@
|
||||
&pinctrl {
|
||||
compatible = "brcm,bcm4709-pinmux";
|
||||
|
||||
- pinmux_mdio: mdio {
|
||||
+ pinmux_mdio: mdio-pins {
|
||||
groups = "mdio_grp";
|
||||
function = "mdio";
|
||||
};
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -458,18 +458,18 @@
|
||||
function = "spi";
|
||||
};
|
||||
|
||||
- pinmux_i2c: i2c {
|
||||
+ pinmux_i2c: i2c-pins {
|
||||
groups = "i2c_grp";
|
||||
function = "i2c";
|
||||
};
|
||||
|
||||
- pinmux_pwm: pwm {
|
||||
+ pinmux_pwm: pwm-pins {
|
||||
groups = "pwm0_grp", "pwm1_grp",
|
||||
"pwm2_grp", "pwm3_grp";
|
||||
function = "pwm";
|
||||
};
|
||||
|
||||
- pinmux_uart1: uart1 {
|
||||
+ pinmux_uart1: uart1-pins {
|
||||
groups = "uart1_grp";
|
||||
function = "uart1";
|
||||
};
|
||||
@ -0,0 +1,70 @@
|
||||
From 0e89c0d8e8edece7f8e4607841ca6651885d23b1 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Thu, 19 Aug 2021 08:57:00 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix nodes names
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This fixes following errors for all BCM5301X dts files:
|
||||
chipcommonA@18000000: $nodename:0: 'chipcommonA@18000000' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
|
||||
mpcore@19000000: $nodename:0: 'mpcore@19000000' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
|
||||
mdio-bus-mux@18003000: $nodename:0: 'mdio-bus-mux@18003000' does not match '^mdio-mux[\\-@]?'
|
||||
dmu@1800c000: $nodename:0: 'dmu@1800c000' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm5301x.dtsi | 8 ++++----
|
||||
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
|
||||
+++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
|
||||
@@ -129,7 +129,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
- mdio-bus-mux@18003000 {
|
||||
+ mdio-mux@18003000 {
|
||||
|
||||
/* BIT(9) = 1 => external mdio */
|
||||
mdio@200 {
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -19,7 +19,7 @@
|
||||
#size-cells = <1>;
|
||||
interrupt-parent = <&gic>;
|
||||
|
||||
- chipcommonA@18000000 {
|
||||
+ chipcommon-a-bus@18000000 {
|
||||
compatible = "simple-bus";
|
||||
ranges = <0x00000000 0x18000000 0x00001000>;
|
||||
#address-cells = <1>;
|
||||
@@ -44,7 +44,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
- mpcore@19000000 {
|
||||
+ mpcore-bus@19000000 {
|
||||
compatible = "simple-bus";
|
||||
ranges = <0x00000000 0x19000000 0x00023000>;
|
||||
#address-cells = <1>;
|
||||
@@ -369,7 +369,7 @@
|
||||
#address-cells = <1>;
|
||||
};
|
||||
|
||||
- mdio-bus-mux@18003000 {
|
||||
+ mdio-mux@18003000 {
|
||||
compatible = "mdio-mux-mmioreg";
|
||||
mdio-parent-bus = <&mdio>;
|
||||
#address-cells = <1>;
|
||||
@@ -415,7 +415,7 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
- dmu@1800c000 {
|
||||
+ dmu-bus@1800c000 {
|
||||
compatible = "simple-bus";
|
||||
ranges = <0 0x1800c000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
@ -0,0 +1,28 @@
|
||||
From 75a5646c26895c4cfadc8d54aa53ac5455947895 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Thu, 19 Aug 2021 08:57:01 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix MDIO mux binding
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This fixes following error for all BCM5301X dts files:
|
||||
mdio-bus-mux@18003000: compatible: ['mdio-mux-mmioreg'] is too short
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm5301x.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -370,7 +370,7 @@
|
||||
};
|
||||
|
||||
mdio-mux@18003000 {
|
||||
- compatible = "mdio-mux-mmioreg";
|
||||
+ compatible = "mdio-mux-mmioreg", "mdio-mux";
|
||||
mdio-parent-bus = <&mdio>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@ -0,0 +1,158 @@
|
||||
From def3d0357e0539e6f6b82f079ff156def6ec2107 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||
Date: Thu, 19 Aug 2021 08:57:02 +0200
|
||||
Subject: [PATCH] ARM: dts: BCM5301X: Fix memory nodes names
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Thix fixes:
|
||||
arch/arm/boot/dts/bcm4708-netgear-r6250.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 402653184]]}
|
||||
arch/arm/boot/dts/bcm4709-linksys-ea9200.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-netgear-r7000.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-netgear-r8000.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 134217728]]}
|
||||
arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728]]}
|
||||
arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728], [2281701376, 402653184]]}
|
||||
arch/arm/boot/dts/bcm53016-meraki-mr32.dt.yaml: /: memory: False schema does not allow {'reg': [[0, 134217728]], 'device_type': ['memory']}
|
||||
arch/arm/boot/dts/bcm94708.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728]]}
|
||||
arch/arm/boot/dts/bcm94709.dt.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 134217728]]}
|
||||
|
||||
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-linksys-ea9200.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm53016-meraki-mr32.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm94708.dts | 2 +-
|
||||
arch/arm/boot/dts/bcm94709.dts | 2 +-
|
||||
11 files changed, 11 insertions(+), 11 deletions(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
|
||||
@@ -20,7 +20,7 @@
|
||||
bootargs = "console=ttyS0,115200 earlycon";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
|
||||
@@ -19,7 +19,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
|
||||
@@ -19,7 +19,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x18000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
|
||||
@@ -16,7 +16,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
|
||||
@@ -19,7 +19,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
|
||||
@@ -30,7 +30,7 @@
|
||||
bootargs = "console=ttyS0,115200";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x08000000>;
|
||||
--- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
|
||||
+++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
|
||||
@@ -15,7 +15,7 @@
|
||||
bootargs = "console=ttyS0,115200 earlycon";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>;
|
||||
};
|
||||
--- a/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
|
||||
+++ b/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
|
||||
@@ -16,7 +16,7 @@
|
||||
bootargs = "earlycon";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>,
|
||||
<0x88000000 0x18000000>;
|
||||
--- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
|
||||
+++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
|
||||
@@ -20,7 +20,7 @@
|
||||
bootargs = " console=ttyS0,115200n8 earlycon";
|
||||
};
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
reg = <0x00000000 0x08000000>;
|
||||
device_type = "memory";
|
||||
};
|
||||
--- a/arch/arm/boot/dts/bcm94708.dts
|
||||
+++ b/arch/arm/boot/dts/bcm94708.dts
|
||||
@@ -38,7 +38,7 @@
|
||||
model = "NorthStar SVK (BCM94708)";
|
||||
compatible = "brcm,bcm94708", "brcm,bcm4708";
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>;
|
||||
};
|
||||
--- a/arch/arm/boot/dts/bcm94709.dts
|
||||
+++ b/arch/arm/boot/dts/bcm94709.dts
|
||||
@@ -38,7 +38,7 @@
|
||||
model = "NorthStar SVK (BCM94709)";
|
||||
compatible = "brcm,bcm94709", "brcm,bcm4709", "brcm,bcm4708";
|
||||
|
||||
- memory {
|
||||
+ memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x08000000>;
|
||||
};
|
||||
@ -9,19 +9,21 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
|
||||
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
||||
@@ -422,16 +422,12 @@
|
||||
@@ -422,7 +422,7 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
cru@100 {
|
||||
- compatible = "simple-bus";
|
||||
+ compatible = "syscon", "simple-mfd";
|
||||
reg = <0x100 0x1a4>;
|
||||
- ranges;
|
||||
- #address-cells = <1>;
|
||||
- #size-cells = <1>;
|
||||
ranges;
|
||||
#address-cells = <1>;
|
||||
@@ -448,10 +448,9 @@
|
||||
"sata1", "sata2";
|
||||
};
|
||||
|
||||
- pinctrl: pin-controller@1c0 {
|
||||
+ pinctrl: pinctrl {
|
||||
+ pinctrl: pin-controller {
|
||||
compatible = "brcm,bcm4708-pinmux";
|
||||
- reg = <0x1c0 0x24>;
|
||||
- reg-names = "cru_gpio_control";
|
||||
|
||||
@ -113,4 +113,4 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||
+ bootargs = "console=ttyS0,115200 earlycon";
|
||||
};
|
||||
|
||||
memory {
|
||||
memory@0 {
|
||||
|
||||
@ -26,7 +26,6 @@ CONFIG_MTD_UBI_WL_THRESHOLD=4096
|
||||
CONFIG_NET_FLOW_LIMIT=y
|
||||
CONFIG_NR_CPUS=2
|
||||
CONFIG_PADATA=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_RFS_ACCEL=y
|
||||
CONFIG_RPS=y
|
||||
CONFIG_SGL_ALLOC=y
|
||||
|
||||
@ -240,8 +240,6 @@ CONFIG_PROC_VMCORE=y
|
||||
CONFIG_QUEUED_RWLOCKS=y
|
||||
CONFIG_QUEUED_SPINLOCKS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_RELAY=y
|
||||
|
||||
@ -333,9 +333,6 @@ CONFIG_PREEMPT_RCU=y
|
||||
CONFIG_PROC_PAGE_MONITOR=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_CPU_STALL_TIMEOUT=21
|
||||
# CONFIG_RCU_EXPERT is not set
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_RD_BZIP2=y
|
||||
CONFIG_RD_GZIP=y
|
||||
CONFIG_RD_LZ4=y
|
||||
|
||||
@ -369,9 +369,6 @@ CONFIG_PREEMPT_RCU=y
|
||||
CONFIG_PROC_PAGE_MONITOR=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_CPU_STALL_TIMEOUT=21
|
||||
# CONFIG_RCU_EXPERT is not set
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_RD_BZIP2=y
|
||||
CONFIG_RD_GZIP=y
|
||||
CONFIG_RD_LZ4=y
|
||||
|
||||
@ -68,7 +68,7 @@ Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
||||
kfree(sdev->inquiry);
|
||||
kfree(sdev);
|
||||
|
||||
@@ -868,6 +877,8 @@ static struct bin_attribute dev_attr_vpd
|
||||
@@ -871,6 +880,8 @@ static struct bin_attribute dev_attr_vpd
|
||||
|
||||
sdev_vpd_pg_attr(pg83);
|
||||
sdev_vpd_pg_attr(pg80);
|
||||
@ -77,7 +77,7 @@ Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
||||
|
||||
static ssize_t show_inquiry(struct file *filep, struct kobject *kobj,
|
||||
struct bin_attribute *bin_attr,
|
||||
@@ -1200,12 +1211,18 @@ static umode_t scsi_sdev_bin_attr_is_vis
|
||||
@@ -1203,12 +1214,18 @@ static umode_t scsi_sdev_bin_attr_is_vis
|
||||
struct scsi_device *sdev = to_scsi_device(dev);
|
||||
|
||||
|
||||
@ -96,7 +96,7 @@ Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
||||
return S_IRUGO;
|
||||
}
|
||||
|
||||
@@ -1248,8 +1265,10 @@ static struct attribute *scsi_sdev_attrs
|
||||
@@ -1251,8 +1268,10 @@ static struct attribute *scsi_sdev_attrs
|
||||
};
|
||||
|
||||
static struct bin_attribute *scsi_sdev_bin_attrs[] = {
|
||||
|
||||
@ -4632,15 +4632,13 @@ CONFIG_PWRSEQ_SIMPLE=y
|
||||
CONFIG_RCU_CPU_STALL_TIMEOUT=60
|
||||
# CONFIG_RCU_EQS_DEBUG is not set
|
||||
# CONFIG_RCU_EXPEDITE_BOOT is not set
|
||||
CONFIG_RCU_EXPERT=y
|
||||
CONFIG_RCU_FANOUT=32
|
||||
CONFIG_RCU_FANOUT_LEAF=16
|
||||
# CONFIG_RCU_FAST_NO_HZ is not set
|
||||
# CONFIG_RCU_EXPERT is not set
|
||||
CONFIG_RCU_KTHREAD_PRIO=0
|
||||
# CONFIG_RCU_NOCB_CPU is not set
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
# CONFIG_RCU_PERF_TEST is not set
|
||||
# CONFIG_RCU_REF_SCALE_TEST is not set
|
||||
# CONFIG_RCU_SCALE_TEST is not set
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
# CONFIG_RCU_STRICT_GRACE_PERIOD is not set
|
||||
# CONFIG_RCU_TORTURE_TEST is not set
|
||||
CONFIG_RCU_TORTURE_TEST_SLOW_INIT_DELAY=3
|
||||
@ -5997,7 +5995,6 @@ CONFIG_SYSVIPC_SYSCTL=y
|
||||
# CONFIG_TARGET_CORE is not set
|
||||
# CONFIG_TASKSTATS is not set
|
||||
# CONFIG_TASKS_RCU is not set
|
||||
CONFIG_TASKS_TRACE_RCU_READ_MB=y
|
||||
# CONFIG_TASK_XACCT is not set
|
||||
# CONFIG_TC35815 is not set
|
||||
# CONFIG_TCG_ATMEL is not set
|
||||
@ -6822,8 +6819,8 @@ CONFIG_VHOST_MENU=y
|
||||
# CONFIG_VIDEO_IMX319 is not set
|
||||
# CONFIG_VIDEO_IMX355 is not set
|
||||
# CONFIG_VIDEO_IMX477 is not set
|
||||
# CONFIG_VIDEO_IRS1125 is not set
|
||||
# CONFIG_VIDEO_IR_I2C is not set
|
||||
# CONFIG_VIDEO_IRS1125 is not set
|
||||
# CONFIG_VIDEO_IVTV is not set
|
||||
# CONFIG_VIDEO_KS0127 is not set
|
||||
# CONFIG_VIDEO_LM3560 is not set
|
||||
|
||||
@ -960,14 +960,14 @@ CONFIG_CRYPTO=y
|
||||
CONFIG_CRYPTO_AES=y
|
||||
# CONFIG_CRYPTO_AES_586 is not set
|
||||
# CONFIG_CRYPTO_AES_ARM is not set
|
||||
# CONFIG_CRYPTO_AES_ARM_BS is not set
|
||||
# CONFIG_CRYPTO_AES_ARM64_BS is not set
|
||||
# CONFIG_CRYPTO_AES_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_AES_ARM64 is not set
|
||||
# CONFIG_CRYPTO_AES_ARM64_BS is not set
|
||||
# CONFIG_CRYPTO_AES_ARM64_CE is not set
|
||||
# CONFIG_CRYPTO_AES_ARM64_CE_BLK is not set
|
||||
# CONFIG_CRYPTO_AES_ARM64_CE_CCM is not set
|
||||
# CONFIG_CRYPTO_AES_ARM64_NEON_BLK is not set
|
||||
# CONFIG_CRYPTO_AES_ARM_BS is not set
|
||||
# CONFIG_CRYPTO_AES_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_AES_NI_INTEL is not set
|
||||
# CONFIG_CRYPTO_AES_TI is not set
|
||||
CONFIG_CRYPTO_ALGAPI=y
|
||||
@ -997,8 +997,8 @@ CONFIG_CRYPTO_BLKCIPHER2=y
|
||||
# CONFIG_CRYPTO_CRC32C_INTEL is not set
|
||||
# CONFIG_CRYPTO_CRC32_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_CRCT10DIF is not set
|
||||
# CONFIG_CRYPTO_CRCT10DIF_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_CRCT10DIF_ARM64_CE is not set
|
||||
# CONFIG_CRYPTO_CRCT10DIF_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_CRYPTD is not set
|
||||
# CONFIG_CRYPTO_CTR is not set
|
||||
# CONFIG_CRYPTO_CTS is not set
|
||||
@ -1055,8 +1055,8 @@ CONFIG_CRYPTO_BLKCIPHER2=y
|
||||
# CONFIG_CRYPTO_GCM is not set
|
||||
# CONFIG_CRYPTO_GF128MUL is not set
|
||||
# CONFIG_CRYPTO_GHASH is not set
|
||||
# CONFIG_CRYPTO_GHASH_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_GHASH_ARM64_CE is not set
|
||||
# CONFIG_CRYPTO_GHASH_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL is not set
|
||||
# CONFIG_CRYPTO_HASH is not set
|
||||
# CONFIG_CRYPTO_HMAC is not set
|
||||
@ -1118,8 +1118,8 @@ CONFIG_CRYPTO_PCRYPT=y
|
||||
# CONFIG_CRYPTO_SHA256 is not set
|
||||
# CONFIG_CRYPTO_SHA256_ARM is not set
|
||||
# CONFIG_CRYPTO_SHA256_ARM64 is not set
|
||||
# CONFIG_CRYPTO_SHA2_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_SHA2_ARM64_CE is not set
|
||||
# CONFIG_CRYPTO_SHA2_ARM_CE is not set
|
||||
# CONFIG_CRYPTO_SHA3 is not set
|
||||
# CONFIG_CRYPTO_SHA3_ARM64 is not set
|
||||
# CONFIG_CRYPTO_SHA512 is not set
|
||||
@ -4281,13 +4281,11 @@ CONFIG_PWRSEQ_SIMPLE=y
|
||||
CONFIG_RCU_CPU_STALL_TIMEOUT=60
|
||||
# CONFIG_RCU_EQS_DEBUG is not set
|
||||
# CONFIG_RCU_EXPEDITE_BOOT is not set
|
||||
CONFIG_RCU_EXPERT=y
|
||||
CONFIG_RCU_FANOUT=32
|
||||
CONFIG_RCU_FANOUT_LEAF=16
|
||||
# CONFIG_RCU_FAST_NO_HZ is not set
|
||||
# CONFIG_RCU_EXPERT is not set
|
||||
CONFIG_RCU_KTHREAD_PRIO=0
|
||||
# CONFIG_RCU_NOCB_CPU is not set
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
# CONFIG_RCU_PERF_TEST is not set
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
# CONFIG_RCU_TORTURE_TEST is not set
|
||||
CONFIG_RCU_TORTURE_TEST_SLOW_INIT_DELAY=3
|
||||
# CONFIG_RCU_TRACE is not set
|
||||
|
||||
@ -92,8 +92,11 @@ int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector,
|
||||
return -ERANGE;
|
||||
|
||||
page = read_mapping_page(mapping, fit_start_sector >> (PAGE_SHIFT - SECTOR_SHIFT), NULL);
|
||||
if (!page)
|
||||
return -ENOMEM;
|
||||
if (IS_ERR(page))
|
||||
return -EFAULT;
|
||||
|
||||
if (PageError(page))
|
||||
return -EFAULT;
|
||||
|
||||
init_fit = page_address(page);
|
||||
|
||||
|
||||
@ -104,7 +104,23 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
config MODULES_TREE_LOOKUP
|
||||
--- a/kernel/module.c
|
||||
+++ b/kernel/module.c
|
||||
@@ -3247,9 +3247,11 @@ static int setup_load_info(struct load_i
|
||||
@@ -1285,6 +1285,7 @@ static struct module_attribute *modinfo_
|
||||
|
||||
static const char vermagic[] = VERMAGIC_STRING;
|
||||
|
||||
+#if defined(CONFIG_MODVERSIONS) || !defined(CONFIG_MODULE_STRIPPED)
|
||||
static int try_to_force_load(struct module *mod, const char *reason)
|
||||
{
|
||||
#ifdef CONFIG_MODULE_FORCE_LOAD
|
||||
@@ -1296,6 +1297,7 @@ static int try_to_force_load(struct modu
|
||||
return -ENOEXEC;
|
||||
#endif
|
||||
}
|
||||
+#endif
|
||||
|
||||
#ifdef CONFIG_MODVERSIONS
|
||||
|
||||
@@ -3247,9 +3249,11 @@ static int setup_load_info(struct load_i
|
||||
|
||||
static int check_modinfo(struct module *mod, struct load_info *info, int flags)
|
||||
{
|
||||
@ -117,7 +133,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
if (flags & MODULE_INIT_IGNORE_VERMAGIC)
|
||||
modmagic = NULL;
|
||||
|
||||
@@ -3270,6 +3272,7 @@ static int check_modinfo(struct module *
|
||||
@@ -3270,6 +3274,7 @@ static int check_modinfo(struct module *
|
||||
mod->name);
|
||||
add_taint_module(mod, TAINT_OOT_MODULE, LOCKDEP_STILL_OK);
|
||||
}
|
||||
|
||||
@ -112,6 +112,22 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
config MODULES_TREE_LOOKUP
|
||||
--- a/kernel/module.c
|
||||
+++ b/kernel/module.c
|
||||
@@ -1285,6 +1285,7 @@ static struct module_attribute *modinfo_
|
||||
|
||||
static const char vermagic[] = VERMAGIC_STRING;
|
||||
|
||||
+#if defined(CONFIG_MODVERSIONS) || !defined(CONFIG_MODULE_STRIPPED)
|
||||
static int try_to_force_load(struct module *mod, const char *reason)
|
||||
{
|
||||
#ifdef CONFIG_MODULE_FORCE_LOAD
|
||||
@@ -1296,6 +1297,7 @@ static int try_to_force_load(struct modu
|
||||
return -ENOEXEC;
|
||||
#endif
|
||||
}
|
||||
+#endif
|
||||
|
||||
#ifdef CONFIG_MODVERSIONS
|
||||
|
||||
@@ -3256,9 +3256,11 @@ static int setup_load_info(struct load_i
|
||||
|
||||
static int check_modinfo(struct module *mod, struct load_info *info, int flags)
|
||||
|
||||
@ -33,7 +33,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
/*
|
||||
* The Mellanox Tavor device gives false positive parity errors. Mark this
|
||||
* device with a broken_parity_status to allow PCI scanning code to "skip"
|
||||
@@ -3321,6 +3322,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_I
|
||||
@@ -3322,6 +3323,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_I
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65f9, quirk_intel_mc_errata);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65fa, quirk_intel_mc_errata);
|
||||
|
||||
@ -42,7 +42,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
/*
|
||||
* Ivytown NTB BAR sizes are misreported by the hardware due to an erratum.
|
||||
* To work around this, query the size it should be configured to by the
|
||||
@@ -3346,6 +3349,8 @@ static void quirk_intel_ntb(struct pci_d
|
||||
@@ -3347,6 +3350,8 @@ static void quirk_intel_ntb(struct pci_d
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x0e08, quirk_intel_ntb);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x0e0d, quirk_intel_ntb);
|
||||
|
||||
@ -51,7 +51,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
/*
|
||||
* Some BIOS implementations leave the Intel GPU interrupts enabled, even
|
||||
* though no one is handling them (e.g., if the i915 driver is never
|
||||
@@ -3384,6 +3389,8 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IN
|
||||
@@ -3385,6 +3390,8 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IN
|
||||
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x010a, disable_igfx_irq);
|
||||
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0152, disable_igfx_irq);
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
/*
|
||||
* The Mellanox Tavor device gives false positive parity errors. Mark this
|
||||
* device with a broken_parity_status to allow PCI scanning code to "skip"
|
||||
@@ -3321,6 +3322,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_I
|
||||
@@ -3322,6 +3323,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_I
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65f9, quirk_intel_mc_errata);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65fa, quirk_intel_mc_errata);
|
||||
|
||||
@ -42,7 +42,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
/*
|
||||
* Ivytown NTB BAR sizes are misreported by the hardware due to an erratum.
|
||||
* To work around this, query the size it should be configured to by the
|
||||
@@ -3346,6 +3349,8 @@ static void quirk_intel_ntb(struct pci_d
|
||||
@@ -3347,6 +3350,8 @@ static void quirk_intel_ntb(struct pci_d
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x0e08, quirk_intel_ntb);
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x0e0d, quirk_intel_ntb);
|
||||
|
||||
@ -51,7 +51,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||
/*
|
||||
* Some BIOS implementations leave the Intel GPU interrupts enabled, even
|
||||
* though no one is handling them (e.g., if the i915 driver is never
|
||||
@@ -3384,6 +3389,8 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IN
|
||||
@@ -3385,6 +3390,8 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IN
|
||||
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x010a, disable_igfx_irq);
|
||||
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0152, disable_igfx_irq);
|
||||
|
||||
|
||||
@ -386,8 +386,6 @@ CONFIG_PWM=y
|
||||
CONFIG_PWM_SYSFS=y
|
||||
CONFIG_RAS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_RD_BZIP2=y
|
||||
CONFIG_RD_GZIP=y
|
||||
CONFIG_RD_LZO=y
|
||||
|
||||
@ -354,8 +354,6 @@ CONFIG_PWM=y
|
||||
CONFIG_PWM_SYSFS=y
|
||||
CONFIG_RAS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_RD_BZIP2=y
|
||||
CONFIG_RD_GZIP=y
|
||||
CONFIG_RD_LZO=y
|
||||
|
||||
@ -379,8 +379,6 @@ CONFIG_QCOM_WDT=y
|
||||
CONFIG_RAS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_CPU_STALL_TIMEOUT=21
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REFCOUNT_FULL=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_I2C=y
|
||||
|
||||
@ -405,8 +405,6 @@ CONFIG_QCOM_WDT=y
|
||||
CONFIG_RAS=y
|
||||
CONFIG_RATIONAL=y
|
||||
CONFIG_RCU_CPU_STALL_TIMEOUT=21
|
||||
CONFIG_RCU_NEED_SEGCBLIST=y
|
||||
CONFIG_RCU_STALL_COMMON=y
|
||||
CONFIG_REGMAP=y
|
||||
CONFIG_REGMAP_MMIO=y
|
||||
CONFIG_REGULATOR=y
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user