dts: stm32f103: add missing dts binding for port G

STM32F103 micros starting from 64-pin (xE) packages upward have
available port G. This patch defines a dts binding for them.

Signed-off-by: Pavel Kral <pavel.kral@omsquare.com>
This commit is contained in:
Pavel Kral 2018-11-09 14:16:04 +01:00 committed by Anas Nashif
commit 86a4967365
2 changed files with 18 additions and 0 deletions

View file

@ -98,6 +98,15 @@
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00000081>;
label = "GPIOF";
};
gpiog: gpio@40012000 {
compatible = "st,stm32-gpio";
gpio-controller;
#gpio-cells = <2>;
reg = <0x40012000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00000101>;
label = "GPIOG";
};
};
timers8: timers@40013400 {

View file

@ -56,6 +56,15 @@
#define CONFIG_GPIO_STM32_GPIOF_CLOCK_BITS ST_STM32_GPIO_40011C00_CLOCK_BITS
#define CONFIG_GPIO_STM32_GPIOF_CLOCK_BUS ST_STM32_GPIO_40011C00_CLOCK_BUS
#define CONFIG_GPIO_STM32_GPIOG_BASE_ADDRESS ST_STM32_GPIO_40012000_BASE_ADDRESS
#define CONFIG_GPIO_STM32_GPIOG_CLOCK_BITS_0 ST_STM32_GPIO_40012000_CLOCK_BITS_0
#define CONFIG_GPIO_STM32_GPIOG_CLOCK_BUS_0 ST_STM32_GPIO_40012000_CLOCK_BUS_0
#define CONFIG_GPIO_STM32_GPIOG_CLOCK_CONTROLLER ST_STM32_GPIO_40012000_CLOCK_CONTROLLER
#define CONFIG_GPIO_STM32_GPIOG_LABEL ST_STM32_GPIO_40012000_LABEL
#define CONFIG_GPIO_STM32_GPIOG_SIZE ST_STM32_GPIO_40012000_SIZE
#define CONFIG_GPIO_STM32_GPIOG_CLOCK_BITS ST_STM32_GPIO_40012000_CLOCK_BITS
#define CONFIG_GPIO_STM32_GPIOG_CLOCK_BUS ST_STM32_GPIO_40012000_CLOCK_BUS
#define CONFIG_UART_STM32_USART_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
#define CONFIG_UART_STM32_USART_1_BAUD_RATE ST_STM32_USART_40013800_CURRENT_SPEED
#define CONFIG_UART_STM32_USART_1_IRQ_PRI ST_STM32_USART_40013800_IRQ_0_PRIORITY