Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions arch/arm64/boot/dts/adi/sc598-som-revD.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2025 Analog Devices Incorporated
* Author: Ozan Durgut <[email protected]>
*/

/dts-v1/;

#include "sc598-som.dtsi"

&i2c2 {
som_gpio_expander: mcp23018@20 {
compatible = "microchip,mcp23018";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
bootph-pre-ram;
drive-pullups;

led-ds1 {
gpio-hog;
gpios = <0 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "led1-en";
bootph-pre-ram;
};

led-ds2 {
gpio-hog;
gpios = <1 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "led-ds2";
bootph-pre-ram;
};

led-ds3 {
gpio-hog;
gpios = <2 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "led-ds3";
bootph-pre-ram;
};

som-flash-d2d3 {
gpio-hog;
gpios = <3 GPIO_ACTIVE_LOW>;
output-high;
line-name = "som-flash-d2d3-en";
bootph-pre-ram;
};

som-flash-cs {
gpio-hog;
gpios = <4 GPIO_ACTIVE_LOW>;
output-high;
line-name = "som-flash-cs-en";
bootph-pre-ram;
};

uart0 {
gpio-hog;
gpios = <5 GPIO_ACTIVE_LOW>;
output-high;
line-name = "uart0-en";
bootph-pre-ram;
};

uart0-flow-en {
gpio-hog;
gpios = <6 GPIO_ACTIVE_LOW>;
output-low;
line-name = "uart0-flow-en";
bootph-pre-ram;
};

som-emmc {
gpio-hog;
gpios = <8 GPIO_ACTIVE_LOW>;
output-high;
line-name = "som-emmc-en";
bootph-pre-ram;
};

crr-sdcard {
gpio-hog;
gpios = <9 GPIO_ACTIVE_LOW>;
output-low;
line-name = "crr-sdcard-en";
bootph-pre-ram;
};
};
};

&spi2 {
som_flash: is25lp512@1 {
compatible = "jedec,spi-nor", "is25lp512";
reg = <1>;
spi-rx-bus-width = <4>;
spi-max-frequency = <25000000>;
bootph-pre-ram;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

qspi_0@0 {
label = "U-Boot SPL";
reg = <0x00000000 0x00040000>;
};

qspi_1@40000 {
label = "U-Boot Proper";
reg = <0x00040000 0x000C0000>;
};

qspi_2@100000 {
label = "U-Boot Environment";
reg = <0x00100000 0x00020000>;
};

qspi_3@120000 {
label = "FIT Image";
reg = <0x00120000 0x00600000>;
};

qspi_4@720000 {
label = "JFFS2 Formatted RFS";
reg = <0x00720000 0x038E0000>;
};
};
};
};
126 changes: 126 additions & 0 deletions arch/arm64/boot/dts/adi/sc598-som-revE.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2025 Analog Devices Incorporated
* Author: Ozan Durgut <[email protected]>
*/

/dts-v1/;

#include "sc598-som.dtsi"

&i2c2 {
gpio_expander1: adp5587@34 {
compatible = "adi,adp5587";
reg = <0x34>;
gpio-controller;
#gpio-cells = <2>;
bootph-pre-ram;

uart0 {
gpio-hog;
gpios = <0 GPIO_ACTIVE_LOW>;
output-high;
line-name = "uart0-en";
bootph-pre-ram;
};

uart0-flow {
gpio-hog;
gpios = <1 GPIO_ACTIVE_LOW>;
output-low;
line-name = "uart0-flow-en";
bootph-pre-ram;
};

som-flash-d2d3 {
gpio-hog;
gpios = <2 GPIO_ACTIVE_LOW>;
output-high;
line-name = "som-flash-d2d3-en";
};

som-flash-cs {
gpio-hog;
gpios = <3 GPIO_ACTIVE_LOW>;
output-high;
line-name = "som-flash-cs-en";
};

som-emmc {
gpio-hog;
gpios = <8 GPIO_ACTIVE_LOW>;
output-high;
line-name = "som-emmc-en";
};

crr-sdcard {
gpio-hog;
gpios = <9 GPIO_ACTIVE_LOW>;
output-low;
line-name = "crr-sdcard-en";
};

led-ds3 {
gpio-hog;
gpios = <15 GPIO_ACTIVE_LOW>;
output-high;
line-name = "led-ds3";
bootph-pre-ram;
};

led-ds2 {
gpio-hog;
gpios = <16 GPIO_ACTIVE_LOW>;
output-high;
line-name = "led-ds2";
};

led-ds1 {
gpio-hog;
gpios = <17 GPIO_ACTIVE_LOW>;
output-high;
line-name = "led-ds1";
};
};
};

&spi2 {
som_flash: is25lp01g@0 {
compatible = "jedec,spi-nor", "is25lp01g";
reg = <0>;
spi-rx-bus-width = <4>;
spi-max-frequency = <25000000>;
bootph-pre-ram;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

qspi_0@0 {
label = "U-Boot SPL";
reg = <0x00000000 0x00040000>;
};

qspi_1@40000 {
label = "U-Boot Proper";
reg = <0x00040000 0x000C0000>;
};

qspi_2@100000 {
label = "U-Boot Environment";
reg = <0x00100000 0x00020000>;
};

qspi_3@120000 {
label = "FIT Image";
reg = <0x00120000 0x00F00000>;
};

qspi_4@1020000 {
label = "JFFS2 Formatted RFS";
reg = <0x01020000 0x06FE0000>;
};
};
};
};
119 changes: 0 additions & 119 deletions arch/arm64/boot/dts/adi/sc598-som.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -99,42 +99,42 @@
status = "okay";
};

