&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x1e>; /* lan port bitmap */
- switch_wan_bmp = <0x20>; /* wan port bitmap */
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x1e>; /* lan port bitmap */
- switch_wan_bmp = <0x20>; /* wan port bitmap */
+ switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/
tm_tick_mode = <0>; /* tm tick mode */
qcom,port_phyinfo {
- port@0 {
- port_id = <1>;
- phy_address = <0>;
- };
port@1 {
port_id = <2>;
phy_address = <1>;
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x3e>; /* lan port bitmap */
- switch_wan_bmp = <0x40>; /* wan port bitmap */
+ switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <0xff>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xf>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xf>; /* mac mode for uniphy instance2*/
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x3e>; /* lan port bitmap */
- switch_wan_bmp = <0xc0>; /* wan port bitmap */
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <0xb>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xd>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xd>; /* mac mode for uniphy instance2*/
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x3e>; /* lan port bitmap */
- switch_wan_bmp = <0x40>; /* wan port bitmap */
+ switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <0xff>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xf>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xf>; /* mac mode for uniphy instance2*/
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x1e>; /* lan port bitmap */
- switch_wan_bmp = <0x20>; /* wan port bitmap */
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode = <0xb>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xc>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x3e>; /* lan port bitmap */
- switch_wan_bmp = <0x40>; /* wan port bitmap */
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <0xb>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xc>; /* mac mode for uniphy instance2*/
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x1e>; /* lan port bitmap */
- switch_wan_bmp = <0x60>; /* wan port bitmap */
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xe>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xd>; /* mac mode for uniphy instance2*/
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>;
- switch_lan_bmp = <0x3e>;
- switch_wan_bmp = <0x40>;
+ switch_wan_bmp = <ESS_PORT6>;
switch_mac_mode = <0x00>;
switch_mac_mode1 = <0xff>;
switch_mac_mode2 = <0x0f>;
&switch {
status = "okay";
- switch_cpu_bmp = <0x01>;
- switch_lan_bmp = <0x3e>;
- switch_wan_bmp = <0x40>;
+ switch_wan_bmp = <ESS_PORT6>;
switch_mac_mode = <0x00>;
switch_mac_mode1 = <0xff>;
switch_mac_mode2 = <0x0f>;
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x3e>; /* lan port bitmap */
- switch_wan_bmp = <0x40>; /* wan port bitmap */
+ switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0x0f>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0x0f>; /* mac mode for uniphy instance2*/
// SPDX-License-Identifier: GPL-2.0-only
+#include <dt-bindings/net/qcom-ipq-ess.h>
+
&clocks {
bias_pll_cc_clk {
compatible = "fixed-clock";
compatible = "qcom,ess-switch-ipq807x";
reg = <0x3a000000 0x1000000>;
switch_access_mode = "local bus";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_inner_bmp = <0x80>; /*inner port bitmap*/
+ switch_cpu_bmp = <ESS_PORT0>; /* cpu port bitmap */
+ switch_inner_bmp = <ESS_PORT7>; /*inner port bitmap*/
clocks = <&gcc GCC_CMN_12GPLL_AHB_CLK>,
<&gcc GCC_CMN_12GPLL_SYS_CLK>,
<&gcc GCC_UNIPHY0_AHB_CLK>,
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>;
- switch_lan_bmp = <0x3e>;
- switch_wan_bmp = <0x40>;
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>;
+ switch_wan_bmp = <ESS_PORT6>;
switch_mac_mode = <0x0>;
switch_mac_mode1 = <0xf>;
switch_mac_mode2 = <0xd>;
&switch {
status = "okay";
- switch_lan_bmp = <0x3e>; /* lan port bitmap */
- switch_wan_bmp = <0x40>; /* wan port bitmap */
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <0xd>; /* mac mode for uniphy instance2*/
&switch {
status = "okay";
-
- switch_cpu_bmp = <0x01>;
- switch_lan_bmp = <0x3e>;
- switch_wan_bmp = <0x40>;
+
+ switch_lan_bmp = <ESS_PORT4>;
+ switch_wan_bmp = <ESS_PORT6>;
switch_mac_mode = <0x00>;
switch_mac_mode1 = <0xff>;
switch_mac_mode2 = <0x0d>;
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>;
- switch_lan_bmp = <0x3e>;
- switch_wan_bmp = <0x40>;
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>;
+ switch_wan_bmp = <ESS_PORT6>;
switch_mac_mode = <0xb>;
switch_mac_mode1 = <0xd>;
switch_mac_mode2 = <0xd>;
--- /dev/null
+/* SPDX-License-Identifier: GPL-2.0 */\r
+\r
+#ifndef _DT_BINDINGS_NET_QCOM_IPQ_ESS_H\r
+#define _DT_BINDINGS_NET_QCOM_IPQ_ESS_H\r
+\r
+#define ESS_PORT0 0x1\r
+#define ESS_PORT1 0x2\r
+#define ESS_PORT2 0x4\r
+#define ESS_PORT3 0x8\r
+#define ESS_PORT4 0x10\r
+#define ESS_PORT5 0x20\r
+#define ESS_PORT6 0x40\r
+#define ESS_PORT7 0x80\r
+\r
+#endif /* _DT_BINDINGS_NET_QCOM_IPQ_ESS_H */\r