Linux Audio

Check our new training course

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