Geert Uytterhoeven
e39aac0e65
pinctrl: sh-pfc: sh7269: Fix CAN function GPIOs
...
[ Upstream commit 02aeb2f21530c98fc3ca51028eda742a3fafbd9f ]
pinmux_func_gpios[] contains a hole due to the missing function GPIO
definition for the "CTX0&CTX1" signal, which is the logical "AND" of the
first two CAN outputs.
A closer look reveals other issues:
- Some functionality is available on alternative pins, but the
PINMUX_DATA() entries is using the wrong marks,
- Several configurations are missing.
Fix this by:
- Renaming CTX0CTX1CTX2_MARK, CRX0CRX1_PJ22_MARK, and
CRX0CRX1CRX2_PJ20_MARK to CTX0_CTX1_CTX2_MARK, CRX0_CRX1_PJ22_MARK,
resp. CRX0_CRX1_CRX2_PJ20_MARK for consistency with the
corresponding enum IDs,
- Adding all missing enum IDs and marks,
- Use the right (*_PJ2x) variants for alternative pins,
- Adding all missing configurations to pinmux_data[],
- Adding all missing function GPIO definitions to pinmux_func_gpios[].
See SH7268 Group, SH7269 Group User’s Manual: Hardware, Rev. 2.00:
[1] Table 1.4 List of Pins
[2] Figure 23.29 Connection Example when Using Channels 0 and 1 as One
Channel (64 Mailboxes × 1 Channel) and Channel 2 as One Channel
(32 Mailboxes × 1 Channel),
[3] Figure 23.30 Connection Example when Using Channels 0, 1, and 2 as
One Channel (96 Mailboxes × 1 Channel),
[4] Table 48.3 Multiplexed Pins (Port B),
[5] Table 48.4 Multiplexed Pins (Port C),
[6] Table 48.10 Multiplexed Pins (Port J),
[7] Section 48.2.4 Port B Control Registers 0 to 5 (PBCR0 to PBCR5).
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20191218194812.12741-5-geert+renesas@glider.be
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-24 08:36:41 +01:00
..
actions
aspeed
pinctrl: aspeed-g6: Fix LPC/eSPI mux configuration
2020-01-12 12:21:27 +01:00
bcm
pinctrl: iproc: allow for error from platform_get_irq()
2019-10-05 18:36:57 +02:00
berlin
pinctrl: berlin: as370: fix a typo s/spififib/spdifib
2019-10-16 14:12:55 +02:00
cirrus
pinctrl: lochnagar: select GPIOLIB
2020-01-17 19:48:18 +01:00
freescale
pinctrl: freescale: imx: Add of_node_put() before return
2019-08-10 10:29:19 +02:00
intel
pinctrl: baytrail: Do not clear IRQ flags on direct-irq enabled pins
2020-02-24 08:36:27 +01:00
mediatek
This is the bulk of pin control changes for the v5.3 kernel
2019-07-13 15:02:27 -07:00
meson
pinctrl: meson: Fix wrong shift value when get drive-strength
2020-01-17 19:48:20 +01:00
mvebu
pinctrl: armada-37xx: Fix irq mask access in armada_37xx_irq_set_type()
2019-12-17 19:56:37 +01:00
nomadik
pinctrl: nomadik: abx500: Add of_node_put() before return
2019-08-06 14:51:59 +02:00
nuvoton
pxa
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441
2019-06-05 17:37:17 +02:00
qcom
pinctrl: qcom: sc7180: Add missing tile info in SDC_QDSD_PINGROUP/UFS_RESET
2019-12-31 16:44:35 +01:00
samsung
pinctrl: samsung: Fix device node refcount leaks in S3C64xx wakeup controller init
2019-12-17 19:56:39 +01:00
sh-pfc
pinctrl: sh-pfc: sh7269: Fix CAN function GPIOs
2020-02-24 08:36:41 +01:00
sirf
spear
pinctrl: spear: spear: Add of_node_put() before return
2019-08-06 16:18:49 +02:00
sprd
pinctrl: sprd: Add of_node_put() before return to prevent memory leak
2019-08-10 10:22:50 +02:00
stm32
pinctrl: stm32: stm32: Add of_node_put() before return
2019-08-10 10:21:51 +02:00
sunxi
pinctrl: sunxi: v3s: introduce support for V3
2019-08-05 12:35:29 +02:00
tegra
pinctrl: tegra: Flush pinctrl writes during resume
2019-08-21 09:00:16 +02:00
ti
pinctl: ti: iodelay: fix error checking on pinctrl_count_index_with_args call
2020-01-17 19:48:50 +01:00
uniphier
pinctrl: uniphier: Fix Pro5 SD pin-mux setting
2019-08-05 13:21:31 +02:00
vt8500
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288
2019-06-05 17:36:37 +02:00
zte
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
core.c
pinctrl/gpio: Take MUX usage into account
2019-08-23 11:09:41 +02:00
core.h
devicetree.c
pinctrl: devicetree: Avoid taking direct reference to device name string
2019-12-31 16:43:29 +01:00
devicetree.h
Kconfig
Makefile
pinconf-generic.c
This is the bulk of pin control changes for the v5.3 kernel
2019-07-13 15:02:27 -07:00
pinconf.c
pinconf.h
pinctrl-amd.c
pinctrl: amd: fix __iomem annotation in amd_gpio_irq_handler()
2019-12-31 16:44:36 +01:00
pinctrl-amd.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422
2019-06-05 17:37:15 +02:00
pinctrl-artpec6.c
pinctrl-as3722.c
pinctrl-at91-pio4.c
pinctrl-at91.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 434
2019-06-05 17:37:16 +02:00
pinctrl-at91.h
pinctrl-axp209.c
pinctrl-bm1880.c
pinctrl: Add drive strength support for BM1880 SoC
2019-06-08 01:29:42 +02:00
pinctrl-coh901.c
pinctrl: Minimize SPDX hamming distance
2019-06-20 10:54:55 +02:00
pinctrl-coh901.h
pinctrl-da850-pupd.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285
2019-06-05 17:36:37 +02:00
pinctrl-digicolor.c
pinctrl-falcon.c
pinctrl: falcon: Add of_node_put() before return
2019-08-06 14:50:04 +02:00
pinctrl-gemini.c
pinctrl-ingenic.c
pinctrl: Ingenic: Add pinctrl driver for X1500.
2019-07-29 23:42:08 +02:00
pinctrl-lantiq.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 332
2019-06-05 17:37:06 +02:00
pinctrl-lantiq.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 332
2019-06-05 17:37:06 +02:00
pinctrl-lpc18xx.c
pinctrl-max77620.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422
2019-06-05 17:37:15 +02:00
pinctrl-mcp23s08.c
pinctrl: mcp23s08: Fix add_data and irqchip_add_nested call order
2019-06-25 14:14:26 +02:00
pinctrl-ocelot.c
pinctrl: ocelot: fix pinmuxing for pins after 31
2019-06-25 15:42:31 +02:00
pinctrl-oxnas.c
pinctrl: Remove dev_err() usage after platform_get_irq()
2019-08-05 13:24:06 +02:00
pinctrl-palmas.c
pinctrl-pic32.c
pinctrl: Remove dev_err() usage after platform_get_irq()
2019-08-05 13:24:06 +02:00
pinctrl-pic32.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 445
2019-06-05 17:37:18 +02:00
pinctrl-pistachio.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422
2019-06-05 17:37:15 +02:00
pinctrl-rk805.c
pinctrl: rk805: Make structures constant
2019-08-21 09:00:16 +02:00
pinctrl-rockchip.c
pinctrl: rockchip: Mark expected switch fall-through
2019-08-05 12:32:27 +02:00
pinctrl-rza1.c
pinctrl: rza1: Add of_node_put() before return
2019-08-23 09:08:10 +02:00
pinctrl-rza2.c
pinctrl: rza2: Fix gpio name typos
2019-12-17 19:56:36 +01:00
pinctrl-rzn1.c
pinctrl: rzn1: Add of_node_put() before return
2019-08-05 09:23:57 +02:00
pinctrl-single.c
pinctrl-st.c
pinctrl: st: Add of_node_put() before return
2019-08-21 12:04:35 +02:00
pinctrl-stmfx.c
pinctrl: stmfx: fix valid_mask init sequence
2019-11-07 10:06:46 +01:00
pinctrl-sx150x.c
pinctrl-tb10x.c
This is the bulk of pin control changes for the v5.3 kernel
2019-07-13 15:02:27 -07:00
pinctrl-u300.c
pinctrl: Minimize SPDX hamming distance
2019-06-20 10:54:55 +02:00
pinctrl-utils.c
pinctrl-utils.h
pinctrl-xway.c
pinctrl: xway: Use devm_kasprintf() instead of fixed buffer formatting
2019-08-05 13:31:17 +02:00
pinctrl-zynq.c
pinmux.c
pinctrl: pinmux: fix a possible null pointer in pinmux_can_be_used_for_gpio
2020-01-12 12:21:28 +01:00
pinmux.h
pinctrl/gpio: Take MUX usage into account
2019-08-23 11:09:41 +02:00