<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From f111016a8293b968f05450fec83020c94d0f88c2 Mon Sep 17 00:00:00 2001
From: Matthew Hagan &lt;mnhagan88@gmail.com&gt;
Date: Fri, 6 Aug 2021 21:44:32 +0100
Subject: [PATCH] ARM: dts: NSP: Add common bindings for MX64/MX65

These bindings are required for all Meraki MX64/MX65 devices. These
common bindings include memory (2GB), PWM LEDs, AMAC, I2C (AT24), NAND
partitions, EHCI, OHCI and pinctrl.

Signed-off-by: Matthew Hagan &lt;mnhagan88@gmail.com&gt;
Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
---
 .../dts/bcm958625-meraki-mx6x-common.dtsi     | 129 ++++++++++++++++++
 1 file changed, 129 insertions(+)
 create mode 100644 arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi

--- /dev/null
+++ b/arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi
@@ -0,0 +1,129 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Common Bindings for Cisco Meraki MX64 (Kingpin) and MX65 (Alamo) devices.
+ *
+ * Copyright (C) 2020-2021 Matthew Hagan &lt;mnhagan88@gmail.com&gt;
+ */
+
+#include "bcm-nsp.dtsi"
+#include &lt;dt-bindings/gpio/gpio.h&gt;
+#include &lt;dt-bindings/input/input.h&gt;
+#include &lt;dt-bindings/leds/common.h&gt;
+
+/ {
+	pwm-leds {
+		compatible = "pwm-leds";
+
+		led-1 {
+			function = LED_FUNCTION_INDICATOR;
+			color = &lt;LED_COLOR_ID_RED&gt;;
+			pwms = &lt;&amp;pwm 1 50000&gt;;
+			max-brightness = &lt;255&gt;;
+		};
+
+		led-2 {
+			function = LED_FUNCTION_INDICATOR;
+			color = &lt;LED_COLOR_ID_GREEN&gt;;
+			pwms = &lt;&amp;pwm 2 50000&gt;;
+			max-brightness = &lt;255&gt;;
+		};
+
+		led-3 {
+			function = LED_FUNCTION_INDICATOR;
+			color = &lt;LED_COLOR_ID_BLUE&gt;;
+			pwms = &lt;&amp;pwm 3 50000&gt;;
+			max-brightness = &lt;255&gt;;
+		};
+	};
+};
+
+&amp;amac2 {
+	status = "okay";
+};
+
+&amp;ehci0 {
+	status = "okay";
+};
+
+&amp;i2c0 {
+	status = "okay";
+
+	at24@50 {
+		compatible = "atmel,24c64";
+		reg = &lt;0x50&gt;;
+		pagesize = &lt;32&gt;;
+		read-only;
+	};
+};
+
+&amp;nand_controller {
+	nand@0 {
+		compatible = "brcm,nandcs";
+		reg = &lt;0&gt;;
+		nand-on-flash-bbt;
+
+		#address-cells = &lt;1&gt;;
+		#size-cells = &lt;1&gt;;
+
+		nand-ecc-strength = &lt;24&gt;;
+		nand-ecc-step-size = &lt;1024&gt;;
+
+		brcm,nand-oob-sector-size = &lt;27&gt;;
+
+		partition@0 {
+			label = "u-boot";
+			reg = &lt;0x0 0x80000&gt;;
+			read-only;
+		};
+
+		partition@80000 {
+			label = "shmoo";
+			reg = &lt;0x80000 0x80000&gt;;
+			read-only;
+		};
+
+		partition@100000 {
+			label = "bootkernel1";
+			reg = &lt;0x100000 0x300000&gt;;
+		};
+
+		partition@400000 {
+			label = "nvram";
+			reg = &lt;0x400000 0x100000&gt;;
+		};
+
+		partition@500000 {
+			label = "bootkernel2";
+			reg = &lt;0x500000 0x300000&gt;;
+		};
+
+		partition@800000 {
+			label = "ubi";
+			reg = &lt;0x800000 0x3f700000&gt;;
+		};
+	};
+};
+
+&amp;ohci0 {
+	status = "okay";
+};
+
+&amp;pinctrl {
+	pinctrl-names = "default";
+	pinctrl-0 = &lt;&amp;pwm_leds&gt;;
+
+	pwm_leds: pwm_leds {
+		function = "pwm";
+		groups = "pwm1_grp", "pwm2_grp", "pwm3_grp";
+	};
+};
+
+&amp;pwm {
+	status = "okay";
+	#pwm-cells = &lt;2&gt;;
+};
+
+&amp;uart0 {
+	clock-frequency = &lt;62500000&gt;;
+	status = "okay";
+};
</pre></body></html>