arm64: dts: rockchip: add Quartz64-A con40 hardware
authorPeter Geis <pgwipeout@gmail.com>
Fri, 28 Jan 2022 00:38:08 +0000 (19:38 -0500)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 29 Jan 2022 17:41:44 +0000 (18:41 +0100)
The Quartz64-A has a 40 pin connector that exposes various functions.
Annotate the functions exposed in the device tree.
Enable i2c3, which is pulled up to vcc_3v3 on board.

The following functions are currently exposed:
i2c3
spi1
uart2
uart0
spdif

Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Link: https://lore.kernel.org/r/20220128003809.3291407-5-pgwipeout@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts

index 94a164d..8332627 100644 (file)
        };
 };
 
+/* i2c3 is exposed on con40
+ * pin 3 - i2c3_sda_m0, pullup to vcc_3v3
+ * pin 5 - i2c3_scl_m0, pullup to vcc_3v3
+ */
+&i2c3 {
+       status = "okay";
+};
+
 &i2s1_8ch {
        pinctrl-names = "default";
        pinctrl-0 = <&i2s1m0_sclktx
        status = "okay";
 };
 
+/* spdif is exposed on con40 pin 18 */
 &spdif {
        status = "okay";
 };
 
+/* spi1 is exposed on con40
+ * pin 11 - spi1_mosi_m1
+ * pin 13 - spi1_miso_m1
+ * pin 15 - spi1_clk_m1
+ * pin 17 - spi1_cs0_m1
+ */
 &spi1 {
        pinctrl-names = "default";
        pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>;
        status = "okay";
 };
 
+/* uart0 is exposed on con40
+ * pin 12 - uart0_tx
+ * pin 14 - uart0_rx
+ */
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_xfer>;
        };
 };
 
+/* uart2 is exposed on con40
+ * pin 8 - uart2_tx_m0_debug
+ * pin 10 - uart2_rx_m0_debug
+ */
 &uart2 {
        status = "okay";
 };