Skip to content

Commit

Permalink
Add BRK device tree for OpenSTLinux kirkstone(kernel 5.15)
Browse files Browse the repository at this point in the history
Signed-off-by: neeraj dantu <dantuguf14105@gmail.com>
  • Loading branch information
neerajdantu committed May 2, 2024
1 parent 3c7949c commit bad2f9f
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 65 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ This repository contains the device tree sources for OSD32MP1-BRK

| Package | Version |
| ------- | ------- |
| OpenSTLinux Developer Package | v3.0.0 |
| U-Boot version | v2020.10-stm32mp-r0 |
| TF-A version | v2.4-stm32mp-r0 |
| Kernel Version | v5.10-stm32mp-r0 |
| Cube Programmer | v2.5 or greater |
| OpenSTLinux Developer Package | v4.0.0 |
| U-Boot version | v2021.10-stm32mp-r1 |
| TF-A version | v2.6-stm32mp-r1 |
| Kernel Version | v5.15.24-stm32mp1-r1 |

Developer Package istallation : https://wiki.st.com/stm32mpu-ecosystem-v3/wiki/STM32MP1_Developer_Package
Developer Package istallation: https://wiki.st.com/stm32mpu-ecosystem-v4/wiki/How_to_compile_the_device_tree_with_the_Developer_Package
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions tf-a-v2.4-r0/stm32mp157c-osd32mp1-brk-fw-config.dts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2018, STMicroelectronics - All Rights Reserved
* Copyright (C) 2022, Octavo Systems - All Rights Reserved
*
* SPDX-License-Identifier: GPL-2.0+ BSD-3-Clause
*
Expand All @@ -17,7 +17,7 @@
* Save Date: 2020.08.27, save Time: 15:22:11
*/

#define DDR_MEM_NAME "DDR3-DDR3L 16bits 533000Khz"
#define DDR_MEM_NAME "DDR3-DDR3L 16bits 533000khz"
#define DDR_MEM_SPEED 533000
#define DDR_MEM_SIZE 0x20000000

Expand Down
7 changes: 7 additions & 0 deletions tf-a-v2.6-stm32mp-r1/stm32mp157c-osd32mp1-brk-fw-config.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
* Copyright (c) 2022, Octavo Systems - All Rights Reserved
*/

#define DDR_SIZE 0x20000000 /* 512MB */
#include "stm32mp15-fw-config.dtsi"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
/*
* Copyright (C) STMicroelectronics 2020 - All Rights Reserved
* Author: STM32CubeMX code generation for STMicroelectronics.
* Copyright (C) Octavo Systems 2022 - All Rights Reserved
* Author: Neeraj Dantu for Octavo Systems
*/

/dts-v1/;
Expand Down Expand Up @@ -94,7 +94,6 @@
i2c-scl-falling-time-ns = <20>;
clock-frequency = <400000>;
status = "okay";
secure-status = "okay";

pmic: stpmic@33 {
compatible = "st,stpmic1";
Expand All @@ -103,7 +102,6 @@
interrupt-controller;
#interrupt-cells = <2>;
status = "okay";
secure-status = "okay";

regulators {
compatible = "st,stpmic1-regulators";
Expand Down Expand Up @@ -230,10 +228,9 @@

vtt_ddr: ldo3 {
regulator-name = "vtt_ddr";
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <750000>;
regulator-always-on;
regulator-over-current-protection;
st,regulator-sink-source;
lp-stop{
regulator-off-in-suspend;
};
Expand Down Expand Up @@ -287,7 +284,6 @@
vref_ddr: vref_ddr {
regulator-name = "vref_ddr";
regulator-always-on;
regulator-over-current-protection;
lp-stop{
regulator-on-in-suspend;
};
Expand Down Expand Up @@ -319,29 +315,6 @@
timeout-sec = <32>;
secure-timeout-sec = <5>;
status = "okay";
secure-status = "okay";
};

&nvmem_layout {
nvmem-cells = <&cfg0_otp>,
<&part_number_otp>,
<&monotonic_otp>,
<&nand_otp>,
<&uid_otp>,
<&package_otp>,
<&hw2_otp>,
<&pkh_otp>,
<&board_id>;

nvmem-cell-names = "cfg0_otp",
"part_number_otp",
"monotonic_otp",
"nand_otp",
"uid_otp",
"package_otp",
"hw2_otp",
"pkh_otp",
"board_id";
};

&pwr_regulators {
Expand Down Expand Up @@ -449,12 +422,10 @@

&rng1 {
status = "okay";
secure-status = "okay";
};

&rtc {
status = "okay";
secure-status = "okay";
};

&sdmmc1 {
Expand All @@ -468,7 +439,7 @@
};

&timers15 {
secure-status = "okay";
status = "okay";
st,hsi-cal-input = <7>;
st,csi-cal-input = <8>;
};
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
/*
* Copyright (C) Octavo Systems LLC 2020 - All Rights Reserved
* Copyright (C) Octavo Systems LLC 2022 - All Rights Reserved
*/

/* For more information on Device Tree configuration, please refer to
Expand Down Expand Up @@ -55,6 +55,12 @@
no-map;
};

mcu_rsc_table: mcu_rsc_table@10048000 {
compatible = "shared-dma-pool";
reg = <0x10048000 0x8000>;
no-map;
};

mcuram:mcuram@30000000{
compatible = "shared-dma-pool";
reg = <0x30000000 0x40000>;
Expand Down Expand Up @@ -105,17 +111,6 @@
};
};

usb_phy_tuning:usb-phy-tuning{
st,hs-dc-level = <2>;
st,fs-rftime-tuning;
st,hs-rftime-reduction;
st,hs-current-trim = <15>;
st,hs-impedance-trim = <1>;
st,squelch-level = <3>;
st,hs-rx-offset = <2>;
st,no-lsfs-sc;
};

vin:vin{
compatible = "regulator-fixed";
regulator-name = "vin";
Expand All @@ -133,7 +128,16 @@
};

chosen{
#address-cells = <1>;
#size-cells = <1>;
ranges;
stdout-path = "serial0:115200n8";

framebuffer {
compatible = "simple-framebuffer";
clocks = <&rcc LTDC_PX>;
status = "disabled";
};
};

}; /*root*/
Expand Down Expand Up @@ -593,9 +597,9 @@

&m4_rproc{
memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
<&vdev0vring1>, <&vdev0buffer>;
mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
mbox-names = "vq0", "vq1", "shutdown";
<&vdev0vring1>, <&vdev0buffer>, <&mcu_rsc_table>;
mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
mbox-names = "vq0", "vq1", "shutdown", "detach";
interrupt-parent = <&exti>;
interrupts = <68 1>;
wakeup-source;
Expand Down Expand Up @@ -801,7 +805,6 @@
vref_ddr:vref_ddr{
regulator-name = "vref_ddr";
regulator-always-on;
regulator-over-current-protection;
};

bst_out:boost{
Expand Down Expand Up @@ -922,14 +925,38 @@
u-boot,dm-pre-reloc;
status = "okay";
phy-supply = <&vdd_usb>;
st,phy-tuning = <&usb_phy_tuning>;
st,tune-hs-dc-level = <2>;
st,enable-fs-rftime-tuning;
st,enable-hs-rftime-reduction;
st,trim-hs-current = <15>;
st,trim-hs-impedance = <1>;
st,tune-squelch-level = <3>;
st,tune-hs-rx-offset = <2>;
st,no-lsfs-sc;

/*
* Hack to keep hub active until all connected devices are suspended
* otherwise the hub will be powered off as soon as the v3v3 is disabled
* and it can disturb connected devices.
*/
connector {
compatible = "usb-a-connector";
vbus-supply = <&v3v3>;
};
};

&usbphyc_port1{
u-boot,dm-pre-reloc;
status = "okay";
phy-supply = <&vdd_usb>;
st,phy-tuning = <&usb_phy_tuning>;
st,tune-hs-dc-level = <2>;
st,enable-fs-rftime-tuning;
st,enable-hs-rftime-reduction;
st,trim-hs-current = <15>;
st,trim-hs-impedance = <1>;
st,tune-squelch-level = <3>;
st,tune-hs-rx-offset = <2>;
st,no-lsfs-sc;
};

&adc {
Expand Down
File renamed without changes.

0 comments on commit bad2f9f

Please sign in to comment.