Part 1
요약·해설
공식 원문 483줄과 property 35행을 전수 대조해 group/subgroup model·named groups and MIO pins·UART1 mux/conf/rx/tx split·SLCR syscon link·LVCMOS/HSTL and input-receiver controls 제약을 보존했습니다.
xlnx,pinctrl-zynq
Xilinx, Inc.
35 rows
Named Zynq groups/pins + function and electrical configuration
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
D8D82F4EF85FF2886ACB6A1AD5CC1131D1558689D505FC9FC5B28281C8D36AA4
:orphan:
.. raw:: html
<!--
FIXME: do not limit page width until content uses another representation
format other than tables
-->
<style>.wy-nav-content { max-width: none; !important }</style>
.. dtcompatible:: xlnx,pinctrl-zynq
.. _dtbinding_xlnx_pinctrl_zynq:
xlnx,pinctrl-zynq
#################
Vendor: :ref:`Xilinx <dt_vendor_xlnx>`
Description
***********
.. code-block:: none
Xilinx Zynq-7000 SoC series pinctrl node. This node will define pin multiplexing and
configurations in groups. Each group within the pinctrl node defines the pin multiplexing and
configuration for a peripheral, and each subgroup in the pin group defines all the pins for that
peripheral with the same configuration properties. Pins are selected either by named pin groups
(e.g. groups = "uart1_10_grp") or by named pins (e.g. pins = "MIO49") or a combination of
these. The remaining properties set configuration values for those pins.
Here is an example for UART1 pins:
#include <zephyr/dt-bindings/pinctrl/pinctrl-zynq.h>
&pinctrl0 {
pinctrl_uart1_default: uart1-default {
mux {
groups = "uart1_10_grp";
function = "uart1";
};
conf {
groups = "uart1_10_grp";
slew-rate = <IO_SPEED_SLOW>;
power-source = <IO_STANDARD_LVCMOS18>;
};
conf-rx {
pins = "MIO49";
bias-high-impedance;
};
conf-tx {
pins = "MIO48";
bias-disable;
};
};
};
See the Xilinx Zynq-7000 SoC Technical Reference Manual (UG585) for further details on pin
multiplexing and configuration options.
Properties
**********
Top level properties
====================
These property descriptions apply to "xlnx,pinctrl-zynq"
nodes themselves. This page also describes child node
properties in the following sections.
.. tabs::
.. group-tab:: Node specific properties
Properties not inherited from the base binding file.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``syscon``
- ``phandle``
- .. code-block:: none
phandle to the System Level Control Registers (SLCR).
This property is **required**.
.. group-tab:: Deprecated node specific properties
Deprecated properties not inherited from the base binding file.
(None)
.. group-tab:: Base properties
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 "xlnx,pinctrl-zynq" compatible.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``wakeup-source``
- ``boolean``
- .. code-block:: none
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.
* - ``power-domain``
- ``phandle``
- .. code-block:: none
Power domain the device belongs to.
The device will be notified when the power domain it belongs to is either
suspended or resumed.
* - ``zephyr,pm-device-runtime-auto``
- ``boolean``
- .. code-block:: none
Automatically configure the device for runtime power management after the
init function runs.
* - ``zephyr,disabling-power-states``
- ``phandles``
- .. code-block:: none
List of power states that will disable this device power.
* - ``status``
- ``string``
- .. code-block:: none
indicates the operational status of a device
Legal values: ``'ok'``, ``'okay'``, ``'disabled'``, ``'reserved'``, ``'fail'``, ``'fail-sss'``
See :ref:`dt-important-props` for more information.
* - ``compatible``
- ``string-array``
- .. code-block:: none
compatible strings
This property is **required**.
See :ref:`dt-important-props` for more information.
* - ``reg``
- ``array``
- .. code-block:: none
Base address and size of the System Level Control Registers (SLCR) space.
This property is **required**.
See :ref:`dt-important-props` for more information.
* - ``reg-names``
- ``string-array``
- .. code-block:: none
name of each register space
* - ``interrupts``
- ``array``
- .. code-block:: none
interrupts for device
See :ref:`dt-important-props` for more information.
* - ``interrupts-extended``
- ``compound``
- .. code-block:: none
extended interrupt specifier for device
* - ``interrupt-names``
- ``string-array``
- .. code-block:: none
name of each interrupt
* - ``interrupt-parent``
- ``phandle``
- .. code-block:: none
phandle to interrupt controller node
* - ``label``
- ``string``
- .. code-block:: none
Human readable string describing the device (used as device_get_binding() argument)
See :ref:`dt-important-props` for more information.
This property is **deprecated**.
* - ``clocks``
- ``phandle-array``
- .. code-block:: none
Clock gate information
* - ``clock-names``
- ``string-array``
- .. code-block:: none
name of each clock
* - ``#address-cells``
- ``int``
- .. code-block:: none
number of address cells in reg property
* - ``#size-cells``
- ``int``
- .. code-block:: none
number of size cells in reg property
* - ``dmas``
- ``phandle-array``
- .. code-block:: none
DMA channels specifiers
* - ``dma-names``
- ``string-array``
- .. code-block:: none
Provided names of DMA channel specifiers
* - ``io-channels``
- ``phandle-array``
- .. code-block:: none
IO channels specifiers
* - ``io-channel-names``
- ``string-array``
- .. code-block:: none
Provided names of IO channel specifiers
* - ``mboxes``
- ``phandle-array``
- .. code-block:: none
mailbox / IPM channels specifiers
* - ``mbox-names``
- ``string-array``
- .. code-block:: none
Provided names of mailbox / IPM channel specifiers
* - ``zephyr,deferred-init``
- ``boolean``
- .. code-block:: none
Do not initialize device automatically on boot. Device should be manually
initialized using device_init().
Grandchild node properties
==========================
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``bias-disable``
- ``boolean``
- .. code-block:: none
Disable any IO buffer pin bias. Clears the PULLUP and TRI_ENABLE fields in the MIO_PIN_xx
SLCR register.
* - ``bias-high-impedance``
- ``boolean``
- .. code-block:: none
Enables tri-state on IO buffer pin. Sets the TRI_ENABLE field in the MIO_PIN_xx SLCR
register.
* - ``bias-pull-up``
- ``boolean``
- .. code-block:: none
Enables pull-up on IO buffer pin. Sets the PULLUP field in the MIO_PIN_xx SLCR register.
* - ``power-source``
- ``int``
- .. code-block:: none
IO buffer type. Sets the IO_Type field in the MIO_PIN_xx SLCR register. The IO_STANDARD_*
macros are defined in pinctrl-zynq.h.
1 or IO_STANDARD_LVCMOS18
2 or IO_STANDARD_LVCMOS25
3 or IO_STANDARD_LVCMOS33
4 or IO_STANDARD_HSTL
Legal values: ``1``, ``2``, ``3``, ``4``
* - ``low-power-enable``
- ``boolean``
- .. code-block:: none
Disable HSTL input buffer to save power when it is an output-only. Applicable when
power-source (IO_Type) is HSTL. Sets the DisableRcvr field in the MIO_PIN_xx SLCR
register.
* - ``low-power-disable``
- ``boolean``
- .. code-block:: none
Enable HSTL input buffer. Applicable when the power-souce (IO_Type) is HSTL. Clears the
DisableRcvr field in the MIO_PIN_xx SLCR register.
* - ``slew-rate``
- ``int``
- .. code-block:: none
IO buffer edge rate. Applicable when the power-source (IO_type) is LVCMOS18, LVCMOS25, or
LVCMOS33. Sets the Speed field in the MIO_PIN_xx SLCR register. The IO_SPEED_* macros are
defined in pinctrl-zynq.h.
0 or IO_SPEED_SLOW
1 or IO_SPEED_FAST
Legal values: ``0``, ``1``
* - ``groups``
- ``string-array``
- .. code-block:: none
Specify list of pin groups to select for this configuration node.
Valid pin groups are "ethernet0_0_grp", "ethernet1_0_grp", "mdio0_0_grp," "mdio1_0_grp",
"qspi0_0_grp", "qspi1_0_grp", "qspi_fbclk," "qspi_cs1_grp", "spi0_0_grp", "spi0_1_grp",
"spi0_2_grp," "spi0_0_ss0", "spi0_0_ss1", "spi0_0_ss2", "spi0_1_ss0," "spi0_1_ss1",
"spi0_1_ss2", "spi0_2_ss0", "spi0_2_ss1," "spi0_2_ss2", "spi1_0_grp", "spi1_1_grp",
"spi1_2_grp," "spi1_3_grp", "spi1_0_ss0", "spi1_0_ss1", "spi1_0_ss2," "spi1_1_ss0",
"spi1_1_ss1", "spi1_1_ss2", "spi1_2_ss0," "spi1_2_ss1", "spi1_2_ss2", "spi1_3_ss0",
"spi1_3_ss1," "spi1_3_ss2", "sdio0_0_grp", "sdio0_1_grp", "sdio0_2_grp," "sdio1_0_grp",
"sdio1_1_grp", "sdio1_2_grp", "sdio1_3_grp," "sdio0_emio_wp", "sdio0_emio_cd",
"sdio1_emio_wp," "sdio1_emio_cd", "smc0_nor", "smc0_nor_cs1_grp," "smc0_nor_addr25_grp",
"smc0_nand", "can0_0_grp", "can0_1_grp," "can0_2_grp", "can0_3_grp", "can0_4_grp",
"can0_5_grp," "can0_6_grp", "can0_7_grp", "can0_8_grp", "can0_9_grp," "can0_10_grp",
"can1_0_grp", "can1_1_grp", "can1_2_grp," "can1_3_grp", "can1_4_grp", "can1_5_grp",
"can1_6_grp," "can1_7_grp", "can1_8_grp", "can1_9_grp", "can1_10_grp," "can1_11_grp",
"uart0_0_grp", "uart0_1_grp", "uart0_2_grp," "uart0_3_grp", "uart0_4_grp", "uart0_5_grp",
"uart0_6_grp," "uart0_7_grp", "uart0_8_grp", "uart0_9_grp", "uart0_10_grp," "uart1_0_grp",
"uart1_1_grp", "uart1_2_grp", "uart1_3_grp," "uart1_4_grp", "uart1_5_grp", "uart1_6_grp",
"uart1_7_grp," "uart1_8_grp", "uart1_9_grp", "uart1_10_grp", "uart1_11_grp," "i2c0_0_grp",
"i2c0_1_grp", "i2c0_2_grp", "i2c0_3_grp," "i2c0_4_grp", "i2c0_5_grp", "i2c0_6_grp",
"i2c0_7_grp," "i2c0_8_grp", "i2c0_9_grp", "i2c0_10_grp", "i2c1_0_grp," "i2c1_1_grp",
"i2c1_2_grp", "i2c1_3_grp", "i2c1_4_grp," "i2c1_5_grp", "i2c1_6_grp", "i2c1_7_grp",
"i2c1_8_grp," "i2c1_9_grp", "i2c1_10_grp", "ttc0_0_grp", "ttc0_1_grp," "ttc0_2_grp",
"ttc1_0_grp", "ttc1_1_grp", "ttc1_2_grp," "swdt0_0_grp", "swdt0_1_grp", "swdt0_2_grp",
"swdt0_3_grp," "swdt0_4_grp", "gpio0_0_grp", "gpio0_1_grp", "gpio0_2_grp," "gpio0_3_grp",
"gpio0_4_grp", "gpio0_5_grp", "gpio0_6_grp," "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp",
"gpio0_10_grp," "gpio0_11_grp", "gpio0_12_grp", "gpio0_13_grp", "gpio0_14_grp,"
"gpio0_15_grp", "gpio0_16_grp", "gpio0_17_grp", "gpio0_18_grp," "gpio0_19_grp",
"gpio0_20_grp", "gpio0_21_grp", "gpio0_22_grp," "gpio0_23_grp", "gpio0_24_grp",
"gpio0_25_grp", "gpio0_26_grp," "gpio0_27_grp", "gpio0_28_grp", "gpio0_29_grp",
"gpio0_30_grp," "gpio0_31_grp", "gpio0_32_grp", "gpio0_33_grp", "gpio0_34_grp,"
"gpio0_35_grp", "gpio0_36_grp", "gpio0_37_grp", "gpio0_38_grp," "gpio0_39_grp",
"gpio0_40_grp", "gpio0_41_grp", "gpio0_42_grp," "gpio0_43_grp", "gpio0_44_grp",
"gpio0_45_grp", "gpio0_46_grp," "gpio0_47_grp", "gpio0_48_grp", "gpio0_49_grp",
"gpio0_50_grp," "gpio0_51_grp", "gpio0_52_grp", "gpio0_53_grp", "usb0_0_grp," "usb1_0_grp"
Pin groups are combined with pin names (see pins) to form the full list of pins to select.
* - ``pins``
- ``string-array``
- .. code-block:: none
Specify list of pin names to select for this configuration node. Valid pin names are
"MIO0" to "MIO53".
Pin names are combined with pin groups (see groups) to form the full list of pins to
select.
* - ``function``
- ``string``
- .. code-block:: none
Specify the alternative function to be configured for the given pin groups. Sets the
L3_SEL, L2_SEL, L1_SEL, and L0_SEL fields in the MIO_PIN_xx SLCR register.
Legal values: ``'ethernet0'``, ``'ethernet1'``, ``'mdio0'``, ``'mdio1'``, ``'qspi0'``, ``'qspi1'``, ``'qspi_fbclk'``, ``'qspi_cs1'``, ``'spi0'``, ``'spi0_ss'``, ``'spi1'``, ``'spi1_ss'``, ``'sdio0'``, ``'sdio0_pc'``, ``'sdio0_cd'``, ``'sdio0_wp'``, ``'sdio1'``, ``'sdio1_pc'``, ``'sdio1_cd'``, ``'sdio1_wp'``, ``'smc0_nor'``, ``'smc0_nor_cs1'``, ``'smc0_nor_addr25'``, ``'smc0_nand'``, ``'can0'``, ``'can1'``, ``'uart0'``, ``'uart1'``, ``'i2c0'``, ``'i2c1'``, ``'ttc0'``, ``'ttc1'``, ``'swdt0'``, ``'gpio0'``, ``'usb0'``, ``'usb1'``
Part 3
한국어 전문 번역
xlnx,pinctrl-zynq
Vendor: Xilinx, Inc.
공식 설명
Xilinx Zynq-7000 SoC series pinctrl node입니다. Pin multiplexing과 configuration을 group으로 정의합니다. Pinctrl node의 각 group은 peripheral의 pin multiplexing과 configuration을 나타내고, 그 안의 subgroup은 같은 configuration property를 공유하는 모든 pin을 정의합니다.
Pin은 이름 있는 group, 예를 들어 groups = "uart1_10_grp"로 선택하거나, 이름 있는 개별 pin, 예를 들어 pins = "MIO49"로 선택하거나, 둘을 조합해 선택합니다. 나머지 property가 선택 pin의 configuration 값을 설정합니다.
UART1 예는 mux subgroup에서 uart1_10_grp를 function uart1로 routing합니다. conf subgroup은 같은 group에 slow slew와 LVCMOS18을 적용합니다. conf-rx는 MIO49를 high impedance로 만들고 conf-tx는 MIO48의 bias를 끕니다.
#include <zephyr/dt-bindings/pinctrl/pinctrl-zynq.h>
&pinctrl0 {
pinctrl_uart1_default: uart1-default {
mux {
groups = "uart1_10_grp";
function = "uart1";
};
conf {
groups = "uart1_10_grp";
slew-rate = <IO_SPEED_SLOW>;
power-source = <IO_STANDARD_LVCMOS18>;
};
conf-rx {
pins = "MIO49";
bias-high-impedance;
};
conf-tx {
pins = "MIO48";
bias-disable;
};
};
};
Pin multiplexing과 configuration option의 자세한 내용은 Xilinx Zynq-7000 SoC Technical Reference Manual UG585를 참조합니다.Routing subgroup과 electrical subgroup을 분리
같은 UART1 pin group을 mux에서는 function routing에, conf에서는 IO standard와 slew 설정에 사용합니다. RX/TX 개별 pin은 별도 subgroup으로 세밀하게 조정합니다.
uart1_10_grp
function = uart1
LVCMOS18 · slow slew
MIO49 high-Z · MIO48 bias off
syscon은 SLCR register block에 연결하는 필수 phandle입니다. HSTL input receiver를 끄는 low-power-enable은 단순한 device sleep flag가 아니라 pad receiver 설정입니다.
속성 전체 번역
공식 node-specific 1개, base 24개, grandchild 10개 property를 모두 번역했습니다.
노드 전용 속성 · 1개
| 이름 | 형식 | 설명과 제약 |
|---|---|---|
syscon | phandle | Zynq SLCR(system level control registers) node를 가리키는 필수 phandle입니다. 필수 |
Base binding property · 24개
공통 기본 바인딩에서 상속한 속성입니다. 이 compatible에서 사용하지 않는 속성도 공식 참조 문서에 실려 있으면 함께 표시합니다.
| 이름 | 형식 | 설명과 제약 |
|---|---|---|
wakeup-source | boolean | 이 장치를 시스템 깨우기에 사용할 수 있음을 나타냅니다. 이 속성이 있으면 깨우기 지원 플래그가 설정됩니다. 기본 상태에서는 장치의 인터럽트로 시스템을 깨우지 않으며, 실행 중에 깨우기 기능을 활성화할 수 있습니다. |
power-domain | phandle | 장치가 속한 전원 도메인의 phandle입니다. 해당 전원 도메인이 일시 중단되거나 다시 동작하면 장치에 알림이 전달됩니다. |
zephyr,pm-device-runtime-auto | boolean | 초기화 함수 실행 후 장치의 런타임 전원 관리를 자동으로 설정합니다. |
zephyr,disabling-power-states | phandles | 이 장치의 전원이 꺼지는 전원 상태 목록입니다. |
status | string | 장치의 동작 상태를 나타냅니다. 허용값: 'ok', 'okay', 'disabled', 'reserved', 'fail', 'fail-sss' |
compatible | string-array | 이 노드에 적용할 바인딩과 드라이버를 식별하는 compatible 문자열 목록입니다. 필수 |
reg | array | 장치 레지스터의 주소 범위를 지정합니다. 필수 |
reg-names | string-array | 각 register space의 이름입니다. |
interrupts | array | 장치에서 사용하는 인터럽트를 지정하는 목록입니다. |
interrupts-extended | compound | 인터럽트 컨트롤러의 phandle을 함께 지정하는 확장 형식의 인터럽트 명세입니다. |
interrupt-names | string-array | 각 interrupt의 이름입니다. |
interrupt-parent | phandle | 인터럽트 컨트롤러 노드를 가리키는 phandle입니다. |
label | string | 사람이 장치를 알아볼 수 있도록 붙이는 이름입니다. 과거에는 device_get_binding()의 인자로 사용했습니다. 사용 중단됨 |
clocks | phandle-array | 클록 게이트 또는 클록 공급원을 지정하는 phandle 배열입니다. |
clock-names | string-array | 각 clock의 이름입니다. |
#address-cells | int | 하위 노드의 reg 속성에서 주소를 나타내는 데 쓰는 셀 수입니다. |
#size-cells | int | 하위 노드의 reg 속성에서 크기를 나타내는 데 쓰는 셀 수입니다. |
dmas | phandle-array | DMA 채널을 지정하는 phandle 배열입니다. |
dma-names | string-array | 지정한 DMA 채널의 이름입니다. |
io-channels | phandle-array | I/O 채널을 지정하는 phandle 배열입니다. |
io-channel-names | string-array | 지정한 I/O 채널의 이름입니다. |
mboxes | phandle-array | 메일박스/IPM 채널을 지정하는 phandle 배열입니다. |
mbox-names | string-array | 지정한 메일박스/IPM 채널의 이름입니다. |
zephyr,deferred-init | boolean | 부팅할 때 장치를 자동으로 초기화하지 않습니다. 이후 device_init()를 호출해 직접 초기화해야 합니다. |
Grandchild node property · 10개
Parent의 child 아래에 있는 grandchild node에 적용되는 property입니다.
| 이름 | 형식 | 설명과 제약 |
|---|---|---|
bias-disable | boolean | 선택 pin의 PULLUP과 TRI_ENABLE을 모두 clear합니다. |
bias-high-impedance | boolean | 선택 pin의 TRI_ENABLE을 set해 high-impedance input 상태를 사용합니다. |
bias-pull-up | boolean | 선택 pin의 PULLUP을 set합니다. |
power-source | int | IO standard를 선택합니다. 1 LVCMOS18, 2 LVCMOS25, 3 LVCMOS33, 4 HSTL만 허용됩니다. 허용값: 1, 2, 3, 4 |
low-power-enable | boolean | Output-only 사용을 위해 HSTL input receiver를 비활성화합니다. |
low-power-disable | boolean | HSTL input receiver를 활성화합니다. |
slew-rate | int | LVCMOS pin의 slew rate를 0 slow 또는 1 fast로 선택합니다. 허용값: 0, 1 |
groups | string-array | 공식 허용 목록에 있는 Zynq peripheral pin group 이름을 지정합니다. pins와 결합할 수 있습니다. |
pins | string-array | MIO0부터 MIO53까지의 개별 pin 이름을 지정합니다. groups와 결합할 수 있습니다. |
function | string | 선택 group에 적용할 Zynq peripheral function을 공식 허용 목록에서 고릅니다. Hardware의 L3..L0_SEL 값을 설정합니다. 허용값: 'ethernet0', 'ethernet1', 'mdio0', 'mdio1', 'qspi0', 'qspi1', 'qspi_fbclk', 'qspi_cs1', 'spi0', 'spi0_ss', 'spi1', 'spi1_ss', 'sdio0', 'sdio0_pc', 'sdio0_cd', 'sdio0_wp', 'sdio1', 'sdio1_pc', 'sdio1_cd', 'sdio1_wp', 'smc0_nor', 'smc0_nor_cs1', 'smc0_nor_addr25', 'smc0_nand', 'can0', 'can1', 'uart0', 'uart1', 'i2c0', 'i2c1', 'ttc0', 'ttc1', 'swdt0', 'gpio0', 'usb0', 'usb1' |
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.