boards: faze: add pin control nodes to faze board
add pin control definitions and nodes to faze board, which uses an LPC11u67 SOC. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
1916fb21dd
commit
be7c9a99b2
66
boards/arm/faze/faze-pinctrl.dtsi
Normal file
66
boards/arm/faze/faze-pinctrl.dtsi
Normal file
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright 2022 NXP
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <dt-bindings/pinctrl/lpc11u6x-pinctrl.h>
|
||||
|
||||
&pinctrl {
|
||||
uart0_default: uart0_default {
|
||||
group0 {
|
||||
pinmux = <U0_RXD_PIO0_18>,
|
||||
<U0_TXD_PIO0_19>;
|
||||
nxp,disable-analog-filter;
|
||||
};
|
||||
};
|
||||
|
||||
i2c0_default: i2c0_default {
|
||||
group0 {
|
||||
pinmux = <I2C0_SCL_PIO0_4>,
|
||||
<I2C0_SDA_PIO0_5>;
|
||||
nxp,i2c-mode;
|
||||
nxp,i2c-filter = "slow";
|
||||
nxp,disable-analog-filter;
|
||||
};
|
||||
};
|
||||
|
||||
i2c0_fast: i2c0_fast {
|
||||
group0 {
|
||||
pinmux = <I2C0_SCL_PIO0_4>,
|
||||
<I2C0_SDA_PIO0_5>;
|
||||
nxp,i2c-mode;
|
||||
nxp,i2c-filter = "fast";
|
||||
nxp,disable-analog-filter;
|
||||
};
|
||||
};
|
||||
|
||||
i2c1_default: i2c1_default {
|
||||
group0 {
|
||||
pinmux = <I2C1_SCL_PIO0_7>,
|
||||
<I2C1_SDA_PIO1_24>;
|
||||
drive-open-drain;
|
||||
nxp,i2c-mode;
|
||||
nxp,i2c-filter = "slow";
|
||||
nxp,disable-analog-filter;
|
||||
};
|
||||
};
|
||||
|
||||
i2c1_fast: i2c1_fast {
|
||||
group0 {
|
||||
pinmux = <I2C1_SCL_PIO0_7>,
|
||||
<I2C1_SDA_PIO1_24>;
|
||||
drive-open-drain;
|
||||
nxp,i2c-mode;
|
||||
nxp,i2c-filter = "fast";
|
||||
nxp,disable-analog-filter;
|
||||
};
|
||||
};
|
||||
|
||||
syscon_default: syscon_default {
|
||||
group0 {
|
||||
pinmux = <XTALOUT_PIO2_1>,
|
||||
<XTALIN_PIO2_0>;
|
||||
nxp,analog-mode;
|
||||
};
|
||||
};
|
||||
};
|
|
@ -7,9 +7,10 @@
|
|||
/dts-v1/;
|
||||
|
||||
#include <nxp/nxp_lpc11u67.dtsi>
|
||||
#include <zephyr/dt-bindings/pinctrl/lpc11u6x-pinctrl.h>
|
||||
#include <zephyr/dt-bindings/led/led.h>
|
||||
|
||||
#include "faze-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Seagate FireCuda Gaming SSD (FaZe)";
|
||||
compatible = "faze", "seagate,faze";
|
||||
|
@ -52,6 +53,8 @@
|
|||
&uart0 {
|
||||
pinmuxs = <&pinmux0 18 IOCON_FUNC1>, <&pinmux0 19 IOCON_FUNC1>;
|
||||
pinmux-names = "RXD", "TXD";
|
||||
pinctrl-0 = <&uart0_default>;
|
||||
pinctrl-names = "default";
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -60,6 +63,9 @@
|
|||
pinmuxs = <&pinmux0 4 IOCON_FUNC1>,
|
||||
<&pinmux0 5 IOCON_FUNC1>;
|
||||
pinmux-names = "SCL", "SDA";
|
||||
pinctrl-0 = <&i2c0_default>;
|
||||
pinctrl-1 = <&i2c0_fast>;
|
||||
pinctrl-names = "default", "fast-plus";
|
||||
status = "okay";
|
||||
|
||||
asm2364: asm2364@30 {
|
||||
|
@ -73,6 +79,9 @@
|
|||
pinmuxs = <&pinmux0 7 (IOCON_FUNC3| IOCON_OPENDRAIN_EN)>,
|
||||
<&pinmux1 24 (IOCON_FUNC2 | IOCON_OPENDRAIN_EN)>;
|
||||
pinmux-names = "SCL", "SDA";
|
||||
pinctrl-0 = <&i2c1_default>;
|
||||
pinctrl-1 = <&i2c1_fast>;
|
||||
pinctrl-names = "default", "fast-plus";
|
||||
status = "okay";
|
||||
|
||||
/* TI LP5030 LED controller connected to I2C1. */
|
||||
|
@ -132,6 +141,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
&syscon {
|
||||
pinctrl-0 = <&syscon_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue