1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 /* 2 /* 3 * Broadcom BCM470X / BCM5301X ARM platform co 3 * Broadcom BCM470X / BCM5301X ARM platform code. 4 * DTS for Meraki MR26 / Codename: Venom 4 * DTS for Meraki MR26 / Codename: Venom 5 * 5 * 6 * Copyright (C) 2022 Christian Lamparter <chun 6 * Copyright (C) 2022 Christian Lamparter <chunkeey@gmail.com> 7 */ 7 */ 8 8 9 /dts-v1/; 9 /dts-v1/; 10 10 11 #include "bcm4708.dtsi" 11 #include "bcm4708.dtsi" 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 13 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/leds/common.h> 14 14 15 / { 15 / { 16 compatible = "meraki,mr26", "brcm,bcm5 16 compatible = "meraki,mr26", "brcm,bcm53015", "brcm,bcm4708"; 17 model = "Meraki MR26"; 17 model = "Meraki MR26"; 18 18 19 memory@0 { 19 memory@0 { 20 reg = <0x00000000 0x08000000>; 20 reg = <0x00000000 0x08000000>; 21 device_type = "memory"; 21 device_type = "memory"; 22 }; 22 }; 23 23 24 leds { 24 leds { 25 compatible = "gpio-leds"; 25 compatible = "gpio-leds"; 26 26 27 led-0 { 27 led-0 { 28 function = LED_FUNCTIO 28 function = LED_FUNCTION_FAULT; 29 color = <LED_COLOR_ID_ 29 color = <LED_COLOR_ID_AMBER>; 30 gpios = <&chipcommon 1 30 gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>; 31 panic-indicator; 31 panic-indicator; 32 }; 32 }; 33 led-1 { 33 led-1 { 34 function = LED_FUNCTIO 34 function = LED_FUNCTION_INDICATOR; 35 color = <LED_COLOR_ID_ 35 color = <LED_COLOR_ID_WHITE>; 36 gpios = <&chipcommon 1 36 gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; 37 }; 37 }; 38 }; 38 }; 39 39 40 keys { 40 keys { 41 compatible = "gpio-keys"; 41 compatible = "gpio-keys"; 42 42 43 key-restart { 43 key-restart { 44 label = "Reset"; 44 label = "Reset"; 45 linux,code = <KEY_REST 45 linux,code = <KEY_RESTART>; 46 gpios = <&chipcommon 1 46 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 47 }; 47 }; 48 }; 48 }; 49 }; 49 }; 50 50 51 &uart0 { 51 &uart0 { 52 clock-frequency = <50000000>; 52 clock-frequency = <50000000>; 53 /delete-property/ clocks; 53 /delete-property/ clocks; 54 }; 54 }; 55 55 56 &uart1 { 56 &uart1 { 57 status = "disabled"; 57 status = "disabled"; 58 }; 58 }; 59 59 60 &gmac0 { 60 &gmac0 { 61 status = "okay"; 61 status = "okay"; 62 }; 62 }; 63 63 64 &gmac1 { 64 &gmac1 { 65 status = "disabled"; 65 status = "disabled"; 66 }; 66 }; 67 &gmac2 { 67 &gmac2 { 68 status = "disabled"; 68 status = "disabled"; 69 }; 69 }; 70 &gmac3 { 70 &gmac3 { 71 status = "disabled"; 71 status = "disabled"; 72 }; 72 }; 73 73 74 &nandcs { 74 &nandcs { 75 partitions { 75 partitions { 76 compatible = "fixed-partitions 76 compatible = "fixed-partitions"; 77 #address-cells = <0x1>; 77 #address-cells = <0x1>; 78 #size-cells = <0x1>; 78 #size-cells = <0x1>; 79 79 80 partition@0 { 80 partition@0 { 81 label = "u-boot"; 81 label = "u-boot"; 82 reg = <0x0 0x200000>; 82 reg = <0x0 0x200000>; 83 read-only; 83 read-only; 84 }; 84 }; 85 85 86 partition@200000 { 86 partition@200000 { 87 label = "u-boot-env"; 87 label = "u-boot-env"; 88 reg = <0x200000 0x2000 88 reg = <0x200000 0x200000>; 89 /* empty */ 89 /* empty */ 90 }; 90 }; 91 91 92 partition@400000 { 92 partition@400000 { 93 label = "u-boot-backup 93 label = "u-boot-backup"; 94 reg = <0x400000 0x2000 94 reg = <0x400000 0x200000>; 95 /* empty */ 95 /* empty */ 96 }; 96 }; 97 97 98 partition@600000 { 98 partition@600000 { 99 label = "u-boot-env-ba 99 label = "u-boot-env-backup"; 100 reg = <0x600000 0x2000 100 reg = <0x600000 0x200000>; 101 /* empty */ 101 /* empty */ 102 }; 102 }; 103 103 104 partition@800000 { 104 partition@800000 { 105 label = "ubi"; 105 label = "ubi"; 106 reg = <0x800000 0x7780 106 reg = <0x800000 0x7780000>; 107 }; 107 }; 108 }; 108 }; 109 }; 109 }; 110 110 111 &srab { 111 &srab { 112 status = "okay"; 112 status = "okay"; 113 113 114 ports { 114 ports { 115 port@0 { 115 port@0 { 116 label = "poe"; 116 label = "poe"; 117 }; 117 }; 118 118 119 port@5 { 119 port@5 { 120 label = "cpu"; 120 label = "cpu"; 121 121 122 fixed-link { 122 fixed-link { 123 speed = <1000> 123 speed = <1000>; 124 full-duplex; 124 full-duplex; 125 }; 125 }; 126 }; 126 }; 127 127 128 port@7 { 128 port@7 { 129 status = "disabled"; 129 status = "disabled"; 130 }; 130 }; 131 131 132 port@8 { 132 port@8 { 133 status = "disabled"; 133 status = "disabled"; 134 }; 134 }; 135 }; 135 }; 136 }; 136 }; 137 137 138 &i2c0 { 138 &i2c0 { 139 status = "okay"; 139 status = "okay"; 140 140 141 pinctrl-names = "default"; 141 pinctrl-names = "default"; 142 pinctrl-0 = <&pinmux_i2c>; 142 pinctrl-0 = <&pinmux_i2c>; 143 143 144 clock-frequency = <100000>; 144 clock-frequency = <100000>; 145 145 146 ina219@40 { 146 ina219@40 { 147 compatible = "ti,ina219"; /* P 147 compatible = "ti,ina219"; /* PoE power */ 148 reg = <0x40>; 148 reg = <0x40>; 149 shunt-resistor = <60000>; /* = 149 shunt-resistor = <60000>; /* = 60 mOhms */ 150 }; 150 }; 151 151 152 eeprom@56 { 152 eeprom@56 { 153 compatible = "atmel,24c64"; 153 compatible = "atmel,24c64"; 154 reg = <0x56>; 154 reg = <0x56>; 155 pagesize = <32>; 155 pagesize = <32>; 156 read-only; 156 read-only; 157 #address-cells = <1>; 157 #address-cells = <1>; 158 #size-cells = <1>; 158 #size-cells = <1>; 159 159 160 /* it's empty */ 160 /* it's empty */ 161 }; 161 }; 162 }; 162 }; 163 163 164 &thermal { 164 &thermal { 165 status = "disabled"; 165 status = "disabled"; 166 /* does not work, reads 418 degree Cel 166 /* does not work, reads 418 degree Celsius */ 167 }; 167 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.