2021-05-07 12:54:25 -05:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, Linaro Ltd.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Application overlay for testing driver builds
|
|
|
|
*
|
|
|
|
* Names in this file should be chosen in a way that won't conflict
|
|
|
|
* with real-world devicetree nodes, to allow these tests to run on
|
|
|
|
* (and be extended to test) real hardware.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/ {
|
|
|
|
test {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
test_gpio: gpio@deadbeef {
|
|
|
|
compatible = "vnd,gpio";
|
|
|
|
gpio-controller;
|
|
|
|
reg = <0xdeadbeef 0x1000>;
|
|
|
|
#gpio-cells = <0x2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2024-03-22 01:22:24 +08:00
|
|
|
test_gpio_dw: gpio@c0ffee {
|
|
|
|
compatible = "snps,designware-gpio";
|
|
|
|
gpio-controller;
|
|
|
|
reg = <0xc0ffee 0x1000>;
|
|
|
|
#gpio-cells = <0x2>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-05-07 12:54:25 -05:00
|
|
|
test_i2c: i2c@11112222 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "vnd,i2c";
|
|
|
|
reg = <0x11112222 0x1000>;
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
|
|
|
|
test_i2c_sx1509b: sx1509b@0 {
|
|
|
|
compatible = "semtech,sx1509b";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x00>;
|
2021-05-07 12:54:25 -05:00
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-controller;
|
|
|
|
};
|
|
|
|
|
|
|
|
test_i2c_pcal6408a: pcal6408a@1 {
|
|
|
|
compatible = "nxp,pcal6408a";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x01>;
|
2021-05-07 12:54:25 -05:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
int-gpios = <&test_gpio 0 0>;
|
|
|
|
reset-gpios = <&test_gpio 0 0>;
|
|
|
|
};
|
|
|
|
|
2023-02-14 13:52:00 +01:00
|
|
|
test_i2c_pcal6416a: pcal6416a@2 {
|
|
|
|
compatible = "nxp,pcal6416a";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x02>;
|
2023-02-14 13:52:00 +01:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
int-gpios = <&test_gpio 0 0>;
|
|
|
|
reset-gpios = <&test_gpio 0 0>;
|
|
|
|
};
|
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_pca95xx: pca95xx@3 {
|
2021-05-07 12:54:25 -05:00
|
|
|
compatible = "nxp,pca95xx";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x03>;
|
2021-05-07 12:54:25 -05:00
|
|
|
gpio-controller;
|
2022-03-15 16:00:28 +01:00
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
interrupt-gpios = <&test_gpio 0 0>;
|
2021-05-07 12:54:25 -05:00
|
|
|
};
|
2021-05-07 13:55:49 +01:00
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_pcf8575: pcf8575@4 {
|
2023-01-23 12:29:37 +01:00
|
|
|
compatible = "nxp,pcf857x";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x04>;
|
2023-01-23 12:29:37 +01:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
int-gpios = <&test_gpio 0 0>;
|
|
|
|
};
|
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_pcf8574: pcf8574@5 {
|
2023-01-23 12:29:37 +01:00
|
|
|
compatible = "nxp,pcf857x";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x05>;
|
2022-08-09 10:44:16 +02:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
int-gpios = <&test_gpio 0 0>;
|
|
|
|
};
|
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_pca953x: pca953x@6 {
|
2021-05-07 13:55:49 +01:00
|
|
|
compatible = "ti,tca9538";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x06>;
|
2021-05-07 13:55:49 +01:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
nint-gpios = <&test_gpio 0 0>;
|
|
|
|
};
|
2021-11-09 15:23:17 +08:00
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_mcp230xx: mcp230xx@7 {
|
2021-11-23 21:40:48 -05:00
|
|
|
compatible = "microchip,mcp230xx";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x07>;
|
2021-11-23 21:40:48 -05:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
};
|
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_fxl6408: fxl6408@8 {
|
2021-07-15 19:51:36 +02:00
|
|
|
status = "okay";
|
|
|
|
compatible = "fcs,fxl6408";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x08>;
|
2021-07-15 19:51:36 +02:00
|
|
|
ngpios = <8>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
2021-11-09 15:23:17 +08:00
|
|
|
};
|
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
mfd-nct38xx@9 {
|
2023-07-19 12:02:34 -06:00
|
|
|
compatible = "nuvoton,nct38xx";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x09>;
|
2023-07-19 12:02:34 -06:00
|
|
|
test_i2c_nct3807: nct3807 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "nuvoton,nct38xx-gpio";
|
|
|
|
|
|
|
|
gpio@0 {
|
|
|
|
compatible = "nuvoton,nct38xx-gpio-port";
|
|
|
|
reg = <0x0>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
pin_mask = <0xff>;
|
|
|
|
pinmux_mask = <0xf7>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio@1 {
|
|
|
|
compatible = "nuvoton,nct38xx-gpio-port";
|
|
|
|
reg = <0x1>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
pin_mask = <0xff>;
|
|
|
|
};
|
2021-11-09 15:23:17 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_nct3808_p1: mfd-nct38xx@a {
|
2023-07-19 12:02:34 -06:00
|
|
|
compatible = "nuvoton,nct38xx";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x0a>;
|
2023-07-19 12:02:34 -06:00
|
|
|
nct3808_0_P1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "nuvoton,nct38xx-gpio";
|
|
|
|
|
|
|
|
gpio@0 {
|
|
|
|
compatible = "nuvoton,nct38xx-gpio-port";
|
|
|
|
reg = <0x0>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
pin_mask = <0xdc>;
|
|
|
|
pinmux_mask = <0xff>;
|
|
|
|
};
|
2021-11-09 15:23:17 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_nct3808_p2: mfd-nct38xx@b {
|
2023-07-19 12:02:34 -06:00
|
|
|
compatible = "nuvoton,nct38xx";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x0b>;
|
2023-07-19 12:02:34 -06:00
|
|
|
nct3808_0_P2 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "nuvoton,nct38xx-gpio";
|
|
|
|
|
|
|
|
gpio@0 {
|
|
|
|
compatible = "nuvoton,nct38xx-gpio-port";
|
|
|
|
reg = <0x0>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
pin_mask = <0xdc>;
|
|
|
|
pinmux_mask = <0xff>;
|
|
|
|
};
|
2021-11-09 15:23:17 +08:00
|
|
|
};
|
|
|
|
};
|
2022-07-18 17:24:32 -07:00
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_tca6424a: tca6424a@c {
|
2022-07-18 17:24:32 -07:00
|
|
|
compatible = "ti,tca6424a";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x0c>;
|
2022-07-18 17:24:32 -07:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <24>;
|
|
|
|
int-gpios = <&test_gpio 0 0>;
|
|
|
|
reset-gpios = <&test_gpio 0 0>;
|
|
|
|
};
|
2023-07-19 21:53:55 +02:00
|
|
|
|
2024-02-28 11:30:09 +01:00
|
|
|
test_i2c_axp192: axp192@d {
|
2023-07-19 21:53:55 +02:00
|
|
|
compatible = "x-powers,axp192";
|
2024-02-28 11:30:09 +01:00
|
|
|
reg = <0x0d>;
|
2023-07-19 21:53:55 +02:00
|
|
|
|
|
|
|
axp192_gpio {
|
|
|
|
compatible = "x-powers,axp192-gpio";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
2024-01-07 16:34:52 +01:00
|
|
|
ngpios = <6>;
|
2023-07-19 21:53:55 +02:00
|
|
|
};
|
|
|
|
};
|
2021-05-07 12:54:25 -05:00
|
|
|
};
|
|
|
|
|
2023-08-11 14:53:14 -06:00
|
|
|
nct3807_alert_1 {
|
|
|
|
compatible = "nuvoton,nct38xx-gpio-alert";
|
|
|
|
irq-gpios = <&test_gpio 0 0>;
|
|
|
|
nct38xx-dev = <&test_i2c_nct3808_p1 &test_i2c_nct3808_p2>;
|
|
|
|
};
|
|
|
|
|
2021-05-07 12:54:25 -05:00
|
|
|
test_spi: spi@33334444 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "vnd,spi";
|
|
|
|
reg = <0x33334444 0x1000>;
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <2000000>;
|
|
|
|
|
|
|
|
/* one entry for every devices at spi.dtsi */
|
2023-10-30 20:43:46 +01:00
|
|
|
cs-gpios = <&test_gpio 0 0
|
|
|
|
&test_gpio 0 0
|
|
|
|
&test_gpio 0 0
|
|
|
|
&test_gpio 0 0
|
|
|
|
&test_gpio 0 0>;
|
2021-05-07 12:54:25 -05:00
|
|
|
|
|
|
|
test_spi_mcp23s17: mcp23s17@0 {
|
|
|
|
compatible = "microchip,mcp23s17";
|
|
|
|
spi-max-frequency = <0>;
|
|
|
|
reg = <0x0>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
};
|
2021-11-23 21:40:48 -05:00
|
|
|
|
2023-11-06 08:43:38 +01:00
|
|
|
test_spi_mcp23sxx: mcp23sxx@1 {
|
2021-11-23 21:40:48 -05:00
|
|
|
compatible = "microchip,mcp23sxx";
|
|
|
|
spi-max-frequency = <0>;
|
2023-11-06 08:43:38 +01:00
|
|
|
reg = <0x01>;
|
2021-11-23 21:40:48 -05:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <16>;
|
|
|
|
};
|
2023-02-14 13:18:43 +01:00
|
|
|
|
2023-11-06 08:43:38 +01:00
|
|
|
test_spi_bd8lb600fs: bd8lb600fs@2 {
|
2023-02-14 13:18:43 +01:00
|
|
|
compatible = "rohm,bd8lb600fs";
|
2023-12-27 20:43:16 +01:00
|
|
|
status = "okay";
|
2023-02-14 13:18:43 +01:00
|
|
|
spi-max-frequency = <0>;
|
2023-11-06 08:43:38 +01:00
|
|
|
reg = <0x02>;
|
2023-02-14 13:18:43 +01:00
|
|
|
reset-gpios = <&test_gpio 0 0>;
|
2023-12-27 20:43:16 +01:00
|
|
|
instance-count = <1>;
|
|
|
|
|
|
|
|
bd8lb600fs_gpio: bd8lb600fs_gpio {
|
|
|
|
compatible = "rohm,bd8lb600fs-gpio";
|
|
|
|
status = "okay";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
};
|
2023-02-14 13:18:43 +01:00
|
|
|
};
|
2023-03-14 22:09:55 +01:00
|
|
|
|
2024-01-24 09:05:09 +01:00
|
|
|
test_spi_ad559x: ad559x@3 {
|
|
|
|
compatible = "adi,ad559x";
|
2023-10-30 20:43:46 +01:00
|
|
|
status = "okay";
|
2023-11-03 19:58:51 +11:00
|
|
|
reg = <0x03>;
|
2023-10-30 20:43:46 +01:00
|
|
|
spi-max-frequency = <0>;
|
|
|
|
reset-gpios = <&test_gpio 0 0>;
|
|
|
|
|
2024-01-24 09:05:09 +01:00
|
|
|
ad559x_gpio: gpio-controller {
|
|
|
|
compatible = "adi,ad559x-gpio";
|
2023-10-30 20:43:46 +01:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <8>;
|
|
|
|
};
|
|
|
|
};
|
2023-07-18 11:17:02 +02:00
|
|
|
|
|
|
|
test_spi_tle9104: tle9104@4 {
|
|
|
|
compatible = "infineon,tle9104";
|
|
|
|
spi-max-frequency = <0>;
|
|
|
|
reg = <0x04>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
ngpios = <4>;
|
|
|
|
resn-gpios = <&test_gpio 0 0>;
|
|
|
|
en-gpios = <&test_gpio 0 0>;
|
|
|
|
};
|
2021-05-07 12:54:25 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|