Commit ee55f5c8 authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

arm64: dts: imx8mq-librem5: add shared imx8mq-librem5-r3.dtsi



The r3 (Dogwood) and r4 (Evergreen) hardware revisions are relatively
similar, so add a shared r3 base dtsi.

imx8mq-librem5-r3.dts includes it and only adds r3 specific hacks and
values that are not used for r4. r4 Adds to r3.dtsi appropriately.
Signed-off-by: Martin Kepplinger's avatarMartin Kepplinger <martin.kepplinger@puri.sm>
parent 8baf299c
Pipeline #68449 passed with stage
in 66 minutes and 46 seconds
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
// Copyright (C) 2020 Purism SPC <kernel@puri.sm>
// Copyright (C) 2021 Purism SPC <kernel@puri.sm>
/dts-v1/;
#include "imx8mq-librem5.dtsi"
/ {
model = "Purism Librem 5r3";
compatible = "purism,librem5r3", "purism,librem5", "fsl,imx8mq";
dogwood_leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_smc_boot>;
smc-boot {
label = "smc_boot";
gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
reg_camera1_pwr_en: regulator-camera1-pwr-en {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_r3_camera_pwr>;
regulator-name = "CAMERA1_PWR_EN";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
gpio = <&gpio5 4 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
#include "imx8mq-librem5-r3.dtsi"
&a53_opp_table {
opp-1000000000 {
......@@ -39,67 +11,6 @@ opp-1000000000 {
};
};
&accel_gyro {
mount-matrix = "1", "0", "0",
"0", "1", "0",
"0", "0", "-1";
};
&bat {
maxim,battery-capacity = <3400000>; /* uAh */
};
&bq25895 {
ti,charge-current = <1500000>; /* uA */
};
&buck3_reg {
regulator-always-on;
};
&camera_front {
vdd1-supply = <&reg_camera1_pwr_en>;
};
/delete-node/ &dcss_dsi_out;
/delete-node/ &mipi_dsi_dcss_in;
&dcss {
status = "okay";
port@0 {
dcss_dp_out: endpoint {
remote-endpoint = <&hdmi_in>;
};
};
};
&hdmi {
compatible = "nxp,imx8mq-cdns-dp";
extcon = <&typec_pd>;
lane-mapping = <0xc6>;
status = "okay";
port@1 {
hdmi_in: endpoint {
remote-endpoint = <&dcss_dp_out>;
};
};
};
&iomuxc {
pinctrl_r3_camera_pwr: r3camerapwrgrp {
fsl,pins = <
MX8MQ_IOMUXC_SPDIF_RX_GPIO5_IO4 0x83
>;
};
pinctrl_smc_boot: smcbootgrp {
fsl,pins = <
/* SMC_BOOT0 */
MX8MQ_IOMUXC_UART4_TXD_GPIO5_IO29 0x83
>;
};
};
&proximity {
proximity-near-level = <25>;
};
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
// Copyright (C) 2021 Purism SPC <kernel@puri.sm>
/dts-v1/;
/*
* This file describes hardware that is shared among r3 ("Dogwood") and
* later revisions of the Librem 5 so it has to be included there.
*/
#include "imx8mq-librem5.dtsi"
/ {
model = "Purism Librem 5r3";
compatible = "purism,librem5r3", "purism,librem5", "fsl,imx8mq";
not_really_leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_smc_boot>;
smc-boot {
label = "smc_boot";
gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
reg_camera1_pwr_en: regulator-camera1-pwr-en {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_r3_camera_pwr>;
regulator-name = "CAMERA1_PWR_EN";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
gpio = <&gpio5 4 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
&accel_gyro {
mount-matrix = "1", "0", "0",
"0", "1", "0",
"0", "0", "-1";
};
&bat {
maxim,battery-capacity = <3400000>; /* uAh */
};
&bq25895 {
ti,charge-current = <1500000>; /* uA */
};
&camera_front {
vdd1-supply = <&reg_camera1_pwr_en>;
};
/delete-node/ &dcss_dsi_out;
/delete-node/ &mipi_dsi_dcss_in;
&dcss {
status = "okay";
port@0 {
dcss_dp_out: endpoint {
remote-endpoint = <&hdmi_in>;
};
};
};
&hdmi {
compatible = "nxp,imx8mq-cdns-dp";
extcon = <&typec_pd>;
lane-mapping = <0xc6>;
status = "okay";
port@1 {
hdmi_in: endpoint {
remote-endpoint = <&dcss_dp_out>;
};
};
};
&iomuxc {
pinctrl_r3_camera_pwr: r3camerapwrgrp {
fsl,pins = <
MX8MQ_IOMUXC_SPDIF_RX_GPIO5_IO4 0x83
>;
};
pinctrl_smc_boot: smcbootgrp {
fsl,pins = <
/* SMC_BOOT0 */
MX8MQ_IOMUXC_UART4_TXD_GPIO5_IO29 0x83
>;
};
};
&proximity {
proximity-near-level = <25>;
};
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
// Copyright (C) 2020 Purism SPC <kernel@puri.sm>
// Copyright (C) 2021 Purism SPC <kernel@puri.sm>
/dts-v1/;
#include "imx8mq-librem5.dtsi"
#include "imx8mq-librem5-r3.dtsi"
/ {
model = "Purism Librem 5r4";
compatible = "purism,librem5r4", "purism,librem5", "fsl,imx8mq";
not_really_leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_smc_boot>;
smc-boot {
label = "smc_boot";
gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
reg_camera1_pwr_en: regulator-camera1-pwr-en {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_r4_camera_pwr>;
regulator-name = "CAMERA1_PWR_EN";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
gpio = <&gpio5 4 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
&accel_gyro {
mount-matrix = "1", "0", "0",
"0", "1", "0",
"0", "0", "-1";
};
&bat {
......@@ -44,53 +15,6 @@ &bat {
maxim,rsns-microohm = <1667>;
};
&bq25895 {
ti,charge-current = <1500000>; /* uA */
};
&camera_front {
vdd1-supply = <&reg_camera1_pwr_en>;
};
/delete-node/ &dcss_dsi_out;
/delete-node/ &mipi_dsi_dcss_in;
&dcss {
status = "okay";
port@0 {
dcss_dp_out: endpoint {
remote-endpoint = <&hdmi_in>;
};
};
};
&hdmi {
compatible = "nxp,imx8mq-cdns-dp";
extcon = <&typec_pd>;
lane-mapping = <0xc6>;
status = "okay";
port@1 {
hdmi_in: endpoint {
remote-endpoint = <&dcss_dp_out>;
};
};
};
&iomuxc {
pinctrl_r4_camera_pwr: r4camerapwrgrp {
fsl,pins = <
MX8MQ_IOMUXC_SPDIF_RX_GPIO5_IO4 0x83
>;
};
pinctrl_smc_boot: smcbootgrp {
fsl,pins = <
/* SMC_BOOT0 */
MX8MQ_IOMUXC_UART4_TXD_GPIO5_IO29 0x83
>;
};
};
&led_backlight {
led-max-microamp = <25000>;
};
......
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