| /* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. |
| * |
| * Permission to use, copy, modify, and/or distribute this software for any |
| * purpose with or without fee is hereby granted, provided that the above |
| * copyright notice and this permission notice appear in all copies. |
| * |
| * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| */ |
| |
| /dts-v1/; |
| |
| #include "sirocco-p0.dts" |
| |
| / { |
| soc { |
| mdio1: mdio@90000 { |
| status = "ok"; |
| pinctrl-0 = <&mdio1_pins &phy_pins>; |
| pinctrl-names = "default"; |
| phy-reset-gpio = <&tlmm 46 0>; |
| |
| ethernet-phy@0 { |
| reg = <0>; |
| }; |
| }; |
| }; |
| }; |
| |
| &tlmm { |
| phy_pins: phy_pins { |
| phy_intr { |
| pins = "gpio26"; |
| function = "gpio"; |
| drive-strength = <8>; |
| bias-disable; |
| }; |
| phy_reset { |
| pins = "gpio46"; |
| function = "gpio"; |
| drive-strength = <8>; |
| bias-pull-down; |
| output-low; |
| }; |
| }; |
| }; |
| |
| &i2c_0 { |
| aw2015@64 { |
| compatible = "awinic,aw2015_led"; |
| reg = <0x64>; |
| aw2015,imax = <3>; |
| aw2015,pwmlog = <3>; |
| enable-gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>; |
| aw2015,reset-detection-period-ms = <500>; |
| aw2015,enable-reset-recover; |
| |
| aw2015,red { |
| aw2015,name = "status-R"; |
| aw2015,id = <0>; |
| aw2015,led-current = <255>; |
| aw2015,max-brightness = <255>; |
| aw2015,rise-time-ms = <0>; |
| aw2015,hold-time-ms = <0>; |
| aw2015,fall-time-ms = <0>; |
| aw2015,off-time-ms = <0>; |
| }; |
| |
| aw2015,green { |
| aw2015,name = "status-G"; |
| aw2015,id = <1>; |
| aw2015,led-current = <255>; |
| aw2015,max-brightness = <255>; |
| aw2015,rise-time-ms = <0>; |
| aw2015,hold-time-ms = <0>; |
| aw2015,fall-time-ms = <0>; |
| aw2015,off-time-ms = <0>; |
| }; |
| |
| aw2015,blue { |
| aw2015,name = "status-B"; |
| aw2015,id = <2>; |
| aw2015,led-current = <255>; |
| aw2015,max-brightness = <255>; |
| aw2015,rise-time-ms = <0>; |
| aw2015,hold-time-ms = <0>; |
| aw2015,fall-time-ms = <0>; |
| aw2015,off-time-ms = <0>; |
| }; |
| }; |
| }; |