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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/usb/mediatek,musb.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/usb/mediatek,musb.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/usb/mediatek,musb.yaml (Version linux-5.12.19)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 # Copyright (c) 2020 MediaTek                       2 # Copyright (c) 2020 MediaTek
  3 %YAML 1.2                                           3 %YAML 1.2
  4 ---                                                 4 ---
  5 $id: http://devicetree.org/schemas/usb/mediate      5 $id: http://devicetree.org/schemas/usb/mediatek,musb.yaml#
  6 $schema: http://devicetree.org/meta-schemas/co      6 $schema: http://devicetree.org/meta-schemas/core.yaml#
  7                                                     7 
  8 title: MediaTek MUSB DRD/OTG Controller        !!   8 title: MediaTek MUSB DRD/OTG Controller Device Tree Bindings
  9                                                     9 
 10 maintainers:                                       10 maintainers:
 11   - Min Guo <min.guo@mediatek.com>                  11   - Min Guo <min.guo@mediatek.com>
 12                                                    12 
 13 properties:                                        13 properties:
 14   $nodename:                                       14   $nodename:
 15     pattern: '^usb@[0-9a-f]+$'                     15     pattern: '^usb@[0-9a-f]+$'
 16                                                    16 
 17   compatible:                                      17   compatible:
 18     items:                                         18     items:
 19       - enum:                                      19       - enum:
 20           - mediatek,mt8516-musb                   20           - mediatek,mt8516-musb
 21           - mediatek,mt2701-musb                   21           - mediatek,mt2701-musb
 22           - mediatek,mt7623-musb               << 
 23       - const: mediatek,mtk-musb                   22       - const: mediatek,mtk-musb
 24                                                    23 
 25   reg:                                             24   reg:
 26     maxItems: 1                                    25     maxItems: 1
 27                                                    26 
 28   interrupts:                                      27   interrupts:
 29     maxItems: 1                                    28     maxItems: 1
 30                                                    29 
 31   interrupt-names:                                 30   interrupt-names:
 32     items:                                         31     items:
 33       - const: mc                                  32       - const: mc
 34                                                    33 
 35   clocks:                                          34   clocks:
 36     items:                                         35     items:
 37       - description: The main/core clock           36       - description: The main/core clock
 38       - description: The system bus clock          37       - description: The system bus clock
 39       - description: The 48Mhz clock               38       - description: The 48Mhz clock
 40                                                    39 
 41   clock-names:                                     40   clock-names:
 42     items:                                         41     items:
 43       - const: main                                42       - const: main
 44       - const: mcu                                 43       - const: mcu
 45       - const: univpll                             44       - const: univpll
 46                                                    45 
 47   phys:                                            46   phys:
 48     maxItems: 1                                    47     maxItems: 1
 49                                                    48 
 50   usb-role-switch:                                 49   usb-role-switch:
 51     $ref: /schemas/types.yaml#/definitions/fla     50     $ref: /schemas/types.yaml#/definitions/flag
 52     description: Support role switch. See usb/     51     description: Support role switch. See usb/generic.txt
 53     type: boolean                                  52     type: boolean
 54                                                    53 
 55   dr_mode:                                         54   dr_mode:
 56     enum:                                          55     enum:
 57       - host                                       56       - host
 58       - otg                                        57       - otg
 59       - peripheral                                 58       - peripheral
 60                                                    59 
 61   power-domains:                                   60   power-domains:
 62     description: A phandle to USB power domain     61     description: A phandle to USB power domain node to control USB's MTCMOS
 63     maxItems: 1                                    62     maxItems: 1
 64                                                    63 
 65   connector:                                       64   connector:
 66     $ref: /schemas/connector/usb-connector.yam !!  65     $ref: /connector/usb-connector.yaml#
 67     description: Connector for dual role switc     66     description: Connector for dual role switch
 68     type: object                                   67     type: object
 69                                                    68 
 70 dependencies:                                      69 dependencies:
 71   usb-role-switch: [ connector ]               !!  70   usb-role-switch: [ 'connector' ]
 72   connector: [ usb-role-switch ]               !!  71   connector: [ 'usb-role-switch' ]
 73                                                    72 
 74 required:                                          73 required:
 75   - compatible                                     74   - compatible
 76   - reg                                            75   - reg
 77   - interrupts                                     76   - interrupts
 78   - interrupt-names                                77   - interrupt-names
 79   - phys                                           78   - phys
 80   - clocks                                         79   - clocks
 81   - clock-names                                    80   - clock-names
 82                                                    81 
 83 additionalProperties: false                        82 additionalProperties: false
 84                                                    83 
 85 examples:                                          84 examples:
 86   - |                                              85   - |
 87     #include <dt-bindings/clock/mt2701-clk.h>      86     #include <dt-bindings/clock/mt2701-clk.h>
 88     #include <dt-bindings/gpio/gpio.h>             87     #include <dt-bindings/gpio/gpio.h>
 89     #include <dt-bindings/interrupt-controller     88     #include <dt-bindings/interrupt-controller/arm-gic.h>
 90     #include <dt-bindings/interrupt-controller     89     #include <dt-bindings/interrupt-controller/irq.h>
 91     #include <dt-bindings/phy/phy.h>               90     #include <dt-bindings/phy/phy.h>
 92     #include <dt-bindings/power/mt2701-power.h     91     #include <dt-bindings/power/mt2701-power.h>
 93                                                    92 
 94     usb@11200000 {                                 93     usb@11200000 {
 95         compatible = "mediatek,mt2701-musb", "     94         compatible = "mediatek,mt2701-musb", "mediatek,mtk-musb";
 96         reg = <0x11200000 0x1000>;                 95         reg = <0x11200000 0x1000>;
 97         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVE     96         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
 98         interrupt-names = "mc";                    97         interrupt-names = "mc";
 99         phys = <&u2port2 PHY_TYPE_USB2>;           98         phys = <&u2port2 PHY_TYPE_USB2>;
100         dr_mode = "otg";                           99         dr_mode = "otg";
101         clocks = <&pericfg CLK_PERI_USB0>,        100         clocks = <&pericfg CLK_PERI_USB0>,
102                  <&pericfg CLK_PERI_USB0_MCU>,    101                  <&pericfg CLK_PERI_USB0_MCU>,
103                  <&pericfg CLK_PERI_USB_SLV>;     102                  <&pericfg CLK_PERI_USB_SLV>;
104         clock-names = "main","mcu","univpll";     103         clock-names = "main","mcu","univpll";
105         power-domains = <&scpsys MT2701_POWER_    104         power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>;
106         usb-role-switch;                          105         usb-role-switch;
107                                                   106 
108         connector {                               107         connector {
109             compatible = "gpio-usb-b-connector    108             compatible = "gpio-usb-b-connector", "usb-b-connector";
110             type = "micro";                       109             type = "micro";
111             id-gpios = <&pio 44 GPIO_ACTIVE_HI    110             id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>;
112             vbus-supply = <&usb_vbus>;            111             vbus-supply = <&usb_vbus>;
113         };                                        112         };
114     };                                            113     };
115 ...                                               114 ...
                                                      

~ [ 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