| 
6 | 6 | 
 
  | 
7 | 7 | #include <mem.h>  | 
8 | 8 | #include <arm/armv7-m.dtsi>  | 
 | 9 | +#include <dt-bindings/gpio/gpio.h>  | 
 | 10 | +#include <dt-bindings/clock/stm32_clock.h>  | 
9 | 11 | 
 
  | 
10 | 12 | / {  | 
11 | 13 | 	cpus {  | 
 | 
39 | 41 | 			label = "STM32_CLK_RCC";  | 
40 | 42 | 		};  | 
41 | 43 | 
 
  | 
 | 44 | +		pinctrl: pin-controller@50002000 {  | 
 | 45 | +			compatible = "st,stm32-pinmux";  | 
 | 46 | +			reg = <0x50002000 0x9000>;  | 
 | 47 | +			#address-cells = <1>;  | 
 | 48 | +			#size-cells = <1>;  | 
 | 49 | + | 
 | 50 | +			gpioa: gpio@50002000 {  | 
 | 51 | +				compatible = "st,stm32-gpio";  | 
 | 52 | +				reg = <0x50002000 0x400>;  | 
 | 53 | +				gpio-controller;  | 
 | 54 | +				#gpio-cells = <2>;  | 
 | 55 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000001>;  | 
 | 56 | +				label = "GPIOA";  | 
 | 57 | +			};  | 
 | 58 | + | 
 | 59 | +			gpiob: gpio@50003000 {  | 
 | 60 | +				compatible = "st,stm32-gpio";  | 
 | 61 | +				reg = <0x50003000 0x400>;  | 
 | 62 | +				gpio-controller;  | 
 | 63 | +				#gpio-cells = <2>;  | 
 | 64 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000002>;  | 
 | 65 | +				label = "GPIOB";  | 
 | 66 | +			};  | 
 | 67 | + | 
 | 68 | +			gpioc: gpio@50004000 {  | 
 | 69 | +				compatible = "st,stm32-gpio";  | 
 | 70 | +				reg = <0x50004000 0x400>;  | 
 | 71 | +				gpio-controller;  | 
 | 72 | +				#gpio-cells = <2>;  | 
 | 73 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000004>;  | 
 | 74 | +				label = "GPIOC";  | 
 | 75 | +			};  | 
 | 76 | + | 
 | 77 | +			gpiod: gpio@50005000 {  | 
 | 78 | +				compatible = "st,stm32-gpio";  | 
 | 79 | +				reg = <0x50005000 0x400>;  | 
 | 80 | +				gpio-controller;  | 
 | 81 | +				#gpio-cells = <2>;  | 
 | 82 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000008>;  | 
 | 83 | +				label = "GPIOD";  | 
 | 84 | +			};  | 
 | 85 | + | 
 | 86 | +			gpioe: gpio@50006000 {  | 
 | 87 | +				compatible = "st,stm32-gpio";  | 
 | 88 | +				reg = <0x50006000 0x400>;  | 
 | 89 | +				gpio-controller;  | 
 | 90 | +				#gpio-cells = <2>;  | 
 | 91 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000010>;  | 
 | 92 | +				label = "GPIOE";  | 
 | 93 | +			};  | 
 | 94 | + | 
 | 95 | +			gpiof: gpio@50007000 {  | 
 | 96 | +				compatible = "st,stm32-gpio";  | 
 | 97 | +				reg = <0x50007000 0x400>;  | 
 | 98 | +				gpio-controller;  | 
 | 99 | +				#gpio-cells = <2>;  | 
 | 100 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000020>;  | 
 | 101 | +				label = "GPIOF";  | 
 | 102 | +			};  | 
 | 103 | + | 
 | 104 | +			gpiog: gpio@50008000 {  | 
 | 105 | +				compatible = "st,stm32-gpio";  | 
 | 106 | +				reg = <0x50008000 0x400>;  | 
 | 107 | +				gpio-controller;  | 
 | 108 | +				#gpio-cells = <2>;  | 
 | 109 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000040>;  | 
 | 110 | +				label = "GPIOG";  | 
 | 111 | +			};  | 
 | 112 | + | 
 | 113 | +			gpioh: gpio@50009000 {  | 
 | 114 | +				compatible = "st,stm32-gpio";  | 
 | 115 | +				reg = <0x50009000 0x400>;  | 
 | 116 | +				gpio-controller;  | 
 | 117 | +				#gpio-cells = <2>;  | 
 | 118 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000080>;  | 
 | 119 | +				label = "GPIOH";  | 
 | 120 | +			};  | 
 | 121 | + | 
 | 122 | +			gpioi: gpio@5000a000 {  | 
 | 123 | +				compatible = "st,stm32-gpio";  | 
 | 124 | +				reg = <0x5000a000 0x400>;  | 
 | 125 | +				gpio-controller;  | 
 | 126 | +				#gpio-cells = <2>;  | 
 | 127 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000100>;  | 
 | 128 | +				label = "GPIOI";  | 
 | 129 | +			};  | 
 | 130 | + | 
 | 131 | +			gpioj: gpio@5000b000 {  | 
 | 132 | +				compatible = "st,stm32-gpio";  | 
 | 133 | +				reg = <0x5000b000 0x400>;  | 
 | 134 | +				gpio-controller;  | 
 | 135 | +				#gpio-cells = <2>;  | 
 | 136 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000200>;  | 
 | 137 | +				label = "GPIOJ";  | 
 | 138 | +			};  | 
 | 139 | + | 
 | 140 | +			gpiok: gpio@5000c000 {  | 
 | 141 | +				compatible = "st,stm32-gpio";  | 
 | 142 | +				reg = <0x5000c000 0x400>;  | 
 | 143 | +				gpio-controller;  | 
 | 144 | +				#gpio-cells = <2>;  | 
 | 145 | +				clocks = <&rcc STM32_CLOCK_BUS_AHB4 0x00000400>;  | 
 | 146 | +				label = "GPIOK";  | 
 | 147 | +			};  | 
 | 148 | +		};  | 
42 | 149 | 	};  | 
43 | 150 | };  | 
44 | 151 | 
 
  | 
 | 
0 commit comments