Commit 2aadb0e9 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Bjorn Andersson

ARM: dts: qcom: apq8064-flo: use labels to patch device tree

Use labels to add device-specific properties to DT nodes rather than
duplicating SoC DT structure in the device DT.
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220930185236.867655-7-dmitry.baryshkov@linaro.org
parent 36e9b342
......@@ -57,7 +57,141 @@ key-volume-down {
};
soc {
rpm@108000 {
sram@2a03f000 {
compatible = "qcom,apq8064-imem", "syscon", "simple-mfd";
reg = <0x2a03f000 0x1000>;
reboot-mode {
compatible = "syscon-reboot-mode";
offset = <0x65c>;
mode-normal = <0x77665501>;
mode-bootloader = <0x77665500>;
mode-recovery = <0x77665502>;
};
};
};
};
&dsi0 {
vdda-supply = <&pm8921_l2>;/*VDD_MIPI1 to 4*/
vdd-supply = <&pm8921_l8>;
vddio-supply = <&pm8921_lvs7>;
avdd-supply = <&pm8921_l11>;
status = "okay";
panel@0 {
reg = <0>;
compatible = "jdi,lt070me05000";
vddp-supply = <&pm8921_l17>;
iovcc-supply = <&pm8921_lvs7>;
enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
port {
panel_in: endpoint {
remote-endpoint = <&dsi0_out>;
};
};
};
};
&dsi0_in {
remote-endpoint = <&mdp_dsi1_out>;
};
&dsi0_out {
remote-endpoint = <&panel_in>;
data-lanes = <0 1 2 3>;
};
&dsi0_phy {
vddio-supply = <&pm8921_lvs7>;/*VDD_PLL2_1 to 7*/
status = "okay";
};
&gsbi1 {
qcom,mode = <GSBI_PROT_I2C>;
status = "okay";
};
&gsbi1_i2c {
status = "okay";
clock-frequency = <200000>;
pinctrl-0 = <&i2c1_pins>;
pinctrl-names = "default";
eeprom@52 {
compatible = "atmel,24c128";
reg = <0x52>;
pagesize = <32>;
};
bq27541@55 {
compatible = "ti,bq27541";
reg = <0x55>;
};
};
&gsbi3 {
qcom,mode = <GSBI_PROT_I2C>;
status = "okay";
};
&gsbi3_i2c {
clock-frequency = <200000>;
pinctrl-0 = <&i2c3_pins>;
pinctrl-names = "default";
status = "okay";
trackpad@10 {
compatible = "elan,ekth3500";
reg = <0x10>;
interrupt-parent = <&tlmm_pinmux>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
};
};
&gsbi6 {
qcom,mode = <GSBI_PROT_I2C_UART>;
status = "okay";
};
&gsbi6_serial {
pinctrl-names = "default";
pinctrl-0 = <&gsbi6_uart_4pins>;
status = "okay";
};
&gsbi7 {
qcom,mode = <GSBI_PROT_I2C_UART>;
status = "okay";
};
&gsbi7_serial {
status = "okay";
};
&mdp {
status = "okay";
};
/* eMMC */
&sdcc1 {
vmmc-supply = <&pm8921_l5>;
vqmmc-supply = <&pm8921_s4>;
status = "okay";
};
&mdp_dsi1_out {
remote-endpoint = <&dsi0_in>;
};
&rpm {
regulators {
vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
vin_lvs1_3_6-supply = <&pm8921_s4>;
......@@ -199,160 +333,15 @@ lvs7 {
bias-pull-down;
};
};
};
mdp@5100000 {
status = "okay";
ports {
port@1 {
mdp_dsi1_out: endpoint {
remote-endpoint = <&dsi0_in>;
};
};
};
};
dsi0: dsi@4700000 {
status = "okay";
vdda-supply = <&pm8921_l2>;/*VDD_MIPI1 to 4*/
vdd-supply = <&pm8921_l8>;
vddio-supply = <&pm8921_lvs7>;
avdd-supply = <&pm8921_l11>;
panel@0 {
reg = <0>;
compatible = "jdi,lt070me05000";
vddp-supply = <&pm8921_l17>;
iovcc-supply = <&pm8921_lvs7>;
enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
port {
panel_in: endpoint {
remote-endpoint = <&dsi0_out>;
};
};
};
ports {
port@0 {
dsi0_in: endpoint {
remote-endpoint = <&mdp_dsi1_out>;
};
};
port@1 {
dsi0_out: endpoint {
remote-endpoint = <&panel_in>;
data-lanes = <0 1 2 3>;
};
};
};
};
dsi-phy@4700200 {
status = "okay";
vddio-supply = <&pm8921_lvs7>;/*VDD_PLL2_1 to 7*/
};
gsbi@16200000 {
status = "okay";
qcom,mode = <GSBI_PROT_I2C>;
i2c@16280000 {
status = "okay";
clock-frequency = <200000>;
pinctrl-0 = <&i2c3_pins>;
pinctrl-names = "default";
trackpad@10 {
compatible = "elan,ekth3500";
reg = <0x10>;
interrupt-parent = <&tlmm_pinmux>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
};
};
};
gsbi@12440000 {
status = "okay";
qcom,mode = <GSBI_PROT_I2C>;
i2c@12460000 {
status = "okay";
clock-frequency = <200000>;
pinctrl-0 = <&i2c1_pins>;
pinctrl-names = "default";
eeprom@52 {
compatible = "atmel,24c128";
reg = <0x52>;
pagesize = <32>;
};
bq27541@55 {
compatible = "ti,bq27541";
reg = <0x55>;
};
};
};
gsbi@16500000 {
status = "okay";
qcom,mode = <GSBI_PROT_I2C_UART>;
serial@16540000 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&gsbi6_uart_4pins>;
};
};
gsbi@16600000 {
status = "okay";
qcom,mode = <GSBI_PROT_I2C_UART>;
serial@16640000 {
status = "okay";
};
};
};
/* OTG */
usb@12500000 {
status = "okay";
dr_mode = "otg";
ulpi {
phy {
&usb_hs1_phy {
v3p3-supply = <&pm8921_l3>;
v1p8-supply = <&pm8921_l4>;
};
};
};
};
amba {
/* eMMC */
mmc@12400000 {
/* OTG */
&usb1 {
dr_mode = "otg";
status = "okay";
vmmc-supply = <&pm8921_l5>;
vqmmc-supply = <&pm8921_s4>;
};
};
sram@2a03f000 {
compatible = "qcom,apq8064-imem", "syscon", "simple-mfd";
reg = <0x2a03f000 0x1000>;
reboot-mode {
compatible = "syscon-reboot-mode";
offset = <0x65c>;
mode-normal = <0x77665501>;
mode-bootloader = <0x77665500>;
mode-recovery = <0x77665502>;
};
};
};
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment