Created
January 24, 2022 23:49
-
-
Save paoloturim/fc80f146fa681116fd24aad19c450287 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2018 Technexion Ltd. | |
* | |
* Author: Tapani Utriainen <tapani@technexion.com> | |
* Richard Hu <richard.hu@technexion.com> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
* | |
*/ | |
#include "tnmacro.h" | |
/ { | |
sound { | |
compatible = "fsl,imx-sgtl5000", | |
"fsl,imx-audio-sgtl5000"; | |
model = "audio-sgtl5000"; | |
ssi-controller = <&PICO_AUDA_I2S_CHANNEL>; | |
audio-codec = <&codec>; | |
audio-routing = | |
"MIC_IN", "Mic Jack", | |
"Mic Jack", "Mic Bias", | |
"Headphone Jack", "HP_OUT"; | |
#if defined(PICO_AUDA_MUX_INT) && defined(PICO_AUDA_MUX_EXT) | |
mux-int-port = <PICO_AUDA_MUX_INT>; | |
mux-ext-port = <PICO_AUDA_MUX_EXT>; | |
#else | |
fsl,no-audmux = "true"; | |
#endif | |
}; | |
gpio-leds { | |
compatible = "gpio-leds"; | |
led { | |
label = "gpio-led"; | |
gpios = <&PICO_EXT_GPIO_P25 GPIO_ACTIVE_HIGH>; /* PICO_P25 */ | |
}; | |
}; | |
clocks { | |
codec_osc: aud_mclk { | |
compatible = "fixed-clock"; | |
#clock-cells = <0>; | |
clock-frequency = <24576000>; | |
}; | |
}; | |
}; | |
PICO_PI_GPIO_DEFS(); | |
&PICO_I2CA { | |
status = "okay"; | |
codec: sgtl5000@a { | |
compatible = "fsl,sgtl5000"; | |
reg = <0x0a>; | |
clocks = <&codec_osc>; | |
VDDA-supply = <®_2p5v>; | |
VDDIO-supply = <®_3p3v>; | |
}; | |
bno055@28 { | |
compatible = "bno,bno055"; | |
reg = <0x28>; | |
status = "okay"; | |
}; | |
bmp388@76 { | |
compatible = "bosch,bmp380"; | |
reg = <0x76>; | |
status = "okay"; | |
}; | |
bme680@77 { | |
compatible = "bme,bme680"; | |
reg = <0x77>; | |
status = "okay"; | |
}; | |
}; | |
&PICO_I2CB { | |
polytouch: edt-ft5x06@38 { | |
compatible = "edt,edt-ft5x06"; | |
reg = <0x38>; | |
interrupt-parent = <&GPIO_BANK(PICO_EXT_GPIO_P44)>; /* PICO_P44 */ | |
interrupts = <GPIO_NO(PICO_EXT_GPIO_P44) 0>; | |
reset-gpios = <&PICO_EXT_GPIO_P32 GPIO_ACTIVE_LOW>; /* PICO_P32 */ | |
touchscreen-size-x = <800>; | |
touchscreen-size-y = <480>; | |
}; | |
}; | |
&PICO_I2CC { | |
status = "okay"; | |
}; | |
&PICO_CANA { | |
status = "okay"; | |
}; | |
&PICO_CANB { | |
status = "okay"; | |
}; | |
&PICO_SPIA { | |
status = "okay"; | |
spidev@0 { | |
compatible = "rohm,dh2228fv"; | |
spi-max-frequency = <60000000>; | |
reg = <0>; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment