213 lines
3.7 KiB
Plaintext
213 lines
3.7 KiB
Plaintext
/*
|
|
* 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_dac: dac@dac0dac0 {
|
|
compatible = "vnd,dac";
|
|
reg = <0xdac0dac0 0x1000>;
|
|
status = "okay";
|
|
#io-channel-cells = <1>;
|
|
};
|
|
|
|
test_dac_leds {
|
|
compatible = "dac-leds";
|
|
test_dac_led0: test_dac_led_0 {
|
|
dac-dev = <&test_dac>;
|
|
channel = <0>;
|
|
resolution = <16>;
|
|
voltage-min-brightness-mv = <123>;
|
|
voltage-max-brightness-mv = <1234>;
|
|
voltage-max-dac-mv = <3456>;
|
|
output-buffer;
|
|
};
|
|
};
|
|
|
|
test_gpio: gpio@deadbeef {
|
|
compatible = "vnd,gpio";
|
|
gpio-controller;
|
|
reg = <0xdeadbeef 0x1000>;
|
|
#gpio-cells = <0x2>;
|
|
status = "okay";
|
|
};
|
|
|
|
test_gpio_leds {
|
|
compatible = "gpio-leds";
|
|
test_gpio_led0: test_gpio_led_0 {
|
|
gpios = <&test_gpio 0 0>;
|
|
};
|
|
};
|
|
|
|
test_i2c: i2c@11112222 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "vnd,i2c";
|
|
reg = <0x11112222 0x1000>;
|
|
status = "okay";
|
|
clock-frequency = <100000>;
|
|
|
|
ht16k33@1 {
|
|
compatible = "holtek,ht16k33";
|
|
reg = <0x1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
lp3943@2 {
|
|
compatible = "ti,lp3943";
|
|
reg = <0x2>;
|
|
};
|
|
|
|
lp5009@3 {
|
|
compatible = "ti,lp5009";
|
|
reg = <0x3>;
|
|
};
|
|
|
|
lp5012@4 {
|
|
compatible = "ti,lp5012";
|
|
reg = <0x4>;
|
|
};
|
|
|
|
lp5018@5 {
|
|
compatible = "ti,lp5018";
|
|
reg = <0x5>;
|
|
};
|
|
|
|
lp5024@6 {
|
|
compatible = "ti,lp5024";
|
|
reg = <0x6>;
|
|
};
|
|
|
|
lp5030@7 {
|
|
compatible = "ti,lp5030";
|
|
reg = <0x7>;
|
|
};
|
|
|
|
lp5036@8 {
|
|
compatible = "ti,lp5036";
|
|
reg = <0x8>;
|
|
};
|
|
|
|
lp5562@9 {
|
|
compatible = "ti,lp5562";
|
|
reg = <0x9>;
|
|
};
|
|
|
|
lp5569@a {
|
|
compatible = "ti,lp5569";
|
|
reg = <0xa>;
|
|
};
|
|
|
|
pca9633@b {
|
|
compatible = "nxp,pca9633";
|
|
reg = <0xb>;
|
|
};
|
|
|
|
tlc59108@c {
|
|
compatible = "ti,tlc59108";
|
|
reg = <0xc>;
|
|
};
|
|
|
|
ncp5623@d {
|
|
compatible = "onnn,ncp5623";
|
|
reg = <0xd>;
|
|
};
|
|
|
|
is31fl3194@e {
|
|
compatible = "issi,is31fl3194";
|
|
reg = <0xe>;
|
|
led_rgb {
|
|
label = "led_rgb";
|
|
color-mapping = <0>, <1>, <2>;
|
|
current-limit = <10>;
|
|
};
|
|
};
|
|
|
|
is31fl3216a@f {
|
|
compatible = "issi,is31fl3216a";
|
|
reg = <0xf>;
|
|
};
|
|
|
|
is31fl3733@10 {
|
|
compatible = "issi,is31fl3733";
|
|
reg = <0x10>;
|
|
};
|
|
|
|
axp192@11 {
|
|
compatible = "x-powers,axp192";
|
|
reg = <0x11>;
|
|
status = "okay";
|
|
|
|
pwr_led {
|
|
compatible = "x-powers,axp192-led";
|
|
status = "okay";
|
|
x-powers,mode = "by-reg";
|
|
};
|
|
};
|
|
|
|
axp2101@12 {
|
|
compatible = "x-powers,axp2101";
|
|
reg = <0x12>;
|
|
status = "okay";
|
|
|
|
pwr_led {
|
|
compatible = "x-powers,axp2101-led";
|
|
status = "okay";
|
|
x-powers,mode = "by-reg";
|
|
};
|
|
};
|
|
|
|
pmic@13 {
|
|
compatible = "nordic,npm1300";
|
|
reg = <0x13>;
|
|
|
|
leds {
|
|
compatible = "nordic,npm1300-led";
|
|
nordic,led0-mode = "error";
|
|
nordic,led1-mode = "charging";
|
|
nordic,led2-mode = "host";
|
|
};
|
|
};
|
|
|
|
pmic@14 {
|
|
compatible = "nordic,npm1304";
|
|
reg = <0x14>;
|
|
|
|
leds {
|
|
compatible = "nordic,npm1304-led";
|
|
nordic,led0-mode = "error";
|
|
nordic,led1-mode = "charging";
|
|
nordic,led2-mode = "host";
|
|
};
|
|
};
|
|
};
|
|
|
|
test_pwm: pwm@12341234 {
|
|
compatible = "vnd,pwm";
|
|
reg = <0x12341234 0x1000>;
|
|
#pwm-cells = <3>;
|
|
status = "okay";
|
|
};
|
|
|
|
test_pwm_leds {
|
|
compatible = "pwm-leds";
|
|
status = "okay";
|
|
test_pwm_led0: test_pwm_led_0 {
|
|
pwms = <&test_pwm 0 0 0>;
|
|
};
|
|
};
|
|
};
|
|
};
|