~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/serial/samsung_uart.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/serial/samsung_uart.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/serial/samsung_uart.yaml (Version linux-5.10.229)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/serial/sams      4 $id: http://devicetree.org/schemas/serial/samsung_uart.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Samsung S3C, S5P, Exynos, and S5L (Appl !!   7 title: Samsung S3C, S5P and Exynos SoC UART Controller
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Krzysztof Kozlowski <krzk@kernel.org>           10   - Krzysztof Kozlowski <krzk@kernel.org>
 11   - Greg Kroah-Hartman <gregkh@linuxfoundation.     11   - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 12                                                    12 
 13 description: |+                                    13 description: |+
 14   Each Samsung UART should have an alias corre     14   Each Samsung UART should have an alias correctly numbered in the "aliases"
 15   node, according to serialN format, where N i     15   node, according to serialN format, where N is the port number (non-negative
 16   decimal integer) as specified by User's Manu     16   decimal integer) as specified by User's Manual of respective SoC.
 17                                                    17 
 18 properties:                                        18 properties:
 19   compatible:                                      19   compatible:
 20     oneOf:                                     !!  20     items:
 21       - enum:                                      21       - enum:
 22           - apple,s5l-uart                     !!  22           - samsung,s3c2410-uart
 23           - axis,artpec8-uart                  !!  23           - samsung,s3c2412-uart
 24           - google,gs101-uart                  !!  24           - samsung,s3c2440-uart
 25           - samsung,s3c6400-uart                   25           - samsung,s3c6400-uart
 26           - samsung,s5pv210-uart                   26           - samsung,s5pv210-uart
 27           - samsung,exynos4210-uart                27           - samsung,exynos4210-uart
 28           - samsung,exynos5433-uart            << 
 29           - samsung,exynos850-uart             << 
 30       - items:                                 << 
 31           - enum:                              << 
 32               - samsung,exynos7-uart           << 
 33               - tesla,fsd-uart                 << 
 34           - const: samsung,exynos4210-uart     << 
 35       - items:                                 << 
 36           - enum:                              << 
 37               - samsung,exynos7885-uart        << 
 38           - const: samsung,exynos5433-uart     << 
 39       - items:                                 << 
 40           - enum:                              << 
 41               - samsung,exynosautov9-uart      << 
 42               - samsung,exynosautov920-uart    << 
 43           - const: samsung,exynos850-uart      << 
 44                                                    28 
 45   reg:                                             29   reg:
 46     maxItems: 1                                    30     maxItems: 1
 47                                                    31 
 48   reg-io-width:                                    32   reg-io-width:
 49     description: |                                 33     description: |
 50       The size (in bytes) of the IO accesses t     34       The size (in bytes) of the IO accesses that should be performed
 51       on the device.                               35       on the device.
                                                   >>  36     $ref: /schemas/types.yaml#/definitions/uint32
 52     enum: [ 1, 4 ]                                 37     enum: [ 1, 4 ]
 53                                                    38 
 54   clocks:                                          39   clocks:
 55     minItems: 2                                    40     minItems: 2
 56     maxItems: 5                                    41     maxItems: 5
 57                                                    42 
 58   clock-names:                                     43   clock-names:
                                                   >>  44     description: N = 0 is allowed for SoCs without internal baud clock mux.
 59     minItems: 2                                    45     minItems: 2
 60     maxItems: 5                                    46     maxItems: 5
 61                                                << 
 62   dmas:                                        << 
 63     items:                                         47     items:
 64       - description: DMA controller phandle an !!  48       - const: uart
 65       - description: DMA controller phandle an !!  49       - pattern: '^clk_uart_baud[0-3]$'
 66                                                !!  50       - pattern: '^clk_uart_baud[0-3]$'
 67   dma-names:                                   !!  51       - pattern: '^clk_uart_baud[0-3]$'
 68     items:                                     !!  52       - pattern: '^clk_uart_baud[0-3]$'
 69       - const: rx                              << 
 70       - const: tx                              << 
 71                                                    53 
 72   interrupts:                                      54   interrupts:
 73     description: RX interrupt and optionally T     55     description: RX interrupt and optionally TX interrupt.
 74     minItems: 1                                    56     minItems: 1
 75     maxItems: 2                                    57     maxItems: 2
 76                                                    58 
 77   power-domains:                               << 
 78     maxItems: 1                                << 
 79                                                << 
 80   samsung,uart-fifosize:                           59   samsung,uart-fifosize:
 81     description: The fifo size supported by th     60     description: The fifo size supported by the UART channel.
 82     $ref: /schemas/types.yaml#/definitions/uin     61     $ref: /schemas/types.yaml#/definitions/uint32
 83     enum: [16, 64, 256]                            62     enum: [16, 64, 256]
 84                                                    63 
 85 required:                                          64 required:
 86   - compatible                                     65   - compatible
 87   - clocks                                         66   - clocks
 88   - clock-names                                    67   - clock-names
 89   - interrupts                                     68   - interrupts
 90   - reg                                            69   - reg
 91                                                    70 
 92 allOf:                                         !!  71 additionalProperties: false
 93   - $ref: serial.yaml#                         << 
 94                                                    72 
                                                   >>  73 allOf:
 95   - if:                                            74   - if:
 96       properties:                                  75       properties:
 97         compatible:                                76         compatible:
 98           contains:                                77           contains:
 99             enum:                                  78             enum:
