Author: mw
Date: Wed Aug  9 00:51:45 2017
New Revision: 322286
URL: https://svnweb.freebsd.org/changeset/base/322286

Log:
  Restore original /soc ranges on Marvell Armada 38x boards
  
  Because fdt_get_ranges can process now multiple 'ranges' entries,
  restoring the ranges from original Linux device trees is possible.
  
  Submitted by: Patryk Duda <p...@semihalf.com>
  Reviewed by: cognet (mentor)
  Approved by: cognet (mentor)
  Obtained from: Semihalf
  Differential Revision: https://reviews.freebsd.org/D11877

Modified:
  head/sys/boot/fdt/dts/arm/armada-385-db-ap.dts
  head/sys/boot/fdt/dts/arm/armada-388-gp.dts
  head/sys/boot/fdt/dts/arm/armada-38x-solidrun-microsom.dtsi

Modified: head/sys/boot/fdt/dts/arm/armada-385-db-ap.dts
==============================================================================
--- head/sys/boot/fdt/dts/arm/armada-385-db-ap.dts      Wed Aug  9 00:45:25 
2017        (r322285)
+++ head/sys/boot/fdt/dts/arm/armada-385-db-ap.dts      Wed Aug  9 00:51:45 
2017        (r322286)
@@ -60,7 +60,11 @@
        };
 
        soc {
-               ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
+               ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
+                         MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
+                         MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
+                         MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
+                         MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
 
                internal-regs {
                        i2c0: i2c@11000 {

Modified: head/sys/boot/fdt/dts/arm/armada-388-gp.dts
==============================================================================
--- head/sys/boot/fdt/dts/arm/armada-388-gp.dts Wed Aug  9 00:45:25 2017        
(r322285)
+++ head/sys/boot/fdt/dts/arm/armada-388-gp.dts Wed Aug  9 00:51:45 2017        
(r322286)
@@ -59,7 +59,11 @@
        };
 
        soc {
-               ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
+               ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
+                         MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
+                         MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
+                         MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
+                         MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
 
                internal-regs {
                        crypto@90000 {

Modified: head/sys/boot/fdt/dts/arm/armada-38x-solidrun-microsom.dtsi
==============================================================================
--- head/sys/boot/fdt/dts/arm/armada-38x-solidrun-microsom.dtsi Wed Aug  9 
00:45:25 2017        (r322285)
+++ head/sys/boot/fdt/dts/arm/armada-38x-solidrun-microsom.dtsi Wed Aug  9 
00:51:45 2017        (r322286)
@@ -57,7 +57,11 @@
        };
 
        soc {
-               ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
+               ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
+                         MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
+                         MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
+                         MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
+                         MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
 
                internal-regs {
                        ethernet@70000 {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to