0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Common Bindings for Cisco Meraki MX64 (Kingpin) and MX65 (Alamo) devices.
0004 *
0005 * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
0006 */
0007
0008 #include "bcm-nsp.dtsi"
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/leds/common.h>
0012
0013 / {
0014 pwm-leds {
0015 compatible = "pwm-leds";
0016
0017 led-1 {
0018 function = LED_FUNCTION_INDICATOR;
0019 color = <LED_COLOR_ID_RED>;
0020 pwms = <&pwm 1 50000>;
0021 max-brightness = <255>;
0022 };
0023
0024 led-2 {
0025 function = LED_FUNCTION_POWER;
0026 color = <LED_COLOR_ID_GREEN>;
0027 pwms = <&pwm 2 50000>;
0028 max-brightness = <255>;
0029 };
0030
0031 led-3 {
0032 function = LED_FUNCTION_INDICATOR;
0033 color = <LED_COLOR_ID_BLUE>;
0034 pwms = <&pwm 3 50000>;
0035 max-brightness = <255>;
0036 };
0037 };
0038 };
0039
0040 &amac2 {
0041 status = "okay";
0042 nvmem-cells = <&mac_address>;
0043 nvmem-cell-names = "mac-address";
0044 };
0045
0046 &ehci0 {
0047 status = "okay";
0048 };
0049
0050 &i2c0 {
0051 status = "okay";
0052
0053 eeprom@50 {
0054 compatible = "atmel,24c64";
0055 reg = <0x50>;
0056 pagesize = <32>;
0057 read-only;
0058 #address-cells = <1>;
0059 #size-cells = <1>;
0060
0061 mac_address: mac-address@66 {
0062 reg = <0x66 0x6>;
0063 };
0064 };
0065 };
0066
0067 &nand_controller {
0068 nand@0 {
0069 compatible = "brcm,nandcs";
0070 reg = <0>;
0071 nand-on-flash-bbt;
0072
0073 #address-cells = <1>;
0074 #size-cells = <1>;
0075
0076 nand-ecc-strength = <24>;
0077 nand-ecc-step-size = <1024>;
0078
0079 brcm,nand-oob-sector-size = <27>;
0080
0081 partition@0 {
0082 label = "u-boot";
0083 reg = <0x0 0x80000>;
0084 read-only;
0085 };
0086
0087 partition@80000 {
0088 label = "shmoo";
0089 reg = <0x80000 0x80000>;
0090 read-only;
0091 };
0092
0093 partition@100000 {
0094 label = "bootkernel1";
0095 reg = <0x100000 0x300000>;
0096 };
0097
0098 partition@400000 {
0099 label = "nvram";
0100 reg = <0x400000 0x100000>;
0101 };
0102
0103 partition@500000 {
0104 label = "bootkernel2";
0105 reg = <0x500000 0x300000>;
0106 };
0107
0108 partition@800000 {
0109 label = "ubi";
0110 reg = <0x800000 0x3f700000>;
0111 };
0112 };
0113 };
0114
0115 &ohci0 {
0116 status = "okay";
0117 };
0118
0119 &pinctrl {
0120 pinctrl-names = "default";
0121 pinctrl-0 = <&pwm_leds>;
0122
0123 pwm_leds: pwm_leds {
0124 function = "pwm";
0125 groups = "pwm1_grp", "pwm2_grp", "pwm3_grp";
0126 };
0127 };
0128
0129 &pwm {
0130 status = "okay";
0131 #pwm-cells = <2>;
0132 };
0133
0134 &uart0 {
0135 clock-frequency = <62500000>;
0136 status = "okay";
0137 };