1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2724ba675SRob Herring/* 3724ba675SRob Herring * Common Bindings for Cisco Meraki MX64 (Kingpin) and MX65 (Alamo) devices. 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com> 6724ba675SRob Herring */ 7724ba675SRob Herring 8724ba675SRob Herring#include "bcm-nsp.dtsi" 9724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 10724ba675SRob Herring#include <dt-bindings/input/input.h> 11724ba675SRob Herring#include <dt-bindings/leds/common.h> 12724ba675SRob Herring 13724ba675SRob Herring/ { 14724ba675SRob Herring pwm-leds { 15724ba675SRob Herring compatible = "pwm-leds"; 16724ba675SRob Herring 17724ba675SRob Herring led-1 { 18724ba675SRob Herring function = LED_FUNCTION_INDICATOR; 19724ba675SRob Herring color = <LED_COLOR_ID_RED>; 20724ba675SRob Herring pwms = <&pwm 1 50000>; 21724ba675SRob Herring max-brightness = <255>; 22724ba675SRob Herring }; 23724ba675SRob Herring 24724ba675SRob Herring led-2 { 25724ba675SRob Herring function = LED_FUNCTION_POWER; 26724ba675SRob Herring color = <LED_COLOR_ID_GREEN>; 27724ba675SRob Herring pwms = <&pwm 2 50000>; 28724ba675SRob Herring max-brightness = <255>; 29724ba675SRob Herring }; 30724ba675SRob Herring 31724ba675SRob Herring led-3 { 32724ba675SRob Herring function = LED_FUNCTION_INDICATOR; 33724ba675SRob Herring color = <LED_COLOR_ID_BLUE>; 34724ba675SRob Herring pwms = <&pwm 3 50000>; 35724ba675SRob Herring max-brightness = <255>; 36724ba675SRob Herring }; 37724ba675SRob Herring }; 38724ba675SRob Herring}; 39724ba675SRob Herring 40724ba675SRob Herring&amac2 { 41724ba675SRob Herring status = "okay"; 42724ba675SRob Herring nvmem-cells = <&mac_address>; 43724ba675SRob Herring nvmem-cell-names = "mac-address"; 44724ba675SRob Herring}; 45724ba675SRob Herring 46724ba675SRob Herring&ehci0 { 47724ba675SRob Herring status = "okay"; 48724ba675SRob Herring}; 49724ba675SRob Herring 50724ba675SRob Herring&i2c0 { 51724ba675SRob Herring status = "okay"; 52724ba675SRob Herring 53724ba675SRob Herring eeprom@50 { 54724ba675SRob Herring compatible = "atmel,24c64"; 55724ba675SRob Herring reg = <0x50>; 56724ba675SRob Herring pagesize = <32>; 57724ba675SRob Herring read-only; 58*ed0d78c7SRafał Miłecki 59*ed0d78c7SRafał Miłecki nvmem-layout { 60*ed0d78c7SRafał Miłecki compatible = "fixed-layout"; 61724ba675SRob Herring #address-cells = <1>; 62724ba675SRob Herring #size-cells = <1>; 63724ba675SRob Herring 64724ba675SRob Herring mac_address: mac-address@66 { 65724ba675SRob Herring reg = <0x66 0x6>; 66724ba675SRob Herring }; 67724ba675SRob Herring }; 68724ba675SRob Herring }; 69*ed0d78c7SRafał Miłecki}; 70724ba675SRob Herring 71724ba675SRob Herring&nand_controller { 72724ba675SRob Herring nand@0 { 73724ba675SRob Herring compatible = "brcm,nandcs"; 74724ba675SRob Herring reg = <0>; 75724ba675SRob Herring nand-on-flash-bbt; 76724ba675SRob Herring 77724ba675SRob Herring #address-cells = <1>; 78724ba675SRob Herring #size-cells = <1>; 79724ba675SRob Herring 80724ba675SRob Herring nand-ecc-strength = <24>; 81724ba675SRob Herring nand-ecc-step-size = <1024>; 82724ba675SRob Herring 83724ba675SRob Herring brcm,nand-oob-sector-size = <27>; 84724ba675SRob Herring 85724ba675SRob Herring partition@0 { 86724ba675SRob Herring label = "u-boot"; 87724ba675SRob Herring reg = <0x0 0x80000>; 88724ba675SRob Herring read-only; 89724ba675SRob Herring }; 90724ba675SRob Herring 91724ba675SRob Herring partition@80000 { 92724ba675SRob Herring label = "shmoo"; 93724ba675SRob Herring reg = <0x80000 0x80000>; 94724ba675SRob Herring read-only; 95724ba675SRob Herring }; 96724ba675SRob Herring 97724ba675SRob Herring partition@100000 { 98724ba675SRob Herring label = "bootkernel1"; 99724ba675SRob Herring reg = <0x100000 0x300000>; 100724ba675SRob Herring }; 101724ba675SRob Herring 102724ba675SRob Herring partition@400000 { 103724ba675SRob Herring label = "nvram"; 104724ba675SRob Herring reg = <0x400000 0x100000>; 105724ba675SRob Herring }; 106724ba675SRob Herring 107724ba675SRob Herring partition@500000 { 108724ba675SRob Herring label = "bootkernel2"; 109724ba675SRob Herring reg = <0x500000 0x300000>; 110724ba675SRob Herring }; 111724ba675SRob Herring 112724ba675SRob Herring partition@800000 { 113724ba675SRob Herring label = "ubi"; 114724ba675SRob Herring reg = <0x800000 0x3f700000>; 115724ba675SRob Herring }; 116724ba675SRob Herring }; 117724ba675SRob Herring}; 118724ba675SRob Herring 119724ba675SRob Herring&ohci0 { 120724ba675SRob Herring status = "okay"; 121724ba675SRob Herring}; 122724ba675SRob Herring 123724ba675SRob Herring&pinctrl { 124724ba675SRob Herring pinctrl-names = "default"; 125724ba675SRob Herring pinctrl-0 = <&pwm_leds>; 126724ba675SRob Herring 127724ba675SRob Herring pwm_leds: pwm_leds { 128724ba675SRob Herring function = "pwm"; 129724ba675SRob Herring groups = "pwm1_grp", "pwm2_grp", "pwm3_grp"; 130724ba675SRob Herring }; 131724ba675SRob Herring}; 132724ba675SRob Herring 133724ba675SRob Herring&pwm { 134724ba675SRob Herring status = "okay"; 135724ba675SRob Herring #pwm-cells = <2>; 136724ba675SRob Herring}; 137724ba675SRob Herring 138724ba675SRob Herring&uart0 { 139724ba675SRob Herring clock-frequency = <62500000>; 140724ba675SRob Herring status = "okay"; 141724ba675SRob Herring}; 142