0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Check Point L-50 Board Description
0004 * Copyright 2020 Pawel Dembicki <paweldembicki@gmail.com>
0005 */
0006
0007 /dts-v1/;
0008
0009 #include "kirkwood.dtsi"
0010 #include "kirkwood-6281.dtsi"
0011
0012 / {
0013 model = "Check Point L-50";
0014 compatible = "checkpoint,l-50", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0015
0016 memory {
0017 device_type = "memory";
0018 reg = <0x00000000 0x20000000>;
0019 };
0020
0021 chosen {
0022 bootargs = "console=ttyS0,115200n8";
0023 stdout-path = &uart0;
0024 };
0025
0026 ocp@f1000000 {
0027 pinctrl: pin-controller@10000 {
0028 pinctrl-0 = <&pmx_led38 &pmx_sysrst &pmx_button29>;
0029 pinctrl-names = "default";
0030
0031 pmx_sysrst: pmx-sysrst {
0032 marvell,pins = "mpp6";
0033 marvell,function = "sysrst";
0034 };
0035
0036 pmx_button29: pmx_button29 {
0037 marvell,pins = "mpp29";
0038 marvell,function = "gpio";
0039 };
0040
0041 pmx_led38: pmx_led38 {
0042 marvell,pins = "mpp38";
0043 marvell,function = "gpio";
0044 };
0045
0046 pmx_sdio_cd: pmx-sdio-cd {
0047 marvell,pins = "mpp46";
0048 marvell,function = "gpio";
0049 };
0050 };
0051
0052 serial@12000 {
0053 status = "okay";
0054 };
0055
0056 mvsdio@90000 {
0057 status = "okay";
0058 cd-gpios = <&gpio1 14 9>;
0059 };
0060
0061 i2c@11000 {
0062 status = "okay";
0063 clock-frequency = <400000>;
0064
0065 gpio2: gpio-expander@20{
0066 #gpio-cells = <2>;
0067 #interrupt-cells = <2>;
0068 compatible = "semtech,sx1505q";
0069 reg = <0x20>;
0070
0071 gpio-controller;
0072 };
0073
0074 /* Three GPIOs from 0x21 exp. are undescribed in dts:
0075 * 1: DSL module reset (active low)
0076 * 5: mPCIE reset (active low)
0077 * 6: Express card reset (active low)
0078 */
0079 gpio3: gpio-expander@21{
0080 #gpio-cells = <2>;
0081 #interrupt-cells = <2>;
0082 compatible = "semtech,sx1505q";
0083 reg = <0x21>;
0084
0085 gpio-controller;
0086 };
0087
0088 rtc@30 {
0089 compatible = "s35390a";
0090 reg = <0x30>;
0091 };
0092 };
0093 };
0094
0095 leds {
0096 compatible = "gpio-leds";
0097
0098 status_green {
0099 label = "l-50:green:status";
0100 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
0101 };
0102
0103 status_red {
0104 label = "l-50:red:status";
0105 gpios = <&gpio3 2 GPIO_ACTIVE_LOW>;
0106 };
0107
0108 wifi {
0109 label = "l-50:green:wifi";
0110 gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
0111 linux,default-trigger = "phy0tpt";
0112 };
0113
0114 internet_green {
0115 label = "l-50:green:internet";
0116 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
0117 };
0118
0119 internet_red {
0120 label = "l-50:red:internet";
0121 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
0122 };
0123
0124 usb1_green {
0125 label = "l-50:green:usb1";
0126 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
0127 linux,default-trigger = "usbport";
0128 trigger-sources = <&hub_port3>;
0129 };
0130
0131 usb1_red {
0132 label = "l-50:red:usb1";
0133 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
0134 };
0135
0136 usb2_green {
0137 label = "l-50:green:usb2";
0138 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
0139 linux,default-trigger = "usbport";
0140 trigger-sources = <&hub_port1>;
0141 };
0142
0143 usb2_red {
0144 label = "l-50:red:usb2";
0145 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
0146 };
0147 };
0148
0149 usb2_pwr {
0150 compatible = "regulator-fixed";
0151 regulator-name = "usb2_pwr";
0152
0153 regulator-min-microvolt = <5000000>;
0154 regulator-max-microvolt = <5000000>;
0155 gpio = <&gpio3 3 GPIO_ACTIVE_LOW>;
0156 regulator-always-on;
0157 };
0158
0159 usb1_pwr {
0160 compatible = "regulator-fixed";
0161 regulator-name = "usb1_pwr";
0162
0163 regulator-min-microvolt = <5000000>;
0164 regulator-max-microvolt = <5000000>;
0165 gpio = <&gpio3 4 GPIO_ACTIVE_LOW>;
0166 regulator-always-on;
0167 };
0168
0169 mpcie_pwr {
0170 compatible = "regulator-fixed";
0171 regulator-name = "mpcie_pwr";
0172
0173 regulator-min-microvolt = <3300000>;
0174 regulator-max-microvolt = <3300000>;
0175 gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>;
0176 enable-active-high;
0177 regulator-always-on;
0178 };
0179
0180 express_card_pwr {
0181 compatible = "regulator-fixed";
0182 regulator-name = "express_card_pwr";
0183
0184 regulator-min-microvolt = <3300000>;
0185 regulator-max-microvolt = <3300000>;
0186 gpio = <&gpio3 7 GPIO_ACTIVE_HIGH>;
0187 enable-active-high;
0188 regulator-always-on;
0189 };
0190
0191 keys {
0192 compatible = "gpio-keys";
0193
0194 factory_defaults {
0195 label = "factory_defaults";
0196 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
0197 linux,code = <KEY_RESTART>;
0198 };
0199 };
0200 };
0201
0202 &mdio {
0203 status = "okay";
0204
0205 ethphy8: ethernet-phy@8 {
0206 reg = <0x08>;
0207 };
0208
0209 switch0: switch@10 {
0210 compatible = "marvell,mv88e6085";
0211 #address-cells = <1>;
0212 #size-cells = <0>;
0213 reg = <0x10>;
0214 dsa,member = <0 0>;
0215
0216 ports {
0217 #address-cells = <1>;
0218 #size-cells = <0>;
0219
0220 port@0 {
0221 reg = <0>;
0222 label = "lan5";
0223 };
0224
0225 port@1 {
0226 reg = <1>;
0227 label = "lan1";
0228 };
0229
0230 port@2 {
0231 reg = <2>;
0232 label = "lan6";
0233 };
0234
0235 port@3 {
0236 reg = <3>;
0237 label = "lan2";
0238 };
0239
0240 port@4 {
0241 reg = <4>;
0242 label = "lan7";
0243 };
0244
0245 switch0port5: port@5 {
0246 reg = <5>;
0247 phy-mode = "rgmii-txid";
0248 link = <&switch1port5>;
0249 fixed-link {
0250 speed = <1000>;
0251 full-duplex;
0252 };
0253 };
0254
0255 port@6 {
0256 reg = <6>;
0257 label = "cpu";
0258 phy-mode = "rgmii-id";
0259 ethernet = <ð1port>;
0260 fixed-link {
0261 speed = <1000>;
0262 full-duplex;
0263 };
0264 };
0265 };
0266 };
0267
0268 switch@11 {
0269 compatible = "marvell,mv88e6085";
0270 #address-cells = <1>;
0271 #size-cells = <0>;
0272 reg = <0x11>;
0273 dsa,member = <0 1>;
0274
0275 ports {
0276 #address-cells = <1>;
0277 #size-cells = <0>;
0278
0279 port@0 {
0280 reg = <0>;
0281 label = "lan3";
0282 };
0283
0284 port@1 {
0285 reg = <1>;
0286 label = "lan8";
0287 };
0288
0289 port@2 {
0290 reg = <2>;
0291 label = "lan4";
0292 };
0293
0294 port@3 {
0295 reg = <3>;
0296 label = "dmz";
0297 };
0298
0299 switch1port5: port@5 {
0300 reg = <5>;
0301 phy-mode = "rgmii-txid";
0302 link = <&switch0port5>;
0303 fixed-link {
0304 speed = <1000>;
0305 full-duplex;
0306 };
0307 };
0308
0309 port@6 {
0310 reg = <6>;
0311 label = "dsl";
0312 fixed-link {
0313 speed = <100>;
0314 full-duplex;
0315 };
0316 };
0317 };
0318 };
0319 };
0320
0321 ð0 {
0322 status = "okay";
0323 ethernet0-port@0 {
0324 phy-handle = <ðphy8>;
0325 };
0326 };
0327
0328 ð1 {
0329 status = "okay";
0330 ethernet1-port@0 {
0331 speed = <1000>;
0332 duplex = <1>;
0333 };
0334 };
0335
0336 &nand {
0337 status = "okay";
0338 pinctrl-0 = <&pmx_nand>;
0339 pinctrl-names = "default";
0340
0341 partition@0 {
0342 label = "u-boot";
0343 reg = <0x00000000 0x000c0000>;
0344 };
0345
0346 partition@a0000 {
0347 label = "bootldr-env";
0348 reg = <0x000c0000 0x00040000>;
0349 };
0350
0351 partition@100000 {
0352 label = "kernel-1";
0353 reg = <0x00100000 0x00800000>;
0354 };
0355
0356 partition@900000 {
0357 label = "rootfs-1";
0358 reg = <0x00900000 0x07100000>;
0359 };
0360
0361 partition@7a00000 {
0362 label = "kernel-2";
0363 reg = <0x07a00000 0x00800000>;
0364 };
0365
0366 partition@8200000 {
0367 label = "rootfs-2";
0368 reg = <0x08200000 0x07100000>;
0369 };
0370
0371 partition@f300000 {
0372 label = "default_sw";
0373 reg = <0x0f300000 0x07900000>;
0374 };
0375
0376 partition@16c00000 {
0377 label = "logs";
0378 reg = <0x16c00000 0x01800000>;
0379 };
0380
0381 partition@18400000 {
0382 label = "preset_cfg";
0383 reg = <0x18400000 0x00100000>;
0384 };
0385
0386 partition@18500000 {
0387 label = "adsl";
0388 reg = <0x18500000 0x00100000>;
0389 };
0390
0391 partition@18600000 {
0392 label = "storage";
0393 reg = <0x18600000 0x07a00000>;
0394 };
0395 };
0396
0397 &rtc {
0398 status = "disabled";
0399 };
0400
0401 &pciec {
0402 status = "okay";
0403 };
0404
0405 &pcie0 {
0406 status = "okay";
0407 };
0408
0409 &sata_phy0 {
0410 status = "disabled";
0411 };
0412
0413 &sata_phy1 {
0414 status = "disabled";
0415 };
0416
0417 &usb0 {
0418 #address-cells = <1>;
0419 #size-cells = <0>;
0420 status = "okay";
0421
0422 port@1 {
0423 #address-cells = <1>;
0424 #size-cells = <0>;
0425 reg = <1>;
0426 #trigger-source-cells = <0>;
0427
0428 hub_port1: port@1 {
0429 reg = <1>;
0430 #trigger-source-cells = <0>;
0431 };
0432
0433 hub_port3: port@3 {
0434 reg = <3>;
0435 #trigger-source-cells = <0>;
0436 };
0437 };
0438 };