1/* 2 * Copyright (c) 2022 Nick Ward <nix.ward@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&arduino_i2c { 8 status = "okay"; 9 10 pca9685_adafruit_pca9685: pca9685@40 { 11 status = "okay"; 12 compatible = "nxp,pca9685-pwm"; 13 reg = <0x40>; 14 #pwm-cells = <2>; 15 }; 16}; 17 18/ { 19 pwmleds { 20 status = "okay"; 21 compatible = "pwm-leds"; 22 23 s_led0: s-led-0 { 24 pwms = <&pca9685_adafruit_pca9685 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 25 }; 26 s_led1: s-led-1 { 27 pwms = <&pca9685_adafruit_pca9685 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 28 }; 29 s_led2: s-led-2 { 30 pwms = <&pca9685_adafruit_pca9685 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 31 }; 32 s_led3: s-led-3 { 33 pwms = <&pca9685_adafruit_pca9685 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 34 }; 35 s_led4: s-led-4 { 36 pwms = <&pca9685_adafruit_pca9685 4 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 37 }; 38 s_led5: s-led-5 { 39 pwms = <&pca9685_adafruit_pca9685 5 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 40 }; 41 s_led6: s-led-6 { 42 pwms = <&pca9685_adafruit_pca9685 6 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 43 }; 44 s_led7: s-led-7 { 45 pwms = <&pca9685_adafruit_pca9685 7 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 46 }; 47 s_led8: s-led-8 { 48 pwms = <&pca9685_adafruit_pca9685 8 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 49 }; 50 s_led9: s-led-9 { 51 pwms = <&pca9685_adafruit_pca9685 9 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 52 }; 53 s_led10: s-led-10 { 54 pwms = <&pca9685_adafruit_pca9685 10 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 55 }; 56 s_led11: s-led-11 { 57 pwms = <&pca9685_adafruit_pca9685 11 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 58 }; 59 s_led12: s-led-12 { 60 pwms = <&pca9685_adafruit_pca9685 12 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 61 }; 62 s_led13: s-led-13 { 63 pwms = <&pca9685_adafruit_pca9685 13 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 64 }; 65 s_led14: s-led-14 { 66 pwms = <&pca9685_adafruit_pca9685 14 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 67 }; 68 s_led15: s-led-15 { 69 pwms = <&pca9685_adafruit_pca9685 15 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 70 }; 71 }; 72}; 73