Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
beagleboard-devicetrees
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioroboticslab
robofish
electrofish
vendor
beagleboard-devicetrees
Commits
bc8f3bf4
Commit
bc8f3bf4
authored
3 years ago
by
Robert Nelson
Browse files
Options
Downloads
Patches
Plain Diff
am335x-bonegreen-gateway.dts: use fixup for ble
Signed-off-by:
Robert Nelson
<
robertcnelson@gmail.com
>
parent
554a0cdf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/arm/am335x-bonegreen-gateway.dts
+66
-17
66 additions, 17 deletions
src/arm/am335x-bonegreen-gateway.dts
with
66 additions
and
17 deletions
src/arm/am335x-bonegreen-gateway.dts
+
66
−
17
View file @
bc8f3bf4
...
...
@@ -2,6 +2,7 @@
/*
* Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
*/
/dts-v1/;
#include "am33xx.dtsi"
...
...
@@ -21,6 +22,7 @@
chosen {
base_dtb = "am335x-bonegreen-gateway.dts";
base_dtb_timestamp = __TIMESTAMP__;
wl1835_bt = "S3-texas-300000";
};
wlan_en_reg: fixedregulator@2 {
...
...
@@ -36,7 +38,39 @@
};
leds {
pinctrl-0 = <&user_leds_s0 &extra_led_pins>;
pinctrl-names = "default";
//pinctrl-0 = <&user_leds_s0>;
pinctrl-0 = <&user_leds_s0 &bt_pins>;
compatible = "gpio-leds";
led2 {
label = "beaglebone:green:usr0";
gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
default-state = "off";
};
led3 {
label = "beaglebone:green:usr1";
gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc0";
default-state = "off";
};
led4 {
label = "beaglebone:green:usr2";
gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "cpu0";
default-state = "off";
};
led5 {
label = "beaglebone:green:usr3";
gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc1";
default-state = "off";
};
led6 {
label = "beaglebone:green:usr4";
...
...
@@ -44,6 +78,12 @@
linux,default-trigger = "netdev";
default-state = "off";
};
wl18xx_bt_en: led7 {
label = "wl18xx_bt_en";
gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
};
...
...
@@ -70,9 +110,19 @@
pinctrl-names = "default";
pinctrl-0 = <&usbhost_pins>;
user_leds_s0: user_leds_s0 {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gpmc_a5.gpio1_21 */
AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gpmc_a6.gpio1_22 */
AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gpmc_a7.gpio1_23 */
AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gpmc_a8.gpio1_24 */
AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* WL_Active_LED / USR4 */
>;
};
bt_pins: pinmux_bt_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULL
UP
, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULL
DOWN
, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
>;
};
...
...
@@ -103,9 +153,9 @@
>;
};
extra_led
_pins: pinmux_
extra_led
_pins {
usbhost
_pins: pinmux_
usbhost
_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_MII1_
R
XD
0
, PIN_OUTPUT, MUX_MODE7) /*
WL_Active_LED / USR4
*/
AM33XX_PADCONF(AM335X_PIN_MII1_
T
XD
1
, PIN_OUTPUT
_PULLUP
, MUX_MODE7) /*
gmii1_txd1.gpio0[21]
*/
>;
};
...
...
@@ -116,12 +166,6 @@
AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gmii1_rxclk.gpio3_10 LS_BUF_EN */
>;
};
usbhost_pins: pinmux_usbhost_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gmii1_txd1.gpio0[21] */
>;
};
};
&mac {
...
...
@@ -160,16 +204,20 @@
&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&uart3_pins &bt_pins>;
pinctrl-0 = <&uart3_pins>;
//pinctrl-0 = <&uart3_pins &bt_pins>;
status = "okay";
bluetooth {
compatible = "ti,wl1835-st";
enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
};
//
bluetooth {
//
compatible = "ti,wl1835-st";
//
enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
//
};
};
&i2c0 {
#address-cells = <1>;
#size-cells = <0>;
extrtc: rtc@68 {
compatible = "dallas,ds1340";
reg = <0x68>;
...
...
@@ -178,7 +226,7 @@
// (K16) gmii1_txd1.gpio0[21]
&gpio0 {
usb
_
reset {
usb
-
reset
-hog
{
gpio-hog;
gpios = <21 GPIO_ACTIVE_HIGH>;
output-high;
...
...
@@ -187,7 +235,7 @@
};
&gpio3 {
ls
_
buf
_
en {
ls
-
buf
-
en
-hog
{
gpio-hog;
gpios = <10 GPIO_ACTIVE_HIGH>;
output-high;
...
...
@@ -202,6 +250,7 @@
hub@1 {
compatible = "usb424,9512";
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment