// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;

#include "FRITZ736X.dtsi"

#include <dt-bindings/input/input.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>

/ {
	compatible = "avm,fritz7360sl", "avm,fritz736x", "lantiq,xway", "lantiq,vr9";
	model = "AVM FRITZ!Box 7360 SL";
};

&power_green {
	label = "fritz7360sl:green:power";
};

&power_red {
	label = "fritz7360sl:red:power";
};

&info_green {
	label = "fritz7360sl:green:info";
};

&wifi {
	label = "fritz7360sl:green:wlan";
};

&info_red {
	label = "fritz7360sl:red:info";
};

&dect {
	label = "fritz7360sl:green:dect";
};

&state_default {
	pcie-rst {
		lantiq,pins = "io38";
		lantiq,pull = <0>;
		lantiq,output = <1>;
	};
};

&localbus {
	nor@0 {
		compatible = "lantiq,nor";
		bank-width = <2>;
		reg = <0 0x0 0x1000000>;
		#address-cells = <1>;
		#size-cells = <1>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;
			urlader: partition@0 {
				label = "urlader";
				reg = <0x00000 0x20000>;
				read-only;
			};

			partition@20000 {
				label = "firmware";
				reg = <0x20000 0xf60000>;
			};

			partition@f80000 {
				label = "tffs (1)";
				reg = <0xf80000 0x40000>;
				read-only;
			};

			partition@fc0000 {
				label = "tffs (2)";
				reg = <0xfc0000 0x40000>;
				read-only;
			};
		};
	};
};
