dts-bindings: pinctrl: renesas_ra: enabled config of i/o ports 4-7
The RA_PINCFG macro is used to generate a value that can be written directly to the pin function select register. In addition to the pin function this value also contains port and pin number information, located in bit fields that are unused by the register. The bit field used to store the port information consists of 3-bits. However, a typo in the mask definition limited the field to two bits meaning only ports 0-3 could be configured. This patch resolves the issue, allowing ports 0-7 to be configured. If the port is greater than 7 another field (port4) is used to store an additional bit (allowing an additional 8 ports to be supported). However, use of this field has not yet been implemented. Signed-off-by: Ian Morris <ian.d.morris@outlook.com>
This commit is contained in:
parent
34f39800cf
commit
b1a15718aa
2 changed files with 4 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
|||
#define PSEL_POS 24
|
||||
#define PSEL_MASK 0x5
|
||||
#define PORT_POS 21
|
||||
#define PORT_MASK 0x3
|
||||
#define PORT_MASK 0x7
|
||||
#define PIN_POS 17
|
||||
#define PIN_MASK 0xF
|
||||
#define OPT_POS 0
|
||||
|
|
|
@ -56,7 +56,8 @@ struct pinctrl_ra_pin {
|
|||
uint8_t pin: 4;
|
||||
uint8_t port: 3;
|
||||
uint32_t UNUSED24: 5;
|
||||
uint8_t port4: 3;
|
||||
uint8_t port4: 1;
|
||||
uint32_t UNUSED30: 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -90,4 +91,4 @@ extern int pinctrl_ra_query_config(uint32_t port, uint32_t pin,
|
|||
Z_PINCTRL_STATE_PIN_INIT) \
|
||||
}
|
||||
|
||||
#endif /* ZEPHYR_SOC_ARM_RENESAS_RA_RA6E1_PINCTRL_SOC_H_ */
|
||||
#endif /* ZEPHYR_SOC_ARM_RENESAS_RA_COMMON_RA_PINCTRL_SOC_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue