0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 // Copyright (C) 2018 Jagan Teki <jagan@openedev.com>
0003
0004 #include "sun50i-h6-orangepi.dtsi"
0005
0006 / {
0007 model = "OrangePi Lite2";
0008 compatible = "xunlong,orangepi-lite2", "allwinner,sun50i-h6";
0009
0010 aliases {
0011 serial1 = &uart1; /* BT-UART */
0012 };
0013
0014 wifi_pwrseq: wifi_pwrseq {
0015 compatible = "mmc-pwrseq-simple";
0016 clocks = <&rtc CLK_OSC32K_FANOUT>;
0017 clock-names = "ext_clock";
0018 reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
0019 post-power-on-delay-ms = <200>;
0020 };
0021 };
0022
0023 &mmc1 {
0024 vmmc-supply = <®_cldo2>;
0025 vqmmc-supply = <®_bldo3>;
0026 mmc-pwrseq = <&wifi_pwrseq>;
0027 bus-width = <4>;
0028 non-removable;
0029 status = "okay";
0030
0031 brcm: sdio-wifi@1 {
0032 reg = <1>;
0033 compatible = "brcm,bcm4329-fmac";
0034 interrupt-parent = <&r_pio>;
0035 interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* PM0 */
0036 interrupt-names = "host-wake";
0037 };
0038 };
0039
0040 ®_cldo2 {
0041 /*
0042 * This regulator is connected with CLDO3.
0043 * Before the kernel can support synchronized
0044 * enable of coupled regulators, keep them
0045 * both always on as a ugly hack.
0046 */
0047 regulator-always-on;
0048 };
0049
0050 ®_cldo3 {
0051 /*
0052 * This regulator is connected with CLDO2.
0053 * See the comments for CLDO2.
0054 */
0055 regulator-always-on;
0056 };
0057
0058 /* There's the BT part of the AP6255 connected to that UART */
0059 &uart1 {
0060 pinctrl-names = "default";
0061 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
0062 uart-has-rtscts;
0063 status = "okay";
0064
0065 bluetooth {
0066 compatible = "brcm,bcm4345c5";
0067 clocks = <&rtc CLK_OSC32K_FANOUT>;
0068 clock-names = "lpo";
0069 device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
0070 host-wakeup-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
0071 shutdown-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */
0072 max-speed = <1500000>;
0073 };
0074 };