Hello,
I am trying to reassign a PIN from PWM to GPIO.
I use an Aster evaluation board.
I have changed the device tree from file imx6ull-colibri-wifi-aster.dts
by adding these lines at end of the file:
&iomuxc {
pinctrl-names = "default";
imx6ull-colibri{
pinctrl_hog_1: hoggrp-1 {
fsl,pins = <
MX6UL_PAD_ENET1_TX_CLK__GPIO2_IO06 0x1b0b0
MX6UL_PAD_LCD_DATA07__GPIO3_IO12 0x1b0b0
MX6UL_PAD_NAND_CE1_B__GPIO4_IO14 0x1b0b0
MX6UL_PAD_NAND_DQS__GPIO4_IO16 0x1b0b0
MX6UL_PAD_ENET1_TX_EN__GPIO2_IO05 0x1b0b0
MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00 0x1b0b0
>;
};
};
};
Above it I have disabled the old PIN fuctionality with this code:
/* PWM <A> */
&pwm4 {
status = "disabled";
};
/* PWM <B> */
&pwm5 {
status = "disabled";
};
/* PWM <C> */
&pwm6 {
status = "disabled";
};
/* PWM <D> */
&pwm7 {
status = "disabled";
};
I have tried to use and export the PIN SODIMM 67 (GPIO2[6]) but in does not commute as output?
Have I need to changed something else?
FULL FILE:
/*
* Copyright 2017 Toradex AG
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
/dts-v1/;
#include "imx6ull-colibri-wifi.dtsi"
#include "imx6ull-colibri-aster.dtsi"
/ {
model = "Toradex Colibri iMX6ULL 512MB on Colibri Aster";
compatible = "toradex,colibri_imx6ull-wifi-aster", "fsl,imx6ull";
};
/* PWM <A> */
&pwm4 {
status = "disabled";
};
/* PWM <B> */
&pwm5 {
status = "disabled";
};
/* PWM <C> */
&pwm6 {
status = "disabled";
};
/* PWM <D> */
&pwm7 {
status = "disabled";
};
&ecspi1 {
status = "okay";
mcp258x0: mcp258x@0 {
compatible = "microchip,mcp2515";
/*pinctrl-names = "default";
pinctrl-0 = <&pinctrl_can_int>;
reg = <0>;
clocks = <&clk16m>;
interrupt-parent = <&gpio2>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
spi-max-frequency = <10000000>;*/
status = "disabled";
};
spidev0: spidev@0 {
compatible = "toradex,evalspi";
reg = <0>;
spi-max-frequency = <10000000>;
status = "okay";
};
};
&iomuxc {
pinctrl-names = "default";
imx6ull-colibri{
pinctrl_hog_1: hoggrp-1 {
fsl,pins = <
MX6UL_PAD_ENET1_TX_CLK__GPIO2_IO06 0x1b0b0
MX6UL_PAD_LCD_DATA07__GPIO3_IO12 0x1b0b0
MX6UL_PAD_NAND_CE1_B__GPIO4_IO14 0x1b0b0
MX6UL_PAD_NAND_DQS__GPIO4_IO16 0x1b0b0
MX6UL_PAD_ENET1_TX_EN__GPIO2_IO05 0x1b0b0
MX6UL_PAD_ENET1_RX_DATA0__GPIO2_IO00 0x1b0b0
>;
};
};
};