boards: arm: frdm_k22f: Add pinctrl dts properties
Add pinctrl-0 properties for configuration of peripherals like UARTs, I2C, SPI, FTMs, etc. These settings are based on what is defined in the board/pinmux.c file. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
9901871736
commit
dcb2211fc1
1 changed files with 17 additions and 0 deletions
|
@ -124,6 +124,7 @@
|
|||
};
|
||||
arduino_i2c: &i2c0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&I2C0_SCL_PTB2 &I2C0_SDA_PTB3>;
|
||||
|
||||
fxos8700@1c {
|
||||
compatible = "nxp,fxos8700";
|
||||
|
@ -134,19 +135,35 @@ arduino_i2c: &i2c0 {
|
|||
};
|
||||
};
|
||||
|
||||
&I2C0_SCL_PTB2 {
|
||||
drive-open-drain;
|
||||
};
|
||||
|
||||
&I2C0_SDA_PTB3 {
|
||||
drive-open-drain;
|
||||
};
|
||||
|
||||
arduino_spi: &spi0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&SPI0_PCS4_PTC0 &SPI0_SCK_PTD1
|
||||
&SPI0_SOUT_PTD2 &SPI0_SIN_PTD3>;
|
||||
};
|
||||
|
||||
&ftm0 {
|
||||
status = "okay";
|
||||
compatible = "nxp,kinetis-ftm-pwm";
|
||||
#pwm-cells = <3>;
|
||||
pinctrl-0 = <&FTM0_CH6_PTA1 &FTM0_CH7_PTA2 &FTM0_CH5_PTD5>;
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
pinctrl-0 = <&UART1_RX_PTE1 &UART1_TX_PTE0>;
|
||||
};
|
||||
|
||||
&uart2 {
|
||||
pinctrl-0 = <&UART2_RX_PTD2 &UART2_TX_PTD3>;
|
||||
};
|
||||
|
||||
&usbotg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue