sensry,sy1xx-pinctrl
Vendor: sensry.io
Note
An implementation of a driver matching this compatible is available in drivers/pinctrl/pinctrl_sy1xx.c.
Description
The sensry SY1xx pin controller is a single node responsible for controlling
pin configuration, such as pull-up, pull-down, tri-state, ...
The node has the 'pinctrl0' node label set in your SoC's devicetree,
so you can modify it like this:
&pinctrl0 {
/* your modifications go here */
};
For example:
&pinctrl0 {
/* UART0 */
uart0_tx: uart0_tx {
pinmux = <SY1XX_UART0_PAD_CFG0 SY1XX_PAD(0)>;
};
uart0_rx: uart0_rx {
pinmux = <SY1XX_UART0_PAD_CFG0 SY1XX_PAD(1)>;
input-enable;
};
}
Then define the uart:
&uart0 {
pinctrl-0 = <&uart0_tx &uart0_rx>;
pinctrl-names = "default";
};
Every pin configuration will be configured in a 32bit register. The configuration
itself is 8bit wide. So we have a number of 4 pin configurations per 32bit register.
The pinmux describes the registers address and the offset [0, 8, 16, 24] for
the individual configuration.
Allowed modifiers for each pin are:
- bias-high-impedance
- bias-pull-down
- bias-pull-up
- input-enable
- input-schmitt-enable
Properties
Top level properties
These property descriptions apply to “sensry,sy1xx-pinctrl” nodes themselves. This page also describes child node properties in the following sections.
Properties not inherited from the base binding file.
(None)
Deprecated properties not inherited from the base binding file.
(None)
Properties inherited from the base binding file, which defines common properties that may be set on many nodes. Not all of these may apply to the “sensry,sy1xx-pinctrl” compatible.
Name |
Type |
Details |
---|---|---|
|
|
register space
This property is required. See Important properties for more information. |
|
|
indicates the operational status of a device
Legal values: See Important properties for more information. |
|
|
compatible strings
This property is required. See Important properties for more information. |
|
|
name of each register space
|
|
|
interrupts for device
See Important properties for more information. |
|
|
extended interrupt specifier for device
|
|
|
name of each interrupt
|
|
|
phandle to interrupt controller node
|
|
|
No description provided for this label
See Important properties for more information. |
|
|
Clock gate information
|
|
|
name of each clock
|
|
|
number of address cells in reg property
|
|
|
number of size cells in reg property
|
|
|
DMA channels specifiers
|
|
|
Provided names of DMA channel specifiers
|
|
|
IO channels specifiers
|
|
|
Provided names of IO channel specifiers
|
|
|
mailbox / IPM channels specifiers
|
|
|
Provided names of mailbox / IPM channel specifiers
|
|
|
Power domain specifiers
|
|
|
Provided names of power domain specifiers
|
|
|
Number of cells in power-domains property
|
|
|
Do not initialize device automatically on boot. Device should be manually
initialized using device_init().
|
|
|
Property to identify that a device can be used as wake up source.
When this property is provided a specific flag is set into the
device that tells the system that the device is capable of
wake up the system.
Wake up capable devices are disabled (interruptions will not wake up
the system) by default but they can be enabled at runtime if necessary.
|
|
|
Automatically configure the device for runtime power management after the
init function runs.
|
|
|
List of power states that will disable this device power.
|
Child node properties
Name |
Type |
Details |
---|---|---|
|
|
Pin mux selection. See the SOC level pinctrl header
for a defined list of these options.
This property is required. |
|
|
high impedance mode ("third-state", "floating")
|
|
|
enable pull-up resistor
|
|
|
enable pull-down resistor
|
|
|
enable input on pin (e.g. enable an input buffer, no effect on output)
|
|
|
enable schmitt-trigger mode
|