replace common qcom sources with samsung ones

This commit is contained in:
SaschaNes
2025-08-12 22:13:00 +02:00
parent ba24dcded9
commit 6f7753de11
5682 changed files with 2450203 additions and 103634 deletions

View File

@@ -0,0 +1,26 @@
#ifeq ($(CONFIG_ARCH_PINEAPPLE),y)
#dtbo-y += pineapple-kiwi-bt.dtbo
#endif
#ifeq ($(CONFIG_ARCH_SUN), y)
#dtbo-y += sun-peach-bt.dtbo
#dtbo-y += sun-kiwi-bt.dtbo
#dtbo-y += sun-peach-bt-v8.dtbo
#dtbo-y += sun-kiwi-bt-v8.dtbo
#dtbo-y += sun-wcn786x-v8.dtbo
#dtbo-y += sunp-hdk-peach-bt-v8.dtbo
#endif
#ifeq ($(CONFIG_ARCH_RAVELIN), y)
#dtbo-y += ravelin-bt.dtbo
#endif
#ifeq ($(CONFIG_ARCH_PARROT), y)
#dtbo-y += parrot-wcn3990-bt.dtbo
#dtbo-y += parrot-wcn6750-bt.dtbo
#endif
#always-y := $(dtb-y) $(dtbo-y)
#subdir-y := $(dts-dirs)
#clean-files := *.dtb *.dtbo

View File

@@ -0,0 +1,9 @@
KBUILD_OPTIONS += KBUILD_EXTMOD_DTS=.
all: dtbs
clean:
$(MAKE) -C $(KERNEL_SRC) M=$(M) clean
%:
$(MAKE) -C $(KERNEL_SRC) M=$(M) $@ $(KBUILD_OPTIONS)

View File

@@ -0,0 +1,16 @@
* BTFM Slimbus Slave Driver
BTFM Slimbus Slave driver configure and initialize slimbus slave device.
Bluetooth A2DP, SCO and FM Audio data is transferred over slimbus interface.
Required properties:
- compatible: Should be set to the following where 217 is manufacture id and 221 is prod id:
ex. HSP elmental address is 0x000120021702
compatible = "slim217,221"
- reg should be filled as per specs
reg = <1 0>;
Example:
slimbus: btfmslim-driver {
compatible = "slim217,221";
reg = <1 0>;
};

View File

@@ -0,0 +1,60 @@
* Bluetooth Controller
Bluetooth controller communicates with the Bluetooth Host using HCI Transport
layer. HCI Transport layer can be based on UART or USB serial communication
protocol.
Required properties:
- compatible: "qcom,<chip>"
chip: Should be set to one of the following:
qcom,qca6174
qcom,wcn3990
qcom,qca6390
qcom,qca6490
qcom,kiwi
- qcom,bt-reset-gpio: GPIO pin to bring BT Controller out of reset
Optional properties:
- qcom,xo-clk-gpio: GPIO for enabling clock at bootstrap
- qcom,bt-vdd-pa-supply: Bluetooth VDD PA regulator handle
- qcom,bt-vdd-io-supply: Bluetooth VDD IO regulator handle
- qcom,bt-vdd-ldo-supply: Bluetooth VDD LDO regulator handle. Kept under
optional parameters as some of the chipsets doesn't require ldo
or it may use from same vddio.
- qcom,bt-vdd-xtal-supply: Bluetooth VDD XTAL regulator handle
- qcom,bt-vdd-core-supply: Bluetooth VDD CORE regulator handle
- qcom,bt-vdd-asd-supply: Bluetooth VDD regulator handle for antenna switch
- reg: Memory regions defined as starting address and size
- reg-names: Names of the memory regions defined in reg entry
diversity.
- qcom,bt-chip-pwd-supply: Chip power down gpio is required when bluetooth
module and other modules like wifi co-exist in a singe chip and
shares a common gpio to bring chip out of reset.
- qcom,<supply>-config: Specifies voltage/current levels for supply. Should specified
in pairs (min, max), units uV. There can be optional
load in curr, unit uA. Last entry specifies if the retention
mode is supported for the regulator.
- mboxes: Specifies mbox channel data for AOP messaging
- qcom,vreg_ipa: Specifies Voltage regulator used for QCA6490 Internal Power
Amp config
Example:
bluetooth: bt_qca6490 {
compatible = "qcom,qca6390", "qcom,qca6490";
pinctrl-names = "default";
pinctrl-0 = <&bt_en_sleep>;
qcom,bt-reset-gpio = <&tlmm 81 0>; /* BT_EN */
qcom,wl-reset-gpio = <&tlmm 80 0>; /* WL_EN */
qcom,bt-sw-ctrl-gpio = <&tlmm 82 0>; /* SW_CTRL */
qcom,bt-xo-clk-gpio = <&tlmm 204 0>; /* XO */
qcom,bt-vdd-aon-supply = <&S11B>;
qcom,bt-vdd-dig-supply = <&S11B>;
qcom,bt-vdd-rfa1-supply = <&S1C>;
qcom,bt-vdd-rfa2-supply = <&S12B>;
qcom,bt-vdd-asd-supply = <&L7E>;
qcom,bt-vdd-aon-config = <966000 966000 0 1>;
qcom,bt-vdd-dig-config = <966000 966000 0 1>;
qcom,bt-vdd-rfa1-config = <1880000 1880000 0 1>;
qcom,bt-vdd-rfa2-config = <1350000 1350000 0 1>;
qcom,bt-vdd-asd-config = <2800000 2800000 0 1>;
};

View File

@@ -0,0 +1,13 @@
Richwave FM radio device
-FM RX playback with RDS
FM signal is demodulated then audio L/R samples are sent to external audio codec.
FM Rx RDS data received sent to host processor on I2C.
Required Properties:
- compatible: "rtc6226"
Example:
rtc6226 {
compatible = "rtc6226";
};

View File

@@ -0,0 +1,18 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "parrot-wcn3990-bt.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Parrot SoC";
compatible = "qcom,parrot";
qcom,msm-id = <537 0x10000>, <583 0x10000>, <613 0x10000>, <631 0x10000>, <633 0x10000>, <634 0x10000>, <638 0x10000>, <663 0x10000>;
qcom,board-id = <33 0>, <34 1>, <34 3>, <34 0x601>, <34 0x603>;
};

View File

@@ -0,0 +1,63 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
&soc {
bluetooth: bt_wcn3990 {
compatible = "qcom,wcn3990";
qcom,bt-sw-ctrl-gpio = <&tlmm 61 GPIO_ACTIVE_HIGH>;
qcom,bt-vdd-io-supply = <&L22B>; /* IO */
qcom,bt-vdd-core-supply = <&L14B>; /* RFA */
qcom,bt-vdd-pa-supply = <&L10E>; /* CH0 */
qcom,bt-vdd-xtal-supply = <&L1E>; /* XO */
qcom,bt-vdd-io-config = <1700000 1900000 1 0>;
qcom,bt-vdd-core-config = <1304000 1304000 1 0>;
qcom,bt-vdd-pa-config = <3000000 3312000 1 0>;
qcom,bt-vdd-xtal-config = <1700000 1900000 1 0>;
};
slim_msm: slim@3340000 {
status = "ok";
ngd@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <1>;
//slimbus child nodes
slimbus: btfmslim-driver {
compatible = "slim217,221";
reg = <1 0>;
qcom,btslim-address = <0x0>; /* BT SLIM EP address*/
qcom,btslimtx-channels = <159 160>;
qcom,btslimrx-channels = <157 158>;
};
};
};
};
//FM changes
&qupv3_se2_i2c {
status = "ok";
nq@64 {
compatible = "rtc6226";
reg = <0x64>;
fmint-gpio = <&tlmm 105 0>;
vdd-supply = <&L5E>;
rtc6226,vdd-supply-voltage = <2800000 2800000>;
rtc6226,vdd-load = <15000>;
vio-supply = <&L22B>;
rtc6226,vio-supply-voltage = <1800000 1800000>;
};
};
//uart instance
&qupv3_se11_4uart {
status = "ok";
};

View File

@@ -0,0 +1,18 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "parrot-wcn6750-bt.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Parrot SoC";
compatible = "qcom,parrot";
qcom,msm-id = <537 0x10000>, <583 0x10000>, <613 0x10000>, <631 0x10000>, <633 0x10000>, <634 0x10000>, <638 0x10000>, <663 0x10000>;
qcom,board-id = <34 0>, <34 2>, <34 4>, <34 5>, <34 6>, <34 0x600>, <34 0x602>, <34 0x604>, <0x1000B 1>, <0x1000B 2>, <0x1000B 0x601>;
};

View File

@@ -0,0 +1,78 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
&soc {
bluetooth: bt_wcn6750 {
compatible = "qcom,wcn6750-bt";
pinctrl-names = "default";
pinctrl-0 = <&bt_en_sleep>;
qcom,bt-reset-gpio = <&tlmm 35 0>; /* BT_EN */
qcom,bt-sw-ctrl-gpio = <&tlmm 61 0>; /* SW_CTRL */
qcom,wl-reset-gpio = <&tlmm 36 0>; /* WL_EN */
tsens = "quiet-therm";
qcom,bt-vdd-io-supply = <&L22B>; /* IO */
qcom,bt-vdd-aon-supply = <&S7B>;
qcom,bt-vdd-dig-supply = <&S7B>; /* BT_CX_MX */
qcom,bt-vdd-rfacmn-supply = <&S7B>;
qcom,bt-vdd-rfa-0p8-supply = <&S7B>;
qcom,bt-vdd-rfa1-supply = <&S8E>; /*RFA 1p7*/
qcom,bt-vdd-rfa2-supply = <&S8B>; /*RFA 1p2*/
qcom,bt-vdd-ipa-2p2-supply = <&S9B>; /*IPA 2p2*/
//qcom,bt-vdd-asd-supply = <&L11C>;
/* max voltage are set to regulator max voltage supported */
qcom,bt-vdd-io-config = <1800000 2000000 0 1>;
qcom,bt-vdd-aon-config = <824000 1174000 0 1>;
qcom,bt-vdd-dig-config = <824000 1174000 0 1>;
qcom,bt-vdd-rfacmn-config = <824000 1174000 0 1>;
qcom,bt-vdd-rfa-0p8-config = <824000 1174000 0 1>;
qcom,bt-vdd-rfa1-config = <1872000 2040000 0 1>;
qcom,bt-vdd-rfa2-config = <1256000 1654000 0 1>;
qcom,bt-vdd-ipa-2p2-config = <2200000 2208000 0 1>;
//qcom,bt-vdd-asd-config = <2800000 3544000 0 1>;
};
slim_msm: slim@3340000 {
status = "ok";
ngd@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <1>;
//slimbus child nodes
slimbus: btfmslim-driver {
compatible = "slim217,221";
reg = <1 0>;
qcom,btslim-address = <0x0>; /* BT SLIM EP address*/
qcom,btslimtx-channels = <159 160>;
qcom,btslimrx-channels = <157 158>;
};
};
};
};
//FM changes
&qupv3_se2_i2c {
status = "ok";
nq@64 {
compatible = "rtc6226";
reg = <0x64>;
fmint-gpio = <&tlmm 105 0>;
vdd-supply = <&L5E>;
rtc6226,vdd-supply-voltage = <2800000 2800000>;
rtc6226,vdd-load = <15000>;
vio-supply = <&L22B>;
rtc6226,vio-supply-voltage = <1800000 1800000>;
};
};
//uart instance
&qupv3_se11_4uart {
status = "ok";
};

