Skip to content

Commit

Permalink
boards: arm: mec15xxevb_assy6853: Enable TACH driver
Browse files Browse the repository at this point in the history
Enables the tachometer driver for microchip evaluation board
mec15xxevb_assy6853.

Signed-off-by: Francisco Munoz <[email protected]>
  • Loading branch information
franciscomunoz authored and MaureenHelm committed Mar 13, 2020
1 parent 7357ae9 commit e11da05
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions boards/arm/mec15xxevb_assy6853/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ endif # SPI_XEC_QMSPI

endif # SPI

config TACH_XEC
default y
depends on SENSOR

# power management stuff
if SYS_POWER_MANAGEMENT

Expand Down
3 changes: 3 additions & 0 deletions boards/arm/mec15xxevb_assy6853/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ features:
+-----------+------------+-------------------------------------+
| KSCAN | on-chip | kscan |
+-----------+------------+-------------------------------------+
| TACH | on-chip | tachometer |
+-----------+------------+-------------------------------------+




Expand Down
4 changes: 4 additions & 0 deletions boards/arm/mec15xxevb_assy6853/mec15xxevb_assy6853.dts
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,7 @@
chip_select = <0>;
lines = <1>;
};

&tach0 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CONFIG_GPIO=y
CONFIG_PS2=y
CONFIG_ADC=y
CONFIG_PWM=y

CONFIG_SENSOR=y
CONFIG_I2C=y
CONFIG_I2C_INIT_PRIORITY=60
CONFIG_ESPI=y
Expand Down
8 changes: 8 additions & 0 deletions boards/arm/mec15xxevb_assy6853/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,14 @@ static int board_pinmux_init(struct device *dev)
* TEST_CLK_OUT is the PLL 48MHz conditioned output.
*/
pinmux_pin_set(portb, MCHP_GPIO_060, MCHP_GPIO_CTRL_MUX_F2);
#endif

#ifdef CONFIG_TACH_XEC

#if defined(DT_INST_0_MICROCHIP_XEC_TACH)
pinmux_pin_set(portb, MCHP_GPIO_050, MCHP_GPIO_CTRL_MUX_F1);
#endif /* CONFIG_TACH_XEC */

#endif

return 0;
Expand Down

0 comments on commit e11da05

Please sign in to comment.