MAYA-W1 device tree setting ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MAYA-W1 device tree setting ?

1,192件の閲覧回数
Da_123456_DA
Contributor II

Hello,

I have connected MAYA-W1 to my device using SDIO

but I think something is missing in my device tree, because I see in the dmesg this messge:

"mmc1: SDHCI controller on b0000000.sdio-host [b0000000.sdio-host] using ADMA"

while in the PDF it said I need to see it as :

"mmc1: new ultra high speed DDR50 SDIO card at address 0001"

 

up until now the sdio was for sdcard

this is the device tree setting:

"

 

sdmmc1: sdio-host@b0000000 {
bus-width = <4>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sdmmc1_default>;
status = "okay";
};
 
 
pinctrl_sdmmc1_default: sdmmc1_default {
cmd_data {
pinmux = <PIN_PA28__SDMMC1_CMD>,
<PIN_PA18__SDMMC1_DAT0>,
<PIN_PA19__SDMMC1_DAT1>,
<PIN_PA20__SDMMC1_DAT2>,
<PIN_PA21__SDMMC1_DAT3>;
bias-disable;
};

conf-ck_cd {
pinmux = <PIN_PA22__SDMMC1_CK>,
<PIN_PA30__SDMMC1_CD>;
bias-disable;
};
"

what is missing \ need to add in order to see the device correct?

I have install the drivers \ bin file like it said in the PDF - but still nothing so this is why I think it's something in the device tree setting

 

Thanks ,

 

0 件の賞賛
返信
8 返答(返信)

1,051件の閲覧回数
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @Da_123456_DA 

 

We defend pinctrl_usdhc2_200mhz and pinctrl_usdhc2_100mhz for sdio high-speed mode, you should follow the reference manual to defined pad ctrl register. like below:

pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
fsl,pins = <
MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194
MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4
MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4
MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4
MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4
MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4
MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
>;
};
 
pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
fsl,pins = <
MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196
MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6
MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6
MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6
MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6
MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6
MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
>;
};

 

 

Best Regards

Shaun

0 件の賞賛
返信

1,050件の閲覧回数
Da_123456_DA
Contributor II

I need to see how to I define this on Microchip device using Linux4sam

because the pins are not the same , and it's confusing

I have ask then also

but now I can refer them to this setting, and see how I can "copy" according to what is needed

Thanks,

0 件の賞賛
返信

1,162件の閲覧回数
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @Da_123456_DA 

 

I guess you are not using i.MX platform, you should firstly check if host support 1.8V. high speed sdio only works on 1.8V

 

I also attach i.MX platform sdio configuration to you:

&usdhc2 {
        assigned-clocks = <&clk IMX8MM_CLK_USDHC2>;
        assigned-clock-rates = <200000000>;
        pinctrl-names = "default", "state_100mhz", "state_200mhz";
        pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
        pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
        pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
        cd-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
        bus-width = <4>;
        vmmc-supply = <&reg_usdhc2_vmmc>;
        status = "okay";
};

 

Best Regards

Shaun

 

0 件の賞賛
返信

1,156件の閲覧回数
Da_123456_DA
Contributor II

I'm using Microchip SOM SAMA5D27

if I enter a SD card - it's working , and I have check the power is 1.8V

 

how can I marge between the information you send me about the device tree configuration and my own configuration ?

I can't understand what I need to change in my file

 

can you help me with this ?

 

Thanks ,

 

0 件の賞賛
返信

1,147件の閲覧回数
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @Da_123456_DA 

 

About dts configuration, I recommend you contact microchip support. For Wi-Fi side, if you want our Wi-Fi module works on high-speed mode, just make sure sdio interfaces works at 1.8V.

 

Best Regards

Shaun

0 件の賞賛
返信

1,144件の閲覧回数
Da_123456_DA
Contributor II

Can you maybe explain what every pins mean - and then I will try to see what this pins mean in Microchip?

I know the MMC DATA pins are:

<PIN_PA18__SDMMC1_DAT0>,
<PIN_PA19__SDMMC1_DAT1>,
<PIN_PA20__SDMMC1_DAT2>,
<PIN_PA21__SDMMC1_DAT3>;

 

the clock and CD are :

<PIN_PA22__SDMMC1_CK>,
<PIN_PA30__SDMMC1_CD>;

 

 

the mmc pins are :

bus-width = <4>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sdmmc1_default>;
status = "okay";

 

so how can I compare it to you device tree setting ?

I have found this :

{
model = "Microchip SAMA5D27 SOM with WLAN MAYA-W1";

/* Define GPIO controller node */
pinctrl {
/* Define pin configurations for WLAN MAYA-W1 */
wilc_sdio_pins: wilc-sdio-pins {
/* Replace these GPIO pins with the correct ones for the SAMA5D27 SOM */
compatible = "atmel,sama5d27-pinctrl";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>;
};
};

/* Define WLAN MAYA-W1 SDIO controller node */
mmc1: sdio-host@b0000000 {
compatible = "atmel,sama5d27-mci";
reg = <0xb0000000 0x1000>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH >;
interrupt-parent = <&pioA>;
status = "okay";
};

 

/* Define WLAN MAYA-W1 device node */
wifi: wifi@0 {
compatible = "microchip,wilc1000", "microchip,wilc3000", "atmel,wilc_sdio";
reg = <0>;
/* Replace these GPIO pins with the correct ones for the SAMA5D27 SOM */
reset-gpios = <&pioA PIN_PC14 GPIO_ACTIVE_HIGH>; /* GPIO pin PC14 */
chip_en-gpios = <&pioA PIN_PC10 GPIO_ACTIVE_HIGH>; /* GPIO pin PC10 */
interrupt-parent = <&pioA>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH 7>; /* Example: GPIO pin A2 */
status = "okay";
};
};

 

but I can't understand how to use your setting with this setting .

 

can you guide\help?

 

Thanks ,

0 件の賞賛
返信

1,129件の閲覧回数
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @Da_123456_DA 

 

I'm not very familiar with microchip product. So, I just share my idea to you. 

Following parameter is used to decided sdio speed.

pinctrl-0 = <&pinctrl_sdmmc1_default>;

According to my experience, default is 50M, in i.MX we also defined 100M and 200M. So that Wi-Fi card can work in high-speed mode.

But before that, please make sure host sdio interface pins support high-speed mode. And sdio works under 1.8V.

You could share full dts file to us then I can have a look.

 

Best Regards

Shaun

タグ(1)
0 件の賞賛
返信

1,113件の閲覧回数
Da_123456_DA
Contributor II

this is my device_tree (there are many pins not in use - so don't be afraid to tell me to change them )

 

Thanks ,

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27-SOM1-EK board
*
* Copyright (c) 2017, Microchip Technology Inc.
* 2016 Nicolas Ferre <nicolas.ferre@atmel.com>
* 2017 Cristian Birsan <cristian.birsan@microchip.com>
* 2017 Claudiu Beznea <claudiu.beznea@microchip.com>
*/
/dts-v1/;
#include "at91-sama5d27_som1.dtsi"
#include <dt-bindings/mfd/atmel-flexcom.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
model = "Atmel SAMA5D27 SOM1 EK";
compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";

aliases {
serial0 = &uart1; /* DBGU */
serial1 = &uart4; /* mikro BUS 1 */
serial2 = &uart2; /* mikro BUS 2 */
serial3 = &uart0;
i2c1 = &i2c1;
i2c2 = &i2c2;
i2c3 = &i2c5;
};

chosen {
stdout-path = "serial0:115200n8";
};

ahb {
usb0: gadget@300000 {
atmel,vbus-gpio = <&pioA PIN_PD26 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usba_vbus>;
status = "okay";
};

usb2: ehci@500000 {
status = "okay";
};

sdmmc0: sdio-host@a0000000 {
bus-width = <8>;
mmc-ddr-3_3v;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sdmmc0_default>;
status = "okay";
};
 

sdmmc1: sdio-host@b0000000 {
bus-width = <4>;
// mmc-ddr-3_3v;
// no-1-8-v;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sdmmc1_default>;
// support-sdio;
 
status = "okay";
};


//};

apb {
//isc: isc@f0008000 {
// pinctrl-names = "default";
// pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>;/* Conflict with TIOA4. */
// status = "disabled";
//};

qspi1: spi@f0024000 {
status = "okay";
};

spi0: spi@f8000000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi0_default>;
status = "disabled";
};

macb0: ethernet@f8008000 { // there is no ethernet on CUn
status = "disabled";
};
 
tcb0: timer@f800c000 {
tcb0_pwm0: timer@0 {
compatible = "atmel,tcb-timer";
reg = <0>;
};

tcb0_pwm1: pwm@1 {
compatible = "atmel,tcb-pwm";
#pwm-cells = <3>;
reg = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tcb0_tioa1>;
};
 
tcb0_pwm2: pwm@2 {
compatible = "atmel,tcb-pwm";
#pwm-cells = <3>;
reg = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tcb0_tioa2>;
};
};
 
tcb1: timer@f8010000 {
tcb1_pwm0: pwm@0 {
compatible = "atmel,tcb-pwm";
#pwm-cells = <3>;
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tcb1_tioa3>;
};
 
/*tcb1_pwm1: pwm@1 {
compatible = "atmel,tcb-pwm";
#pwm-cells = <3>;
reg = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tcb1_tioa4>;
};*/ /*uncomment when new generation arrives*/
 
/*tcb1_pwm2: pwm@2 {
compatible = "atmel,tcb-pwm";
#pwm-cells = <3>;
reg = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tcb1_tiob5>;
};*/ /*uncomment when new generation arrives*/

tcb1_pwm1: timer@1 {
compatible = "atmel,tcb-timer";
reg = <1>;
};
 
tcb1_pwm2: timer@2 {
compatible = "atmel,tcb-timer";
reg = <2>;
};
 
};

uart0: serial@f801c000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart0_default>;
status = "okay";
};

 
uart1: serial@f8020000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1_default>;
atmel,use-dma-rx;
atmel,use-dma-tx;
status = "okay";
};

uart2: serial@f8024000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mikrobus2_uart>;
atmel,use-dma-rx;
atmel,use-dma-tx;
status = "disabled";
};

pwm0: pwm@f802c000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mikrobus1_pwm>;
status = "disabled"; /* Conflict with leds. */
};

flx0: flexcom@f8034000 {
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
status = "okay";

i2c2: i2c@600 {
compatible = "atmel,sama5d2-i2c";
reg = <0x600 0x200>;
dmas = <0>, <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flx0_default>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
};

shdwc@f8048010 {
debounce-delay-us = <976>;
atmel,wakeup-rtc-timer;

input@0 {
reg = <0>;
};
};

watchdog@f8048040 {
status = "okay";
};

uart3: serial@fc008000 {
atmel,use-dma-rx;
atmel,use-dma-tx;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3_default>;
status = "disabled"; /* Conflict with isc. */
};

uart4: serial@fc00c000 {
atmel,use-dma-rx;
atmel,use-dma-tx;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mikrobus1_uart>;
status = "okay";
};

flx3: flexcom@fc014000 {
 
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
status = "okay";
 
i2c5: i2c@600 {
compatible = "atmel,sama5d2-i2c";
reg = <0x600 0x200>;
dmas = <0>, <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flx3_default>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

};

flx4: flexcom@fc018000 {
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
status = "okay";

uart9: serial@200 {
dmas = <0>, <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flx4_default>;
status = "disabled"; /* Conflict with spi6 and i2c6. */
};

spi6: spi@400 {
dmas = <0>, <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mikrobus_spi &pinctrl_mikrobus1_spi_cs &pinctrl_mikrobus2_spi_cs>;
status = "okay"; /* Conflict with uart5 and i2c6. */
};

i2c6: i2c@600 {
dmas = <0>, <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flx4_default>;
status = "disabled"; /* Conflict with uart5 and spi6. */
};
};

i2c1: i2c@fc028000 {
dmas = <0>, <0>;
i2c-analog-filter;
i2c-digital-filter;
i2c-digital-filter-width-ns = <35>;
pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_i2c1_default>;
pinctrl-1 = <&pinctrl_i2c1_gpio>;
/* for EV-board*/
/*
sda-gpios = <&pioA PIN_PD4 GPIO_ACTIVE_HIGH>;
scl-gpios = <&pioA PIN_PD5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
*/
/* for electreon board*/
sda-gpios = <&pioA PIN_PC6 GPIO_ACTIVE_LOW>;
scl-gpios = <&pioA PIN_PC7 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
 
status = "okay";
};

adc: adc@fc030000 {
vddana-supply = <&vddana>;
vref-supply = <&advref>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_BIT_ADC &pinctrl_RCV1_4_TEMP_ADC &pinctrl_RCV5_TEMP_RX_CS_ADC>;

status = "disabled";
};

pinctrl@fc038000 {

pinctrl_can1_default: can1_default {
pinmux = <PIN_PC26__CANTX1>,
<PIN_PC27__CANRX1>;
bias-disable;
};
 
pinctrl_can0_default: can0_default {
pinmux = <PIN_PC1__CANTX0>,
<PIN_PC2__CANRX0>;
bias-disable;
};

pinctrl_flx0_default: flx0_default {
pinmux = <PIN_PB29__FLEXCOM0_IO1>,
<PIN_PB28__FLEXCOM0_IO0>;
bias-disable;
};

pinctrl_flx3_default: flx3_default {
pinmux = <PIN_PB23__FLEXCOM3_IO0>,
<PIN_PB22__FLEXCOM3_IO1>;
bias-disable;
};

pinctrl_i2c1_default: i2c1_default {
pinmux = /*<PIN_PD4__TWD1>,
<PIN_PD5__TWCK1>;*/
/*for electreon board*/
<PIN_PC6__TWD1>,
<PIN_PC7__TWCK1>;
 
bias-disable;
};

pinctrl_i2c1_gpio: i2c1_gpio {
pinmux = /*<PIN_PD4__GPIO>,
<PIN_PD5__GPIO>;*/
/*for electreon board*/
<PIN_PC6__GPIO>,
<PIN_PC7__GPIO>;
bias-disable;
};


pinctrl_isc_base: isc_base {
pinmux = <PIN_PC21__ISC_PCK>,
<PIN_PC22__ISC_VSYNC>,
<PIN_PC23__ISC_HSYNC>,
<PIN_PC24__ISC_MCK>;
bias-disable;
};

pinctrl_isc_data_8bit: isc_data_8bit {
pinmux = <PIN_PC20__ISC_D11>,
<PIN_PC19__ISC_D10>,
<PIN_PC17__ISC_D8>,
<PIN_PC16__ISC_D7>,
<PIN_PC15__ISC_D6>,
<PIN_PC14__ISC_D5>,
<PIN_PC13__ISC_D4>;
bias-disable;
};

pinctrl_isc_data_9_10: isc_data_9_10 {
pinmux = <PIN_PC12__ISC_D3>,
<PIN_PC11__ISC_D2>;
bias-disable;
};

// this is enabled only because we need PC9 as input
pinctrl_isc_data_11_12: isc_data_11_12 {
pinmux = <PIN_PC10__ISC_D1>,
<PIN_PC9__ISC_D0>;
bias-disable;
};
 
pinctrl_pck0: pck-0 {
pinmux = <PIN_PC8__PCK0>;
bias-disable;
};

pinctrl_electreon_inputs_default: electreon_inputs_default {
pinmux = <PIN_PD5__GPIO>,
<PIN_PD6__GPIO>,
<PIN_PD7__GPIO>,
<PIN_PD8__GPIO>,
<PIN_PD4__GPIO>,
/*<PIN_PA11__GPIO>,*/
<PIN_PA12__GPIO>,
<PIN_PB21__GPIO>,
<PIN_PB24__GPIO>,
/*<PIN_PB1__GPIO>,*/
<PIN_PC5__GPIO>,
<PIN_PC4__GPIO>,
<PIN_PC3__GPIO>,
<PIN_PB13__GPIO>,
// <PIN_PB14__GPIO>,
<PIN_PB15__GPIO>,
<PIN_PB16__GPIO>;
 
bias-pull-up;
};


pinctrl_led_gpio_default: led_gpio_default {
pinmux = <PIN_PA10__GPIO>,
<PIN_PB1__GPIO>,
<PIN_PA31__GPIO>;
bias-pull-up;
};
 
pinctrl_electreon_outputs_pd_default: electreon_outputs_pd_default {
pinmux = <PIN_PC9__GPIO>,
<PIN_PC10__GPIO>,
// <PIN_PC11__GPIO>,
// <PIN_PC12__GPIO>,
// <PIN_PC13__GPIO>,
<PIN_PA17__GPIO>,
<PIN_PA27__GPIO>,
<PIN_PA31__GPIO>,
<PIN_PC15__GPIO>,
<PIN_PA14__GPIO>,
<PIN_PA15__GPIO>,
<PIN_PA16__GPIO>,
<PIN_PB0__GPIO>
;
bias-pull-down;
};

/*pinctrl_electreon_outputs_pu_default: electreon_outputs_pu_default {
pinmux =
;

bias-pull-up;
};*/


pinctrl_sdmmc0_default: sdmmc0_default {
cmd_data {
pinmux = <PIN_PA1__SDMMC0_CMD>,
<PIN_PA2__SDMMC0_DAT0>,
<PIN_PA3__SDMMC0_DAT1>,
<PIN_PA4__SDMMC0_DAT2>,
<PIN_PA5__SDMMC0_DAT3>,
<PIN_PA6__SDMMC0_DAT4>,
<PIN_PA7__SDMMC0_DAT5>,
<PIN_PA8__SDMMC0_DAT6>,
<PIN_PA9__SDMMC0_DAT7>;
bias-disable;
};

ck_cd_vddsel {
pinmux = <PIN_PA0__SDMMC0_CK>,
<PIN_PA11__SDMMC0_VDDSEL>,
<PIN_PA13__SDMMC0_CD>;
bias-disable;
};
};

pinctrl_sdmmc1_default: sdmmc1_default {
cmd_data {
pinmux = <PIN_PA28__SDMMC1_CMD>,
<PIN_PA18__SDMMC1_DAT0>,
<PIN_PA19__SDMMC1_DAT1>,
<PIN_PA20__SDMMC1_DAT2>,
<PIN_PA21__SDMMC1_DAT3>;
bias-disable;
};

conf-ck_cd {
pinmux = <PIN_PA22__SDMMC1_CK>,
<PIN_PA30__SDMMC1_CD>;
bias-disable;
};
};

pinctrl_spi0_default: spi0_default {
pinmux = <PIN_PA14__SPI0_SPCK>,
<PIN_PA15__SPI0_MOSI>,
<PIN_PA16__SPI0_MISO>,
<PIN_PA17__SPI0_NPCS0>;
bias-disable;
};

pinctrl_uart0_default: uart0_default {
pinmux = <PIN_PB26__URXD0>,
<PIN_PB27__UTXD0>;
bias-disable;
};

pinctrl_uart1_default: uart1_default {
pinmux = <PIN_PD2__URXD1>,
<PIN_PD3__UTXD1>;
bias-disable;
};

pinctrl_uart3_default: uart3_default {
pinmux = <PIN_PC12__URXD3>,
<PIN_PC13__UTXD3>;
bias-disable;
};

/*pinctrl_tcb0_tioa0: tcb0_tioa0_default {
pinmux = <PIN_PA27__GPIO>;
bias-disable;
};*/
 
pinctrl_tcb0_tioa1: tcb0_tioa1_default {
pinmux = <PIN_PA27__TIOA1>;
bias-disable;
};
 
pinctrl_tcb0_tioa2: tcb0_tiob2_default {
pinmux = <PIN_PD20__TIOA2>;
bias-disable;
};
 
pinctrl_tcb1_tioa3: tcb1_tioa3_default {
pinmux = <PIN_PB19__TIOA3>;
bias-disable;
};
 
/*pinctrl_tcb1_tioa4: tcb1_tioa4_default {
pinmux = <PIN_PC9__TIOA4>;
bias-disable;
};*/
 
pinctrl_tcb1_tiob5: tcb1_tiob5_default {
pinmux = <PIN_PB29__TIOB5>;
bias-disable;
};
 

pinctrl_usba_vbus: usba_vbus {
pinmux = <PIN_PD26__GPIO>;
bias-disable;
};

pinctrl_BIT_ADC: BIT_ADC {
pinmux = <PIN_PD19__GPIO>;
bias-disable;
};
 
pinctrl_RCV1_4_TEMP_ADC: RCV1_4_TEMP_ADC {
pinmux = <PIN_PD25__GPIO>;
bias-disable;
};

pinctrl_RCV5_TEMP_RX_CS_ADC: RCV5_TEMP_RX_CS_ADC {
pinmux = <PIN_PD24__GPIO>;
bias-disable;
};

pinctrl_mikrobus1_rst: mikrobus1_rst {
pinmux = <PIN_PB2__GPIO>;
bias-disable;
};

pinctrl_mikrobus2_rst: mikrobus2_rst {
pinmux = <PIN_PA26__GPIO>;
bias-disable;
};

pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs {
pinmux = <PIN_PD0__FLEXCOM4_IO4>;
bias-disable;
};

pinctrl_mikrobus2_spi_cs: mikrobus2_spi_cs {
pinmux = <PIN_PC31__FLEXCOM4_IO3>;
bias-disable;
};

pinctrl_mikrobus_spi: mikrobus_spi {
pinmux = <PIN_PC28__FLEXCOM4_IO0>,
<PIN_PC29__FLEXCOM4_IO1>,
<PIN_PC30__FLEXCOM4_IO2>;
bias-disable;
};

pinctrl_mikrobus1_pwm: mikrobus1_pwm {
pinmux = <PIN_PB1__PWML1>;
bias-disable;
};

pinctrl_mikrobus2_pwm: mikrobus2_pwm {
pinmux = <PIN_PA31__PWML0>;
bias-disable;
};

pinctrl_mikrobus1_int: mikrobus1_int {
pinmux = <PIN_PB0__GPIO>;
bias-disable;
};

pinctrl_mikrobus2_int: mikrobus2_int {
pinmux = <PIN_PA25__GPIO>;
bias-disable;
};

pinctrl_mikrobus1_uart: mikrobus1_uart {
pinmux = <PIN_PB3__URXD4>,
<PIN_PB4__UTXD4>;
bias-disable;
};

pinctrl_mikrobus2_uart: mikrobus2_uart {
pinmux = <PIN_PD23__URXD2>,
<PIN_PD24__UTXD2>;
bias-disable;
};

pinctrl_mikrobus_i2c: mikrobus1_i2c {
pinmux = <PIN_PA24__FLEXCOM1_IO0>,
<PIN_PA23__FLEXCOM1_IO1>;
bias-disable;
};

pinctrl_i2c3_gpio: i2c3_gpio {
pinmux = <PIN_PA24__GPIO>,
<PIN_PA23__GPIO>;
bias-disable;
};

pinctrl_flx4_default: flx4_uart_default {
pinmux = <PIN_PC28__FLEXCOM4_IO0>,
<PIN_PC29__FLEXCOM4_IO1>,
<PIN_PC30__FLEXCOM4_IO2>,
<PIN_PC31__FLEXCOM4_IO3>,
<PIN_PD0__FLEXCOM4_IO4>;
bias-disable;
};
};

can1: can@fc050000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_can1_default>;
status = "okay";
};
 
can0: can@f8054000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_can0_default>;
status = "okay";
};
};
};