View File

@@ -0,0 +1,17 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "pineapple-kiwi-bt.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Pineapple SoCs";
compatible = "qcom,pineapple", "qcom,pineapplep";
qcom,msm-id = <557 0x10000>, <577 0x10000>, <557 0x20000>, <577 0x20000>;
qcom,board-id = <0 0>;
};

View File

@@ -0,0 +1,98 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interconnect/qcom,pineapple.h>
&tlmm {
bt_en_sleep: bt_en_sleep {
mux {
pins = "gpio17";
function = "gpio";
};
config {
pins = "gpio17";
drive-strength = <2>;
output-low;
bias-pull-down;
};
};
};
&soc {
bluetooth: bt_kiwi {
compatible = "qcom,kiwi";
pinctrl-names = "bt_en_sleep";
pinctrl-0 = <&bt_en_sleep>;
/* List of GPIOs to be setup for interrupt wakeup capable*/
mpm_wake_set_gpios = <18>;
qcom,bt-reset-gpio = <&tlmm 17 0>; /* BT_EN */
qcom,wl-reset-gpio = <&tlmm 16 0>; /* WL_EN */
qcom,bt-sw-ctrl-gpio = <&tlmm 18 0>; /* SW_CTRL */
mboxes = <&qmp_aop 0>;
qcom,bt-vdd18-aon-supply = <&L15B>; /* BT VDD1.8 AON */
qcom,bt-vdd12-io-supply = <&L3C>; /* BT VDD1.2V IO */
qcom,bt-ant-ldo-supply = <&L6K>; /* BT ANT */
qcom,bt-vdd-dig-supply = <&S3C>; /* BT LDO*/
qcom,bt-vdd-aon-supply = <&S3C>; /* BT AON LDO*/
qcom,bt-vdd-rfaOp8-supply = <&S3C>; /* BT RFAOp8 CMN LDO*/
qcom,bt-vdd-rfa1-supply = <&S1C>; /* BT RFA1.2 LDO */
qcom,bt-vdd-rfa2-supply = <&S6C>; /* BT RFA1.8 LDO */
qcom,bt-vdd18-aon-config = <1800000 1800000 0 1>;
qcom,bt-vdd12-io-config = <1200000 1200000 0 1>;
qcom,bt-ant-ldo-config = <1800000 1800000 0 1>;
qcom,bt-vdd-aon-config = <916000 916000 0 1>;
qcom,bt-vdd-dig-config = <916000 916000 0 1>;
qcom,bt-vdd-rfaOp8-config = <916000 916000 0 1>;
qcom,bt-vdd-rfa1-config = <1316000 1316000 0 1>;
qcom,bt-vdd-rfa2-config = <1864000 1864000 0 1>;
qcom,pdc_init_table=
"{class: wlan_pdc, ss: rf, res: s3c.v, upval: 916}",
"{class: wlan_pdc, ss: rf, res: s3c.v, dwnval: 612}",
"{class: wlan_pdc, ss: rf, res: s1c.v, upval: 1316}",
"{class: wlan_pdc, ss: rf, res: s1c.v, dwnval: 944}",
"{class: wlan_pdc, ss: rf, res: s6c.v, upval: 1864}",
"{class: wlan_pdc, ss: rf, res: s6c.v, dwnval: 1820}";
};
slim_msm: slim@6C40000 {
status = "ok";
ngd@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <1>;
//slimbus child nodes
slimbus: btfmslim-driver {
compatible = "slim217,221";
reg = <1 0>;
qcom,btslim-address = <0x0>; /* BT SLIM EP address*/
qcom,btslimtx-channels = <159 160>; /* slimbus FM_Tx, SCO_Tx channels */
qcom,btslimrx-channels = <157 158>; /* slimbus SCO_A2DP_Rx A2DP_Rx */
};
};
};
};
// FM changes
&qupv3_se6_i2c {
status = "ok";
nq@64 {
compatible = "rtc6226";
reg = <0x64>;
fmint-gpio = <&tlmm 85 0>;
vdd-supply = <&L16B>;
rtc6226,vdd-supply-voltage = <2800000 2800000>;
rtc6226,vdd-load = <15000>;
vio-supply = <&L15B>;
rtc6226,vio-supply-voltage = <1800000 1800000>;
};
};
//uart instance
&qupv3_se14_4uart {
status = "ok";
};

View File

@@ -0,0 +1,18 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "ravelin-bt.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Ravelin SoC";
compatible = "qcom,ravelin";
qcom,msm-id = <568 0x10000>, <581 0x10000>, <582 0x10000>, <602 0x10000>, <653 0x10000>,
<654 0x10000>;
qcom,board-id = <0 0>, <0x1000B 0>, <0x1000B 0x600>, <33 0>, <34 0>, <34 0x601>, <34 2>;
};

View File

@@ -0,0 +1,48 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interconnect/qcom,ravelin.h>
&soc {
bluetooth: bt_wcn3990 {
compatible = "qcom,wcn3990";
qcom,bt-sw-ctrl-gpio = <&tlmm 56 GPIO_ACTIVE_HIGH>;
qcom,bt-vdd-io-supply = <&L21B>;
qcom,bt-vdd-core-supply = <&L14B>;
qcom,bt-vdd-pa-supply = <&L7E>;
qcom,bt-vdd-xtal-supply = <&L23B>;
qcom,bt-vdd-io-config = <1700000 1900000 1 0>;
qcom,bt-vdd-core-config = <1304000 1304000 1 0>;
qcom,bt-vdd-pa-config = <3000000 3312000 1 0>;
qcom,bt-vdd-xtal-config = <1700000 1900000 1 0>;
};
slim_msm: slim@3340000 {
status = "ok";
ngd@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <1>;
//slimbus child nodes
slimbus: btfmslim-driver {
compatible = "slim217,221";
reg = <1 0>;
qcom,btslim-address = <0x0>; /* BT SLIM EP address*/
qcom,btslimtx-channels = <159 160>;
qcom,btslimrx-channels = <157 158>;
};
};
};
};
//uart instance
&qupv3_se2_4uart {
status = "ok";
};

View File

@@ -0,0 +1,19 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "sun-kiwi-bt-v8.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Sun SoCs";
compatible = "qcom,sun", "qcom,sunp";
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
<0x100026a 0x10000>, <0x100026a 0x20000>,
<0x100027f 0x10000>, <0x100027f 0x20000>;
qcom,board-id = <0x60001 0>, <0x50008 0>, <0x20015 0>, <0x60108 0>;
};

View File

@@ -0,0 +1,120 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interconnect/qcom,sun.h>
#include <dt-bindings/clock/qcom,rpmh.h>
&pm8550ve_f_gpios {
bt_en: bt_en {
pins = "gpio3";
function = "normal";
input-disable;
output-enable;
bias-disable;
power-source = <1>;
};
bt_fmd_clk_en: bt_fmd_clk_en {
pins = "gpio6";
function = "normal";
input-enable;
output-disable;
bias-disable;
power-source = <1>;
};
};
&tlmm {
cnss_bt_sw_ctrl: cnss_wlan_sw_ctrl {
mux {
pins = "gpio18";
function = "wcn_sw_ctrl";
};
};
};
&soc {
bluetooth: bt_kiwi {
compatible = "qcom,kiwi";
nvmem-cells = <&fmd_set>, <&fmd_chg_pon>, <&fmd_cnt2_stop>;
nvmem-cell-names = "fmd_set", "fmd_chg_pon", "fmd_cnt2_stop";
clocks = <&rpmhcc RPMH_RF_CLK1>;
clock-names = "bt_rf_clk1";
pinctrl-names = "bt_en", "sw_ctrl", "bt_fmd_clk_en";
pinctrl-0 = <&bt_en>;
pinctrl-1 = <&cnss_bt_sw_ctrl>;
pinctrl-2 = <&bt_fmd_clk_en>;
/* List of GPIOs to be setup for interrupt wakeup capable*/
mpm_wake_set_gpios = <18>;
qcom,wl-reset-gpio = <&tlmm 16 0>; /* WL_EN */
qcom,bt-sw-ctrl-gpio = <&tlmm 18 0>; /* SW_CTRL */
qcom,bt-fmd-clk-gpio = <&pm8550ve_f_gpios 6 0>; /* FMD_CLK_CTRL */
qcom,bt-reset-gpio = <&pm8550ve_f_gpios 3 0>; /* BT_EN */
qcom,qmp = <&aoss_qmp>;
qcom,bt-vdd18-aon-supply = <&L3F>; /* BT VDD1.8 AON */
qcom,bt-vdd12-io-supply = <&L2F>; /* BT VDD1.2V IO */
qcom,bt-ant-ldo-supply = <&L6K>; /* BT ANT - AV91C_VDD */
qcom,bt-vdd-aon-supply = <&S1D>; /* BT AON LDO*/
qcom,bt-vdd-rfaOp8-supply = <&S1D>; /* BT RFAOp8 CMN LDO*/
qcom,bt-vdd-rfa1-supply = <&S7I>; /* BT RFA1.2 LDO */
qcom,bt-vdd-rfa2-supply = <&S3G>; /* BT RFA1.8 LDO */
qcom,bt-vdd18-aon-config = <1800000 1800000 30000 1 1>;
qcom,bt-vdd12-io-config = <1200000 1200000 30000 1 1>;
qcom,bt-ant-ldo-config = <1800000 1800000 0 1 0>;
qcom,bt-vdd-aon-config = <916000 1100000 0 1 0>;
qcom,bt-vdd-rfaOp8-config = <916000 1100000 0 1 0>;
qcom,bt-vdd-rfa1-config = <1316000 1340000 0 1 0>;
qcom,bt-vdd-rfa2-config = <1864000 2000000 0 1 0>;
qcom,pdc_init_table =
"{class: wlan_pdc, ss: rf, res: s3g.v, upval: 1856}",
"{class: wlan_pdc, ss: rf, res: s3g.v, dwnval: 1844}",
"{class: wlan_pdc, ss: rf, res: s7i.v, upval: 1316}",
"{class: wlan_pdc, ss: rf, res: s7i.v, dwnval: 972}",
"{class: wlan_pdc, ss: rf, res: s1d.m, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s1d.v, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s1d.v, upval: 916}",
"{class: wlan_pdc, ss: rf, res: s1d.v, dwnval: 880}";
};
slim_msm: slim@6C40000 {
status = "ok";
ngd@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <1>;
//slimbus child nodes
slimbus: btfmslim-driver {
compatible = "slim217,221";
reg = <1 0>;
qcom,btslim-address = <0x0>; /* BT SLIM EP address*/
qcom,btslimtx-channels = <159 160>; /* slimbus FM_Tx, SCO_Tx channels */
qcom,btslimrx-channels = <157 158>; /* slimbus SCO_A2DP_Rx A2DP_Rx */
};
};
};
};
// FM changes
&qupv3_se5_i2c {
status = "ok";
nq@64 {
compatible = "rtc6226";
reg = <0x64>;
fmint-gpio = <&tlmm 84 0>;
vdd-supply = <&L16B>;
rtc6226,vdd-supply-voltage = <2800000 2800000>;
rtc6226,vdd-load = <15000>;
vio-supply = <&L15B>;
rtc6226,vio-supply-voltage = <1800000 1800000>;
};
};
//uart instance
&qupv3_se14_4uart {
status = "ok";
};

