ipq40xx: dts: convert PHY GPIO bindings
Since the new PHY driver manages each PHY individually and therefore registers each PHY that is marked with gpio-controller; DT property as a GPIO controller we need to convert old DT bindings to account for this. Only 2 boards use this so its not much of an issue. Signed-off-by: Robert Marko <robert.marko@sartura.hr>
This commit is contained in:
parent
c8af7ea205
commit
2a5bfb6600
2 changed files with 41 additions and 22 deletions
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
wan {
|
wan {
|
||||||
label = "amber:wan";
|
label = "amber:wan";
|
||||||
gpios = <&qca8075 19 GPIO_ACTIVE_HIGH>;
|
gpios = <ðphy4 1 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
wlan2g {
|
wlan2g {
|
||||||
|
@ -119,14 +119,11 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
qca8075: ess-switch@c000000 {
|
ess-switch@c000000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
switch_lan_bmp = <0x10>;
|
switch_lan_bmp = <0x10>;
|
||||||
switch_wan_bmp = <0x20>;
|
switch_wan_bmp = <0x20>;
|
||||||
|
|
||||||
#gpio-cells = <2>;
|
|
||||||
gpio-controller;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
edma@c080000 {
|
edma@c080000 {
|
||||||
|
@ -264,6 +261,11 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ðphy4 {
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
&gmac0 {
|
&gmac0 {
|
||||||
qcom,forced_duplex = <1>;
|
qcom,forced_duplex = <1>;
|
||||||
qcom,forced_speed = <1000>;
|
qcom,forced_speed = <1000>;
|
||||||
|
|
|
@ -70,18 +70,8 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
qca8075: ess-switch@c000000 {
|
ess-switch@c000000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
#gpio-cells = <2>;
|
|
||||||
gpio-controller;
|
|
||||||
|
|
||||||
enable-usb-power {
|
|
||||||
gpio-hog;
|
|
||||||
line-name = "enable USB3 power";
|
|
||||||
gpios = <7 GPIO_ACTIVE_HIGH>;
|
|
||||||
output-high;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
edma@c080000 {
|
edma@c080000 {
|
||||||
|
@ -110,33 +100,33 @@
|
||||||
|
|
||||||
wlan {
|
wlan {
|
||||||
label = "green:wlan";
|
label = "green:wlan";
|
||||||
gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
|
gpios = <ðphy0 0 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
panic: info_red {
|
panic: info_red {
|
||||||
label = "red:info";
|
label = "red:info";
|
||||||
gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
|
gpios = <ðphy0 1 GPIO_ACTIVE_HIGH>;
|
||||||
panic-indicator;
|
panic-indicator;
|
||||||
};
|
};
|
||||||
|
|
||||||
wan {
|
wan {
|
||||||
label = "green:wan";
|
label = "green:wan";
|
||||||
gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
|
gpios = <ðphy1 0 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
power: power {
|
power: power {
|
||||||
label = "green:power";
|
label = "green:power";
|
||||||
gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
|
gpios = <ðphy2 1 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
lan {
|
lan {
|
||||||
label = "green:lan";
|
label = "green:lan";
|
||||||
gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
|
gpios = <ðphy3 0 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
flash: info_amber {
|
flash: info_amber {
|
||||||
label = "amber:info";
|
label = "amber:info";
|
||||||
gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
|
gpios = <ðphy3 1 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -269,6 +259,33 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ðphy0 {
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ðphy1 {
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
|
||||||
|
enable-usb-power {
|
||||||
|
gpio-hog;
|
||||||
|
line-name = "enable USB3 power";
|
||||||
|
gpios = <1 GPIO_ACTIVE_HIGH>;
|
||||||
|
output-high;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ðphy2 {
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ðphy3 {
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
&usb3_ss_phy {
|
&usb3_ss_phy {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue