diff --git a/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network b/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network index 73274744c6e..6c8c6c171fd 100644 --- a/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network +++ b/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network @@ -13,6 +13,9 @@ case "$board" in checkpoint,v-80) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" "eth1" ;; +checkpoint,v-81) + ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8" "eth1 eth2" + ;; globalscale,mochabin) ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" "eth0 eth2" ;; diff --git a/target/linux/mvebu/cortexa72/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/cortexa72/base-files/lib/upgrade/platform.sh index 529ab0a9f55..b88b3c08ec9 100755 --- a/target/linux/mvebu/cortexa72/base-files/lib/upgrade/platform.sh +++ b/target/linux/mvebu/cortexa72/base-files/lib/upgrade/platform.sh @@ -9,7 +9,8 @@ REQUIRE_IMAGE_METADATA=1 platform_check_image() { case "$(board_name)" in - checkpoint,v-80) + checkpoint,v-80|\ + checkpoint,v-81) local root="$(cmdline_get_var root)" case "$root" in PARTUUID=????????-02) # USB or SD @@ -55,7 +56,8 @@ platform_check_image() { platform_do_upgrade() { case "$(board_name)" in - checkpoint,v-80) + checkpoint,v-80|\ + checkpoint,v-81) local root="$(cmdline_get_var root)" case "$root" in PARTUUID=????????-02) # USB or SD @@ -91,7 +93,8 @@ platform_do_upgrade() { } platform_copy_config() { case "$(board_name)" in - checkpoint,v-80) + checkpoint,v-80|\ + checkpoint,v-81) local root="$(cmdline_get_var root)" case "$root" in PARTUUID=????????-02) # USB or SD diff --git a/target/linux/mvebu/files-6.12/arch/arm64/boot/dts/marvell/armada-8040-v-81.dts b/target/linux/mvebu/files-6.12/arch/arm64/boot/dts/marvell/armada-8040-v-81.dts new file mode 100644 index 00000000000..a32be5b558b --- /dev/null +++ b/target/linux/mvebu/files-6.12/arch/arm64/boot/dts/marvell/armada-8040-v-81.dts @@ -0,0 +1,514 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +/dts-v1/; + +#include +#include +#include +#include +#include "armada-8040.dtsi" + +/ { + model = "Check Point V-81"; + compatible = "checkpoint,v-81", "marvell,armada8040", + "marvell,armada-ap806-quad", "marvell,armada-ap806"; + + aliases { + ethernet0 = &cp0_eth0; + ethernet1 = &cp1_eth1; + ethernet2 = &cp1_eth2; + mmc0 = &ap_sdhci0; + mmc1 = &cp0_sdhci0; + led-boot = &led_power_blue; + led-failsafe = &led_power_red; + led-running = &led_power_blue; + led-upgrade = &led_power_blue; + label-mac-device = &cp1_eth2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x00000000 0x00000000 0x00000000 0x80000000>; + }; + + keys { + compatible = "gpio-keys"; + pinctrl-0 = <&pmx_gpio_keys_pins>; + pinctrl-names = "default"; + + button-reset { + label = "reset"; + gpios = <&cp1_gpio1 31 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-0 = <&pmx_gpio_leds_pins>; + pinctrl-names = "default"; + + led-0 { + gpios = <&cp1_gpio1 2 GPIO_ACTIVE_LOW>; + color = ; + function = "management"; + }; + + led-1 { + gpios = <&cp1_gpio1 3 GPIO_ACTIVE_LOW>; + color = ; + function = "management"; + }; + + led-2 { + gpios = <&cp1_gpio1 6 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_WAN_ONLINE; + }; + + led-3 { + gpios = <&cp1_gpio1 7 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_WAN_ONLINE; + }; + + led_power_red: led-4 { + gpios = <&cp1_gpio1 11 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_POWER; + }; + + /* populated but no hole on the case ("LTE" or "DSL") */ + led-5 { + gpios = <&cp1_gpio1 14 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_MOBILE; + }; + + /* populated but no hole on the case ("LTE" or "DSL") */ + led-6 { + gpios = <&cp1_gpio1 15 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_MOBILE; + }; + + /* populated but no hole on the case */ + led-7 { + gpios = <&cp1_gpio1 16 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_WLAN; + }; + + /* populated but no hole on the case */ + led-8 { + gpios = <&cp1_gpio1 24 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_WLAN; + }; + + led_power_blue: led-9 { + gpios = <&cp1_gpio1 26 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_POWER; + }; + + /* populated but no hole on the case (unused) */ + led-10 { + gpios = <&gpio5 7 GPIO_ACTIVE_LOW>; + color = ; + function = "unused"; + }; + }; + + regulator-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb-vbus"; + gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + regulator-always-on; + }; + + sfp: sfp { + /* + * Note: port LEDs on RJ45/SFP are switched + * by pin7 on &cp0_gpio2 + * + * - HIGH: RJ45 + * - LOW : SFP + */ + compatible = "sff,sfp"; + i2c-bus = <&cp0_i2c1>; + los-gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; + tx-disable-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; + tx-fault-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; + maximum-power-milliwatt = <2000>; + }; +}; + +/* USB Type-C UART console */ +&uart0 { + status = "okay"; + + pinctrl-0 = <&uart0_pins>; + pinctrl-names = "default"; +}; + +&ap_pinctrl { + pmx_ap_sdhci0_pins: ap-sdhci0-pins { + marvell,pins = "mpp12"; + marvell,function = "gpio"; + }; +}; + +/* MicroSD slot */ +&ap_sdhci0 { + status = "okay"; + + pinctrl-0 = <&pmx_ap_sdhci0_pins>; + pinctrl-names = "default"; + bus-width = <4>; + cd-gpios = <&ap_gpio 12 GPIO_ACTIVE_LOW>; + /* + * Not stable in HS modes - phy needs "more calibration", so add + * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes. + */ + marvell,xenon-phy-slow-mode; + no-1-8-v; +}; + +&cp0_ethernet { + status = "okay"; +}; + +/* LAN1-8 (Switch) */ +&cp0_eth0 { + status = "okay"; + + phy-connection-type = "10gbase-r"; + phys = <&cp0_comphy2 0>; + + fixed-link { + speed = <10000>; + full-duplex; + }; +}; + +/* 2x PCA9555, 2x NCT7802Y, TCA9534A */ +&cp0_i2c0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pmx_cp0_i2c0_pins>; + clock-frequency = <100000>; + + gpio3: gpio@21 { + pinctrl-0 = <&pmx_pca9555_pins>; + pinctrl-names = "default"; + compatible = "nxp,pca9555"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&cp0_gpio2>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio4: gpio@22 { + compatible = "nxp,pca9555"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + hwmon@2b { + compatible = "nuvoton,nct7802"; + reg = <0x2b>; + }; + + hwmon@2d { + compatible = "nuvoton,nct7802"; + reg = <0x2d>; + }; + + /* TI TCA9534A */ + gpio5: gpio@3b { + compatible = "nxp,pca9534"; + reg = <0x3b>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +/* EEPROM */ +&cp0_i2c1 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pmx_cp0_i2c1_pins>; + clock-frequency = <100000>; + + /* Giantec GT24C04A */ + eeprom@54 { + compatible = "atmel,24c04"; + reg = <0x54>; + wp-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; + read-only; + }; +}; + +&cp0_mdio { + status = "okay"; + + pinctrl-0 = <&pmx_cp0_mdio_pins>; + pinctrl-names = "default"; + + /* Marvell 88E6393X */ + switch@0 { + compatible = "marvell,mv88e6190"; + reg = <0x0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ethernet = <&cp0_eth0>; + phy-connection-type = "10gbase-r"; + + fixed-link { + speed = <10000>; + full-duplex; + }; + }; + + swport1: port@1 { + reg = <1>; + label = "lan1"; + phy-handle = <&swphy1>; + }; + + swport2: port@2 { + reg = <2>; + label = "lan2"; + phy-handle = <&swphy2>; + }; + + swport3: port@3 { + reg = <3>; + label = "lan3"; + phy-handle = <&swphy3>; + }; + + swport4: port@4 { + reg = <4>; + label = "lan4"; + phy-handle = <&swphy4>; + }; + + swport5: port@5 { + reg = <5>; + label = "lan5"; + phy-handle = <&swphy5>; + }; + + swport6: port@6 { + reg = <6>; + label = "lan6"; + phy-handle = <&swphy6>; + }; + + swport7: port@7 { + reg = <7>; + label = "lan7"; + phy-handle = <&swphy7>; + }; + + swport8: port@8 { + reg = <8>; + label = "lan8"; + phy-handle = <&swphy8>; + }; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + swphy1: switch-phy@1 { + reg = <0x1>; + }; + + swphy2: switch-phy@2 { + reg = <0x2>; + }; + + swphy3: switch-phy@3 { + reg = <0x3>; + }; + + swphy4: switch-phy@4 { + reg = <0x4>; + }; + + swphy5: switch-phy@5 { + reg = <0x5>; + }; + + swphy6: switch-phy@6 { + reg = <0x6>; + }; + + swphy7: switch-phy@7 { + reg = <0x7>; + }; + + swphy8: switch-phy@8 { + reg = <0x8>; + }; + }; + }; +}; + +&cp0_pinctrl { + pmx_cp0_mdio_pins: cp0-mdio-pins { + marvell,pins = "mpp32", "mpp34"; + marvell,function = "ge"; + }; + + pmx_cp0_spi1_pins: cp0-spi0-pins { + marvell,pins = "mpp40", "mpp41", "mpp42", "mpp43"; + marvell,function = "spi0"; + }; + + pmx_cp0_i2c0_pins: cp0-i2c0-pins { + marvell,pins = "mpp37", "mpp38"; + marvell,function = "i2c0"; + }; + + pmx_cp0_i2c1_pins: cp0-i2c1-pins { + marvell,pins = "mpp35", "mpp36"; + marvell,function = "i2c1"; + }; + + pmx_cp0_sdhci0_pins: cp0-sdhci0-pins { + marvell,pins = "mpp56", "mpp57","mpp58", "mpp59", "mpp60", "mpp61"; + marvell,function = "sdio"; + }; + + pmx_cp1_rgmii1_pins: cp1-rgmii1-pins { + marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47", "mpp48", "mpp49", + "mpp50", "mpp51", "mpp52", "mpp53", "mpp54", "mpp55"; + marvell,function = "ge1"; + }; + + pmx_pca9555_pins: pca9555-pins { + marvell,pins = "mpp33"; + marvell,function = "gpio"; + }; +}; + +/* eMMC */ +&cp0_sdhci0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pmx_cp0_sdhci0_pins>; + bus-width = <4>; + non-removable; +}; + +&cp0_utmi { + status = "okay"; +}; + +/* USB 3.0 Type-A */ +&cp0_usb3_0 { + status = "okay"; + + dr_mode = "host"; + phys = <&cp0_comphy1 0>, <&cp0_utmi0>; + phy-names = "cp0-usb3h0-comphy", "utmi"; +}; + +&cp1_ethernet { + status = "okay"; + + pinctrl-0 = <&pmx_cp1_rgmii1_pins>; + pinctrl-names = "default"; +}; + +/* "DMZ" (RJ45/SFP) */ +&cp1_eth1 { + status = "okay"; + + phy-connection-type = "rgmii-id"; + phy-handle = <ðphy0>; +}; + +/* "WAN" */ +&cp1_eth2 { + status = "okay"; + + phy-connection-type = "sgmii"; + phy-handle = <ðphy1>; + phys = <&cp1_comphy1 2>; +}; + +&cp1_mdio { + status = "okay"; + + pinctrl-0 = <&pmx_cp1_mdio_pins>; + pinctrl-names = "default"; + + /* Marvell 88E1512 */ + ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-id0141,0dd1", + "ethernet-phy-ieee802.3-c22"; + reg = <0x0>; + /* + * LED[0] (Green): LINK/ACT + * LED[1] (Amber): SPEED 100/1000M + */ + marvell,reg-init = <3 16 0 0x61>; + sfp = <&sfp>; + }; + + /* Marvell 88E1512 */ + ethphy1: ethernet-phy@1 { + compatible = "ethernet-phy-id0141,0dd1", + "ethernet-phy-ieee802.3-c22"; + reg = <0x1>; + /* + * LED[0] (Green): LINK/ACT + * LED[1] (Amber): SPEED 100/1000M + */ + marvell,reg-init = <3 16 0 0x61>; + }; +}; + +&cp1_pinctrl { + pmx_gpio_keys_pins: gpio-keys-pins { + marvell,pins = "mpp31"; + marvell,function = "gpio"; + }; + + pmx_gpio_leds_pins: gpio-leds-pins { + marvell,pins = "mpp2", "mpp3", "mpp6", "mpp7", "mpp11", "mpp14", + "mpp15", "mpp16", "mpp24", "mpp26"; + marvell,function = "gpio"; + }; + + pmx_cp1_mdio_pins: mdio-pins { + marvell,pins = "mpp4", "mpp5"; + marvell,function = "ge"; + }; +}; diff --git a/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/armada-8040-v-81.dts b/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/armada-8040-v-81.dts new file mode 100644 index 00000000000..a32be5b558b --- /dev/null +++ b/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/armada-8040-v-81.dts @@ -0,0 +1,514 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +/dts-v1/; + +#include +#include +#include +#include +#include "armada-8040.dtsi" + +/ { + model = "Check Point V-81"; + compatible = "checkpoint,v-81", "marvell,armada8040", + "marvell,armada-ap806-quad", "marvell,armada-ap806"; + + aliases { + ethernet0 = &cp0_eth0; + ethernet1 = &cp1_eth1; + ethernet2 = &cp1_eth2; + mmc0 = &ap_sdhci0; + mmc1 = &cp0_sdhci0; + led-boot = &led_power_blue; + led-failsafe = &led_power_red; + led-running = &led_power_blue; + led-upgrade = &led_power_blue; + label-mac-device = &cp1_eth2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x00000000 0x00000000 0x00000000 0x80000000>; + }; + + keys { + compatible = "gpio-keys"; + pinctrl-0 = <&pmx_gpio_keys_pins>; + pinctrl-names = "default"; + + button-reset { + label = "reset"; + gpios = <&cp1_gpio1 31 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-0 = <&pmx_gpio_leds_pins>; + pinctrl-names = "default"; + + led-0 { + gpios = <&cp1_gpio1 2 GPIO_ACTIVE_LOW>; + color = ; + function = "management"; + }; + + led-1 { + gpios = <&cp1_gpio1 3 GPIO_ACTIVE_LOW>; + color = ; + function = "management"; + }; + + led-2 { + gpios = <&cp1_gpio1 6 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_WAN_ONLINE; + }; + + led-3 { + gpios = <&cp1_gpio1 7 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_WAN_ONLINE; + }; + + led_power_red: led-4 { + gpios = <&cp1_gpio1 11 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_POWER; + }; + + /* populated but no hole on the case ("LTE" or "DSL") */ + led-5 { + gpios = <&cp1_gpio1 14 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_MOBILE; + }; + + /* populated but no hole on the case ("LTE" or "DSL") */ + led-6 { + gpios = <&cp1_gpio1 15 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_MOBILE; + }; + + /* populated but no hole on the case */ + led-7 { + gpios = <&cp1_gpio1 16 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_WLAN; + }; + + /* populated but no hole on the case */ + led-8 { + gpios = <&cp1_gpio1 24 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_WLAN; + }; + + led_power_blue: led-9 { + gpios = <&cp1_gpio1 26 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_POWER; + }; + + /* populated but no hole on the case (unused) */ + led-10 { + gpios = <&gpio5 7 GPIO_ACTIVE_LOW>; + color = ; + function = "unused"; + }; + }; + + regulator-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb-vbus"; + gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + regulator-always-on; + }; + + sfp: sfp { + /* + * Note: port LEDs on RJ45/SFP are switched + * by pin7 on &cp0_gpio2 + * + * - HIGH: RJ45 + * - LOW : SFP + */ + compatible = "sff,sfp"; + i2c-bus = <&cp0_i2c1>; + los-gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; + tx-disable-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; + tx-fault-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; + maximum-power-milliwatt = <2000>; + }; +}; + +/* USB Type-C UART console */ +&uart0 { + status = "okay"; + + pinctrl-0 = <&uart0_pins>; + pinctrl-names = "default"; +}; + +&ap_pinctrl { + pmx_ap_sdhci0_pins: ap-sdhci0-pins { + marvell,pins = "mpp12"; + marvell,function = "gpio"; + }; +}; + +/* MicroSD slot */ +&ap_sdhci0 { + status = "okay"; + + pinctrl-0 = <&pmx_ap_sdhci0_pins>; + pinctrl-names = "default"; + bus-width = <4>; + cd-gpios = <&ap_gpio 12 GPIO_ACTIVE_LOW>; + /* + * Not stable in HS modes - phy needs "more calibration", so add + * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes. + */ + marvell,xenon-phy-slow-mode; + no-1-8-v; +}; + +&cp0_ethernet { + status = "okay"; +}; + +/* LAN1-8 (Switch) */ +&cp0_eth0 { + status = "okay"; + + phy-connection-type = "10gbase-r"; + phys = <&cp0_comphy2 0>; + + fixed-link { + speed = <10000>; + full-duplex; + }; +}; + +/* 2x PCA9555, 2x NCT7802Y, TCA9534A */ +&cp0_i2c0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pmx_cp0_i2c0_pins>; + clock-frequency = <100000>; + + gpio3: gpio@21 { + pinctrl-0 = <&pmx_pca9555_pins>; + pinctrl-names = "default"; + compatible = "nxp,pca9555"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&cp0_gpio2>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio4: gpio@22 { + compatible = "nxp,pca9555"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + hwmon@2b { + compatible = "nuvoton,nct7802"; + reg = <0x2b>; + }; + + hwmon@2d { + compatible = "nuvoton,nct7802"; + reg = <0x2d>; + }; + + /* TI TCA9534A */ + gpio5: gpio@3b { + compatible = "nxp,pca9534"; + reg = <0x3b>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +/* EEPROM */ +&cp0_i2c1 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pmx_cp0_i2c1_pins>; + clock-frequency = <100000>; + + /* Giantec GT24C04A */ + eeprom@54 { + compatible = "atmel,24c04"; + reg = <0x54>; + wp-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; + read-only; + }; +}; + +&cp0_mdio { + status = "okay"; + + pinctrl-0 = <&pmx_cp0_mdio_pins>; + pinctrl-names = "default"; + + /* Marvell 88E6393X */ + switch@0 { + compatible = "marvell,mv88e6190"; + reg = <0x0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ethernet = <&cp0_eth0>; + phy-connection-type = "10gbase-r"; + + fixed-link { + speed = <10000>; + full-duplex; + }; + }; + + swport1: port@1 { + reg = <1>; + label = "lan1"; + phy-handle = <&swphy1>; + }; + + swport2: port@2 { + reg = <2>; + label = "lan2"; + phy-handle = <&swphy2>; + }; + + swport3: port@3 { + reg = <3>; + label = "lan3"; + phy-handle = <&swphy3>; + }; + + swport4: port@4 { + reg = <4>; + label = "lan4"; + phy-handle = <&swphy4>; + }; + + swport5: port@5 { + reg = <5>; + label = "lan5"; + phy-handle = <&swphy5>; + }; + + swport6: port@6 { + reg = <6>; + label = "lan6"; + phy-handle = <&swphy6>; + }; + + swport7: port@7 { + reg = <7>; + label = "lan7"; + phy-handle = <&swphy7>; + }; + + swport8: port@8 { + reg = <8>; + label = "lan8"; + phy-handle = <&swphy8>; + }; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + swphy1: switch-phy@1 { + reg = <0x1>; + }; + + swphy2: switch-phy@2 { + reg = <0x2>; + }; + + swphy3: switch-phy@3 { + reg = <0x3>; + }; + + swphy4: switch-phy@4 { + reg = <0x4>; + }; + + swphy5: switch-phy@5 { + reg = <0x5>; + }; + + swphy6: switch-phy@6 { + reg = <0x6>; + }; + + swphy7: switch-phy@7 { + reg = <0x7>; + }; + + swphy8: switch-phy@8 { + reg = <0x8>; + }; + }; + }; +}; + +&cp0_pinctrl { + pmx_cp0_mdio_pins: cp0-mdio-pins { + marvell,pins = "mpp32", "mpp34"; + marvell,function = "ge"; + }; + + pmx_cp0_spi1_pins: cp0-spi0-pins { + marvell,pins = "mpp40", "mpp41", "mpp42", "mpp43"; + marvell,function = "spi0"; + }; + + pmx_cp0_i2c0_pins: cp0-i2c0-pins { + marvell,pins = "mpp37", "mpp38"; + marvell,function = "i2c0"; + }; + + pmx_cp0_i2c1_pins: cp0-i2c1-pins { + marvell,pins = "mpp35", "mpp36"; + marvell,function = "i2c1"; + }; + + pmx_cp0_sdhci0_pins: cp0-sdhci0-pins { + marvell,pins = "mpp56", "mpp57","mpp58", "mpp59", "mpp60", "mpp61"; + marvell,function = "sdio"; + }; + + pmx_cp1_rgmii1_pins: cp1-rgmii1-pins { + marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47", "mpp48", "mpp49", + "mpp50", "mpp51", "mpp52", "mpp53", "mpp54", "mpp55"; + marvell,function = "ge1"; + }; + + pmx_pca9555_pins: pca9555-pins { + marvell,pins = "mpp33"; + marvell,function = "gpio"; + }; +}; + +/* eMMC */ +&cp0_sdhci0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pmx_cp0_sdhci0_pins>; + bus-width = <4>; + non-removable; +}; + +&cp0_utmi { + status = "okay"; +}; + +/* USB 3.0 Type-A */ +&cp0_usb3_0 { + status = "okay"; + + dr_mode = "host"; + phys = <&cp0_comphy1 0>, <&cp0_utmi0>; + phy-names = "cp0-usb3h0-comphy", "utmi"; +}; + +&cp1_ethernet { + status = "okay"; + + pinctrl-0 = <&pmx_cp1_rgmii1_pins>; + pinctrl-names = "default"; +}; + +/* "DMZ" (RJ45/SFP) */ +&cp1_eth1 { + status = "okay"; + + phy-connection-type = "rgmii-id"; + phy-handle = <ðphy0>; +}; + +/* "WAN" */ +&cp1_eth2 { + status = "okay"; + + phy-connection-type = "sgmii"; + phy-handle = <ðphy1>; + phys = <&cp1_comphy1 2>; +}; + +&cp1_mdio { + status = "okay"; + + pinctrl-0 = <&pmx_cp1_mdio_pins>; + pinctrl-names = "default"; + + /* Marvell 88E1512 */ + ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-id0141,0dd1", + "ethernet-phy-ieee802.3-c22"; + reg = <0x0>; + /* + * LED[0] (Green): LINK/ACT + * LED[1] (Amber): SPEED 100/1000M + */ + marvell,reg-init = <3 16 0 0x61>; + sfp = <&sfp>; + }; + + /* Marvell 88E1512 */ + ethphy1: ethernet-phy@1 { + compatible = "ethernet-phy-id0141,0dd1", + "ethernet-phy-ieee802.3-c22"; + reg = <0x1>; + /* + * LED[0] (Green): LINK/ACT + * LED[1] (Amber): SPEED 100/1000M + */ + marvell,reg-init = <3 16 0 0x61>; + }; +}; + +&cp1_pinctrl { + pmx_gpio_keys_pins: gpio-keys-pins { + marvell,pins = "mpp31"; + marvell,function = "gpio"; + }; + + pmx_gpio_leds_pins: gpio-leds-pins { + marvell,pins = "mpp2", "mpp3", "mpp6", "mpp7", "mpp11", "mpp14", + "mpp15", "mpp16", "mpp24", "mpp26"; + marvell,function = "gpio"; + }; + + pmx_cp1_mdio_pins: mdio-pins { + marvell,pins = "mpp4", "mpp5"; + marvell,function = "ge"; + }; +}; diff --git a/target/linux/mvebu/image/cortexa72.mk b/target/linux/mvebu/image/cortexa72.mk index b7c633f9a70..a60c3884cdd 100644 --- a/target/linux/mvebu/image/cortexa72.mk +++ b/target/linux/mvebu/image/cortexa72.mk @@ -33,6 +33,24 @@ define Device/checkpoint_v-80 endef TARGET_DEVICES += checkpoint_v-80 +define Device/checkpoint_v-81 + $(call Device/Default-arm64) + DEVICE_VENDOR := Check Point + DEVICE_MODEL := V-81 + SOC := armada-8040 + BOOT_SCRIPT := v-80 + IMAGES += sysupgrade.gz + IMAGE/sysupgrade.gz := boot-scr eMMC | append-bootscript | pad-to 2048 | \ + append-kernel | \ + sysupgrade-tar kernel=$$$$@ dtb=$$(KDIR)/image-$$(DEVICE_DTS).dtb | \ + gzip | append-metadata + ARTIFACTS := initramfs.dtb initramfs.scr + ARTIFACT/initramfs.dtb := append-dtb + ARTIFACT/initramfs.scr := boot-scr INIT | append-bootscript + DEVICE_PACKAGES := kmod-dsa-mv88e6xxx kmod-hwmon-nct7802 kmod-rtc-ds1307 +endef +TARGET_DEVICES += checkpoint_v-81 + define Device/globalscale_mochabin $(call Device/Default-arm64) DEVICE_VENDOR := Globalscale