-
Notifications
You must be signed in to change notification settings - Fork 178
fix BBB servo cape overlay #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,27 +35,27 @@ | |
|
|
||
| P9_19_pinmux { status = "disabled"; }; /* i2c2.scl */ | ||
| P9_20_pinmux { status = "disabled"; }; /* i2c2.sda */ | ||
| P8_10_pinmux { status = "disabled"; }; /* servo.enable */ | ||
| P8_10_pinmux { status = "disabled"; }; /* pca9685.enable */ | ||
| }; | ||
|
|
||
| &am33xx_pinmux { | ||
|
|
||
| bborg_servo_input_pins: pinmux_bborg_servo_input_pins { | ||
| pinctrl-single,pins = < | ||
| BONE_P8_12 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* P8_12: gpio1_12 */ | ||
| BONE_P8_11 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* P8_11: gpio1_13 */ | ||
| BONE_P9_30 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* P9_30: gpio3_16 */ | ||
| BONE_P9_27 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* P9_27: gpio3_19 */ | ||
| BONE_P9_41 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* P9_41: gpio3_20 */ | ||
| BONE_P9_42 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* P9_42: gpio0_7 */ | ||
| BONE_P8_12 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* P8_12: gpio1_12 */ | ||
|
||
| BONE_P8_11 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* P8_11: gpio1_13 */ | ||
| BONE_P9_30 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* P9_30: gpio3_16 */ | ||
| BONE_P9_27 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* P9_27: gpio3_19 */ | ||
| BONE_P9_41 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* P9_41: gpio3_20 */ | ||
| BONE_P9_42 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* P9_42: gpio0_7 */ | ||
| >; | ||
| }; | ||
|
|
||
|
|
||
| bborg_servo_pca9685_i2c_pins: bborg_servo_pca9685_i2c_pins { | ||
| bborg_servo_pca9685_i2c_pins: pinmux_bborg_servo_pca9685_i2c_pins { | ||
|
||
| pinctrl-single,pins = < | ||
| BONE_P9_19 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* P9_19: i2c2.scl */ | ||
| BONE_P9_20 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* P9_20: i2c2.sda */ | ||
| BONE_P9_20 (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3) /* P9_19: i2c2.sda */ | ||
| BONE_P9_19 (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3) /* P9_20: i2c2.scl */ | ||
| >; | ||
| }; | ||
|
|
||
|
|
@@ -75,45 +75,27 @@ | |
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| pca9685_servo: pca9685_serve@7f { | ||
| compatible = "nxp, pca9685"; | ||
| pca: pca@70 { | ||
| compatible = "nxp,pca9685-pwm"; | ||
| #pwm-cells = <16>; | ||
| reg = <0x70>; | ||
| lable = "pca9685_servo"; | ||
|
||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&bborg_servo_pca9685_en_pins>; | ||
| enable-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there or is there not an enable gpio? I'd think you'd need that.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is but we handle it separately not, I tried using it this way but I was not able to make it work out. |
||
| reg = <0x7f>; | ||
| /* invert; */ | ||
| /* open-drain; */ | ||
| }; | ||
| }; | ||
|
|
||
| &{/} { | ||
| gpio_inputs { | ||
| compatible = "gpio-keys"; | ||
| leds { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this called leds?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was a different person back then, didn't knew as much as I know now. I will update this accordingly 👍 |
||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&bborg_servo_input_pins>; | ||
| pinctrl-0 = <&bborg_servo_pca9685_en_pins>; | ||
|
|
||
| input@1 { | ||
| lable = "in1"; | ||
| gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| input@2 { | ||
| lable = "in2"; | ||
| gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| input@3 { | ||
| lable = "in3"; | ||
| gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| input@4 { | ||
| lable = "in4"; | ||
| gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| input@5 { | ||
| lable = "in5"; | ||
| gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| input@6 { | ||
| lable = "in6"; | ||
| gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||
| compatible = "gpio-leds"; | ||
|
|
||
| pca9685-enable { | ||
|
||
| label = "pca9685-enable"; | ||
| gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; | ||
| default-state = "on"; | ||
| }; | ||
| }; | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some comments above about the overall function and resources. I think I know now, but a summary in the comments would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing 👍