sharc0_rpmsg: core0-rpmsg@28240000 {
status = "disabled";
compatible = "adi,rpmsg-SC598";
core-id = <1>;
adi,rcu = <&rcu>;
adi,check-idle;
adi,rsc-table = <&rsc_tbl0>;
interrupts = <GIC_SPI 337 IRQ_TYPE_EDGE_RISING>; /* TRU0_SLV3 */
adi,tru = <&tru>;
adi,tru-master-id = <135>; /* trigger master SOFT4 */
vdev-vring = <&vdev0vrings>;
memory-region = <&vdev0buffer>;
};

Check warning on line 114 in arch/arm64/boot/dts/adi/sc598-som.dtsi

View workflow job for this annotation

GitHub Actions / build_gcc_aarch64 / build

(unit_address_vs_reg): /scb/core0-rpmsg@28240000: node has a unit name, but no reg or ranges property

Check warning on line 114 in arch/arm64/boot/dts/adi/sc598-som.dtsi

View workflow job for this annotation

GitHub Actions / build_gcc_aarch64 / build

(simple_bus_reg): /scb/core0-rpmsg@28240000: missing or empty reg/ranges property

sharc1_rpmsg: core1-rpmsg@28a40000 {
status = "disabled";
compatible = "adi,rpmsg-SC598";
core-id = <2>;
adi,rcu = <&rcu>;
adi,check-idle;
adi,rsc-table = <&rsc_tbl1>;
interrupts = <GIC_SPI 337 IRQ_TYPE_EDGE_RISING>; /* TRU0_SLV3 */
adi,tru = <&tru>;
adi,tru-master-id = <136>; /* trigger master SOFT5 */
vdev-vring = <&vdev1vrings>;
memory-region = <&vdev1buffer>;
};

Check warning on line 128 in arch/arm64/boot/dts/adi/sc598-som.dtsi

View workflow job for this annotation

GitHub Actions / build_gcc_aarch64 / build

(unit_address_vs_reg): /scb/core1-rpmsg@28a40000: node has a unit name, but no reg or ranges property

Check warning on line 128 in arch/arm64/boot/dts/adi/sc598-som.dtsi

View workflow job for this annotation

GitHub Actions / build_gcc_aarch64 / build

(simple_bus_reg): /scb/core1-rpmsg@28a40000: missing or empty reg/ranges property
};

};

&tru {
rpmsg_to_a55: channel@0 {
adi,tru-master-id = <134>; /* trigger master SOFT3 */
adi,tru-slave-id = <160>; /* TRU0_IRQ3 */
};

Check warning on line 137 in arch/arm64/boot/dts/adi/sc598-som.dtsi

View workflow job for this annotation

GitHub Actions / build_gcc_aarch64 / build

(unit_address_vs_reg): /scb/tru@3108a000/channel@0: node has a unit name, but no reg or ranges property
rpmsg_to_sharc0: channel@1 {
adi,tru-master-id = <135>; /* trigger master SOFT4 */
adi,tru-slave-id = <164>; /* TRU0_IRQ7 */
Expand Down Expand Up @@ -203,43 +203,6 @@
pinctrl-0 = <&spi2_quad>;
status = "okay";
cs-gpios = <&gpa 5 GPIO_ACTIVE_LOW>;

flash: is25lp512@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "is25lp512", "jedec,spi-nor";
reg = <0>;
spi-cpha;
spi-cpol;
spi-max-frequency = <25000000>;
spi-rx-bus-width = <4>;

qspi_0: partition@0 {
label = "U-Boot SPL";
reg = <0x0 0x40000>;
};

qspi_1: partition@1 {
label = "U-Boot Proper";
reg = <0x40000 0xC0000>;
};

qspi_2: partition@2 {
label = "U-Boot Environment";
reg = <0x100000 0x20000>;
};

qspi_3: partition@3 {
label = "FIT Image";
reg = <0x120000 0xF00000>;
};

qspi_4: partition@4 {
label = "JFFS2 Formatted RFS";
reg = <0x1020000 0x2FE0000>;
};

};
};

&i2c0 {
Expand All @@ -252,88 +215,6 @@

&i2c2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;

ssw0: gpio@20 {
compatible = "microchip,mcp23018";
gpio-controller;
#gpio-cells = <2>;
reg = <0x20>;
status = "okay";

pinctrl-names = "default";
pinctrl-0 = <&ssw0pullups>;

ssw0pullups: pinmux {
bias-pull-up;
pins = "gpio0", "gpio1", "gpio2", "gpio3",
"gpio4", "gpio5", "gpio6", "gpio8", "gpio9";
};

led1 {
gpio-hog;
gpios = <0 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "led1-en";
};

led2 {
gpio-hog;
gpios = <1 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "led2-en";
};

led3 {
gpio-hog;
gpios = <2 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "led3-en";
};

spi2d2-d3 {
gpio-hog;
gpios = <3 GPIO_ACTIVE_LOW>;
output-high;
line-name = "spi2d2-d3-en";
};

spi2flash-cs {
gpio-hog;
gpios = <4 GPIO_ACTIVE_LOW>;
output-high;
line-name = "spi2flash-cs";
};

uart0 {
gpio-hog;
gpios = <5 GPIO_ACTIVE_LOW>;
output-high;
line-name = "uart0-en";
};

uart0-flow-en {
gpio-hog;
gpios = <6 GPIO_ACTIVE_LOW>;
output-low;
line-name = "uart0-flow-en";
};

emmc {
gpio-hog;
gpios = <8 GPIO_ACTIVE_LOW>;
output-high;
line-name = "emmc-en";
};

emmc-som-en {
gpio-hog;
gpios = <9 GPIO_ACTIVE_LOW>;
output-low;
line-name = "emmc-som-en";
};
};
};

&mmc0{
Expand Down
Loading