This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: GPIO pinmux issue

Part Number: AM3358

Tool/software: Linux

Hi Forum,

I want to use the MMC0_SDWP (GPIO0_7) on the BeagleBoneGreen as GPIO Input with Pull-Up. So gpio-pin-mux reg  should be 0x37.  

# cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups


group: pinmux_mmc1_pins
pin 88 (44e10960.0)

group: pinmux_emmc_pins
pin 32 (44e10880.0)
pin 33 (44e10884.0)
pin 0 (44e10800.0)
pin 1 (44e10804.0)
pin 2 (44e10808.0)
pin 3 (44e1080c.0)
pin 4 (44e10810.0)
pin 5 (44e10814.0)
pin 6 (44e10818.0)
pin 7 (44e1081c.0)


The current pinmux config in the devicetree is:


pinmux_mmc1_pins {
          pinctrl-single,pins = <0x160 0x2f>;
          linux,phandle = <0x34>;
          phandle = <0x34>;
  };

  pinmux_emmc_pins {
          pinctrl-single,pins = <0x80 0x32 0x84 0x32 0x0 0x31 0x4 0x31 0x8 0x31 0xc 0x31 0x10 0x31 0x14 0x31 0x18 0x31 0x1c 0x31>;
          linux,phandle = <0x37>;
          phandle = <0x37>;
  };


I added the following pinmux after the emmc pinmux:


gpio_0_pins_default {
  pinctrl-single,pins = <0x164 0x37>;/* (C18) eCAP0_in_PWM0_out.gpio0[7] */
};


but the state didn't Change to 0x37

cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pins



pin 5 (44e10814.0) 00000031 pinctrl-single
pin 6 (44e10818.0) 00000031 pinctrl-single
pin 7 (44e1081c.0) 00000031 pinctrl-single
pin 8 (44e10820.0) 00000027 pinctrl-single


I thought that the last pinmux change all the Settings which are made before. I don’t want to use a device tree overlay, I only want to use on device tree file.

 

Thanks

Stefan