mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 17:57:01 +00:00
- Add the AS4610 DTB build to the platform build package.
- The AS4610 DTB now comes from the platform build package rather than the kernel package.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
include $(ONL)/make/subdirs.mk
|
||||
@@ -0,0 +1,2 @@
|
||||
*.dtb
|
||||
dts
|
||||
@@ -0,0 +1,10 @@
|
||||
include $(ONL)/make/dtbs.mk
|
||||
|
||||
#
|
||||
# The 4610 DTS relies on the common arm devices tree includes. These are linked here from the kernel package.
|
||||
#
|
||||
setup::
|
||||
onlpm --link-dir onl-kernel-3.2-deb7-arm-iproc-all:armel /usr/share/onl/packages/armel/onl-kernel-3.2-deb7-arm-iproc-all/mbuilds/arch/arm/boot/dts dts
|
||||
|
||||
clean::
|
||||
rm -rf fsl
|
||||
@@ -0,0 +1,254 @@
|
||||
/*
|
||||
* Accton AS4610 54 Device Tree Source
|
||||
*
|
||||
* Copyright 2015, Cumulus Networks, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
*/
|
||||
/dts-v1/;
|
||||
/include/ "dts/helix4.dtsi"
|
||||
|
||||
/ {
|
||||
model = "accton,as4610_54";
|
||||
compatible = "accton,as4610_54";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart0;
|
||||
i2c-controller0 = &i2c0;
|
||||
i2c-controller1 = &i2c1;
|
||||
};
|
||||
|
||||
memory {
|
||||
reg = <0x61000000 0x7f000000>;
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-a9";
|
||||
next-level-cache = <&L2>;
|
||||
reg = <0x00>;
|
||||
};
|
||||
cpu@1 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-a9";
|
||||
next-level-cache = <&L2>;
|
||||
reg = <0x01>;
|
||||
};
|
||||
};
|
||||
|
||||
localbus@1c000000 {
|
||||
#address-cells = <0x2>;
|
||||
#size-cells = <0x1>;
|
||||
/* NAND Flash */
|
||||
ranges = <
|
||||
0x0 0x0 0x0 0x1c000000 0x00120000
|
||||
0x1 0x0 0x0 0x1c120000 0x00040000
|
||||
>;
|
||||
|
||||
flash@0,0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "cfi-flash";
|
||||
reg = <0x0 0x0 0x02000000>;
|
||||
byteswap;
|
||||
|
||||
partition@0 {
|
||||
/* uboot */
|
||||
reg = <0x00000000 0x00100000>;
|
||||
label = "uboot";
|
||||
};
|
||||
partition@1 {
|
||||
/* uboot-env */
|
||||
reg = <0x00100000 0x00100000>;
|
||||
label = "uboot-env";
|
||||
env_size = <0x2000>;
|
||||
};
|
||||
partition@2 {
|
||||
/* board_eeprom */
|
||||
reg = <0x00200000 0x00100000>;
|
||||
label = "board_eeprom";
|
||||
};
|
||||
partition@3 {
|
||||
/* shmoo */
|
||||
reg = <0x00300000 0x00100000>;
|
||||
label = "shmoo";
|
||||
};
|
||||
partition@4 {
|
||||
/* onie */
|
||||
reg = <0x00400000 0x00800000>;
|
||||
label = "onie";
|
||||
};
|
||||
partition@5 {
|
||||
/* open */
|
||||
reg = <0x00c00000 0x03c00000>;
|
||||
label = "open";
|
||||
};
|
||||
partition@6 {
|
||||
/* open2 */
|
||||
reg = <0x04800000 0x7d000000>;
|
||||
label = "open2";
|
||||
};
|
||||
partition@7 {
|
||||
/* diag */
|
||||
reg = <0xfec00000 0x01000000>;
|
||||
label = "diag";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
i2c0: i2c@18038000 {
|
||||
compatible = "iproc-smb";
|
||||
reg = <0x18038000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
interrupts = < 127 >;
|
||||
clock-frequency = <400000>;
|
||||
cpld@1,0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "accton,as4610_54_cpld";
|
||||
label = "cpld";
|
||||
reg = <0x30>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c1: i2c@1803b000 {
|
||||
compatible = "iproc-smb";
|
||||
reg = <0x1803b000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
interrupts = < 128 >;
|
||||
clock-frequency = <100000>;
|
||||
mux@70 {
|
||||
compatible = "ti,pca9548";
|
||||
reg = <0x70>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
deselect-on-exit;
|
||||
|
||||
// SFP+ 1
|
||||
i2c@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "at,as4610_sfp1";
|
||||
reg = <0x50>;
|
||||
label = "port49";
|
||||
};
|
||||
};
|
||||
|
||||
// SFP+ 2
|
||||
i2c@1 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <1>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp2";
|
||||
reg = <0x50>;
|
||||
label = "port50";
|
||||
};
|
||||
};
|
||||
|
||||
// SFP+ 3
|
||||
i2c@2 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <2>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp3";
|
||||
reg = <0x50>;
|
||||
label = "port51";
|
||||
};
|
||||
};
|
||||
|
||||
// SFP+ 4
|
||||
i2c@3 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <3>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp4";
|
||||
reg = <0x50>;
|
||||
label = "port52";
|
||||
};
|
||||
};
|
||||
|
||||
// QSFP+ STK1
|
||||
i2c@4 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <4>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp5";
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
|
||||
// QSFP+ STK2
|
||||
i2c@5 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <5>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp6";
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
|
||||
// PSU EEPROM
|
||||
i2c@6 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <6>;
|
||||
psu1_eeprom@50 {
|
||||
compatible = "accton,as4610_psu1";
|
||||
reg = <0x50>;
|
||||
};
|
||||
psu1_pmbus@58 {
|
||||
compatible = "3y-power,ym1921";
|
||||
reg = <0x58>;
|
||||
};
|
||||
psu2_eeprom@51 {
|
||||
compatible = "accton,as4610_psu2";
|
||||
reg = <0x51>;
|
||||
};
|
||||
psu2_pmbus@59 {
|
||||
compatible = "3y-power,ym1921";
|
||||
reg = <0x59>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c@7 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <7>;
|
||||
|
||||
temp@48 {
|
||||
compatible = "nxp,lm77";
|
||||
reg = <0x48>;
|
||||
};
|
||||
|
||||
rtc@68 {
|
||||
/* Actually M41T11 */
|
||||
compatible = "dallas,ds1307";
|
||||
reg = <0x68>;
|
||||
};
|
||||
|
||||
board_eeprom@50 {
|
||||
compatible = "at,24c04";
|
||||
reg = <0x50>;
|
||||
label = "board_eeprom";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -11,8 +11,9 @@ arm-accton-as4610-30-r0:
|
||||
kernel:
|
||||
<<: *arm-iproc-kernel
|
||||
dtb:
|
||||
=: accton_as4610_54.dtb
|
||||
<<: *arm-iproc-kernel-package
|
||||
=: arm-accton-as4610-54-r0.dtb
|
||||
package: onl-platform-build-arm-accton-as4610-30-r0:armel
|
||||
|
||||
itb:
|
||||
<<: *arm-itb
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
include $(ONL)/make/subdirs.mk
|
||||
@@ -0,0 +1,2 @@
|
||||
*.dtb
|
||||
dts
|
||||
@@ -0,0 +1,10 @@
|
||||
include $(ONL)/make/dtbs.mk
|
||||
|
||||
#
|
||||
# The 4610 DTS relies on the common arm devices tree includes. These are linked here from the kernel package.
|
||||
#
|
||||
setup::
|
||||
onlpm --link-dir onl-kernel-3.2-deb7-arm-iproc-all:armel /usr/share/onl/packages/armel/onl-kernel-3.2-deb7-arm-iproc-all/mbuilds/arch/arm/boot/dts dts
|
||||
|
||||
clean::
|
||||
rm -rf fsl
|
||||
@@ -0,0 +1,254 @@
|
||||
/*
|
||||
* Accton AS4610 54 Device Tree Source
|
||||
*
|
||||
* Copyright 2015, Cumulus Networks, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
*/
|
||||
/dts-v1/;
|
||||
/include/ "dts/helix4.dtsi"
|
||||
|
||||
/ {
|
||||
model = "accton,as4610_54";
|
||||
compatible = "accton,as4610_54";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart0;
|
||||
i2c-controller0 = &i2c0;
|
||||
i2c-controller1 = &i2c1;
|
||||
};
|
||||
|
||||
memory {
|
||||
reg = <0x61000000 0x7f000000>;
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-a9";
|
||||
next-level-cache = <&L2>;
|
||||
reg = <0x00>;
|
||||
};
|
||||
cpu@1 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-a9";
|
||||
next-level-cache = <&L2>;
|
||||
reg = <0x01>;
|
||||
};
|
||||
};
|
||||
|
||||
localbus@1c000000 {
|
||||
#address-cells = <0x2>;
|
||||
#size-cells = <0x1>;
|
||||
/* NAND Flash */
|
||||
ranges = <
|
||||
0x0 0x0 0x0 0x1c000000 0x00120000
|
||||
0x1 0x0 0x0 0x1c120000 0x00040000
|
||||
>;
|
||||
|
||||
flash@0,0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "cfi-flash";
|
||||
reg = <0x0 0x0 0x02000000>;
|
||||
byteswap;
|
||||
|
||||
partition@0 {
|
||||
/* uboot */
|
||||
reg = <0x00000000 0x00100000>;
|
||||
label = "uboot";
|
||||
};
|
||||
partition@1 {
|
||||
/* uboot-env */
|
||||
reg = <0x00100000 0x00100000>;
|
||||
label = "uboot-env";
|
||||
env_size = <0x2000>;
|
||||
};
|
||||
partition@2 {
|
||||
/* board_eeprom */
|
||||
reg = <0x00200000 0x00100000>;
|
||||
label = "board_eeprom";
|
||||
};
|
||||
partition@3 {
|
||||
/* shmoo */
|
||||
reg = <0x00300000 0x00100000>;
|
||||
label = "shmoo";
|
||||
};
|
||||
partition@4 {
|
||||
/* onie */
|
||||
reg = <0x00400000 0x00800000>;
|
||||
label = "onie";
|
||||
};
|
||||
partition@5 {
|
||||
/* open */
|
||||
reg = <0x00c00000 0x03c00000>;
|
||||
label = "open";
|
||||
};
|
||||
partition@6 {
|
||||
/* open2 */
|
||||
reg = <0x04800000 0x7d000000>;
|
||||
label = "open2";
|
||||
};
|
||||
partition@7 {
|
||||
/* diag */
|
||||
reg = <0xfec00000 0x01000000>;
|
||||
label = "diag";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
i2c0: i2c@18038000 {
|
||||
compatible = "iproc-smb";
|
||||
reg = <0x18038000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
interrupts = < 127 >;
|
||||
clock-frequency = <400000>;
|
||||
cpld@1,0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "accton,as4610_54_cpld";
|
||||
label = "cpld";
|
||||
reg = <0x30>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c1: i2c@1803b000 {
|
||||
compatible = "iproc-smb";
|
||||
reg = <0x1803b000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
interrupts = < 128 >;
|
||||
clock-frequency = <100000>;
|
||||
mux@70 {
|
||||
compatible = "ti,pca9548";
|
||||
reg = <0x70>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
deselect-on-exit;
|
||||
|
||||
// SFP+ 1
|
||||
i2c@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "at,as4610_sfp1";
|
||||
reg = <0x50>;
|
||||
label = "port49";
|
||||
};
|
||||
};
|
||||
|
||||
// SFP+ 2
|
||||
i2c@1 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <1>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp2";
|
||||
reg = <0x50>;
|
||||
label = "port50";
|
||||
};
|
||||
};
|
||||
|
||||
// SFP+ 3
|
||||
i2c@2 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <2>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp3";
|
||||
reg = <0x50>;
|
||||
label = "port51";
|
||||
};
|
||||
};
|
||||
|
||||
// SFP+ 4
|
||||
i2c@3 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <3>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp4";
|
||||
reg = <0x50>;
|
||||
label = "port52";
|
||||
};
|
||||
};
|
||||
|
||||
// QSFP+ STK1
|
||||
i2c@4 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <4>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp5";
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
|
||||
// QSFP+ STK2
|
||||
i2c@5 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <5>;
|
||||
sfp_eeprom@50 {
|
||||
compatible = "accton,as4610_sfp6";
|
||||
reg = <0x50>;
|
||||
};
|
||||
};
|
||||
|
||||
// PSU EEPROM
|
||||
i2c@6 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <6>;
|
||||
psu1_eeprom@50 {
|
||||
compatible = "accton,as4610_psu1";
|
||||
reg = <0x50>;
|
||||
};
|
||||
psu1_pmbus@58 {
|
||||
compatible = "3y-power,ym1921";
|
||||
reg = <0x58>;
|
||||
};
|
||||
psu2_eeprom@51 {
|
||||
compatible = "accton,as4610_psu2";
|
||||
reg = <0x51>;
|
||||
};
|
||||
psu2_pmbus@59 {
|
||||
compatible = "3y-power,ym1921";
|
||||
reg = <0x59>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c@7 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <7>;
|
||||
|
||||
temp@48 {
|
||||
compatible = "nxp,lm77";
|
||||
reg = <0x48>;
|
||||
};
|
||||
|
||||
rtc@68 {
|
||||
/* Actually M41T11 */
|
||||
compatible = "dallas,ds1307";
|
||||
reg = <0x68>;
|
||||
};
|
||||
|
||||
board_eeprom@50 {
|
||||
compatible = "at,24c04";
|
||||
reg = <0x50>;
|
||||
label = "board_eeprom";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -11,8 +11,9 @@ arm-accton-as4610-54-r0:
|
||||
kernel:
|
||||
<<: *arm-iproc-kernel
|
||||
dtb:
|
||||
=: accton_as4610_54.dtb
|
||||
<<: *arm-iproc-kernel-package
|
||||
=: arm-accton-as4610-54-r0.dtb
|
||||
package: onl-platform-build-arm-accton-as4610-54-r0:armel
|
||||
|
||||
itb:
|
||||
<<: *arm-itb
|
||||
|
||||
@@ -27,4 +28,3 @@ arm-accton-as4610-54-r0:
|
||||
env_offset: 0x00000000
|
||||
env_size: 0x00002000
|
||||
sector_size: 0x00010000
|
||||
|
||||
Reference in New Issue
Block a user