Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /include/ "am33xx.dtsi"
- /include/ "am335x-bone-common.dtsi"
- &am33xx_pinmux {
- spi0_pins_s0: spi0_pins_s0 {
- pinctrl-single,pins = <
- 0x150 0x30 /* spi0_sclk, INPUT_PULLUP | MODE0 */
- 0x154 0x30 /* spi0_d0, INPUT_PULLUP | MODE0 */
- 0x158 0x10 /* spi0_d1, OUTPUT_PULLUP | MODE0 */
- 0x15c 0x10 /* spi0_cs0, OUTPUT_PULLUP | MODE0 */
- >;
- };
- spi1_pins_s0: spi1_pins_s0 {
- pinctrl-single,pins = <
- 0x190 0x33 /* mcasp0_aclkx.spi1_sclk, INPUT_PULLUP | MODE3 */
- 0x194 0x33 /* mcasp0_fsx.spi1_d0, INPUT_PULLUP | MODE3 */
- 0x198 0x13 /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */
- 0x19c 0x13 /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
- 0x17c 0x14 /* conf_uart1_rtsn.spi1_cs1, OUTPUT_PULLUP | MODE4 */
- >;
- };
- ehrpwm_pins: ehrpwm_pins {
- pinctrl-single,pins = <
- 0x48 0x6 /* gpmc_a2.ehrpwm1A_mux1, OUTPUT | MODE6 */
- >;
- };
- };
- &spi0 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&spi1_pins_s0>;
- spidev@0 {
- spi-max-frequency = <24000000>;
- reg = <0>;
- compatible = "linux,spidev";
- };
- };
- &spi1 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&spi0_pins_s0>;
- spidev@0 {
- spi-max-frequency = <24000000>;
- reg = <0>;
- compatible = "linux,spidev";
- };
- spidev@1 {
- spi-max-frequency = <24000000>;
- reg = <1>;
- compatible = "linux,spidev";
- };
- };
- &i2c2 {
- status = "disabled";
- };
- &epwmss0 {
- status = "okay";
- };
- &ehrpwm0 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&ehrpwm_pins>;
- compatible = "pwm_test";
- pwms = <&ehrpwm0 0 50000 0>;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement