1 From 650480191492845c8eb7e0c2e5b1e37cabc59eff Mon Sep 17 00:00:00 2001
2 From: Pawel Dembicki <paweldembicki@gmail.com>
3 Date: Fri, 13 Nov 2020 07:17:39 +0100
4 Subject: [PATCH 1/2] arm64: dts: fsl-ls1012a-rdb: add i2c devices
6 LS1012A-RDB equipped in some i2c devices:
7 - 3x GPIO Expander: PCAL9555A (NXP)
8 - Gyro: FXAS21002 (NXP)
9 - Accelerometer: FXOS8700 (NXP)
10 - Current & Power Monitor: INA220 (TI)
12 This patch add listed devices to dts.
14 Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
16 .../boot/dts/freescale/fsl-ls1012a-rdb.dts | 66 +++++++++++++++++++
17 1 file changed, 66 insertions(+)
19 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
20 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
25 +#include <dt-bindings/interrupt-controller/irq.h>
26 #include "fsl-ls1012a.dtsi"
31 ethernet0 = &pfe_mac0;
32 ethernet1 = &pfe_mac1;
36 + dummy3v3: dummy_reg {
37 + compatible = "regulator-fixed";
38 + regulator-name = "dummy_regulator_3v3";
40 + regulator-min-microvolt = <3300000>;
41 + regulator-max-microvolt = <3300000>;
42 + regulator-always-on;
45 + dummy1v8: dummy_reg {
46 + compatible = "regulator-fixed";
47 + regulator-name = "dummy_regulator_1v8";
49 + regulator-min-microvolt = <1800000>;
50 + regulator-max-microvolt = <1800000>;
51 + regulator-always-on;
61 + compatible = "nxp,fxos8700";
63 + interrupt-parent = <&gpio26>;
64 + interrupts = <13 IRQ_TYPE_EDGE_RISING>;
65 + interrupt-names = "INT1";
69 + compatible = "nxp,fxas21002c";
71 + vdd-supply = <&dummy3v3>;
72 + vddio-supply = <&dummy1v8>;
76 + compatible = "nxp,pcal9555a";
83 + compatible = "nxp,pcal9555a";
90 + compatible = "nxp,pcal9555a";
92 + interrupt-parent = <&gpio0>;
93 + interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
94 + interrupt-controller;
95 + #interrupt-cells = <2>;
100 + current-sensor@40 {
101 + compatible = "ti,ina220";
103 + shunt-resistor = <2000>;