100               - samsung,s3c6400-uart           !!  79               - samsung,s3c2410-uart
                                                   >>  80               - samsung,s5pv210-uart
101     then:                                          81     then:
102       properties:                                  82       properties:
103         clocks:                                    83         clocks:
104           minItems: 3                          !!  84           minItems: 2
105           maxItems: 3                              85           maxItems: 3
106                                                << 
107         clock-names:                           << 
108           items:                               << 
109             - const: uart                      << 
110             - const: clk_uart_baud2            << 
111             - const: clk_uart_baud3            << 
112                                                << 
113     else:                                      << 
114       properties:                              << 
115         clock-names:                               86         clock-names:
116           minItems: 2                              87           minItems: 2
                                                   >>  88           maxItems: 3
117           items:                                   89           items:
118             - const: uart                          90             - const: uart
119             - const: clk_uart_baud0            !!  91             - pattern: '^clk_uart_baud[0-1]$'
120             - const: clk_uart_baud1            !!  92             - pattern: '^clk_uart_baud[0-1]$'
121             - const: clk_uart_baud2            << 
122             - const: clk_uart_baud3            << 
123                                                    93 
124   - if:                                            94   - if:
125       properties:                                  95       properties:
126         compatible:                                96         compatible:
127           contains:                                97           contains:
128             enum:                                  98             enum:
129               - samsung,s5pv210-uart           << 
130     then:                                      << 
131       properties:                              << 
132         clocks:                                << 
133           minItems: 3                          << 
134           maxItems: 3                          << 
135                                                << 
136         clock-names:                           << 
137           minItems: 3                          << 
138           maxItems: 3                          << 
139                                                << 
140   - if:                                        << 
141       properties:                              << 
142         compatible:                            << 
143           contains:                            << 
144             enum:                              << 
145               - apple,s5l-uart                 << 
146               - axis,artpec8-uart              << 
147               - samsung,exynos4210-uart            99               - samsung,exynos4210-uart
148               - samsung,exynos5433-uart        << 
149     then:                                         100     then:
150       properties:                                 101       properties:
151         clocks:                                   102         clocks:
                                                   >> 103           minItems: 2
152           maxItems: 2                             104           maxItems: 2
153                                                << 
154         clock-names:                           << 
155           maxItems: 2                          << 
156                                                << 
157   - if:                                        << 
158       properties:                              << 
159         compatible:                            << 
160           contains:                            << 
161             enum:                              << 
162               - google,gs101-uart              << 
163     then:                                      << 
164       required:                                << 
165         - samsung,uart-fifosize                << 
166       properties:                              << 
167         reg-io-width: false                    << 
168                                                << 
169         clocks:                                << 
170           maxItems: 2                          << 
171                                                << 
172         clock-names:                              105         clock-names:
                                                   >> 106           minItems: 2
173           maxItems: 2                             107           maxItems: 2
174                                                !! 108           items:
175 unevaluatedProperties: false                   !! 109             - const: uart
                                                   >> 110             - const: clk_uart_baud0
176                                                   111 
177 examples:                                         112 examples:
178   - |                                             113   - |
179     #include <dt-bindings/clock/samsung,s3c64x    114     #include <dt-bindings/clock/samsung,s3c64xx-clock.h>
180                                                   115 
181     uart0: serial@7f005000 {                      116     uart0: serial@7f005000 {
182         compatible = "samsung,s3c6400-uart";      117         compatible = "samsung,s3c6400-uart";
183         reg = <0x7f005000 0x100>;                 118         reg = <0x7f005000 0x100>;
184         interrupt-parent = <&vic1>;               119         interrupt-parent = <&vic1>;
185         interrupts = <5>;                         120         interrupts = <5>;
186         clock-names = "uart", "clk_uart_baud2"    121         clock-names = "uart", "clk_uart_baud2",
187                       "clk_uart_baud3";           122                       "clk_uart_baud3";
188         clocks = <&clocks PCLK_UART0>, <&clock    123         clocks = <&clocks PCLK_UART0>, <&clocks PCLK_UART0>,
189                  <&clocks SCLK_UART>;             124                  <&clocks SCLK_UART>;
190         samsung,uart-fifosize = <16>;             125         samsung,uart-fifosize = <16>;
191     };                                         << 
192   - |                                          << 
193     #include <dt-bindings/clock/google,gs101.h << 
194     #include <dt-bindings/interrupt-controller << 
195     #include <dt-bindings/interrupt-controller << 
196                                                << 
197     serial_0: serial@10a00000 {                << 
198       compatible = "google,gs101-uart";        << 
199       reg = <0x10a00000 0xc0>;                 << 
200       clocks = <&cmu_peric0 CLK_GOUT_PERIC0_PE << 
201                <&cmu_peric0 CLK_GOUT_PERIC0_PE << 
202       clock-names = "uart", "clk_uart_baud0";  << 
203       interrupts = <GIC_SPI 634 IRQ_TYPE_LEVEL << 
204       pinctrl-0 = <&uart0_bus>;                << 
205       pinctrl-names = "default";               << 
206       samsung,uart-fifosize = <256>;           << 
207     };                                            126     };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php