From: Heiko Stuebner <heiko@sntech•de>
To: linux-arm-kernel@lists•infradead.org
Cc: mark.rutland@arm•com, devicetree@vger•kernel.org,
Heiko Stuebner <heiko@sntech•de>,
linux-kernel@vger•kernel.org, linux-rockchip@lists•infradead.org,
robh+dt@kernel•org, christoph.muellner@theobroma-systems•com
Subject: [PATCH 10/13] arm64: dts: rockchip: add px30-evb i2c1 devices
Date: Tue, 17 Sep 2019 10:26:56 +0200 [thread overview]
Message-ID: <20190917082659.25549-10-heiko@sntech.de> (raw)
In-Reply-To: <20190917082659.25549-1-heiko@sntech.de>
Enable i2c1 and adds the devices connected to it.
This includes a magnetometer, goodix-touchscreen and accelerometer.
Signed-off-by: Heiko Stuebner <heiko@sntech•de>
---
arch/arm64/boot/dts/rockchip/px30-evb.dts | 37 +++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/px30-evb.dts b/arch/arm64/boot/dts/rockchip/px30-evb.dts
index 80524afe94da..1185a314ba4a 100644
--- a/arch/arm64/boot/dts/rockchip/px30-evb.dts
+++ b/arch/arm64/boot/dts/rockchip/px30-evb.dts
@@ -349,6 +349,43 @@
};
};
+&i2c1 {
+ status = "okay";
+
+ sensor@d {
+ compatible = "asahi-kasei,ak8963";
+ reg = <0x0d>;
+ gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
+ vdd-supply = <&vcc3v0_pmu>;
+ mount-matrix = "1", /* x0 */
+ "0", /* y0 */
+ "0", /* z0 */
+ "0", /* x1 */
+ "1", /* y1 */
+ "0", /* z1 */
+ "0", /* x2 */
+ "0", /* y2 */
+ "1"; /* z2 */
+ };
+
+ touchscreen@14 {
+ compatible = "goodix,gt1151";
+ reg = <0x14>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
+ irq-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
+ reset-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
+ VDDIO-supply = <&vcc3v3_lcd>;
+ };
+
+ sensor@4c {
+ compatible = "fsl,mma7660";
+ reg = <0x4c>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
+ };
+};
+
&i2s1_2ch {
status = "okay";
};
--
2.20.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-09-17 8:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-17 8:26 [PATCH 01/13] arm64: dts: rockchip: fix iface clock-name on px30 iommus Heiko Stuebner
2019-09-17 8:26 ` [PATCH 02/13] arm64: dts: rockchip: remove static xin32k from px30 Heiko Stuebner
2019-09-17 8:26 ` [PATCH 03/13] arm64: dts: rockchip: remove px30 emmc_pwren pinctrl Heiko Stuebner
2019-09-17 8:26 ` [PATCH 04/13] arm64: dts: rockchip: add default px30 emmc pinctrl Heiko Stuebner
2019-09-17 8:26 ` [PATCH 05/13] arm64: dts: rockchip: fix the px30-evb power tree Heiko Stuebner
2019-09-17 8:26 ` [PATCH 06/13] arm64: dts: rockchip: add emmc-powersequence to px30-evb Heiko Stuebner
2019-09-17 8:26 ` [PATCH 07/13] arm64: dts: rockchip: move px30-evb console output to uart 5 Heiko Stuebner
2019-09-17 8:26 ` [PATCH 08/13] arm64: dts: rockchip: remove unused pin settings from px30 Heiko Stuebner
2019-09-17 8:26 ` [PATCH 09/13] arm64: dts: rockchip: document explicit px30 cru dependencies Heiko Stuebner
2019-09-30 22:58 ` Rob Herring
2019-09-17 8:26 ` Heiko Stuebner [this message]
2019-09-17 8:26 ` [PATCH 11/13] dt-bindings: document PX30 usb2phy General Register Files Heiko Stuebner
2019-09-30 22:58 ` Rob Herring
2019-09-17 8:26 ` [PATCH 12/13] arm64: dts: rockchip: add usb2phy for px30 Heiko Stuebner
2019-09-17 8:26 ` [PATCH 13/13] arm64: dts: rockchip: enable usb2phy on px30-evb Heiko Stuebner
2019-10-03 21:25 ` [PATCH 01/13] arm64: dts: rockchip: fix iface clock-name on px30 iommus Heiko Stuebner
2019-10-31 14:15 ` Heiko Stuebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190917082659.25549-10-heiko@sntech.de \
--to=heiko@sntech$(echo .)de \
--cc=christoph.muellner@theobroma-systems$(echo .)com \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-rockchip@lists$(echo .)infradead.org \
--cc=mark.rutland@arm$(echo .)com \
--cc=robh+dt@kernel$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox