mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 06:48:57 +07:00
d360ebaff4
The at24 driver allows to register I2C EEPROM chips using different vendor and devices, but the I2C subsystem does not take the vendor into account when matching using the I2C table since it only has device entries. But when matching using an OF table, both the vendor and device has to be taken into account so the driver defines only a set of compatible strings using the "atmel" vendor as a generic fallback for compatible I2C devices. So add this generic fallback to the device node compatible string to make the device to match the driver using the OF device ID table. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
89 lines
1.7 KiB
Plaintext
89 lines
1.7 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Device tree for EFM32GG-DK3750 development board.
|
|
*
|
|
* Documentation available from
|
|
* http://www.silabs.com/Support%20Documents/TechnicalDocs/efm32gg-dk3750-ug.pdf
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "efm32gg.dtsi"
|
|
|
|
/ {
|
|
model = "Energy Micro Giant Gecko Development Kit";
|
|
compatible = "efm32,dk3750";
|
|
|
|
chosen {
|
|
bootargs = "console=ttyefm4,115200 init=/linuxrc ignore_loglevel ihash_entries=64 dhash_entries=64 earlyprintk uclinux.physaddr=0x8c400000 root=/dev/mtdblock0";
|
|
};
|
|
|
|
memory@88000000 {
|
|
device_type = "memory";
|
|
reg = <0x88000000 0x400000>;
|
|
};
|
|
|
|
soc {
|
|
adc@40002000 {
|
|
status = "ok";
|
|
};
|
|
|
|
i2c@4000a000 {
|
|
energymicro,location = <3>;
|
|
status = "ok";
|
|
|
|
temp@48 {
|
|
compatible = "st,stds75";
|
|
reg = <0x48>;
|
|
};
|
|
|
|
eeprom@50 {
|
|
compatible = "microchip,24c02", "atmel,24c02";
|
|
reg = <0x50>;
|
|
pagesize = <16>;
|
|
};
|
|
};
|
|
|
|
spi0: spi@4000c000 { /* USART0 */
|
|
cs-gpios = <&gpio 68 1>; // E4
|
|
energymicro,location = <1>;
|
|
status = "ok";
|
|
|
|
microsd@0 {
|
|
compatible = "mmc-spi-slot";
|
|
spi-max-frequency = <100000>;
|
|
voltage-ranges = <3200 3400>;
|
|
broken-cd;
|
|
reg = <0>;
|
|
};
|
|
};
|
|
|
|
spi1: spi@4000c400 { /* USART1 */
|
|
cs-gpios = <&gpio 51 1>; // D3
|
|
energymicro,location = <1>;
|
|
status = "ok";
|
|
|
|
ks8851@0 {
|
|
compatible = "ks8851";
|
|
spi-max-frequency = <6000000>;
|
|
reg = <0>;
|
|
interrupt-parent = <&boardfpga>;
|
|
interrupts = <4>;
|
|
};
|
|
};
|
|
|
|
uart4: uart@4000e400 { /* UART1 */
|
|
energymicro,location = <2>;
|
|
status = "ok";
|
|
};
|
|
|
|
boardfpga: boardfpga@80000000 {
|
|
compatible = "efm32board";
|
|
reg = <0x80000000 0x400>;
|
|
irq-gpios = <&gpio 64 1>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <1>;
|
|
status = "ok";
|
|
};
|
|
};
|
|
};
|