-
Notifications
You must be signed in to change notification settings - Fork 212
Add device tree patch for Nokia-BMC-H6-128 platform #553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nats-nokia
wants to merge
1
commit into
sonic-net:master
Choose a base branch
from
nats-nokia:dev_bmc_h6_dts
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
319 changes: 319 additions & 0 deletions
319
patches-sonic/0001-Add-device-tree-for-Nokia-BMC-H6-128-platform.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,319 @@ | ||
| From fe9bd355064f7d80a7f34ebc81380790fc39693c Mon Sep 17 00:00:00 2001 | ||
| From: nats-nokia <natarajan.subbiramani@nokia.com> | ||
| Date: Mon, 30 Mar 2026 15:58:14 -0400 | ||
| Subject: [PATCH] Add device tree for Nokia BMC H6-128 platform | ||
|
|
||
| The device tree is based on ast2700 evb board. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please list the differences in the commit message. |
||
|
|
||
| Signed-off-by: nats-nokia <natarajan.subbiramani@nokia.com> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use your name. |
||
| --- | ||
| arch/arm64/boot/dts/aspeed/Makefile | 3 +- | ||
| .../dts/aspeed/nokia-ast2700-h6-128-r0.dts | 285 ++++++++++++++++++ | ||
| 2 files changed, 287 insertions(+), 1 deletion(-) | ||
| create mode 100644 arch/arm64/boot/dts/aspeed/nokia-ast2700-h6-128-r0.dts | ||
|
|
||
| diff --git a/arch/arm64/boot/dts/aspeed/Makefile b/arch/arm64/boot/dts/aspeed/Makefile | ||
| index 1b26168dfcd8..c5a2cc545b75 100644 | ||
| --- a/arch/arm64/boot/dts/aspeed/Makefile | ||
| +++ b/arch/arm64/boot/dts/aspeed/Makefile | ||
| @@ -14,4 +14,5 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ | ||
| ast2700-evb-256-abr.dtb \ | ||
| ast2700-slt.dtb \ | ||
| ast2700-fpga.dtb \ | ||
| - ast2700-ci-host.dtb | ||
| + ast2700-ci-host.dtb \ | ||
| + nokia-ast2700-h6-128-r0.dtb | ||
| diff --git a/arch/arm64/boot/dts/aspeed/nokia-ast2700-h6-128-r0.dts b/arch/arm64/boot/dts/aspeed/nokia-ast2700-h6-128-r0.dts | ||
| new file mode 100644 | ||
| index 000000000000..9aa248e0c4a2 | ||
| --- /dev/null | ||
| +++ b/arch/arm64/boot/dts/aspeed/nokia-ast2700-h6-128-r0.dts | ||
| @@ -0,0 +1,285 @@ | ||
| +// SPDX-License-Identifier: GPL-2.0-or-later | ||
| +// Nokia BMC H6-128 devicetreee based on ast2700-evb.dts | ||
| + | ||
| +/dts-v1/; | ||
| + | ||
| +#include "aspeed-g7.dtsi" | ||
| +#include <dt-bindings/gpio/aspeed-gpio.h> | ||
| +#include <dt-bindings/i2c/i2c.h> | ||
| + | ||
| +/ { | ||
| + model = "Nokia-BMC-H6-128"; | ||
| + compatible = "aspeed,ast2700"; | ||
| + | ||
| + chosen { | ||
| + stdout-path = "serial2:115200n8"; | ||
| + }; | ||
| + | ||
| + memory@400000000 { | ||
| + device_type = "memory"; | ||
| + reg = <0x4 0x00000000 0x0 0x40000000>; | ||
| + }; | ||
| + | ||
| + reserved-memory { | ||
| + #address-cells = <2>; | ||
| + #size-cells = <2>; | ||
| + ranges; | ||
| + | ||
| + #include "ast2700-reserved-mem.dtsi" | ||
| + | ||
| +#if 0 | ||
| + gfx_memory: framebuffer { | ||
| + size = <0x0 0x01000000>; | ||
| + alignment = <0x0 0x01000000>; | ||
| + compatible = "shared-dma-pool"; | ||
| + reusable; | ||
| + }; | ||
| +#endif | ||
| + }; | ||
| +}; | ||
| + | ||
| +&uart0 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&uart2 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&uart12 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&fmc { | ||
| + status = "okay"; | ||
| + pinctrl-0 = <&pinctrl_fwspi_quad_default>; | ||
| + pinctrl-names = "default"; | ||
| + | ||
| + flash@0 { | ||
| + status = "okay"; | ||
| + m25p,fast-read; | ||
| + label = "bmc"; | ||
| + spi-max-frequency = <12500000>; | ||
| + spi-tx-bus-width = <2>; | ||
| + spi-rx-bus-width = <2>; | ||
| + partitions { | ||
| + compatible = "fixed-partitions"; | ||
| + #address-cells = <1>; | ||
| + #size-cells = <1>; | ||
| + u-boot@0 { | ||
| + reg = <0x0 0x400000>; // 4MB | ||
| + label = "u-boot"; | ||
| + }; | ||
| + u-boot-env@400000 { | ||
| + reg = <0x400000 0x20000>; // 128KB | ||
| + label = "u-boot-env"; | ||
| + }; | ||
| + kernel@420000 { | ||
| + reg = <0x420000 0x900000>; // 9MB | ||
| + label = "kernel"; | ||
| + }; | ||
| + rofs@d20000 { | ||
| + reg = <0xd20000 0x24a0000>; // 36.625MB | ||
| + label = "rofs"; | ||
| + }; | ||
| + rwfs@31c0000 { | ||
| + reg = <0x31c0000 0xE40000>; // 14.25MB | ||
| + label = "rwfs"; | ||
| + }; | ||
| + pfm@4000000 { | ||
| + reg = <0x4000000 0x20000>; // 128KB | ||
| + label = "pfm"; | ||
| + }; | ||
| + reserved-1@4020000 { | ||
| + reg = <0x4020000 0x200000>; // 2048KB | ||
| + label = "reserved-1"; | ||
| + }; | ||
| + rc-image@4220000 { | ||
| + reg = <0x4220000 0x3de0000>; // 63360KB | ||
| + label = "rc-image"; | ||
| + }; | ||
| + image-stg@8000000 { | ||
| + reg = <0x8000000 0x3de0000>; // 63360KB | ||
| + label = "img-stg"; | ||
| + }; | ||
| + pfr-stg@bde0000 { | ||
| + reg = <0xbde0000 0x100000>; // 1024KB | ||
| + label = "pfr-stg"; | ||
| + }; | ||
| + cpld-stg@bee0000 { | ||
| + reg = <0xbee0000 0x400000>; // 4096KB | ||
| + label = "cpld-stg"; | ||
| + }; | ||
| + afm-stg@c2e0000 { | ||
| + reg = <0xc2e0000 0x20000>; // 128KB | ||
| + label = "afm-stg"; | ||
| + }; | ||
| + afm-rc@c300000 { | ||
| + reg = <0xc300000 0x20000>; // 128KB | ||
| + label = "afm-rc"; | ||
| + }; | ||
| + reserved-2@c320000 { | ||
| + reg = <0xc320000 0x3ce0000>; // 62336KB | ||
| + label = "reserved-2"; | ||
| + }; | ||
| + }; | ||
| + }; | ||
| +}; | ||
| + | ||
| +&spi1 { | ||
| + status = "okay"; | ||
| + pinctrl-0 = <&pinctrl_spi1_default &pinctrl_spi1_cs1_default>; | ||
| + pinctrl-names = "default"; | ||
| + | ||
| + flash@0 { | ||
| + status = "okay"; | ||
| + m25p,fast-read; | ||
| + label = "bios"; | ||
| + spi-max-frequency = <12500000>; | ||
| + spi-tx-bus-width = <2>; | ||
| + spi-rx-bus-width = <2>; | ||
| + }; | ||
| +}; | ||
| + | ||
| +&spi2 { | ||
| + compatible = "aspeed,ast2700-spi-txrx"; | ||
| + pinctrl-0 = <&pinctrl_spi2_default>; | ||
| + pinctrl-names = "default"; | ||
| + status = "okay"; | ||
| + | ||
| + tpm@0 { | ||
| + compatible = "tcg,tpm_tis-spi"; | ||
| + spi-max-frequency = <33000000>; | ||
| + reg = <0>; | ||
| + status = "okay"; | ||
| + }; | ||
| +}; | ||
| + | ||
| +&mac0 { | ||
| + status = "okay"; | ||
| + use-ncsi; | ||
| + phy-mode = "rmii"; | ||
| + | ||
| + pinctrl-names = "default"; | ||
| + pinctrl-0 = <&pinctrl_rmii1_default>; | ||
| +}; | ||
| + | ||
| +&syscon1 { | ||
| + assigned-clocks = <&syscon1 SCU1_CLK_MACHCLK>, | ||
| + <&syscon1 SCU1_CLK_RGMII>, | ||
| + <&syscon1 SCU1_CLK_RMII>; | ||
| + assigned-clock-rates = <200000000>, <125000000>, <50000000>; | ||
| +}; | ||
| + | ||
| +&espi0 { | ||
| + status = "okay"; | ||
| + perif-dma-mode; | ||
| + perif-mmbi-enable; | ||
| + perif-mmbi-src-addr = <0x0 0xa8000000>; | ||
| + perif-mmbi-tgt-memory = <&espi0_mmbi_memory>; | ||
| + perif-mmbi-instance-num = <0x1>; | ||
| + perif-mcyc-enable; | ||
| + perif-mcyc-src-addr = <0x0 0x98000000>; | ||
| + perif-mcyc-size = <0x0 0x10000>; | ||
| + oob-dma-mode; | ||
| + flash-dma-mode; | ||
| +}; | ||
| + | ||
| +&lpc0_kcs3 { | ||
| + status = "okay"; | ||
| + kcs-io-addr = <0xca2>; | ||
| + kcs-channel = <3>; | ||
| +}; | ||
| + | ||
| +&lpc0_snoop { | ||
| + status = "okay"; | ||
| + snoop-ports = <0x80>, <0x81>; | ||
| +}; | ||
| + | ||
| +&rtc { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&i2c5 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&i2c6 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&i2c7 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&i2c8 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&i2c9 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&i2c10 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&i2c11 { | ||
| + status = "okay"; | ||
| + | ||
| + eeprom@50 { | ||
| + compatible = "atmel,24c512"; | ||
| + reg = <0x50>; | ||
| + }; | ||
| +}; | ||
| + | ||
| +&i2c13 { | ||
| + status = "okay"; | ||
| + | ||
| + eeprom@56 { | ||
| + compatible = "atmel,24c04"; | ||
| + reg = <0x56>; | ||
| + }; | ||
| +}; | ||
| + | ||
| +&i2c14 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&i2c15 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&vhuba0 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&vhubb0 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&wdt0 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&wdt1 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +#if 0 | ||
| +&otp { | ||
| + status = "okay"; | ||
| +}; | ||
| +#endif | ||
| + | ||
| +&emmc_controller { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&emmc { | ||
| + status = "okay"; | ||
| + bus-width = <4>; | ||
| + pinctrl-0 = <&pinctrl_emmc_default>; | ||
| + non-removable; | ||
| + max-frequency = <26000000>; | ||
| +}; | ||
| -- | ||
| 2.25.1 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use your name. (
git config --global user.name "…")