162306a36Sopenharmony_ci* Maxim MAX310X advanced Universal Asynchronous Receiver-Transmitter (UART) 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRequired properties: 462306a36Sopenharmony_ci- compatible: Should be one of the following: 562306a36Sopenharmony_ci - "maxim,max3107" for Maxim MAX3107, 662306a36Sopenharmony_ci - "maxim,max3108" for Maxim MAX3108, 762306a36Sopenharmony_ci - "maxim,max3109" for Maxim MAX3109, 862306a36Sopenharmony_ci - "maxim,max14830" for Maxim MAX14830. 962306a36Sopenharmony_ci- reg: SPI chip select number. 1062306a36Sopenharmony_ci- interrupts: Specifies the interrupt source of the parent interrupt 1162306a36Sopenharmony_ci controller. The format of the interrupt specifier depends on the 1262306a36Sopenharmony_ci parent interrupt controller. 1362306a36Sopenharmony_ci- clocks: phandle to the IC source clock. 1462306a36Sopenharmony_ci- clock-names: Should be "xtal" if clock is an external crystal or 1562306a36Sopenharmony_ci "osc" if an external clock source is used. 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ciOptional properties: 1862306a36Sopenharmony_ci- gpio-controller: Marks the device node as a GPIO controller. 1962306a36Sopenharmony_ci- #gpio-cells: Should be two. The first cell is the GPIO number and 2062306a36Sopenharmony_ci the second cell is used to specify the GPIO polarity: 2162306a36Sopenharmony_ci 0 = active high, 2262306a36Sopenharmony_ci 1 = active low. 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ciExample: 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci/ { 2762306a36Sopenharmony_ci clocks { 2862306a36Sopenharmony_ci spi_uart_clk: osc_max14830 { 2962306a36Sopenharmony_ci compatible = "fixed-clock"; 3062306a36Sopenharmony_ci #clock-cells = <0>; 3162306a36Sopenharmony_ci clock-frequency = <3686400>; 3262306a36Sopenharmony_ci }; 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci }; 3562306a36Sopenharmony_ci}; 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci&spi0 { 3862306a36Sopenharmony_ci max14830: max14830@0 { 3962306a36Sopenharmony_ci compatible = "maxim,max14830"; 4062306a36Sopenharmony_ci reg = <0>; 4162306a36Sopenharmony_ci clocks = <&spi_uart_clk>; 4262306a36Sopenharmony_ci clock-names = "osc"; 4362306a36Sopenharmony_ci interrupt-parent = <&gpio3>; 4462306a36Sopenharmony_ci interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 4562306a36Sopenharmony_ci gpio-controller; 4662306a36Sopenharmony_ci #gpio-cells = <2>; 4762306a36Sopenharmony_ci }; 4862306a36Sopenharmony_ci}; 49