Commit f53fce30 authored by Gerson Fernando Budke's avatar Gerson Fernando Budke Committed by Christopher Friedt
Browse files

dts: usb: Add atmel USBC device ctrl



Add atmel USBC device controller dts entries.

Signed-off-by: default avatarGerson Fernando Budke <nandojve@gmail.com>
parent 334369ab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -112,6 +112,8 @@
			DT_ATMEL_GPIO(usart3, txd3, b, 10, a);
			DT_ATMEL_GPIO(usart3, txd3, c, 10, b);
			DT_ATMEL_GPIO(usart3, txd3, c, 29, a);
			DT_ATMEL_GPIO(usbc, dm, a, 25, a);
			DT_ATMEL_GPIO(usbc, dp, a, 26, a);
		};
	};
};
+15 −0
Original line number Diff line number Diff line
@@ -161,6 +161,21 @@
			label = "USART_3";
		};

		usbc: usbd@400a5000 {
			compatible = "atmel,sam-usbc";
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <0x400a5000 0x1000>;
			interrupts = <18 5>;
			interrupt-names = "usbc";
			maximum-speed = "full-speed";
			num-bidir-endpoints = <8>;
			peripheral-id = <101>;
			status = "disabled";
			label = "USBC";
			pinctrl-0 = <&pa25a_usbc_dm &pa26a_usbc_dp>;
		};

		pinctrl@400e1000 {
			compatible = "atmel,sam-pinctrl";
			#address-cells = <1>;
+34 −0
Original line number Diff line number Diff line
# Copyright (c) 2018 Aurelien Jarno
# Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

description: |
    Atmel SAM Family USB (USBC) in device mode

compatible: "atmel,sam-usbc"

include: usb-ep.yaml

properties:
    reg:
      required: true

    interrupts:
      required: true

    peripheral-id:
      type: int
      required: true
      description: peripheral ID

    pinctrl-0:
      type: phandles
      required: true
      description: |
        GPIO pin configuration for DM & DP signals. We expect that
        the phandles will reference pinctrl nodes. These nodes will
        have a nodelabel that matches the Atmel SoC HAL defines and
        be of the form p<port><pin><periph>_<inst>_<signal>.

        For example the USBC on SAM4L would be
          pinctrl-0 = <&pa25a_usbc_dm &pa26a_usbc_dp>;