GithubHelp home page GithubHelp logo

5l1v3r1 / tegra-pinmux-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvidia/tegra-pinmux-scripts

0.0 1.0 0.0 148 KB

Scripts to auto-generate pin mux drivers and board configuration tables for Tegra SoCs and boards

Python 100.00%

tegra-pinmux-scripts's Introduction

Introduction
============

Many aspects of many of Tegra's pins can configure via the pinmux and GPIO
controllers. This project exists to assist with software's handling of the
configuration of those controllers.

Submitting Changes
==================

To submit patches to this project, please use the following commands:

* git format-patch --subject-prefix="pinmux scripts PATCH"

  Creates a patch file from your git commit.

* git send-email --to [email protected] *.patch

  Sends the patch by email to the Tegra mailing list.

Even though the primary upstream repository for this project is hosted on
github, contributions aren't accepted via github pull requests. Github pull
requests would bypass public code review on the project mailing list.

Patches should be signed off (include a signed-off-by line) to indicate your
acceptance of the code's license (see the license header in each file). See
http://developercertificate.org/ for details of what signed-off-by implies.

Data files
==========

SoC definition

  The exact set of configurable options varies from chip to chip. This project
  contains a data file for each chip, which describes the available pins on
  the chip, along with their parameters, such as the set of available pinmux
  functions the pin supports.

  An example is configs/tegra124.soc.

Board configuration

  Much of the programming of these controllers is directly driven by the board
  design. This project contains a data file for each board, which describes
  the required configuration for each pin.

  An example is configs/jetson-tk1.board.

Converter Scripts
=================

soc-to-kernel-pinctrl-driver.py

  Reads an SoC definition data file, and emits the source code for a Linux
  kernel pinctrl driver, e.g. drivers/pinctrl/pinctrl-tegra124.c.

soc-to-uboot-driver.py

  Reads an SoC definition data file, and emits the source code for a U-Boot
  pinmux driver, e.g. arch/arm/include/asm/arch-tegra124/pinmux.h,
  arch/arm/cpu/tegra124-common/pinmux.c

csv-to-board-tegra124-xlsx.py

  Part of the output from the board design process is a spreadsheet that
  describes the required configuration for each pin. This script extracts the
  final pinmux configuration from (a CSV representation of) such spreadsheets
  and creates a board configuration such as configs/jetson-tk1.board.

board-to-kernel-dt.py

  Reads a board configuration data file, and emits a device tree fragment
  suitable for inclusion in a board's device tree file. For example, the
  output may form part of arch/arm/boot/dts/tegra124-jetson-tk1.dts.

  Note that when at all possible, it is far preferable for the kernel not to
  program the pinmux controller, but rather to rely upon system software to
  have set it up. This reduces duplicate processing of pinmux data, and is
  consistent with a model where the first software to touch any I/O controller
  programs the pinmux configuration en mass, to avoid any potential output
  data glitches.

board-to-uboot.py

  Reads a board configuration data file, and emits a header file suitable for
  use with U-Boot's pinmux driver. For example,
  board/nvidia/jetson-tk1/pinmux-config-jetson-tk1.h. Note also the function
  pinmux_init() in jetson-tk1.c in that same directory.

tegra-pinmux-scripts's People

Contributors

allen-martin avatar ldewangan avatar lynxeye-dev avatar nvswarren avatar rhklein avatar sjg20 avatar thierryreding avatar tomeuv avatar

Watchers

 avatar

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.