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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.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/pinctrl/mediatek,mt65xx-pinctrl.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml (Version policy-sample)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS    
  2 %YAML 1.2                                         
  3 ---                                               
  4 $id: http://devicetree.org/schemas/pinctrl/med    
  5 $schema: http://devicetree.org/meta-schemas/co    
  6                                                   
  7 title: MediaTek MT65xx Pin Controller             
  8                                                   
  9 maintainers:                                      
 10   - Sean Wang <sean.wang@kernel.org>               
 11                                                   
 12 description:                                      
 13   The MediaTek's MT65xx Pin controller is used    
 14                                                   
 15 properties:                                       
 16   compatible:                                     
 17     enum:                                         
 18       - mediatek,mt2701-pinctrl                   
 19       - mediatek,mt2712-pinctrl                   
 20       - mediatek,mt6397-pinctrl                   
 21       - mediatek,mt7623-pinctrl                   
 22       - mediatek,mt8127-pinctrl                   
 23       - mediatek,mt8135-pinctrl                   
 24       - mediatek,mt8167-pinctrl                   
 25       - mediatek,mt8173-pinctrl                   
 26       - mediatek,mt8516-pinctrl                   
 27                                                   
 28   reg:                                            
 29     maxItems: 1                                   
 30                                                   
 31   pins-are-numbered:                              
 32     $ref: /schemas/types.yaml#/definitions/fla    
 33     description:                                  
 34       Specify the subnodes are using numbered     
 35     deprecated: true                              
 36                                                   
 37   gpio-controller: true                           
 38                                                   
 39   "#gpio-cells":                                  
 40     const: 2                                      
 41     description:                                  
 42       Number of cells in GPIO specifier. Since    
 43       the amount of cells must be specified as    
 44       binding representation for description o    
 45                                                   
 46   mediatek,pctl-regmap:                           
 47     $ref: /schemas/types.yaml#/definitions/pha    
 48     items:                                        
 49       maxItems: 1                                 
 50     minItems: 1                                   
 51     maxItems: 2                                   
 52     description:                                  
 53       Should be phandles of the syscfg node.      
 54                                                   
 55   interrupt-controller: true                      
 56                                                   
 57   interrupts:                                     
 58     minItems: 1                                   
 59     maxItems: 3                                   
 60                                                   
 61   "#interrupt-cells":                             
 62     const: 2                                      
 63                                                   
 64 required:                                         
 65   - compatible                                    
 66   - gpio-controller                               
 67   - "#gpio-cells"                                 
 68                                                   
 69 allOf:                                            
 70   - $ref: pinctrl.yaml#                           
 71                                                   
 72 patternProperties:                                
 73   'pins$':                                        
 74     type: object                                  
 75     additionalProperties: false                   
 76     patternProperties:                            
 77       '(^pins|pins?$)':                           
 78         type: object                              
 79         additionalProperties: false               
 80         description:                              
 81           A pinctrl node should contain at lea    
 82           pinctrl groups available on the mach    
 83           pins it needs, and how they should b    
 84           configuration, pullups, drive streng    
 85           schmitt.                                
 86         $ref: /schemas/pinctrl/pincfg-node.yam    
 87                                                   
 88         properties:                               
 89           pinmux:                                 
 90             description:                          
 91               Integer array, represents gpio p    
 92               Supported pin number and mux var    
 93               defined as macros in dt-bindings    
 94                                                   
 95           bias-disable: true                      
 96                                                   
 97           bias-pull-up:                           
 98             description:                          
 99               Besides generic pinconfig option    
100               settings for 2 pull resistors, R    
101               special pins. Some macros have b    
102               as MTK_PUPD_SET_R1R0_00. See dt-    
103               valid arguments.                    
104                                                   
105           bias-pull-down: true                    
106                                                   
107           input-enable: true                      
108                                                   
109           input-disable: true                     
110                                                   
111           output-low: true                        
112                                                   
113           output-high: true                       
114                                                   
115           input-schmitt-enable: true              
116                                                   
117           input-schmitt-disable: true             
118                                                   
119           drive-strength:                         
120             description:                          
121               Can support some arguments, such    
122               etc. See dt-bindings/pinctrl/mt6    
123                                                   
124         required:                                 
125           - pinmux                                
126                                                   
127 additionalProperties: false                       
128                                                   
129 examples:                                         
130   - |                                             
131     #include <dt-bindings/interrupt-controller    
132     #include <dt-bindings/interrupt-controller    
133     #include <dt-bindings/pinctrl/mt8135-pinfu    
134                                                   
135     soc {                                         
136         #address-cells = <2>;                     
137         #size-cells = <2>;                        
138                                                   
139         syscfg_pctl_a: syscfg-pctl-a@10005000     
140           compatible = "mediatek,mt8135-pctl-a    
141           reg = <0 0x10005000 0 0x1000>;          
142         };                                        
143                                                   
144         syscfg_pctl_b: syscfg-pctl-b@1020c020     
145           compatible = "mediatek,mt8135-pctl-b    
146           reg = <0 0x1020C020 0 0x1000>;          
147         };                                        
148                                                   
149         pinctrl@1c20800 {                         
150           compatible = "mediatek,mt8135-pinctr    
151           reg = <0 0x1000B000 0 0x1000>;          
152           mediatek,pctl-regmap = <&syscfg_pctl    
153           gpio-controller;                        
154           #gpio-cells = <2>;                      
155           interrupt-controller;                   
156           #interrupt-cells = <2>;                 
157           interrupts = <GIC_SPI 116 IRQ_TYPE_L    
158               <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH    
159               <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH    
160                                                   
161           i2c0_pins_a: i2c0-pins {                
162             pins1 {                               
163               pinmux = <MT8135_PIN_100_SDA0__F    
164                 <MT8135_PIN_101_SCL0__FUNC_SCL    
165               bias-disable;                       
166             };                                    
167           };                                      
168                                                   
169           i2c1_pins_a: i2c1-pins {                
170             pins {                                
171               pinmux = <MT8135_PIN_195_SDA1__F    
172                 <MT8135_PIN_196_SCL1__FUNC_SCL    
173               bias-pull-up = <MTK_PUPD_SET_R1R    
174             };                                    
175           };                                      
176                                                   
177           i2c2_pins_a: i2c2-pins {                
178             pins1 {                               
179               pinmux = <MT8135_PIN_193_SDA2__F    
180               bias-pull-down;                     
181             };                                    
182                                                   
183             pins2 {                               
184               pinmux = <MT8135_PIN_49_WATCHDOG    
185               bias-pull-up;                       
186             };                                    
187           };                                      
188                                                   
189           i2c3_pins_a: i2c3-pins {                
190             pins1 {                               
191               pinmux = <MT8135_PIN_40_DAC_CLK_    
192                 <MT8135_PIN_41_DAC_WS__FUNC_GP    
193               bias-pull-up = <MTK_PUPD_SET_R1R    
194             };                                    
195                                                   
196             pins2 {                               
197               pinmux = <MT8135_PIN_35_SCL3__FU    
198                 <MT8135_PIN_36_SDA3__FUNC_SDA3    
199               output-low;                         
200               bias-pull-up = <MTK_PUPD_SET_R1R    
201             };                                    
202                                                   
203             pins3 {                               
204               pinmux = <MT8135_PIN_57_JTCK__FU    
205                 <MT8135_PIN_60_JTDI__FUNC_JTDI    
206               drive-strength = <32>;              
207             };                                    
208           };                                      
209         };                                        
210     };                                            
                                                      

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