View File

@@ -0,0 +1,19 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "sun-kiwi-bt.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Sun SoCs";
compatible = "qcom,sun", "qcom,sunp", "qcom,sun-mtp", "qcom,sun-cdp";
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
<0x100026a 0x10000>, <0x100026a 0x20000>,
<0x100027f 0x10000>, <0x100027f 0x20000>;
qcom,board-id = <0x20001 0>, <0x20008 0>, <0x40015 0>;
};

View File

@@ -0,0 +1,105 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interconnect/qcom,sun.h>
&pm8550vs_f_gpios {
bt_uwb_en: bt_uwb_en {
pins = "gpio3";
function = "normal";
input-disable;
output-enable;
bias-disable;
power-source = <1>;
};
};
&tlmm {
cnss_bt_sw_ctrl: cnss_wlan_sw_ctrl {
mux {
pins = "gpio18";
function = "wcn_sw_ctrl";
};
};
};
&soc {
bluetooth: bt_kiwi {
compatible = "qcom,kiwi";
pinctrl-names = "bt_uwb_en", "sw_ctrl";
pinctrl-0 = <&bt_uwb_en>;
pinctrl-1 = <&cnss_bt_sw_ctrl>;
/* List of GPIOs to be setup for interrupt wakeup capable*/
mpm_wake_set_gpios = <18>;
qcom,wl-reset-gpio = <&tlmm 16 0>; /* WL_EN */
qcom,bt-sw-ctrl-gpio = <&tlmm 18 0>; /* SW_CTRL */
qcom,bt-reset-gpio = <&pm8550vs_f_gpios 3 0>; /* BT_EN */
qcom,qmp = <&aoss_qmp>;
qcom,bt-vdd18-aon-supply = <&L3F>; /* BT VDD1.8 AON */
qcom,bt-vdd12-io-supply = <&L2F>; /* BT VDD1.2V IO */
qcom,bt-ant-ldo-supply = <&L6K>; /* BT ANT - AV91C_VDD */
qcom,bt-vdd-aon-supply = <&S1D>; /* BT AON LDO*/
qcom,bt-vdd-rfaOp8-supply = <&S1D>; /* BT RFAOp8 CMN LDO*/
qcom,bt-vdd-rfa1-supply = <&S7I>; /* BT RFA1.2 LDO */
qcom,bt-vdd-rfa2-supply = <&S3G>; /* BT RFA1.8 LDO */
qcom,bt-vdd18-aon-config = <1800000 1800000 30000 1 0>;
qcom,bt-vdd12-io-config = <1200000 1200000 30000 1 0>;
qcom,bt-ant-ldo-config = <1800000 1800000 0 1 0>;
qcom,bt-vdd-aon-config = <916000 1100000 0 1 0>;
qcom,bt-vdd-rfaOp8-config = <916000 1100000 0 1 0>;
qcom,bt-vdd-rfa1-config = <1316000 1340000 0 1 0>;
qcom,bt-vdd-rfa2-config = <1864000 2000000 0 1 0>;
qcom,pdc_init_table =
"{class: wlan_pdc, ss: rf, res: s3g.v, upval: 1856}",
"{class: wlan_pdc, ss: rf, res: s3g.v, dwnval: 1844}",
"{class: wlan_pdc, ss: rf, res: s7i.v, upval: 1316}",
"{class: wlan_pdc, ss: rf, res: s7i.v, dwnval: 972}",
"{class: wlan_pdc, ss: rf, res: s1d.m, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s1d.v, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s1d.v, upval: 916}",
"{class: wlan_pdc, ss: rf, res: s1d.v, dwnval: 880}";
};
slim_msm: slim@6C40000 {
status = "ok";
ngd@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <1>;
//slimbus child nodes
slimbus: btfmslim-driver {
compatible = "slim217,221";
reg = <1 0>;
qcom,btslim-address = <0x0>; /* BT SLIM EP address*/
qcom,btslimtx-channels = <159 160>; /* slimbus FM_Tx, SCO_Tx channels */
qcom,btslimrx-channels = <157 158>; /* slimbus SCO_A2DP_Rx A2DP_Rx */
};
};
};
};
// FM changes
&qupv3_se5_i2c {
status = "ok";
nq@64 {
compatible = "rtc6226";
reg = <0x64>;
fmint-gpio = <&tlmm 84 0>;
vdd-supply = <&L16B>;
rtc6226,vdd-supply-voltage = <2800000 2800000>;
rtc6226,vdd-load = <15000>;
vio-supply = <&L15B>;
rtc6226,vio-supply-voltage = <1800000 1800000>;
};
};
//uart instance
&qupv3_se14_4uart {
status = "ok";
};

View File

@@ -0,0 +1,21 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "sun-peach-bt-v8.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Sun SoCs";
compatible = "qcom,sun", "qcom,sunp";
qcom,msm-id = <618 0x10000>, <618 0x20000>,
<639 0x10000>, <639 0x20000>,
<0x100026a 0x10000>, <0x100026a 0x20000>,
<0x100027f 0x10000>, <0x100027f 0x20000>;
qcom,board-id = <0x50001 0>, <0x40008 0>, <0x3000B 0>, <0x3000B 1>,<0x2000B 0>,
<0x30015 0>, <0x10021 0>, <0x60008 0>, <0x40108 0>;
};

View File

@@ -0,0 +1,118 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interconnect/qcom,sun.h>
#include <dt-bindings/clock/qcom,rpmh.h>
&pm8550ve_f_gpios {
bt_uwb_en: bt_uwb_en {
pins = "gpio3";
function = "normal";
input-disable;
output-enable;
bias-disable;
power-source = <1>;
};
bt_fmd_clk_en: bt_fmd_clk_en {
pins = "gpio6";
function = "normal";
input-enable;
output-disable;
bias-disable;
power-source = <1>;
};
};
&tlmm {
cnss_bt_sw_ctrl: cnss_wlan_sw_ctrl {
mux {
pins = "gpio18";
function = "wcn_sw_ctrl";
};
};
};
&soc {
bluetooth: bt_peach {
compatible = "qcom,peach-bt";
nvmem-cells = <&fmd_set>, <&fmd_chg_pon>, <&fmd_cnt2_stop>;
nvmem-cell-names = "fmd_set", "fmd_chg_pon", "fmd_cnt2_stop";
clocks = <&rpmhcc RPMH_RF_CLK1>;
clock-names = "bt_rf_clk1";
qcom,peach-bt;
pinctrl-names = "bt_uwb_en", "sw_ctrl", "bt_fmd_clk_en";
pinctrl-0 = <&bt_uwb_en>;
pinctrl-1 = <&cnss_bt_sw_ctrl>;
pinctrl-2 = <&bt_fmd_clk_en>;
/* List of GPIOs to be setup for interrupt wakeup capable*/
mpm_wake_set_gpios = <18 9>;
qcom,wl-reset-gpio = <&tlmm 16 0>; /* WL_EN */
qcom,bt-sw-ctrl-gpio = <&tlmm 18 0>; /* SW_CTRL */
qcom,bt-fmd-clk-gpio = <&pm8550ve_f_gpios 6 0>; /* FMD_CLK_CTRL */
qcom,bt-reset-gpio = <&pm8550ve_f_gpios 3 0>; /* BT_EN */
qcom,qmp = <&aoss_qmp>;
qcom,bt-vdd18-aon-supply = <&L3F>; /* VDD1P8_AON */
qcom,bt-vdd12-io-supply = <&L2F>; /* VDD1P2_IO */
qcom,bt-ant-ldo-supply = <&L6K>; /* AV91C_VDD Extractor */
qcom,bt-vdd-dig-supply = <&S5F>; /* BT CX_MX LDO */
qcom,bt-vdd-aon-supply = <&S5F>; /* RFA_CMN/AON */
qcom,bt-vdd-rfa0p75-supply = <&S5F>; /* RFA_OP75 */
qcom,bt-vdd-rfa1p8-supply = <&S3G>; /* RFA_1P8 */
qcom,bt-vdd-rfa1p25-supply = <&S7I>; /* RFA_1P2 */
qcom,bt-vdd18-aon-config = <1800000 1800000 30000 1 1>;
qcom,bt-vdd12-io-config = <1200000 1200000 30000 1 1>;
qcom,bt-ant-ldo-config = <1800000 1860000 0 1 0>;
qcom,bt-vdd-aon-config = <876000 1000000 0 1 0>;
qcom,bt-vdd-dig-config = <876000 1000000 0 1 1>;
qcom,bt-vdd-rfa0p75-config = <876000 1000000 0 1 0>;
qcom,bt-vdd-rfa1p8-config = <1860000 2000000 0 1 0>;
qcom,bt-vdd-rfa1p25-config = <1312000 1340000 0 1 0>;
/* WLAN regulator for FMD feature */
qcom,bt-vdd-wlan-aon-supply = <&S4D>;
qcom,bt-vdd-wlan-aon-config = <876000 1036000 0 0 1>;
qcom,pdc_init_table =
"{class: wlan_pdc, ss: rf, res: s5f.m, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s5f.v, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s5f.v, upval: 876}",
"{class: wlan_pdc, ss: rf, res: s5f.v, dwnval: 876}";
};
};
&swr4 {
btswr_slave: btswr-slave {
compatible = "qcom,btfmswr_slave";
reg = <0x02 0x08170220>;
};
};
// FM changes
&qupv3_se5_i2c {
status = "ok";
fm_rtc6226: nq@64 {
compatible = "rtc6226";
reg = <0x64>;
fmint-gpio = <&tlmm 84 0>;
vdd-supply = <&L16B>;
rtc6226,vdd-supply-voltage = <2800000 2800000>;
rtc6226,vdd-load = <15000>;
vio-supply = <&L15B>;
rtc6226,vio-supply-voltage = <1800000 1800000>;
};
};
//uart instance
&qupv3_se14_4uart {
status = "ok";
};
//q2spi instance
&qupv3_se13_q2spi {
status = "ok";
};

