ath79: move usb led trigger node to SoC dtsi

These frequently used usb led triggers are universal. They should be
moved to SoC dtsi.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
This commit is contained in:
Shiji Yang 2022-10-24 12:01:12 +08:00 committed by Hauke Mehrtens
parent e7bd3767a9
commit 4778f6e959
72 changed files with 98 additions and 550 deletions

View File

@ -156,6 +156,11 @@
#address-cells = <1>;
#size-cells = <0>;
usb_ehci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
usb1: usb@1c000000 {
@ -172,6 +177,11 @@
#address-cells = <1>;
#size-cells = <0>;
usb_ohci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
spi: spi@1f000000 {

View File

@ -170,25 +170,11 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
usb_ohci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb2 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
usb_ehci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&pcie0 {

View File

@ -122,25 +122,11 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
usb_ohci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb2 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
usb_ehci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -116,25 +116,11 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
usb_ohci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb2 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
usb_ehci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&pcie0 {

View File

@ -99,22 +99,8 @@
&usb1 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
usb_ohci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb2 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
usb_ehci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

View File

@ -32,6 +32,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
};

View File

@ -39,6 +39,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
};

View File

@ -183,12 +183,5 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

View File

@ -25,14 +25,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -78,14 +78,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -39,6 +39,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
};

View File

@ -135,12 +135,5 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

View File

@ -210,14 +210,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&art {

View File

@ -125,14 +125,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -114,14 +114,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&pcie {

View File

@ -152,6 +152,14 @@
phys = <&usb_phy>;
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
spi: spi@1f000000 {

View File

@ -246,14 +246,6 @@
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -74,14 +74,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -129,6 +129,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
spi: spi@1f000000 {

View File

@ -57,7 +57,7 @@
usb {
label = "white:usb";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
trigger-sources = <&hub_port1>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
};
@ -125,22 +125,8 @@
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
dr_mode = "host";
vbus-supply = <&reg_usb_vbus>;
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
#trigger-source-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
};
&usb_phy {

View File

@ -86,16 +86,9 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
dr_mode = "host";
vbus-supply = <&reg_usb_vbus>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -82,16 +82,9 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
dr_mode = "host";
vbus-supply = <&reg_usb_vbus>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -82,14 +82,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -83,14 +83,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -41,7 +41,7 @@
usb {
label = "green:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port1>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
};
@ -219,14 +219,6 @@
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -28,7 +28,7 @@
label = "blue:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port1>;
trigger-sources = <&hub_port>;
};
wan_blue {

View File

@ -119,13 +119,6 @@
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -192,14 +192,6 @@
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -24,11 +24,4 @@
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

View File

@ -106,13 +106,6 @@
&usb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -113,29 +113,26 @@
};
&usb {
status = "okay";
};
&hub_port {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "usb-a-connector";
reg = <1>;
};
port@1 {
compatible = "usb-a-connector";
reg = <1>;
};
port@3 {
label = "RS-232 serial adapter";
reg = <3>;
};
port@3 {
label = "RS-232 serial adapter";
reg = <3>;
};
port@4 {
label = "internal wwan modem";
reg = <4>;
};
port@4 {
label = "internal wwan modem";
reg = <4>;
};
};

View File

@ -42,14 +42,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -53,25 +53,21 @@
};
&usb {
status = "okay";
};
&hub_port {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
#address-cells = <1>;
#size-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
hub_port2: port@2 {
reg = <2>;
#trigger-source-cells = <0>;
};
hub_port2: port@2 {
reg = <2>;
#trigger-source-cells = <0>;
};
};

View File

@ -69,26 +69,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
#trigger-source-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
hub_port2: port@2 {
reg = <2>;
#trigger-source-cells = <0>;
};
};
};
&mdio0 {

View File

@ -46,7 +46,7 @@
usb {
label = "green:usb";
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
trigger-sources = <&hub_port1>, <&hub_port2>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
@ -150,26 +150,7 @@
};
&usb {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
#trigger-source-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
hub_port2: port@2 {
reg = <2>;
#trigger-source-cells = <0>;
};
};
};
&usb_phy {

View File

@ -178,6 +178,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
nand: nand@1b000200 {

View File

@ -111,14 +111,6 @@
&usb0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -62,14 +62,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -135,14 +135,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&eth0 {

View File

@ -142,8 +142,6 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
vbus-supply = <&reg_usb_vbus>;
status = "okay";
};

View File

@ -60,14 +60,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -107,14 +107,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -178,14 +178,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&romfile {

View File

@ -102,7 +102,7 @@
usb {
label = "green:usb";
gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
@ -190,14 +190,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -148,14 +148,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -178,14 +178,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&info {

View File

@ -71,7 +71,7 @@
label = "green:usb";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port>;
trigger-sources = <&hub_port0>;
};
};
@ -95,14 +95,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy {

View File

@ -206,6 +206,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
spi: spi@1f000000 {

View File

@ -110,9 +110,6 @@
&usb0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
};
&usb_phy1 {
@ -121,9 +118,6 @@
&usb1 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
};
&art {

View File

@ -104,14 +104,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&spi {

View File

@ -76,14 +76,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy1 {
@ -91,14 +84,7 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&spi {

View File

@ -84,8 +84,6 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
};
@ -94,8 +92,6 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
};

View File

@ -136,8 +136,6 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
};

View File

@ -169,9 +169,4 @@
&usb0 {
vbus-supply = <&reg_usb_vbus>;
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

View File

@ -85,14 +85,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy1 {
@ -100,14 +93,7 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&spi {

View File

@ -141,16 +141,9 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
dr_mode = "host";
vbus-supply = <&reg_usb0_vbus>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy1 {
@ -158,14 +151,7 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
dr_mode = "host";
vbus-supply = <&reg_usb1_vbus>;
status = "okay";
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

View File

@ -109,14 +109,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy1 {
@ -124,14 +117,7 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&spi {

View File

@ -77,14 +77,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&spi {

View File

@ -72,14 +72,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy1 {
@ -87,14 +80,7 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&spi {

View File

@ -268,6 +268,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
usb1: usb@1b400000 {
@ -289,6 +294,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
nand: nand@1b800200 {

View File

@ -116,19 +116,8 @@
&usb0 {
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb1 {
status = "okay";
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

View File

@ -16,19 +16,12 @@
label = "green:usb";
gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port>;
trigger-sources = <&hub_port0>;
};
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy0 {

View File

@ -16,19 +16,12 @@
label = "green:usb";
gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port>;
trigger-sources = <&hub_port0>;
};
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy0 {

View File

@ -235,14 +235,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&caldata {

View File

@ -28,12 +28,5 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};

View File

@ -125,14 +125,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy1 {

View File

@ -123,14 +123,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy1 {
@ -138,14 +131,7 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@2 {
reg = <2>;
#trigger-source-cells = <0>;
};
};
&info {

View File

@ -152,14 +152,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&usb_phy1 {
@ -167,14 +160,7 @@
};
&usb1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&spi {

View File

@ -108,14 +108,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&spi {

View File

@ -94,14 +94,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&eth0 {

View File

@ -204,6 +204,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
usb1: usb@1b400000 {
@ -226,6 +231,11 @@
#address-cells = <1>;
#size-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
spi: spi@1f000000 {

View File

@ -227,14 +227,7 @@
};
&usb0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
hub_port0: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
};
&wmac {