Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4a868126 authored by Robert Nelson's avatar Robert Nelson
Browse files

k3-am67a-beagley-ai-pwm: add pwm1 pair gpio6-gpio13/gpio6-gpio20


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 6020d8fc
Branches
No related merge requests found
Pipeline #16736 passed with stage
in 11 seconds
// SPDX-License-Identifier: GPL-2.0-only OR MIT
/*
* DT Overlay for GPIO6 and GPIO13 epwm1 connections within the expansion header.
*
* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
*
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include "ti/k3-pinctrl.h"
/*
* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
*/
&{/chosen} {
overlays {
k3-am67a-beagley-ai-pwm-epwm1-gpio6.kernel = __TIMESTAMP__;
hat-31.23010000.pwm = "k3-am67a-beagley-ai-pwm-epwm1-gpio6.23010000.0.GPIO6";
gpio6.23010000.pwm = "k3-am67a-beagley-ai-pwm-epwm1-gpio6.23010000.0.GPIO6";
hat-33.23010000.pwm = "k3-am67a-beagley-ai-pwm-epwm1-gpio13.23010000.1.GPIO13";
gpio13.23010000.pwm = "k3-am67a-beagley-ai-pwm-epwm1-gpio13.23010000.1.GPIO13";
};
};
&main_pmx0 {
gpio6_gpio13_pwm: gpio6-gpio13-pwm-pins {
pinctrl-single,pins = <
J722S_IOPAD(0x1BC, PIN_OUTPUT, 2) /* (D20) SPI0_CLK.EHRPWM1_A */
J722S_IOPAD(0x1C0, PIN_OUTPUT, 2) /* (E19) SPI0_D0.EHRPWM1_B */
>;
};
};
&epwm1 {
pinctrl-names = "default";
pinctrl-0 = <&gpio6_gpio13_pwm>;
status = "okay";
};
// SPDX-License-Identifier: GPL-2.0-only OR MIT
/*
* DT Overlay for GPIO6 and GPIO20 epwm1 connections within the expansion header.
*
* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
*
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include "ti/k3-pinctrl.h"
/*
* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
*/
&{/chosen} {
overlays {
k3-am67a-beagley-ai-pwm-epwm1-gpio6-gpio20.kernel = __TIMESTAMP__;
hat-31.23010000.pwm = "k3-am67a-beagley-ai-pwm-epwm1-gpio6.23010000.0.GPIO6";
gpio6.23010000.pwm = "k3-am67a-beagley-ai-pwm-epwm1-gpio6.23010000.0.GPIO6";
hat-38.23010000.pwm = "k3-am67a-beagley-ai-pwm-epwm1-gpio20.23010000.1.GPIO20";
gpio20.23010000.pwm = "k3-am67a-beagley-ai-pwm-epwm1-gpio20.23010000.1.GPIO20";
};
};
&main_pmx0 {
gpio6_gpio20_pwm: gpio6-gpio20-pwm-pins {
pinctrl-single,pins = <
J722S_IOPAD(0x1BC, PIN_OUTPUT, 2) /* (D20) SPI0_CLK.EHRPWM1_A */
J722S_IOPAD(0x1A0, PIN_OUTPUT, 6) /* (F23) MCASP0_AXR0.EHRPWM1_B */
>;
};
};
&epwm1 {
pinctrl-names = "default";
pinctrl-0 = <&gpio6_gpio20_pwm>;
status = "okay";
};
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment