mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
fec22f8375
Removed upstreamed: generic/backport-6.1/803-v6.5-01-leds-trigger-netdev-Recheck-NETDEV_LED_MODE_LINKUP-o.patch[1] generic/pending-6.1/143-jffs2-reduce-stack-usage-in-jffs2_build_xattr_subsys.patch[2] bcm27xx/patches-6.1/950-0034-drm-bridge-Introduce-pre_enable_upstream_first-to-al.patch[3] bcm27xx/patches-6.1/950-0439-nvmem-Use-NVMEM_DEVID_AUTO.patch[4] bcm4908/patches-6.1/040-mtd-parsers-refer-to-ARCH_BCMBCA-instead-of-ARCH_BCM.patch[5] bcm53xx/patches-6.1/031-v6.5-0003-ARM-dts-BCM5301X-Drop-clock-names-from-the-SPI-node.patch[6] bcm53xx/patches-6.1/031-v6.5-0015-ARM-dts-BCM5301X-fix-duplex-full-full-duplex.patch[7] mediatek/patches-6.1/351-cpufreq-mediatek-correct-voltages-for-MT7622-and-MT7.patch[8] qualcommax/patches-6.1/0008-v6.2-clk-qcom-reset-support-resetting-multiple-bits.patch[9] Manually rebased: bcm27xx/patches-6.1/950-0035-drm-panel-Add-prepare_upstream_first-flag-to-drm_pan.patch bcm27xx/patches-6.1/950-0404-drm-panel-panel-ilitek9881c-Add-prepare_upstream_fir.patch bcm27xx/patches-6.1/950-0699-Bluetooth-hci_sync-Add-fallback-bd-address-prop.patch mediatek/patches-6.1/350-21-cpufreq-mediatek-Add-support-for-MT7988.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=ab0bd172d6289310a05a0cd15e1432e828d386ae 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=6df680709d901346831ef8f221cc90a42062c526 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=5044e5f2511c9afdf9880d2bb6b9d37dfc345dac 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=e27948f329f7e02591ed1feb9a7710c2ccf89a83 5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=ad2928e7f3f6120a0bd18aa1056b3b24068027c5 6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=2b55a985727833f37c39911f34096b3fdf2a367d 7. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=90d4c487cd658b51212eb65ae804ab11af193672 8. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=7e3ee25e8c7c7be1eacdfc6d9f5f0e550a2af241 9. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.39&id=b20854ef6c4955be3310975a72f02d92cb01d6d4 Build system: x86/64 Build-tested: x86/64 Run-tested: x86/64 Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de> Co-authored-by: Christian Marangi <ansuelsmth@gmail.com> Signed-off-by: John Audia <therealgraysky@proton.me> [ rebase bcm27xx and mediatek patches, refresh commit description ] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [ minor fixup to bcm27xx patches, refresh commit description ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
488 lines
10 KiB
Diff
488 lines
10 KiB
Diff
From 915fac07f053418d0ab9075af64da2872ca8a7f8 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
|
Date: Wed, 3 May 2023 14:16:10 +0200
|
|
Subject: [PATCH] =?UTF-8?q?ARM:=20dts:=20BCM5301X:=20Relicense=20Rafa?=
|
|
=?UTF-8?q?=C5=82's=20code=20to=20the=20GPL=202.0+=20/=20MIT?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
All BCM5301X device DTS files use dual licensing. Try the same for SoC.
|
|
Introduce a new .dtsi file with a proper SPDX tag.
|
|
|
|
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
|
Link: https://lore.kernel.org/r/20230503121611.1629-1-zajec5@gmail.com
|
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
|
---
|
|
MAINTAINERS | 1 +
|
|
arch/arm/boot/dts/bcm-ns.dtsi | 202 ++++++++++++++++++++++++++++++++
|
|
arch/arm/boot/dts/bcm5301x.dtsi | 192 +-----------------------------
|
|
3 files changed, 205 insertions(+), 190 deletions(-)
|
|
create mode 100644 arch/arm/boot/dts/bcm-ns.dtsi
|
|
|
|
--- a/MAINTAINERS
|
|
+++ b/MAINTAINERS
|
|
@@ -4063,6 +4063,7 @@ M: Rafał Miłecki <zajec5@gmail.com>
|
|
R: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>
|
|
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
|
|
S: Maintained
|
|
+F: arch/arm/boot/dts/bcm-ns.dtsi
|
|
F: arch/arm/boot/dts/bcm470*
|
|
F: arch/arm/boot/dts/bcm5301*
|
|
F: arch/arm/boot/dts/bcm953012*
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/bcm-ns.dtsi
|
|
@@ -0,0 +1,202 @@
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
+
|
|
+#include <dt-bindings/clock/bcm-nsp.h>
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
+#include <dt-bindings/input/input.h>
|
|
+#include <dt-bindings/interrupt-controller/irq.h>
|
|
+#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
+
|
|
+/ {
|
|
+ axi@18000000 {
|
|
+ compatible = "brcm,bus-axi";
|
|
+ reg = <0x18000000 0x1000>;
|
|
+ ranges = <0x00000000 0x18000000 0x00100000>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ chipcommon: chipcommon@0 {
|
|
+ reg = <0x00000000 0x1000>;
|
|
+
|
|
+ gpio-controller;
|
|
+ #gpio-cells = <2>;
|
|
+ };
|
|
+
|
|
+ pcie0: pcie@12000 {
|
|
+ reg = <0x00012000 0x1000>;
|
|
+ };
|
|
+
|
|
+ pcie1: pcie@13000 {
|
|
+ reg = <0x00013000 0x1000>;
|
|
+ };
|
|
+
|
|
+ usb2: usb2@21000 {
|
|
+ reg = <0x00021000 0x1000>;
|
|
+
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges;
|
|
+
|
|
+ interrupt-parent = <&gic>;
|
|
+
|
|
+ ehci: usb@21000 {
|
|
+ #usb-cells = <0>;
|
|
+
|
|
+ compatible = "generic-ehci";
|
|
+ reg = <0x00021000 0x1000>;
|
|
+ interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ phys = <&usb2_phy>;
|
|
+
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ ehci_port1: port@1 {
|
|
+ reg = <1>;
|
|
+ #trigger-source-cells = <0>;
|
|
+ };
|
|
+
|
|
+ ehci_port2: port@2 {
|
|
+ reg = <2>;
|
|
+ #trigger-source-cells = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ohci: usb@22000 {
|
|
+ #usb-cells = <0>;
|
|
+
|
|
+ compatible = "generic-ohci";
|
|
+ reg = <0x00022000 0x1000>;
|
|
+ interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
|
|
+
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ ohci_port1: port@1 {
|
|
+ reg = <1>;
|
|
+ #trigger-source-cells = <0>;
|
|
+ };
|
|
+
|
|
+ ohci_port2: port@2 {
|
|
+ reg = <2>;
|
|
+ #trigger-source-cells = <0>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usb3: usb3@23000 {
|
|
+ reg = <0x00023000 0x1000>;
|
|
+
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges;
|
|
+
|
|
+ interrupt-parent = <&gic>;
|
|
+
|
|
+ xhci: usb@23000 {
|
|
+ #usb-cells = <0>;
|
|
+
|
|
+ compatible = "generic-xhci";
|
|
+ reg = <0x00023000 0x1000>;
|
|
+ interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ phys = <&usb3_phy>;
|
|
+ phy-names = "usb";
|
|
+
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ xhci_port1: port@1 {
|
|
+ reg = <1>;
|
|
+ #trigger-source-cells = <0>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ mdio: mdio@18003000 {
|
|
+ compatible = "brcm,iproc-mdio";
|
|
+ reg = <0x18003000 0x8>;
|
|
+ #size-cells = <0>;
|
|
+ #address-cells = <1>;
|
|
+ };
|
|
+
|
|
+ dmu-bus@1800c000 {
|
|
+ compatible = "simple-bus";
|
|
+ ranges = <0 0x1800c000 0x1000>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ cru-bus@100 {
|
|
+ compatible = "brcm,ns-cru", "simple-mfd";
|
|
+ reg = <0x100 0x1a4>;
|
|
+ ranges;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ usb2_phy: phy@164 {
|
|
+ compatible = "brcm,ns-usb2-phy";
|
|
+ reg = <0x164 0x4>;
|
|
+ brcm,syscon-clkset = <&cru_clkset>;
|
|
+ clocks = <&genpll BCM_NSP_GENPLL_USB_PHY_REF_CLK>;
|
|
+ clock-names = "phy-ref-clk";
|
|
+ #phy-cells = <0>;
|
|
+ };
|
|
+
|
|
+ cru_clkset: syscon@180 {
|
|
+ compatible = "brcm,cru-clkset", "syscon";
|
|
+ reg = <0x180 0x4>;
|
|
+ };
|
|
+
|
|
+ pinctrl: pinctrl@1c0 {
|
|
+ compatible = "brcm,bcm4708-pinmux";
|
|
+ reg = <0x1c0 0x24>;
|
|
+ reg-names = "cru_gpio_control";
|
|
+
|
|
+ spi-pins {
|
|
+ groups = "spi_grp";
|
|
+ function = "spi";
|
|
+ };
|
|
+
|
|
+ pinmux_i2c: i2c-pins {
|
|
+ groups = "i2c_grp";
|
|
+ function = "i2c";
|
|
+ };
|
|
+
|
|
+ pinmux_pwm: pwm-pins {
|
|
+ groups = "pwm0_grp", "pwm1_grp",
|
|
+ "pwm2_grp", "pwm3_grp";
|
|
+ function = "pwm";
|
|
+ };
|
|
+
|
|
+ pinmux_uart1: uart1-pins {
|
|
+ groups = "uart1_grp";
|
|
+ function = "uart1";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ thermal: thermal@2c0 {
|
|
+ compatible = "brcm,ns-thermal";
|
|
+ reg = <0x2c0 0x10>;
|
|
+ #thermal-sensor-cells = <0>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ thermal-zones {
|
|
+ cpu_thermal: cpu-thermal {
|
|
+ polling-delay-passive = <0>;
|
|
+ polling-delay = <1000>;
|
|
+ coefficients = <(-556) 418000>;
|
|
+ thermal-sensors = <&thermal>;
|
|
+
|
|
+ trips {
|
|
+ cpu-crit {
|
|
+ temperature = <125000>;
|
|
+ hysteresis = <0>;
|
|
+ type = "critical";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ cooling-maps {
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
--- a/arch/arm/boot/dts/bcm5301x.dtsi
|
|
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
|
|
@@ -8,11 +8,7 @@
|
|
* Licensed under the GNU/GPL. See COPYING for details.
|
|
*/
|
|
|
|
-#include <dt-bindings/clock/bcm-nsp.h>
|
|
-#include <dt-bindings/gpio/gpio.h>
|
|
-#include <dt-bindings/input/input.h>
|
|
-#include <dt-bindings/interrupt-controller/irq.h>
|
|
-#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
+#include "bcm-ns.dtsi"
|
|
|
|
/ {
|
|
#address-cells = <1>;
|
|
@@ -149,12 +145,6 @@
|
|
};
|
|
|
|
axi@18000000 {
|
|
- compatible = "brcm,bus-axi";
|
|
- reg = <0x18000000 0x1000>;
|
|
- ranges = <0x00000000 0x18000000 0x00100000>;
|
|
- #address-cells = <1>;
|
|
- #size-cells = <1>;
|
|
-
|
|
#interrupt-cells = <1>;
|
|
interrupt-map-mask = <0x000fffff 0xffff>;
|
|
interrupt-map =
|
|
@@ -228,108 +218,15 @@
|
|
<0x00028000 6 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
|
|
<0x00028000 7 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
- chipcommon: chipcommon@0 {
|
|
- reg = <0x00000000 0x1000>;
|
|
-
|
|
- gpio-controller;
|
|
- #gpio-cells = <2>;
|
|
+ chipcommon@0 {
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
};
|
|
|
|
- pcie0: pcie@12000 {
|
|
- reg = <0x00012000 0x1000>;
|
|
- };
|
|
-
|
|
- pcie1: pcie@13000 {
|
|
- reg = <0x00013000 0x1000>;
|
|
- };
|
|
-
|
|
pcie2: pcie@14000 {
|
|
reg = <0x00014000 0x1000>;
|
|
};
|
|
|
|
- usb2: usb2@21000 {
|
|
- reg = <0x00021000 0x1000>;
|
|
-
|
|
- #address-cells = <1>;
|
|
- #size-cells = <1>;
|
|
- ranges;
|
|
-
|
|
- interrupt-parent = <&gic>;
|
|
-
|
|
- ehci: usb@21000 {
|
|
- #usb-cells = <0>;
|
|
-
|
|
- compatible = "generic-ehci";
|
|
- reg = <0x00021000 0x1000>;
|
|
- interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
|
|
- phys = <&usb2_phy>;
|
|
-
|
|
- #address-cells = <1>;
|
|
- #size-cells = <0>;
|
|
-
|
|
- ehci_port1: port@1 {
|
|
- reg = <1>;
|
|
- #trigger-source-cells = <0>;
|
|
- };
|
|
-
|
|
- ehci_port2: port@2 {
|
|
- reg = <2>;
|
|
- #trigger-source-cells = <0>;
|
|
- };
|
|
- };
|
|
-
|
|
- ohci: usb@22000 {
|
|
- #usb-cells = <0>;
|
|
-
|
|
- compatible = "generic-ohci";
|
|
- reg = <0x00022000 0x1000>;
|
|
- interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
|
|
-
|
|
- #address-cells = <1>;
|
|
- #size-cells = <0>;
|
|
-
|
|
- ohci_port1: port@1 {
|
|
- reg = <1>;
|
|
- #trigger-source-cells = <0>;
|
|
- };
|
|
-
|
|
- ohci_port2: port@2 {
|
|
- reg = <2>;
|
|
- #trigger-source-cells = <0>;
|
|
- };
|
|
- };
|
|
- };
|
|
-
|
|
- usb3: usb3@23000 {
|
|
- reg = <0x00023000 0x1000>;
|
|
-
|
|
- #address-cells = <1>;
|
|
- #size-cells = <1>;
|
|
- ranges;
|
|
-
|
|
- interrupt-parent = <&gic>;
|
|
-
|
|
- xhci: usb@23000 {
|
|
- #usb-cells = <0>;
|
|
-
|
|
- compatible = "generic-xhci";
|
|
- reg = <0x00023000 0x1000>;
|
|
- interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
|
|
- phys = <&usb3_phy>;
|
|
- phy-names = "usb";
|
|
-
|
|
- #address-cells = <1>;
|
|
- #size-cells = <0>;
|
|
-
|
|
- xhci_port1: port@1 {
|
|
- reg = <1>;
|
|
- #trigger-source-cells = <0>;
|
|
- };
|
|
- };
|
|
- };
|
|
-
|
|
gmac0: ethernet@24000 {
|
|
reg = <0x24000 0x800>;
|
|
};
|
|
@@ -355,13 +252,6 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
- mdio: mdio@18003000 {
|
|
- compatible = "brcm,iproc-mdio";
|
|
- reg = <0x18003000 0x8>;
|
|
- #size-cells = <0>;
|
|
- #address-cells = <1>;
|
|
- };
|
|
-
|
|
mdio-mux@18003000 {
|
|
compatible = "mdio-mux-mmioreg", "mdio-mux";
|
|
mdio-parent-bus = <&mdio>;
|
|
@@ -409,18 +299,7 @@
|
|
};
|
|
|
|
dmu-bus@1800c000 {
|
|
- compatible = "simple-bus";
|
|
- ranges = <0 0x1800c000 0x1000>;
|
|
- #address-cells = <1>;
|
|
- #size-cells = <1>;
|
|
-
|
|
cru-bus@100 {
|
|
- compatible = "brcm,ns-cru", "simple-mfd";
|
|
- reg = <0x100 0x1a4>;
|
|
- ranges;
|
|
- #address-cells = <1>;
|
|
- #size-cells = <1>;
|
|
-
|
|
lcpll0: clock-controller@100 {
|
|
#clock-cells = <1>;
|
|
compatible = "brcm,nsp-lcpll0";
|
|
@@ -440,53 +319,6 @@
|
|
"usbclk", "iprocfast",
|
|
"sata1", "sata2";
|
|
};
|
|
-
|
|
- usb2_phy: phy@164 {
|
|
- compatible = "brcm,ns-usb2-phy";
|
|
- reg = <0x164 0x4>;
|
|
- brcm,syscon-clkset = <&cru_clkset>;
|
|
- clocks = <&genpll BCM_NSP_GENPLL_USB_PHY_REF_CLK>;
|
|
- clock-names = "phy-ref-clk";
|
|
- #phy-cells = <0>;
|
|
- };
|
|
-
|
|
- cru_clkset: syscon@180 {
|
|
- compatible = "brcm,cru-clkset", "syscon";
|
|
- reg = <0x180 0x4>;
|
|
- };
|
|
-
|
|
- pinctrl: pinctrl@1c0 {
|
|
- compatible = "brcm,bcm4708-pinmux";
|
|
- reg = <0x1c0 0x24>;
|
|
- reg-names = "cru_gpio_control";
|
|
-
|
|
- spi-pins {
|
|
- groups = "spi_grp";
|
|
- function = "spi";
|
|
- };
|
|
-
|
|
- pinmux_i2c: i2c-pins {
|
|
- groups = "i2c_grp";
|
|
- function = "i2c";
|
|
- };
|
|
-
|
|
- pinmux_pwm: pwm-pins {
|
|
- groups = "pwm0_grp", "pwm1_grp",
|
|
- "pwm2_grp", "pwm3_grp";
|
|
- function = "pwm";
|
|
- };
|
|
-
|
|
- pinmux_uart1: uart1-pins {
|
|
- groups = "uart1_grp";
|
|
- function = "uart1";
|
|
- };
|
|
- };
|
|
-
|
|
- thermal: thermal@2c0 {
|
|
- compatible = "brcm,ns-thermal";
|
|
- reg = <0x2c0 0x10>;
|
|
- #thermal-sensor-cells = <0>;
|
|
- };
|
|
};
|
|
};
|
|
|
|
@@ -557,24 +389,4 @@
|
|
};
|
|
};
|
|
};
|
|
-
|
|
- thermal-zones {
|
|
- cpu_thermal: cpu-thermal {
|
|
- polling-delay-passive = <0>;
|
|
- polling-delay = <1000>;
|
|
- coefficients = <(-556) 418000>;
|
|
- thermal-sensors = <&thermal>;
|
|
-
|
|
- trips {
|
|
- cpu-crit {
|
|
- temperature = <125000>;
|
|
- hysteresis = <0>;
|
|
- type = "critical";
|
|
- };
|
|
- };
|
|
-
|
|
- cooling-maps {
|
|
- };
|
|
- };
|
|
- };
|
|
};
|