Commit 503d4588 authored by Gerson Fernando Budke's avatar Gerson Fernando Budke Committed by Dan Kalowsky
Browse files

dts: atmel: sam0: Explicity disable nodes

When running tests on sam0 platform was detected that pinctrl for ADC
were not defined for some boards. To force an error at build time
nodes should be explicity disabled. This explicity disable nodes on
devicetree that require some user configuration.

In addition, the adc feature were excluded in some boards and
samr21-xpro was correct updated.

Signed-off-by: default avatarGerson Fernando Budke <nandojve@gmail.com>
(cherry picked from commit 162f7287)
parent 8e2f36cf
Loading
Loading
Loading
Loading
+3 −1
Changes for boards/atmel/sam0/samd20_xpro/samd20_xpro.yaml: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

identifier: samd20_xpro
name: SAM D20 Xplained Pro
type: mcu
@@ -9,7 +12,6 @@ toolchain:
flash: 256
ram: 32
supported:
  - adc
  - flash
  - gpio
  - i2c
+1 −1
Changes for boards/atmel/sam0/samd21_xpro/samd21_xpro.yaml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
# Copyright (c) 2018 Bryan O'Donoghue
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

identifier: samd21_xpro
name: SAM D21 Xplained Pro
type: mcu
@@ -12,7 +13,6 @@ toolchain:
flash: 256
ram: 32
supported:
  - adc
  - counter
  - dma
  - gpio
+7 −1
Changes for boards/atmel/sam0/samr21_xpro/samr21_xpro-pinctrl.dtsi: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
/*
 * Copyright (c) 2022, Gerson Fernando Budke <nandojve@gmail.com>
 * Copyright (c) 2022-2024, Gerson Fernando Budke <nandojve@gmail.com>
 * SPDX-License-Identifier: Apache-2.0
 */

#include <dt-bindings/pinctrl/samr21g-pinctrl.h>

&pinctrl {
	adc_default: adc_default {
		group1 {
			pinmux = <PA6B_ADC_AIN6>;
		};
	};

	pwm_default: pwm_default {
		group1 {
			pinmux = <PA19F_TCC0_WO3>;
+6 −0
Changes for boards/atmel/sam0/samr21_xpro/samr21_xpro.dts: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -106,6 +106,12 @@
	clock-frequency = <48000000>;
};

&adc {
	status = "okay";
	pinctrl-0 = <&adc_default>;
	pinctrl-names = "default";
};

&tcc0 {
	status = "okay";
	compatible = "atmel,sam0-tcc-pwm";
+2 −1
Changes for boards/atmel/sam0/samr21_xpro/samr21_xpro.yaml: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
# Copyright (c) 2019 Benjamin Valentin
# Copyright (c) 2019-2024 Gerson Fernando Budke
# Copyright (c) 2019-2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

identifier: samr21_xpro
name: SAM R21 Xplained Pro
type: mcu
Loading