View File

@@ -0,0 +1,20 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "sun-peach-bt.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Sun SoCs";
compatible = "qcom,sun", "qcom,sunp";
qcom,msm-id = <618 0x10000>, <618 0x20000>,
<639 0x10000>, <639 0x20000>,
<0x100026a 0x10000>, <0x100026a 0x20000>,
<0x100027f 0x10000>, <0x100027f 0x20000>;
qcom,board-id = <1 0>, <8 0>, <0x1000B 0>, <0x15 0>, <0x108 0>;
};

View File

@@ -0,0 +1,99 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interconnect/qcom,sun.h>
&pm8550vs_f_gpios {
bt_uwb_en: bt_uwb_en {
pins = "gpio3";
function = "normal";
input-disable;
output-enable;
bias-disable;
power-source = <1>;
};
};
&tlmm {
cnss_bt_sw_ctrl: cnss_wlan_sw_ctrl {
mux {
pins = "gpio18";
function = "wcn_sw_ctrl";
};
};
};
&soc {
bluetooth: bt_peach {
compatible = "qcom,peach-bt";
qcom,peach-bt;
pinctrl-names = "bt_uwb_en", "sw_ctrl";
pinctrl-0 = <&bt_uwb_en>;
pinctrl-1 = <&cnss_bt_sw_ctrl>;
/* List of GPIOs to be setup for interrupt wakeup capable*/
mpm_wake_set_gpios = <18>;
qcom,wl-reset-gpio = <&tlmm 16 0>; /* WL_EN */
qcom,bt-sw-ctrl-gpio = <&tlmm 18 0>; /* SW_CTRL */
qcom,bt-reset-gpio = <&pm8550vs_f_gpios 3 0>; /* BT_EN */
qcom,qmp = <&aoss_qmp>;
qcom,bt-vdd18-aon-supply = <&L3F>; /* VDD1P8_AON */
qcom,bt-vdd12-io-supply = <&L2F>; /* VDD1P2_IO */
qcom,bt-ant-ldo-supply = <&L6K>; /* AV91C_VDD Extractor */
qcom,bt-vdd-dig-supply = <&S4J>; /* BT CX_MX LDO */
qcom,bt-vdd-aon-supply = <&S4J>; /* RFA_CMN/AON */
qcom,bt-vdd-rfa0p75-supply = <&S4J>; /* RFA_OP75 */
qcom,bt-vdd-rfa1p8-supply = <&S3G>; /* RFA_1P8 */
qcom,bt-vdd-rfa1p25-supply = <&S7I>; /* RFA_1P2 */
qcom,bt-vdd18-aon-config = <1800000 1800000 30000 1 0>;
qcom,bt-vdd12-io-config = <1200000 1200000 30000 1 0>;
qcom,bt-ant-ldo-config = <1800000 1860000 0 1 0>;
qcom,bt-vdd-aon-config = <876000 1000000 0 1 0>;
qcom,bt-vdd-dig-config = <876000 1000000 0 1 0>;
qcom,bt-vdd-rfa0p75-config = <876000 1000000 0 1 0>;
qcom,bt-vdd-rfa1p8-config = <1860000 2000000 0 1 0>;
qcom,bt-vdd-rfa1p25-config = <1312000 1340000 0 1 0>;
qcom,pdc_init_table =
"{class: wlan_pdc, ss: rf, res: s4j.m, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s4j.v, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s4j.v, upval: 876}",
"{class: wlan_pdc, ss: rf, res: s4j.v, dwnval: 876}";
};
};
&swr4 {
btswr_slave: btswr-slave {
compatible = "qcom,btfmswr_slave";
reg = <0x02 0x08170220>;
};
};
// FM changes
&qupv3_se5_i2c {
status = "ok";
nq@64 {
compatible = "rtc6226";
reg = <0x64>;
fmint-gpio = <&tlmm 84 0>;
vdd-supply = <&L16B>;
rtc6226,vdd-supply-voltage = <2800000 2800000>;
rtc6226,vdd-load = <15000>;
vio-supply = <&L15B>;
rtc6226,vio-supply-voltage = <1800000 1800000>;
};
};
//uart instance
&qupv3_se14_4uart {
status = "ok";
};
//q2spi instance
&qupv3_se13_q2spi {
status = "ok";
};

View File

@@ -0,0 +1,19 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "sun-wcn786x-v8.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Sun SoCs";
compatible = "qcom,sun", "qcom,sunp";
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
<0x100026a 0x10000>, <0x100026a 0x20000>,
<0x100027f 0x10000>, <0x100027f 0x20000>;
qcom,board-id = <0x30008 0>, <0x40001 0>;
};

View File

