/dts-v1/; /plugin/; #include /* * Fake a higher clock rate to get a larger divisor, and thereby a lower * baudrate. The real clock is 48MHz, which we scale so that requesting * 38.4kHz results in an actual 31.25kHz. * * 48000000*38400/31250 = 58982400 */ /{ compatible = "brcm,bcm2835"; fragment@0 { target-path = "/"; __overlay__ { midi_clk: midi_clk4 { compatible = "fixed-clock"; #clock-cells = <0>; clock-output-names = "uart4_pclk"; clock-frequency = <58982400>; }; }; }; fragment@1 { target = <&uart4>; __overlay__ { clocks = <&midi_clk>, <&clocks BCM2835_CLOCK_VPU>; }; }; };