Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

RZ/G2L SMARC and GPT (PWM)

$
0
0

Hello

I want to create a custom board with the G2L, and now I play around with PWM and GPT (using the EVK smarc G2L).  I saw that GPT channel 4 was already used in the rz-smarc-common.dtsi, so I just expanded it a little bit like this:

&gpt1 {
    pinctrl-0 = <&gpt1_pins>;
    pinctrl-names = "default";
    channel = "both_AB";
    status = "okay";
};

&gpt3 {
    pinctrl-0 = <&gpt3_pins>;
    pinctrl-names = "default";
    channel = "both_AB";
    status = "okay";
};

And I defined my PIN functions like this:

    gpt1_pins: gpt1 {
        pinmux = <RZG2L_PORT_PINMUX(1, 0, 3)>, /* Channel A */
             <RZG2L_PORT_PINMUX(1, 1, 3)>; /* Channel B */
    };

    gpt3_pins: gpt3 {
        pinmux = <RZG2L_PORT_PINMUX(3, 0, 3)>, /* Channel A */
             <RZG2L_PORT_PINMUX(3, 1, 3)>; /* Channel B */
    };

I can see in the kernel LOG that there is something wrong:

Is there something in the device tree, that must be defined differently, and why can't ANY of the GPT / PWM be used under sysfs (/sys/class/pwm/pwmchip0/)?

Regards, from AHJ


Viewing all articles
Browse latest Browse all 1583

Trending Articles