Skip to content

Commit dd4594f

Browse files
TheMightyMadmanpopcornmix
authored andcommitted
add ads7828/ads7830 to i2c-sensors
1 parent ff9a1e7 commit dd4594f

File tree

2 files changed

+50
-6
lines changed

2 files changed

+50
-6
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,15 +2408,22 @@ Name: i2c-sensor
24082408
Info: Adds support for a number of I2C barometric pressure, temperature,
24092409
light level and chemical sensors on i2c_arm
24102410
Load: dtoverlay=i2c-sensor,<param>=<val>
2411-
Params: addr Set the address for the ADT7410, AS73211,
2412-
AS7331, BH1750, BME280, BME680, BMP280, BMP380,
2413-
CCS811, DS1621, HDC100X, HDC3020, JC42, LM75,
2414-
MCP980x, MPU6050, MPU9250, MS5637, MS5803,
2415-
MS5805, MS5837, MS8607, SHT3x or TMP102
2411+
Params: addr Set the address for the ADS7828, ADS7830,
2412+
ADT7410, AS73211, AS7331, BH1750, BME280,
2413+
BME680, BMP280, BMP380, CCS811, DS1621,
2414+
HDC100X, HDC3020, JC42, LM75, MCP980x,
2415+
MPU6050, MPU9250, MS5637, MS5803, MS5805,
2416+
MS5837, MS8607, SHT3x or TMP102
24162417

24172418
i2c-bus Supports all the standard I2C bus selection
24182419
parameters - see "dtoverlay -h i2c-bus"
24192420

2421+
ads7828 Select the TI ADS7828 50kHz 8-channel 12bit ADC
2422+
Valid addresses 0x48-0x4b, default 0x48
2423+
2424+
ads7830 Select the TI ADS7830 70kHz 8-channel 8bit ADC
2425+
Valid addresses 0x48-0x4b, default 0x48
2426+
24202427
adt7410 Select the Analog Devices ADT7410 and ADT7420
24212428
temperature sensors
24222429
Valid address 0x48-0x4b, default 0x48
@@ -2497,6 +2504,8 @@ Params: addr Set the address for the ADT7410, AS73211,
24972504
TSE2002, TSE2004, TS3000, and TS3001.
24982505
The default address is 0x18.
24992506

2507+
label Set the device label (ADS7828 and ADS7830 only)
2508+
25002509
lm75 Select the Maxim LM75 temperature sensor
25012510
Valid addresses 0x48-0x4f, default 0x4f
25022511

arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,36 @@
713713
};
714714
};
715715

716+
fragment@46 {
717+
target = <&i2cbus>;
718+
__dormant__ {
719+
#address-cells = <1>;
720+
#size-cells = <0>;
721+
status = "okay";
722+
723+
ads7828: ads7828@48 {
724+
compatible = "ti,ads7828";
725+
reg = <0x48>;
726+
label = "ads7828";
727+
};
728+
};
729+
};
730+
731+
fragment@47 {
732+
target = <&i2cbus>;
733+
__dormant__ {
734+
#address-cells = <1>;
735+
#size-cells = <0>;
736+
status = "okay";
737+
738+
ads7830: ads7830@48 {
739+
compatible = "ti,ads7830";
740+
reg = <0x48>;
741+
label = "ads7830";
742+
};
743+
};
744+
};
745+
716746
fragment@99 {
717747
target = <&gpio>;
718748
__dormant__ {
@@ -771,6 +801,8 @@
771801
aht20 = <0>,"+43";
772802
tcs3472 = <0>,"+44+99";
773803
veml6040 = <0>,"+45";
804+
ads7828 = <0>,"+46";
805+
ads7830 = <0>,"+47";
774806

775807
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
776808
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -782,7 +814,8 @@
782814
<&bno055>,"reg:0", <&sht4x>,"reg:0",
783815
<&bmp380>,"reg:0", <&adt7410>,"reg:0", <&ina238>,"reg:0",
784816
<&hdc3020>,"reg:0", <&as73211>,"reg:0",
785-
<&as7331>,"reg:0", <&adxl345>,"reg:0";
817+
<&as7331>,"reg:0", <&adxl345>,"reg:0",
818+
<&ads7828>,"reg:0", <&ads7830>,"reg:0";
786819
int_pin = <&int_pins>, "brcm,pins:0",
787820
<&int_pins>, "reg:0",
788821
<&max30102>, "interrupts:0",
@@ -794,6 +827,8 @@
794827
<&as7331>, "interrupts:0",
795828
<&adxl345>, "interrupts:0",
796829
<&tcs3472>, "interrupts:0";
830+
label = <&ads7828>, "label",
831+
<&ads7830>, "label";
797832
no_timeout = <&jc42>, "smbus-timeout-disable?";
798833
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
799834
shunt_resistor = <&ina238>,"shunt-resistor:0";

0 commit comments

Comments
 (0)