GithubHelp home page GithubHelp logo

gpiodump-mt7620's Introduction

gpiodump-mt7620

This utility dumps the MT7620's current GPIOMODE register setting. It can help in writing device tree files for these devices, which is required when porting LEDE / OpenWrt.

Detailed info on the GPIOMODE register can be found in the MT7620 Datasheet

A precompiled static mips binary is available, but the utility can also be used to decode the value on any other machine.

####### Usage

Dumping GPIOMODE directly (on an MT7620 machine only):

# ./gpiodump
GPIOMODE = 0x001a331d
  SUTIF_SHARE_MODE     = 0, disabled       [default]
  WDT_RST_MODE         = 0, WDT_RST_N      [default]
  PA_G_GPIO_MODE       = 1, GPIO           [default]
  ND_SD_GPIO_MODE      = 2, GPIO           [default]
  PERST_GPIO_MODE      = 2, GPIO           [default]
  EPHY_LED_GPIO_MODE   = 0, normal         [default]
  WLED_GPIO_MODE       = 1, GPIO           [default]
  SPI_REFCLK0_MODE     = 1, GPIO           [default]
  SPI_GPIO_MODE        = 0, normal         [default]
  RGMII2_GPIO_MODE     = 0, normal
  RGMII1_GPIO_MODE     = 1, GPIO           [default]
  MDIO_GPIO_MODE       = 2, GPIO           [default]
  UARTL_GPIO_MODE      = 0, normal
  UARTF_SHARE_MODE     = 7, GPIO           [default]
  I2C_GPIO_MODE        = 1, GPIO           [default]

On any other machine:

# ./gpiodump 0x001a331d
GPIOMODE = 0x001a331d
  SUTIF_SHARE_MODE     = 0, disabled       [default]
  WDT_RST_MODE         = 0, WDT_RST_N      [default]
  PA_G_GPIO_MODE       = 1, GPIO           [default]
  ND_SD_GPIO_MODE      = 2, GPIO           [default]
  PERST_GPIO_MODE      = 2, GPIO           [default]
  EPHY_LED_GPIO_MODE   = 0, normal         [default]
  WLED_GPIO_MODE       = 1, GPIO           [default]
  SPI_REFCLK0_MODE     = 1, GPIO           [default]
  SPI_GPIO_MODE        = 0, normal         [default]
  RGMII2_GPIO_MODE     = 0, normal
  RGMII1_GPIO_MODE     = 1, GPIO           [default]
  MDIO_GPIO_MODE       = 2, GPIO           [default]
  UARTL_GPIO_MODE      = 0, normal
  UARTF_SHARE_MODE     = 7, GPIO           [default]
  I2C_GPIO_MODE        = 1, GPIO           [default]

gpiodump-mt7620's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.