boards: Change dependency for I2C on i.mx rt boards
Changes dependency for I2C so that it's enabled if kscan is enabled.
This is to allow the kscan_ft5336 sample to run.
Note: LVGL has KSCAN as a dependency.
Applies to the mimxrt10{50,60,64}_evk boards.
Signed-off-by: Mark Olsson <mark@markolsson.se>
This commit is contained in:
parent
6b593a51d2
commit
1bb8a42422
@ -21,7 +21,7 @@ config DISK_ACCESS_USDHC1
|
||||
depends on DISK_ACCESS_USDHC
|
||||
|
||||
config I2C
|
||||
default y if LVGL
|
||||
default y if KSCAN
|
||||
|
||||
config I2C_1
|
||||
default y
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
aliases {
|
||||
led0 = &green_led;
|
||||
sw0 = &user_button;
|
||||
kscan0 = &touch_controller;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@ -121,7 +122,7 @@ arduino_serial: &lpuart3 {};
|
||||
int2-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
ft5336@38 {
|
||||
touch_controller: ft5336@38 {
|
||||
compatible = "focaltech,ft5336";
|
||||
reg = <0x38>;
|
||||
label = "FT5336";
|
||||
|
||||
@ -24,3 +24,4 @@ supported:
|
||||
- sdhc
|
||||
- spi
|
||||
- usb_device
|
||||
- kscan:touch
|
||||
|
||||
@ -18,7 +18,7 @@ choice DATA_LOCATION
|
||||
endchoice
|
||||
|
||||
config I2C
|
||||
default y if LVGL
|
||||
default y if KSCAN
|
||||
|
||||
config I2C_1
|
||||
default y
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
aliases {
|
||||
led0 = &green_led;
|
||||
sw0 = &user_button;
|
||||
kscan0 = &touch_controller;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@ -111,7 +112,7 @@ arduino_serial: &lpuart3 {};
|
||||
&lpi2c1 {
|
||||
status = "okay";
|
||||
|
||||
ft5336@38 {
|
||||
touch_controller: ft5336@38 {
|
||||
compatible = "focaltech,ft5336";
|
||||
reg = <0x38>;
|
||||
label = "FT5336";
|
||||
|
||||
@ -22,3 +22,4 @@ supported:
|
||||
- i2c
|
||||
- netif:eth
|
||||
- usb_device
|
||||
- kscan:touch
|
||||
|
||||
@ -17,7 +17,7 @@ choice DATA_LOCATION
|
||||
endchoice
|
||||
|
||||
config I2C
|
||||
default y if LVGL
|
||||
default y if KSCAN
|
||||
|
||||
config I2C_1
|
||||
default y
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
led0 = &green_led;
|
||||
pwm-led0 = &green_pwm_led;
|
||||
sw0 = &user_button;
|
||||
kscan0 = &touch_controller;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@ -120,7 +121,7 @@ arduino_i2c: &lpi2c1 {};
|
||||
};
|
||||
};
|
||||
|
||||
ft5336@38 {
|
||||
touch_controller: ft5336@38 {
|
||||
compatible = "focaltech,ft5336";
|
||||
reg = <0x38>;
|
||||
label = "FT5336";
|
||||
|
||||
@ -24,3 +24,4 @@ supported:
|
||||
- pwm
|
||||
- usb_device
|
||||
- video
|
||||
- kscan:touch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user