Commit b116bc7d authored by Arunmani Alagarsamy's avatar Arunmani Alagarsamy Committed by Alberto Escolar
Browse files

boards: silabs: efr32_radio: Remove duplicate usart0 definition



In the <board>.dts file, the definition for usart0 was found to be
redundant as the same information is already provided in the included
.dtsi file. this commit removes the duplicate definition of usart0,
resulting in a cleaner and more maintainable device tree configuration.

Signed-off-by: default avatarArunmani Alagarsamy <arunmani.a@capgemini.com>
parent b2e235d5
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@

/dts-v1/;
#include <silabs/efr32mg12p432f1024gl125.dtsi>
#include <silabs/efr32xg12p-pinctrl.dtsi>
#include "efr32_radio.dtsi"

/ {
@@ -73,13 +72,6 @@
	};
};

&usart0 {
	current-speed = <115200>;
	pinctrl-0 = <&usart0_default>;
	pinctrl-names = "default";
	status = "okay";
};

&i2c0 {
	pinctrl-0 = <&i2c0_default>;
	pinctrl-names = "default";
+0 −8
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@

/dts-v1/;
#include <silabs/efr32mg12p433f1024gm68.dtsi>
#include <silabs/efr32xg12p-pinctrl.dtsi>
#include "efr32_radio.dtsi"

/ {
@@ -61,10 +60,3 @@

	};
};

&usart0 {
	current-speed = <115200>;
	pinctrl-0 = <&usart0_default>;
	pinctrl-names = "default";
	status = "okay";
};
+0 −23
Original line number Diff line number Diff line
/*
 * Copyright (c) 2022 Silicon Labs
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <dt-bindings/pinctrl/gecko-pinctrl-s1.h>

&pinctrl {
	/* configuration for uart0 device, default state */
	usart0_default: usart0_default {
		group1 {
			/* configure PA.1 as UART_RX */
			psels = <GECKO_PSEL(UART_RX, A, 1)>,
				<GECKO_LOC(UART_RX, 0)>;
		};
		group2 {
			/* configure PA.0 as UART_TX */
			psels = <GECKO_PSEL(UART_TX, A, 0)>,
				<GECKO_LOC(UART_TX, 0)>;
		};
	};
};