ambiq,apollo2-pinctrl

Vendor: Ambiq Micro, Inc.

Description

The Ambiq Apollo2 pin controller is responsible for controlling pin
function selection and pin properties such as routing UART0 TX to a
specific pin and enabling pull-ups.

This node uses the 'pinctrl' node label, so you can modify it like:

&pinctrl {
  /* modifications here */
};

Example usage in a board or overlay:

#include <dt-bindings/pinctrl/ambiq-apollo2-pinctrl.h>

&pinctrl {
  uart0_default: uart0_default {
    group1 {
      pinmux = <UART0TX_P15>;
    };
    group2 {
      pinmux = <UART0RX_P14>;
      input-enable;
    };
  };
};

Each pin group sets common configuration for pins in that group.

Properties

Top level properties

These property descriptions apply to “ambiq,apollo2-pinctrl” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

(None)

Grandchild node properties

Name

Type

Details

pinmux

array

An array of pins using the same group properties. Each element is
an encoded integer representing pin number and function.

This property is required.

drive-strength

int

Drive strength for the pin in mA.

Default value: 2

Legal values: 2, 4, 8, 12

ambiq,pull-up-ohms

int

Pull-up resistance value in ohms.

Default value: 1500

Legal values: 1500, 6000, 12000, 24000

bias-pull-up

boolean

enable pull-up resistor

drive-open-drain

boolean

drive with open drain (hardware AND)

input-enable

boolean

enable input on pin (e.g. enable an input buffer, no effect on output)