diff options
author | Paul Kocialkowski | 2024-11-25 12:03:18 +0100 |
---|---|---|
committer | Paul Kocialkowski | 2024-11-30 18:31:30 +0100 |
commit | ab42388f5b18d6a29783b23da2b8ebc3c9287bd1 (patch) | |
tree | 076cab5128a155821774ef119a3119a15719ef9c | |
parent | f8e0ea06ad25989da58fe68643e9aa3088e6b5d4 (diff) |
WIP: ARM: dts: allwinner: Add color sensors to sun8i-h3-orangepi-pciio/light/color-sensors
Signed-off-by: Paul Kocialkowski <paulk@sys-base.io>
-rw-r--r-- | arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-pc.dts | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-pc.dts index b96e015f54ee..ca866254bf9e 100644 --- a/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-pc.dts +++ b/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-pc.dts @@ -96,6 +96,14 @@ wakeup-source; }; }; + + reg_vcc_io: regulator-vcc-io { + compatible = "regulator-fixed"; + regulator-name = "vcc-io"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; }; &codec { @@ -240,3 +248,35 @@ /* VBUS on USB host ports are always on */ status = "okay"; }; + +/* TCS3430 */ + +&i2c0 { + status = "okay"; + clock-frequency = <400000>; + + #address-cells = <1>; + #size-cells = <0>; + +/* + color-sensor@39 { + compatible = "ams,tcs3430"; + reg = <0x39>; + + vdd-supply = <®_vcc_io>; + + interrupt-parent = <&pio>; + interrupts = <0 8 IRQ_TYPE_LEVEL_LOW>; + }; +*/ + + color-sensor@44 { + compatible = "ti,opt4048"; + reg = <0x44>; + + vdd-supply = <®_vcc_io>; + + interrupt-parent = <&pio>; + interrupts = <0 8 IRQ_TYPE_EDGE_FALLING>; + }; +}; |