mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
61 lines
1.7 KiB
Diff
61 lines
1.7 KiB
Diff
From 19b934ce3763c9465c5c80302f7c142d30b75869 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Fri, 28 Oct 2022 14:13:30 +0100
|
|
Subject: [PATCH] dt-bindings: pinctrl: Add bindings for Raspberry Pi RP1
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
include/dt-bindings/pinctrl/rp1.h | 46 +++++++++++++++++++++++++++++++
|
|
1 file changed, 46 insertions(+)
|
|
create mode 100644 include/dt-bindings/pinctrl/rp1.h
|
|
|
|
--- /dev/null
|
|
+++ b/include/dt-bindings/pinctrl/rp1.h
|
|
@@ -0,0 +1,46 @@
|
|
+/* SPDX-License-Identifier: GPL-2.0 */
|
|
+/*
|
|
+ * Header providing constants for RP1 pinctrl bindings.
|
|
+ *
|
|
+ * Copyright (C) 2019-2022 Raspberry Pi Ltd.
|
|
+ */
|
|
+
|
|
+#ifndef __DT_BINDINGS_PINCTRL_RP1_H__
|
|
+#define __DT_BINDINGS_PINCTRL_RP1_H__
|
|
+
|
|
+/* brcm,function property */
|
|
+#define RP1_FSEL_GPIO_IN 0
|
|
+#define RP1_FSEL_GPIO_OUT 1
|
|
+#define RP1_FSEL_ALT0_LEGACY 4
|
|
+#define RP1_FSEL_ALT1_LEGACY 5
|
|
+#define RP1_FSEL_ALT2_LEGACY 6
|
|
+#define RP1_FSEL_ALT3_LEGACY 7
|
|
+#define RP1_FSEL_ALT4_LEGACY 3
|
|
+#define RP1_FSEL_ALT5_LEGACY 2
|
|
+#define RP1_FSEL_ALT0 0x08
|
|
+#define RP1_FSEL_ALT0INV 0x09
|
|
+#define RP1_FSEL_ALT1 0x0a
|
|
+#define RP1_FSEL_ALT1INV 0x0b
|
|
+#define RP1_FSEL_ALT2 0x0c
|
|
+#define RP1_FSEL_ALT2INV 0x0d
|
|
+#define RP1_FSEL_ALT3 0x0e
|
|
+#define RP1_FSEL_ALT3INV 0x0f
|
|
+#define RP1_FSEL_ALT4 0x10
|
|
+#define RP1_FSEL_ALT4INV 0x11
|
|
+#define RP1_FSEL_ALT5 0x12
|
|
+#define RP1_FSEL_ALT5INV 0x13
|
|
+#define RP1_FSEL_ALT6 0x14
|
|
+#define RP1_FSEL_ALT6INV 0x15
|
|
+#define RP1_FSEL_ALT7 0x16
|
|
+#define RP1_FSEL_ALT7INV 0x17
|
|
+#define RP1_FSEL_ALT8 0x18
|
|
+#define RP1_FSEL_ALT8INV 0x19
|
|
+#define RP1_FSEL_NONE 0x1a
|
|
+
|
|
+/* brcm,pull property */
|
|
+#define RP1_PUD_OFF 0
|
|
+#define RP1_PUD_DOWN 1
|
|
+#define RP1_PUD_UP 2
|
|
+#define RP1_PUD_KEEP 3
|
|
+
|
|
+#endif /* __DT_BINDINGS_PINCTRL_RP1_H__ */
|