@@ -0,0 +1,113 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <dt-bindings/interconnect/qcom,sun.h>
#include <dt-bindings/clock/qcom,rpmh.h>
&pm8550ve_f_gpios {
bt_en: bt_en {
pins = "gpio3";
function = "normal";
input-disable;
output-enable;
bias-disable;
power-source = <1>;
};
bt_fmd_clk_en: bt_fmd_clk_en {
pins = "gpio6";
function = "normal";
input-enable;
output-disable;
bias-disable;
power-source = <1>;
};
};
&tlmm {
cnss_bt_sw_ctrl: cnss_wlan_sw_ctrl {
mux {
pins = "gpio18";
function = "wcn_sw_ctrl";
};
};
};
&soc {
bluetooth: wcn786x {
compatible = "qcom,wcn786x";
nvmem-cells = <&fmd_set>, <&fmd_chg_pon>, <&fmd_cnt2_stop>;
nvmem-cell-names = "fmd_set", "fmd_chg_pon", "fmd_cnt2_stop";
clocks = <&rpmhcc RPMH_RF_CLK1>;
clock-names = "bt_rf_clk1";
qcom,wcn786x;
pinctrl-names = "bt_en", "sw_ctrl", "bt_fmd_clk_en";
pinctrl-0 = <&bt_en>;
pinctrl-1 = <&cnss_bt_sw_ctrl>;
pinctrl-2 = <&bt_fmd_clk_en>;
/* List of GPIOs to be setup for interrupt wakeup capable*/
mpm_wake_set_gpios = <18 9>;
qcom,wl-reset-gpio = <&tlmm 16 0>; /* WL_EN */
qcom,bt-sw-ctrl-gpio = <&tlmm 18 0>; /* SW_CTRL */
qcom,bt-fmd-clk-gpio = <&pm8550ve_f_gpios 6 0>; /* FMD_CLK_CTRL */
qcom,bt-reset-gpio = <&pm8550ve_f_gpios 3 0>; /* BT_EN */
qcom,qmp = <&aoss_qmp>;
qcom,bt-vdd18-aon-supply = <&L3F>; /* VDD1P8_AON */
qcom,bt-vdd12-io-supply = <&L2F>; /* VDD1P2_IO */
qcom,bt-ant-ldo-supply = <&L6K>; /* AV91C_VDD Extractor */
qcom,bt-vdd-dig-supply = <&S5F>; /* BT CX_MX LDO */
qcom,bt-vdd-aon-supply = <&S5F>; /* RFA_CMN/AON */
qcom,bt-vdd-rfa0p75-supply = <&S5F>; /* RFA_OP75 */
qcom,bt-vdd-rfa1p8-supply = <&S3G>; /* RFA_1P8 */
qcom,bt-vdd-rfa1p25-supply = <&S7I>; /* RFA_1P2 */
qcom,bt-vdd18-aon-config = <1800000 1800000 30000 1 1>;
qcom,bt-vdd12-io-config = <1200000 1200000 30000 1 1>;
qcom,bt-ant-ldo-config = <1800000 1860000 0 1 0>;
qcom,bt-vdd-aon-config = <876000 1000000 0 1 0>;
qcom,bt-vdd-dig-config = <876000 1000000 0 1 1>;
qcom,bt-vdd-rfa0p75-config = <876000 1000000 0 1 0>;
qcom,bt-vdd-rfa1p8-config = <1860000 2000000 0 1 0>;
qcom,bt-vdd-rfa1p25-config = <1312000 1340000 0 1 0>;
/* WLAN regulator for FMD operation, and to be used only in GNG/BRH 2.0 */
qcom,bt-vdd-wlan-aon-supply = <&S4D>;
qcom,bt-vdd-wlan-aon-config = <876000 1036000 0 0 1>;
qcom,pdc_init_table =
"{class: wlan_pdc, ss: rf, res: s5f.m, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s5f.v, enable: 1}",
"{class: wlan_pdc, ss: rf, res: s5f.v, upval: 876}",
"{class: wlan_pdc, ss: rf, res: s5f.v, dwnval: 876}";
};
};
&swr4 {
btswr_slave: btswr-slave {
compatible = "qcom,btfmswr_slave";
reg = <0x02 0x08170220>;
};
};
// FM changes
&qupv3_se5_i2c {
status = "ok";
nq@64 {
compatible = "rtc6226";
reg = <0x64>;
fmint-gpio = <&tlmm 84 0>;
vdd-supply = <&L16B>;
rtc6226,vdd-supply-voltage = <2800000 2800000>;
rtc6226,vdd-load = <15000>;
vio-supply = <&L15B>;
rtc6226,vio-supply-voltage = <1800000 1800000>;
};
};
//uart instance
&qupv3_se14_4uart {
status = "ok";
};

View File

@@ -0,0 +1,19 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/dts-v1/;
/plugin/;
#include "sunp-hdk-peach-bt-v8.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Sun SoCs HDK";
compatible = "qcom,sunp-hdk", "qcom,sunp", "qcom,hdk";
qcom,msm-id = <639 0x10000>, <639 0x20000>, <618 0x10000>, <618 0x20000>,
<0x100026a 0x10000>, <0x100026a 0x20000>,
<0x100027f 0x10000>, <0x100027f 0x20000>;
qcom,board-id = <0x1001f 0>;
};

View File

@@ -0,0 +1,14 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include "sun-peach-bt-v8.dtsi"
/delete-node/ &fm_rtc6226;
&bluetooth {
/delete-property/ qcom,bt-ant-ldo-supply;
/delete-property/ qcom,bt-ant-ldo-config;
};