lynxis / bbb_screwdriver_builder

A development util for ehci debug and spi flashing. See http://www.coreboot.org/BBB_screwdriver
GNU General Public License v3.0
20 stars 3 forks source link

Add devicetree runtime modification support for continious flashing #10

Open zaolin opened 9 years ago

zaolin commented 9 years ago

Hi,

we need to add a script for flashing which should enable and disable dynamically gpio on use (CLK, CS, GND, VCC) to improve better flashing and debugging experience.

lynxis commented 8 years ago

I'm testing this on a debian based image, when it's working, we need also to port the capemgmt to openwrt.

/dts-v1/;
/plugin/;

/ {
    compatible = "ti,beaglebone", "ti,beaglebone-black";

    fragment@0 {
        target = <&spi0>;
        __overlay__ {
            status = "disabled";
        };

    fragment@1 {
        target = <&am33xx_pinmux>;
        __overlay__ {
            pinctrl_spi0: pinctrl_spi1_pins {
                pinctrl-single,pins = <                                        
                    0x150 (PIN_INPUT | MUX_MODE7)    /* spi0_sclk */
                    0x154 (PIN_INPUT | MUX_MODE7)    /* spi0_d0 */
                    0x158 (PIN_INPUT | MUX_MODE7)   /* spi0_d1 */
                    0x15c (PIN_INPUT | MUX_MODE7)   /* spi0_cs0 */
                >;
            };
        };
    };
};