• Andy Yan's avatar
    ARM: dts: rockchip: use pin constants to describe gpios · e9e79d53
    Andy Yan authored
    Use macros to describe gpios will make the dts easier to
    read and write.
    
    All the modifications done with sed:
    
    sed -i -e 's/ 0  GPIO_ACTIVE_/ RK_PA0 GPIO_ACTIVE_/' arch/arm/boot/dts/rk*
    sed -i -e 's/ 1  GPIO_ACTIVE_/ RK_PA1 GPIO_ACTIVE_/' arch/arm/boot/dts/rk*
    sed -i -e 's/ 2  GPIO_ACTIVE_/ RK_PA2 GPIO_ACTIVE_/' arch/arm/boot/dts/rk*
    .......
    .......
    sed -i -e 's/ 30 GPIO_ACTIVE_/ RK_PD6 GPIO_ACTIVE_/' arch/arm/boot/dts/rk*
    sed -i -e 's/ 31 GPIO_ACTIVE_/ RK_PD7 GPIO_ACTIVE_/' arch/arm/boot/dts/rk*
    
    Tested with:
    
    for i in dts-old/*dtb; do scripts/dtc/dtx_diff $i dts-new/$(basename $i);  done
    Signed-off-by: default avatarAndy Yan <andy.yan@rock-chips.com>
    [also adapted the gpio interrupts]
    Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
    e9e79d53
rk3288-rock2-square.dts 5.31 KB