wclock: wclock {
compatible = "wclock";
clocks = <&pmc PMC_TYPE_SYSTEM AT91_PMC_PCKRDY(0)>;
clock-names = "pck0";
pinctrl-0 = <&pinctrl_pck0>;
pinctrl-names = "default";
status = "disabled";
};

wifi_chip: wifi_chip{

pinmux = <PIN_PA27 GPIO_ACTIVE_HIGH>, /*Enable WIFI */
<PIN_PC10 GPIO_ACTIVE_HIGH>, /*Enable BT */
<PIN_PC11 GPIO_ACTIVE_HIGH>, /*just for test */
<PIN_PC12 GPIO_ACTIVE_HIGH>,
<PIN_PC13 GPIO_ACTIVE_HIGH>,
<PIN_PC14 GPIO_ACTIVE_HIGH>,
<PIN_PC15 GPIO_ACTIVE_HIGH>
 
;
};
 
mux: mux{

pinmux = <PIN_PA27 GPIO_ACTIVE_LOW>,/* MUX_A0 */
<PIN_PA29 GPIO_ACTIVE_LOW>,/* MUX_A1 */
<PIN_PA31 GPIO_ACTIVE_LOW>,/* MUX_A2 */
<PIN_PC15 GPIO_ACTIVE_LOW> /* MUX_A3 */
;
};

wifi_chip{

status = "okay";
};

/*EVB leds*/
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_gpio_default>;
status = "disable"; /* Conflict with pwm0. */

red {
label = "red";
gpios = <&pioA PIN_PA10 GPIO_ACTIVE_HIGH>;
};

green {
label = "green";
gpios = <&pioA PIN_PB1 GPIO_ACTIVE_HIGH>;
};

blue {
label = "blue";
gpios = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
 
};
 
vddin_3v3: fixed-regulator-vddin_3v3 {
compatible = "regulator-fixed";

regulator-name = "VDDIN_3V3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
regulator-boot-on;
status = "okay";
};

vddana: fixed-regulator-vddana {
compatible = "regulator-fixed";

regulator-name = "VDDANA";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
regulator-boot-on;
vin-supply = <&vddin_3v3>;
status = "okay";
};

advref: fixed-regulator-advref {
compatible = "regulator-fixed";

regulator-name = "advref";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
regulator-boot-on;
vin-supply = <&vddana>;
status = "okay";
};
};
0 件の賞賛
返信