Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Broadcom BCM470X / BCM5301X ARM platform code.
0004  * DTS for Meraki MR26 / Codename: Venom
0005  *
0006  * Copyright (C) 2022 Christian Lamparter <chunkeey@gmail.com>
0007  */
0008 
0009 /dts-v1/;
0010 
0011 #include "bcm4708.dtsi"
0012 #include "bcm5301x-nand-cs0-bch8.dtsi"
0013 #include <dt-bindings/leds/common.h>
0014 
0015 / {
0016         compatible = "meraki,mr26", "brcm,bcm53015", "brcm,bcm4708";
0017         model = "Meraki MR26";
0018 
0019         memory@0 {
0020                 reg = <0x00000000 0x08000000>;
0021                 device_type = "memory";
0022         };
0023 
0024         leds {
0025                 compatible = "gpio-leds";
0026 
0027                 led-0 {
0028                         function = LED_FUNCTION_FAULT;
0029                         color = <LED_COLOR_ID_AMBER>;
0030                         gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
0031                         panic-indicator;
0032                 };
0033                 led-1 {
0034                         function = LED_FUNCTION_INDICATOR;
0035                         color = <LED_COLOR_ID_WHITE>;
0036                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
0037                 };
0038         };
0039 
0040         keys {
0041                 compatible = "gpio-keys";
0042                 #address-cells = <1>;
0043                 #size-cells = <0>;
0044 
0045                 key-restart {
0046                         label = "Reset";
0047                         linux,code = <KEY_RESTART>;
0048                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
0049                 };
0050         };
0051 };
0052 
0053 &uart0 {
0054         clock-frequency = <50000000>;
0055         /delete-property/ clocks;
0056 };
0057 
0058 &uart1 {
0059         status = "disabled";
0060 };
0061 
0062 &gmac0 {
0063         status = "okay";
0064 };
0065 
0066 &gmac1 {
0067         status = "disabled";
0068 };
0069 &gmac2 {
0070         status = "disabled";
0071 };
0072 &gmac3 {
0073         status = "disabled";
0074 };
0075 
0076 &nandcs {
0077         nand-ecc-algo = "hw";
0078 
0079         partitions {
0080                 compatible = "fixed-partitions";
0081                 #address-cells = <0x1>;
0082                 #size-cells = <0x1>;
0083 
0084                 partition@0 {
0085                         label = "u-boot";
0086                         reg = <0x0 0x200000>;
0087                         read-only;
0088                 };
0089 
0090                 partition@200000 {
0091                         label = "u-boot-env";
0092                         reg = <0x200000 0x200000>;
0093                         /* empty */
0094                 };
0095 
0096                 partition@400000 {
0097                         label = "u-boot-backup";
0098                         reg = <0x400000 0x200000>;
0099                         /* empty */
0100                 };
0101 
0102                 partition@600000 {
0103                         label = "u-boot-env-backup";
0104                         reg = <0x600000 0x200000>;
0105                         /* empty */
0106                 };
0107 
0108                 partition@800000 {
0109                         label = "ubi";
0110                         reg = <0x800000 0x7780000>;
0111                 };
0112         };
0113 };
0114 
0115 &srab {
0116         status = "okay";
0117 
0118         ports {
0119                 port@0 {
0120                         reg = <0>;
0121                         label = "poe";
0122                 };
0123 
0124                 port@5 {
0125                         reg = <5>;
0126                         label = "cpu";
0127                         ethernet = <&gmac0>;
0128 
0129                         fixed-link {
0130                                 speed = <1000>;
0131                                 duplex-full;
0132                         };
0133                 };
0134         };
0135 };
0136 
0137 &i2c0 {
0138         status = "okay";
0139 
0140         pinctrl-names = "default";
0141         pinctrl-0 = <&pinmux_i2c>;
0142 
0143         clock-frequency = <100000>;
0144 
0145         ina219@40 {
0146                 compatible = "ti,ina219"; /* PoE power */
0147                 reg = <0x40>;
0148                 shunt-resistor = <60000>; /* = 60 mOhms */
0149         };
0150 
0151         eeprom@56 {
0152                 compatible = "atmel,24c64";
0153                 reg = <0x56>;
0154                 pagesize = <32>;
0155                 read-only;
0156                 #address-cells = <1>;
0157                 #size-cells = <1>;
0158 
0159                 /* it's empty */
0160         };
0161 };
0162 
0163 &thermal {
0164         status = "disabled";
0165         /* does not work, reads 418 degree Celsius */
0166 };