correction bug sur dts et autres recettes

This commit is contained in:
2023-01-27 17:38:39 +00:00
parent 6a0a24d766
commit cf419902d8
5 changed files with 6682 additions and 49 deletions
+4 -8
View File
@@ -99,14 +99,12 @@ do_compile:append:k3r5 () {
}
do_install:append () {
if [ -n "${UBOOT_CONFIG}" ]
then
if [ -n "${UBOOT_CONFIG}" ]; then
for config in ${UBOOT_MACHINE}; do
i=$(expr $i + 1);
for type in ${UBOOT_CONFIG}; do
j=$(expr $j + 1);
if [ $j -eq $i ]
then
if [ $j -eq $i ]; then
if [ "x${SPL_UART_BINARY}" != "x" ]; then
install ${B}/${config}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type}
ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type}
@@ -162,14 +160,12 @@ do_install:append () {
}
do_deploy:append () {
if [ -n "${UBOOT_CONFIG}" ]
then
if [ -n "${UBOOT_CONFIG}" ]; then
for config in ${UBOOT_MACHINE}; do
i=$(expr $i + 1);
for type in ${UBOOT_CONFIG}; do
j=$(expr $j + 1);
if [ $j -eq $i ]
then
if [ $j -eq $i ]; then
cd ${DEPLOYDIR}
if [ "x${SPL_UART_BINARY}" != "x" ]; then
install ${B}/${config}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE}-${type}
+67 -23
View File
@@ -70,9 +70,22 @@
spi0_pins: pinmux_spi0_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_OUTPUT, MUX_MODE0)
AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT, MUX_MODE0) /* spi0_d0_mosi */
AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE0) /* spi0_d1_miso */
AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT, MUX_MODE0)
AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT, MUX_MODE0) /* spi0_d0_mosi, external pullup */
AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT, MUX_MODE0) /* spi0_d1_miso */
AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT, MUX_MODE0) /* external pullup */
>;
};
//AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_OUTPUT_PULLUP, MUX_MODE0)
//AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT, MUX_MODE0) /* spi0_d0_mosi */
//AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT, MUX_MODE0)
spi1_pins: pinmux_spi1_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKR, PIN_OUTPUT, MUX_MODE3) /* mcasp0_ahclkr, spi1_cs0 */
AM33XX_PADCONF(AM335X_PIN_MCASP0_FSX, PIN_OUTPUT, MUX_MODE3) /* mcasp0_fsx, spi1_d0_mosi */
AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR0, PIN_INPUT, MUX_MODE3) /* mcasp0_axr0, spi1_d1_miso */
AM33XX_PADCONF(AM335X_PIN_ECAP0_IN_PWM0_OUT, PIN_INPUT, MUX_MODE4) /* ecap0_in_pwm0_out, spi1_sclk */
>;
};
@@ -83,14 +96,14 @@
>;
};
uart1_pins: pinmux_uart1_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0)
AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
>;
};
//uart1_pins: pinmux_uart1_pins {
// pinctrl-single,pins = <
// AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0)
// AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
// AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
// AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
// >;
//};
clkout1_pin: pinmux_clkout1_pin {
pinctrl-single,pins = <
@@ -276,12 +289,12 @@
status = "okay";
};
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
status = "okay";
};
//&uart1 {
// pinctrl-names = "default";
// pinctrl-0 = <&uart1_pins>;
//
// status = "disabled";
//};
&i2c0 {
pinctrl-names = "default";
@@ -306,30 +319,61 @@
};
&usb0_phy {
status = "okay";
status = "disabled";
};
&usb1_phy {
status = "okay";
status = "disabled";
};
&usb0 {
status = "okay";
status = "disabled";
//dr_mode = "peripheral";
//interrupts-extended = <&intc 18 &tps 0>;
//interrupt-names = "mc", "vbus";
};
&usb1 {
status = "okay";
status = "disabled";
dr_mode = "host";
};
&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
cs-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; /* SPI0_CS0 */
status = "okay";
ti,pindir-do-out-d1-in;
/*
spidev@0 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <5000000>;
reg = <1>;
};
slb9670@1 {
// number of cells required to define a chip select address on the SPI bus.
#address-cells = <1>;
// should be zero
#size-cells = <0>;
// name of SPI bus controller following generic names recommended practice
compatible = "infineon,slb9670";
spi-max-frequency = <32000000>;
reg = <0>;
num-cs = <1>;
//gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
status = "okay";
};
*/
};
&spi1 {
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins>;
cs-gpios = <&gpio3 17 GPIO_ACTIVE_LOW>; /* SPI1_CS0 */
status = "okay";
ti,pindir-do-out-d1-in;
slb9670@0 {
// number of cells required to define a chip select address on the SPI bus.
#address-cells = <1>;
@@ -337,7 +381,7 @@
#size-cells = <0>;
// name of SPI bus controller following generic names recommended practice
compatible = "infineon,slb9670";
spi-max-frequency = <500000>;
spi-max-frequency = <32000000>;
reg = <0>;
};
};
File diff suppressed because it is too large Load Diff
@@ -4,11 +4,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += " \
file://0001-dtc-lexer-extern-yylloc.patch \
file://configs/pengwyn_defconfig \
file://defconfig \
"
KCONFIG_MODE = "pengwyn_defconfig"
#
#do_configure:append() {
# cp ${WORKDIR}/am335x-pengwyn.dts ${S}/arch/arm/boot/dts/
#}
+5 -10
View File
@@ -16,8 +16,7 @@ DTSI_LIST:append:k2l = " k2l-uio.dtsi"
DTSI_LIST:append:k2e = " k2e-uio.dtsi"
do_setup_uio() {
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
then
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]; then
for dtsi in ${DTSI_LIST}
do
cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
@@ -32,8 +31,7 @@ do_setup_uio() {
do_setup_uio:append:dra7xx() {
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
then
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]; then
dtsi="am57xx-pru-uio.dtsi"
cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
@@ -55,8 +53,7 @@ do_setup_uio:append:dra7xx() {
do_setup_uio:append:ti33x() {
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
then
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]; then
dts="am335x-icev2-pru-excl-uio.dts"
dtsi="am335x-pru-uio.dtsi"
cp ${S}/arch/arm/boot/dts/am335x-icev2-prueth.dts ${S}/arch/arm/boot/dts/$dts
@@ -67,8 +64,7 @@ do_setup_uio:append:ti33x() {
do_setup_uio:append:ti43x() {
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
then
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]; then
dts="am437x-idk-pru-excl-uio.dts"
dtsi="am437x-pru-uio.dtsi"
cp ${S}/arch/arm/boot/dts/am437x-idk-evm.dts ${S}/arch/arm/boot/dts/$dts
@@ -79,8 +75,7 @@ do_setup_uio:append:ti43x() {
do_setup_uio:append:k2g() {
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
then
if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]; then
dts="keystone-k2g-ice-pru-excl-uio.dts"
dtsi="keystone-k2g-pru-uio.dtsi"
cp ${S}/arch/arm/boot/dts/keystone-k2g-ice.dts ${S}/arch/arm/boot/dts/$dts