1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Common Bindings for Cisco Meraki MX64 (Kingpin) and MX65 (Alamo) devices. 4f126890aSEmmanuel Vadot * 5f126890aSEmmanuel Vadot * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com> 6f126890aSEmmanuel Vadot */ 7f126890aSEmmanuel Vadot 8f126890aSEmmanuel Vadot#include "bcm-nsp.dtsi" 9f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 10f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 11f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h> 12f126890aSEmmanuel Vadot 13f126890aSEmmanuel Vadot/ { 14f126890aSEmmanuel Vadot pwm-leds { 15f126890aSEmmanuel Vadot compatible = "pwm-leds"; 16f126890aSEmmanuel Vadot 17f126890aSEmmanuel Vadot led-1 { 18f126890aSEmmanuel Vadot function = LED_FUNCTION_INDICATOR; 19f126890aSEmmanuel Vadot color = <LED_COLOR_ID_RED>; 20f126890aSEmmanuel Vadot pwms = <&pwm 1 50000>; 21f126890aSEmmanuel Vadot max-brightness = <255>; 22f126890aSEmmanuel Vadot }; 23f126890aSEmmanuel Vadot 24f126890aSEmmanuel Vadot led-2 { 25f126890aSEmmanuel Vadot function = LED_FUNCTION_POWER; 26f126890aSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 27f126890aSEmmanuel Vadot pwms = <&pwm 2 50000>; 28f126890aSEmmanuel Vadot max-brightness = <255>; 29f126890aSEmmanuel Vadot }; 30f126890aSEmmanuel Vadot 31f126890aSEmmanuel Vadot led-3 { 32f126890aSEmmanuel Vadot function = LED_FUNCTION_INDICATOR; 33f126890aSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 34f126890aSEmmanuel Vadot pwms = <&pwm 3 50000>; 35f126890aSEmmanuel Vadot max-brightness = <255>; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot }; 38f126890aSEmmanuel Vadot}; 39f126890aSEmmanuel Vadot 40f126890aSEmmanuel Vadot&amac2 { 41f126890aSEmmanuel Vadot status = "okay"; 42f126890aSEmmanuel Vadot nvmem-cells = <&mac_address>; 43f126890aSEmmanuel Vadot nvmem-cell-names = "mac-address"; 44f126890aSEmmanuel Vadot}; 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot&ehci0 { 47f126890aSEmmanuel Vadot status = "okay"; 48f126890aSEmmanuel Vadot}; 49f126890aSEmmanuel Vadot 50f126890aSEmmanuel Vadot&i2c0 { 51f126890aSEmmanuel Vadot status = "okay"; 52f126890aSEmmanuel Vadot 53f126890aSEmmanuel Vadot eeprom@50 { 54f126890aSEmmanuel Vadot compatible = "atmel,24c64"; 55f126890aSEmmanuel Vadot reg = <0x50>; 56f126890aSEmmanuel Vadot pagesize = <32>; 57f126890aSEmmanuel Vadot read-only; 58*b2d2a78aSEmmanuel Vadot 59*b2d2a78aSEmmanuel Vadot nvmem-layout { 60*b2d2a78aSEmmanuel Vadot compatible = "fixed-layout"; 61f126890aSEmmanuel Vadot #address-cells = <1>; 62f126890aSEmmanuel Vadot #size-cells = <1>; 63f126890aSEmmanuel Vadot 64f126890aSEmmanuel Vadot mac_address: mac-address@66 { 65f126890aSEmmanuel Vadot reg = <0x66 0x6>; 66f126890aSEmmanuel Vadot }; 67f126890aSEmmanuel Vadot }; 68f126890aSEmmanuel Vadot }; 69*b2d2a78aSEmmanuel Vadot}; 70f126890aSEmmanuel Vadot 71f126890aSEmmanuel Vadot&nand_controller { 72f126890aSEmmanuel Vadot nand@0 { 73f126890aSEmmanuel Vadot compatible = "brcm,nandcs"; 74f126890aSEmmanuel Vadot reg = <0>; 75f126890aSEmmanuel Vadot nand-on-flash-bbt; 76f126890aSEmmanuel Vadot 77f126890aSEmmanuel Vadot #address-cells = <1>; 78f126890aSEmmanuel Vadot #size-cells = <1>; 79f126890aSEmmanuel Vadot 80f126890aSEmmanuel Vadot nand-ecc-strength = <24>; 81f126890aSEmmanuel Vadot nand-ecc-step-size = <1024>; 82f126890aSEmmanuel Vadot 83f126890aSEmmanuel Vadot brcm,nand-oob-sector-size = <27>; 84f126890aSEmmanuel Vadot 85f126890aSEmmanuel Vadot partition@0 { 86f126890aSEmmanuel Vadot label = "u-boot"; 87f126890aSEmmanuel Vadot reg = <0x0 0x80000>; 88f126890aSEmmanuel Vadot read-only; 89f126890aSEmmanuel Vadot }; 90f126890aSEmmanuel Vadot 91f126890aSEmmanuel Vadot partition@80000 { 92f126890aSEmmanuel Vadot label = "shmoo"; 93f126890aSEmmanuel Vadot reg = <0x80000 0x80000>; 94f126890aSEmmanuel Vadot read-only; 95f126890aSEmmanuel Vadot }; 96f126890aSEmmanuel Vadot 97f126890aSEmmanuel Vadot partition@100000 { 98f126890aSEmmanuel Vadot label = "bootkernel1"; 99f126890aSEmmanuel Vadot reg = <0x100000 0x300000>; 100f126890aSEmmanuel Vadot }; 101f126890aSEmmanuel Vadot 102f126890aSEmmanuel Vadot partition@400000 { 103f126890aSEmmanuel Vadot label = "nvram"; 104f126890aSEmmanuel Vadot reg = <0x400000 0x100000>; 105f126890aSEmmanuel Vadot }; 106f126890aSEmmanuel Vadot 107f126890aSEmmanuel Vadot partition@500000 { 108f126890aSEmmanuel Vadot label = "bootkernel2"; 109f126890aSEmmanuel Vadot reg = <0x500000 0x300000>; 110f126890aSEmmanuel Vadot }; 111f126890aSEmmanuel Vadot 112f126890aSEmmanuel Vadot partition@800000 { 113f126890aSEmmanuel Vadot label = "ubi"; 114f126890aSEmmanuel Vadot reg = <0x800000 0x3f700000>; 115f126890aSEmmanuel Vadot }; 116f126890aSEmmanuel Vadot }; 117f126890aSEmmanuel Vadot}; 118f126890aSEmmanuel Vadot 119f126890aSEmmanuel Vadot&ohci0 { 120f126890aSEmmanuel Vadot status = "okay"; 121f126890aSEmmanuel Vadot}; 122f126890aSEmmanuel Vadot 123f126890aSEmmanuel Vadot&pinctrl { 124f126890aSEmmanuel Vadot pinctrl-names = "default"; 125f126890aSEmmanuel Vadot pinctrl-0 = <&pwm_leds>; 126f126890aSEmmanuel Vadot 127f126890aSEmmanuel Vadot pwm_leds: pwm_leds { 128f126890aSEmmanuel Vadot function = "pwm"; 129f126890aSEmmanuel Vadot groups = "pwm1_grp", "pwm2_grp", "pwm3_grp"; 130f126890aSEmmanuel Vadot }; 131f126890aSEmmanuel Vadot}; 132f126890aSEmmanuel Vadot 133f126890aSEmmanuel Vadot&pwm { 134f126890aSEmmanuel Vadot status = "okay"; 135f126890aSEmmanuel Vadot #pwm-cells = <2>; 136f126890aSEmmanuel Vadot}; 137f126890aSEmmanuel Vadot 138f126890aSEmmanuel Vadot&uart0 { 139f126890aSEmmanuel Vadot clock-frequency = <62500000>; 140f126890aSEmmanuel Vadot status = "okay"; 141f126890aSEmmanuel Vadot}; 142