11.1Sjmcneill/*	$NetBSD: brcm,pinctrl-stingray.h,v 1.1.1.1 2017/10/28 10:30:32 jmcneill Exp $	*/
21.1Sjmcneill
31.1Sjmcneill/*
41.1Sjmcneill *  BSD LICENSE
51.1Sjmcneill *
61.1Sjmcneill *  Copyright(c) 2017 Broadcom Corporation.  All rights reserved.
71.1Sjmcneill *
81.1Sjmcneill *  Redistribution and use in source and binary forms, with or without
91.1Sjmcneill *  modification, are permitted provided that the following conditions
101.1Sjmcneill *  are met:
111.1Sjmcneill *
121.1Sjmcneill *    * Redistributions of source code must retain the above copyright
131.1Sjmcneill *      notice, this list of conditions and the following disclaimer.
141.1Sjmcneill *    * Redistributions in binary form must reproduce the above copyright
151.1Sjmcneill *      notice, this list of conditions and the following disclaimer in
161.1Sjmcneill *      the documentation and/or other materials provided with the
171.1Sjmcneill *      distribution.
181.1Sjmcneill *    * Neither the name of Broadcom Corporation nor the names of its
191.1Sjmcneill *      contributors may be used to endorse or promote products derived
201.1Sjmcneill *      from this software without specific prior written permission.
211.1Sjmcneill *
221.1Sjmcneill *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
231.1Sjmcneill *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
241.1Sjmcneill *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
251.1Sjmcneill *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
261.1Sjmcneill *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
271.1Sjmcneill *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
281.1Sjmcneill *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
291.1Sjmcneill *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
301.1Sjmcneill *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
311.1Sjmcneill *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
321.1Sjmcneill * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
331.1Sjmcneill */
341.1Sjmcneill
351.1Sjmcneill#ifndef __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
361.1Sjmcneill#define __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
371.1Sjmcneill
381.1Sjmcneill/* Alternate functions available in MUX controller */
391.1Sjmcneill#define MODE_NITRO				0
401.1Sjmcneill#define MODE_NAND				1
411.1Sjmcneill#define MODE_PNOR				2
421.1Sjmcneill#define MODE_GPIO				3
431.1Sjmcneill
441.1Sjmcneill/* Pad configuration attribute */
451.1Sjmcneill#define PAD_SLEW_RATE_ENA			(1 << 0)
461.1Sjmcneill#define PAD_SLEW_RATE_ENA_MASK			(1 << 0)
471.1Sjmcneill
481.1Sjmcneill#define PAD_DRIVE_STRENGTH_2_MA			(0 << 1)
491.1Sjmcneill#define PAD_DRIVE_STRENGTH_4_MA			(1 << 1)
501.1Sjmcneill#define PAD_DRIVE_STRENGTH_6_MA			(2 << 1)
511.1Sjmcneill#define PAD_DRIVE_STRENGTH_8_MA			(3 << 1)
521.1Sjmcneill#define PAD_DRIVE_STRENGTH_10_MA		(4 << 1)
531.1Sjmcneill#define PAD_DRIVE_STRENGTH_12_MA		(5 << 1)
541.1Sjmcneill#define PAD_DRIVE_STRENGTH_14_MA		(6 << 1)
551.1Sjmcneill#define PAD_DRIVE_STRENGTH_16_MA		(7 << 1)
561.1Sjmcneill#define PAD_DRIVE_STRENGTH_MASK			(7 << 1)
571.1Sjmcneill
581.1Sjmcneill#define PAD_PULL_UP_ENA				(1 << 4)
591.1Sjmcneill#define PAD_PULL_UP_ENA_MASK			(1 << 4)
601.1Sjmcneill
611.1Sjmcneill#define PAD_PULL_DOWN_ENA			(1 << 5)
621.1Sjmcneill#define PAD_PULL_DOWN_ENA_MASK			(1 << 5)
631.1Sjmcneill
641.1Sjmcneill#define PAD_INPUT_PATH_DIS			(1 << 6)
651.1Sjmcneill#define PAD_INPUT_PATH_DIS_MASK			(1 << 6)
661.1Sjmcneill
671.1Sjmcneill#define PAD_HYSTERESIS_ENA			(1 << 7)
681.1Sjmcneill#define PAD_HYSTERESIS_ENA_MASK			(1 << 7)
691.1Sjmcneill
701.1Sjmcneill#endif
71