i2c: buses: nvvrs11: Copy driver from kernel/nvidia

Make the copy of drivers of i2c/busses/i2c-nvvrs11
from kernel/nvidia to kernel/nvidia-oot.
This will remove the dependency of the OOT drivers
with kernel/nvidia-oot repo.

Bug 4038415

Change-Id: I3353f2744915763c3e5f14164746fc540cd585dc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2881573
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-04-03 10:43:31 +00:00
committed by mobile promotions
parent 0221df9441
commit cf15a1f3df
3 changed files with 384 additions and 4 deletions

View File

@@ -0,0 +1,37 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Defining registers address and its bit definitions of NVVRS11
*
* Copyright (C) 2022-2023 NVIDIA CORPORATION. All rights reserved.
*/
#ifndef _LINUX_I2C_NVVRS11_H_
#define _LINUX_I2C_NVVRS11_H_
#include <linux/types.h>
/* Vendor ID */
#define NVVRS11_REG_VENDOR_ID 0x00
#define NVVRS11_REG_MODEL_REV 0x01
/* Voltage Output registers */
#define NVVRS11_REG_VOUT_A 0x30
#define NVVRS11_REG_VOUT_B 0x33
/* Current Output registers */
#define NVVRS11_REG_IOUT_A 0x31
#define NVVRS11_REG_IOUT_B 0x34
/* Temperature registers */
#define NVVRS11_REG_TEMP_A 0x32
#define NVVRS11_REG_TEMP_B 0x35
struct nvvrs11_chip {
struct device *dev;
struct regmap *rmap;
struct i2c_client *client;
const char *loopA_rail_name;
const char *loopB_rail_name;
};
#endif /* _LINUX_I2C_NVVRS11_H_ */