0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/serial/ingenic,uart.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Ingenic SoCs UART controller devicetree bindings
0008
0009 maintainers:
0010 - Paul Cercueil <paul@crapouillou.net>
0011
0012 allOf:
0013 - $ref: serial.yaml#
0014
0015 properties:
0016 $nodename:
0017 pattern: "^serial@[0-9a-f]+$"
0018
0019 compatible:
0020 oneOf:
0021 - enum:
0022 - ingenic,jz4740-uart
0023 - ingenic,jz4760-uart
0024 - ingenic,jz4780-uart
0025 - ingenic,x1000-uart
0026 - items:
0027 - enum:
0028 - ingenic,jz4770-uart
0029 - ingenic,jz4775-uart
0030 - const: ingenic,jz4760-uart
0031 - items:
0032 - const: ingenic,jz4725b-uart
0033 - const: ingenic,jz4740-uart
0034
0035 reg:
0036 maxItems: 1
0037
0038 interrupts:
0039 maxItems: 1
0040
0041 clocks:
0042 items:
0043 - description: Baud clock
0044 - description: UART module clock
0045
0046 clock-names:
0047 items:
0048 - const: baud
0049 - const: module
0050
0051 dmas:
0052 items:
0053 - description: DMA controller phandle and request line for RX
0054 - description: DMA controller phandle and request line for TX
0055
0056 dma-names:
0057 items:
0058 - const: rx
0059 - const: tx
0060
0061 required:
0062 - compatible
0063 - reg
0064 - interrupts
0065 - clocks
0066 - clock-names
0067 - dmas
0068 - dma-names
0069
0070 unevaluatedProperties: false
0071
0072 examples:
0073 - |
0074 #include <dt-bindings/clock/ingenic,jz4780-cgu.h>
0075 #include <dt-bindings/dma/jz4780-dma.h>
0076 #include <dt-bindings/gpio/gpio.h>
0077 serial@10032000 {
0078 compatible = "ingenic,jz4780-uart";
0079 reg = <0x10032000 0x100>;
0080
0081 interrupt-parent = <&intc>;
0082 interrupts = <49>;
0083
0084 clocks = <&ext>, <&cgu JZ4780_CLK_UART2>;
0085 clock-names = "baud", "module";
0086
0087 dmas = <&dma JZ4780_DMA_UART2_RX 0xffffffff>,
0088 <&dma JZ4780_DMA_UART2_TX 0xffffffff>;
0089 dma-names = "rx", "tx";
0090
0091 bluetooth {
0092 compatible = "brcm,bcm4330-bt";
0093 reset-gpios = <&gpf 8 GPIO_ACTIVE_HIGH>;
0094 vbat-supply = <&wlan0_power>;
0095 device-wakeup-gpios = <&gpf 5 GPIO_ACTIVE_HIGH>;
0096 host-wakeup-gpios = <&gpf 6 GPIO_ACTIVE_HIGH>;
0097 shutdown-gpios = <&gpf 4 GPIO_ACTIVE_LOW>;
0098 };
0099 };