Skip to content
Snippets Groups Projects
  • Adrian Schmutzler's avatar
    ad6b0770
    ramips: mt7628: move mtd-eeprom out of root DTSI · ad6b0770
    Adrian Schmutzler authored
    
    The mt76x8 subtarget is the only one in ramips that stores the
    mediatek,mtd-eeprom property directly in the "root" mt7628an.dtsi.
    
    This is not optimal for a few different reasons:
    
     * If you don't really know it or are used to other (sub)targets,
       the property will be set somewhat magically.
     * The property is set based on &factory partition before (if at all)
       this partition is defined.
     * There are several devices that have different offset or even
       different partitions to read from, which will then be overwritten
       in the DTS files. Thus, definitions are scattered between root
       DTSI and individual files.
    
    Based on these circumstances, the "root" definition is removed and
    the property is added to the device-based DTS(I) files where needed
    and applicable. This should be easier to grasp for unexperienced
    developers and will move the property closer to the partition
    definitions.
    
    Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
    ad6b0770
    History
    ramips: mt7628: move mtd-eeprom out of root DTSI
    Adrian Schmutzler authored
    
    The mt76x8 subtarget is the only one in ramips that stores the
    mediatek,mtd-eeprom property directly in the "root" mt7628an.dtsi.
    
    This is not optimal for a few different reasons:
    
     * If you don't really know it or are used to other (sub)targets,
       the property will be set somewhat magically.
     * The property is set based on &factory partition before (if at all)
       this partition is defined.
     * There are several devices that have different offset or even
       different partitions to read from, which will then be overwritten
       in the DTS files. Thus, definitions are scattered between root
       DTSI and individual files.
    
    Based on these circumstances, the "root" definition is removed and
    the property is added to the device-based DTS(I) files where needed
    and applicable. This should be easier to grasp for unexperienced
    developers and will move the property closer to the partition
    definitions.
    
    Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>