Software adaption
Example devicetree
/*
* Copyright (c) 2023, AUVIDEA. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or any
* later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/
/ {
i2c@c240000 {
p140_control_tca6408: p140_tca6408@21 {
compatible = "ti,tca6408";
reg = <0x21>;
vcc-supply = <&battery_reg>;
gpio-controller;
#gpio-cells = <2>;
gpio-line-names = "", "", "RESET_POE", "/INT", "EN_PCA", "PGOOD_48V", "EN_48V", "";
// this is required for the PCA to be enabled
en_pca {
gpio-hog;
gpios = <4 0>;
output-low;
line-name = "EN_PCA";
};
};
p140_control_pca9685: p140_pca9685@54 {
compatible = "nxp,pca9685-pwm";
#pwm-cells = <2>;
reg = <0x54>;
gpio-line-names = "", "LED4_G", "LED4_R", "LED4_B", "LED3_G", "LED3_R", "LED3_B",
"LED2_G", "LED2_R", "LED2_B", "LED1_G", "LED1_R", "LED1_B",
"LED0_G", "LED0_R", "LED0_B", "CTL_ALL";
};
};
};Bash Script
Ethernet Switch (KSZ9896C)
GPIO Control
Option
Suboption 1
Description
Action
Command
PWM Controller (PCA9685)
Option
Value 1
Value 2
Description
Action
Command
PoE Power Controller (TPS23861)
argument
Description
Action
Command
Last updated
Was this helpful?
