Initial r8a7796 PFC support
Subsystems (3)
cover Initial r8a7796 PFC support
Hi!
This implements a minimal set of PFC functionality for the M3 and sits on top of renesas-drivers-2016-06-21-v4.7-rc4. It includes the SCIF pin groups and enables pin control for the serial console (SCIF2) on the Salvator-X board.
CU
Uli
Takeshi Kihara (3):
pinctrl: sh-pfc: Initial R8A7796 PFC support
pinctrl: sh-pfc: r8a7796: Add SCIF pins, groups and functions
arm64: dts: r8a7796: Add pinctrl device node
Ulrich Hecht (1):
arm64: dts: r8a7795: salvator: add serial console pins
.../bindings/pinctrl/renesas,pfc-pinctrl.txt | 1 + arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 9 + arch/arm64/boot/dts/renesas/r8a7796.dtsi | 5 + drivers/pinctrl/sh-pfc/Kconfig | 5 + drivers/pinctrl/sh-pfc/Makefile | 1 + drivers/pinctrl/sh-pfc/core.c | 6 + drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 2348 ++++++++++++++++++++ drivers/pinctrl/sh-pfc/sh_pfc.h | 10 +- 8 files changed, 2383 insertions(+), 2 deletions(-) create mode 100644 drivers/pinctrl/sh-pfc/pfc-r8a7796.c
Signature · 1 line
2.7.4
PATCH 2/4 pinctrl: sh-pfc: r8a7796: Add SCIF pins, groups and functions
From: Takeshi Kihara <[email protected]>
This patch adds SCIF{0,1,2,3,4,5} pins, groups and functions to R8A7796 SoC.
--- drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 276 +++++++++++++++++++++++++++++++++++ 1 file changed, 276 insertions(+)
drivers/pinctrl/sh-pfc/pfc-r8a7796.c +276 -0
@@ -1486,10 +1486,286 @@ static const struct sh_pfc_pin pinmux_pins[] = { PINMUX_GPIO_GP_ALL(), }; +/* - SCIF0 ------------------------------------------------------------------ */ +static const unsigned int scif0_data_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,1 ),RCAR_GP_PIN (5 ,2 ), +}; +static const unsigned int scif0_data_mux[] = { +RX0_MARK ,TX0_MARK , +}; +static const unsigned int scif0_clk_pins[] = { +/* SCK */ +RCAR_GP_PIN (5 ,0 ), +}; +static const unsigned int scif0_clk_mux[] = { +SCK0_MARK , +}; +static const unsigned int scif0_ctrl_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (5 ,4 ),RCAR_GP_PIN (5 ,3 ), +}; +static const unsigned int scif0_ctrl_mux[] = { +RTS0_N_TANS_MARK ,CTS0_N_MARK , +}; +/* - SCIF1 ------------------------------------------------------------------ */ +static const unsigned int scif1_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,5 ),RCAR_GP_PIN (5 ,6 ), +}; +static const unsigned int scif1_data_a_mux[] = { +RX1_A_MARK ,TX1_A_MARK , +}; +static const unsigned int scif1_clk_pins[] = { +/* SCK */ +RCAR_GP_PIN (6 ,21 ), +}; +static const unsigned int scif1_clk_mux[] = { +SCK1_MARK , +}; +static const unsigned int scif1_ctrl_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (5 ,8 ),RCAR_GP_PIN (5 ,7 ), +}; +static const unsigned int scif1_ctrl_mux[] = { +RTS1_N_TANS_MARK ,CTS1_N_MARK , +}; + +static const unsigned int scif1_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,24 ),RCAR_GP_PIN (5 ,25 ), +}; +static const unsigned int scif1_data_b_mux[] = { +RX1_B_MARK ,TX1_B_MARK , +}; +/* - SCIF2 ------------------------------------------------------------------ */ +static const unsigned int scif2_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,11 ),RCAR_GP_PIN (5 ,10 ), +}; +static const unsigned int scif2_data_a_mux[] = { +RX2_A_MARK ,TX2_A_MARK , +}; +static const unsigned int scif2_clk_pins[] = { +/* SCK */ +RCAR_GP_PIN (5 ,9 ), +}; +static const unsigned int scif2_clk_mux[] = { +SCK2_MARK , +}; +static const unsigned int scif2_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,15 ),RCAR_GP_PIN (5 ,16 ), +}; +static const unsigned int scif2_data_b_mux[] = { +RX2_B_MARK ,TX2_B_MARK , +}; +/* - SCIF3 ------------------------------------------------------------------ */ +static const unsigned int scif3_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (1 ,23 ),RCAR_GP_PIN (1 ,24 ), +}; +static const unsigned int scif3_data_a_mux[] = { +RX3_A_MARK ,TX3_A_MARK , +}; +static const unsigned int scif3_clk_pins[] = { +/* SCK */ +RCAR_GP_PIN (1 ,22 ), +}; +static const unsigned int scif3_clk_mux[] = { +SCK3_MARK , +}; +static const unsigned int scif3_ctrl_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (1 ,26 ),RCAR_GP_PIN (1 ,25 ), +}; +static const unsigned int scif3_ctrl_mux[] = { +RTS3_N_TANS_MARK ,CTS3_N_MARK , +}; +static const unsigned int scif3_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (1 ,8 ),RCAR_GP_PIN (1 ,11 ), +}; +static const unsigned int scif3_data_b_mux[] = { +RX3_B_MARK ,TX3_B_MARK , +}; +/* - SCIF4 ------------------------------------------------------------------ */ +static const unsigned int scif4_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (2 ,11 ),RCAR_GP_PIN (2 ,12 ), +}; +static const unsigned int scif4_data_a_mux[] = { +RX4_A_MARK ,TX4_A_MARK , +}; +static const unsigned int scif4_clk_a_pins[] = { +/* SCK */ +RCAR_GP_PIN (2 ,10 ), +}; +static const unsigned int scif4_clk_a_mux[] = { +SCK4_A_MARK , +}; +static const unsigned int scif4_ctrl_a_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (2 ,14 ),RCAR_GP_PIN (2 ,13 ), +}; +static const unsigned int scif4_ctrl_a_mux[] = { +RTS4_N_TANS_A_MARK ,CTS4_N_A_MARK , +}; +static const unsigned int scif4_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (1 ,6 ),RCAR_GP_PIN (1 ,7 ), +}; +static const unsigned int scif4_data_b_mux[] = { +RX4_B_MARK ,TX4_B_MARK , +}; +static const unsigned int scif4_clk_b_pins[] = { +/* SCK */ +RCAR_GP_PIN (1 ,5 ), +}; +static const unsigned int scif4_clk_b_mux[] = { +SCK4_B_MARK , +}; +static const unsigned int scif4_ctrl_b_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (1 ,10 ),RCAR_GP_PIN (1 ,9 ), +}; +static const unsigned int scif4_ctrl_b_mux[] = { +RTS4_N_TANS_B_MARK ,CTS4_N_B_MARK , +}; +static const unsigned int scif4_data_c_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (0 ,12 ),RCAR_GP_PIN (0 ,13 ), +}; +static const unsigned int scif4_data_c_mux[] = { +RX4_C_MARK ,TX4_C_MARK , +}; +static const unsigned int scif4_clk_c_pins[] = { +/* SCK */ +RCAR_GP_PIN (0 ,8 ), +}; +static const unsigned int scif4_clk_c_mux[] = { +SCK4_C_MARK , +}; +static const unsigned int scif4_ctrl_c_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (0 ,11 ),RCAR_GP_PIN (0 ,10 ), +}; +static const unsigned int scif4_ctrl_c_mux[] = { +RTS4_N_TANS_C_MARK ,CTS4_N_C_MARK , +}; +/* - SCIF5 ------------------------------------------------------------------ */ +static const unsigned int scif5_data_a_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,19 ),RCAR_GP_PIN (5 ,21 ), +}; +static const unsigned int scif5_data_a_mux[] = { +RX5_A_MARK ,TX5_A_MARK , +}; +static const unsigned int scif5_clk_a_pins[] = { +/* SCK */ +RCAR_GP_PIN (6 ,21 ), +}; +static const unsigned int scif5_clk_a_mux[] = { +SCK5_A_MARK , +}; + +static const unsigned int scif5_data_b_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,12 ),RCAR_GP_PIN (5 ,18 ), +}; +static const unsigned int scif5_data_b_mux[] = { +RX5_B_MARK ,TX5_B_MARK , +}; +static const unsigned int scif5_clk_b_pins[] = { +/* SCK */ +RCAR_GP_PIN (5 ,0 ), +}; +static const unsigned int scif5_clk_b_mux[] = { +SCK5_B_MARK , +}; +static const struct sh_pfc_pin_group pinmux_groups[] = { +SH_PFC_PIN_GROUP (scif0_data), +SH_PFC_PIN_GROUP (scif0_clk), +SH_PFC_PIN_GROUP (scif0_ctrl), +SH_PFC_PIN_GROUP (scif1_data_a), +SH_PFC_PIN_GROUP (scif1_clk), +SH_PFC_PIN_GROUP (scif1_ctrl), +SH_PFC_PIN_GROUP (scif1_data_b), +SH_PFC_PIN_GROUP (scif2_data_a), +SH_PFC_PIN_GROUP (scif2_clk), +SH_PFC_PIN_GROUP (scif2_data_b), +SH_PFC_PIN_GROUP (scif3_data_a), +SH_PFC_PIN_GROUP (scif3_clk), +SH_PFC_PIN_GROUP (scif3_ctrl), +SH_PFC_PIN_GROUP (scif3_data_b), +SH_PFC_PIN_GROUP (scif4_data_a), +SH_PFC_PIN_GROUP (scif4_clk_a), +SH_PFC_PIN_GROUP (scif4_ctrl_a), +SH_PFC_PIN_GROUP (scif4_data_b), +SH_PFC_PIN_GROUP (scif4_clk_b), +SH_PFC_PIN_GROUP (scif4_ctrl_b), +SH_PFC_PIN_GROUP (scif4_data_c), +SH_PFC_PIN_GROUP (scif4_clk_c), +SH_PFC_PIN_GROUP (scif4_ctrl_c), +SH_PFC_PIN_GROUP (scif5_data_a), +SH_PFC_PIN_GROUP (scif5_clk_a), +SH_PFC_PIN_GROUP (scif5_data_b), +SH_PFC_PIN_GROUP (scif5_clk_b), +}; + +static const char *const scif0_groups[] = { +"scif0_data" , +"scif0_clk" , +"scif0_ctrl" , +}; + +static const char *const scif1_groups[] = { +"scif1_data_a" , +"scif1_clk" , +"scif1_ctrl" , +"scif1_data_b" , +}; + +static const char *const scif2_groups[] = { +"scif2_data_a" , +"scif2_clk" , +"scif2_data_b" , +}; + +static const char *const scif3_groups[] = { +"scif3_data_a" , +"scif3_clk" , +"scif3_ctrl" , +"scif3_data_b" , +}; + +static const char *const scif4_groups[] = { +"scif4_data_a" , +"scif4_clk_a" , +"scif4_ctrl_a" , +"scif4_data_b" , +"scif4_clk_b" , +"scif4_ctrl_b" , +"scif4_data_c" , +"scif4_clk_c" , +"scif4_ctrl_c" , +}; + +static const char *const scif5_groups[] = { +"scif5_data_a" , +"scif5_clk_a" , +"scif5_data_b" , +"scif5_clk_b" , };static const struct sh_pfc_function pinmux_functions[] = { +SH_PFC_FUNCTION (scif0), +SH_PFC_FUNCTION (scif1), +SH_PFC_FUNCTION (scif2), +SH_PFC_FUNCTION (scif3), +SH_PFC_FUNCTION (scif4), +SH_PFC_FUNCTION (scif5), };static const struct pinmux_cfg_reg pinmux_config_regs[] = {
Signature · 1 line
2.7.4
Re: [PATCH 2/4] pinctrl: sh-pfc: r8a7796: Add SCIF pins, groups and functions
Quoted 6 lines · Ulrich Hecht
From: Takeshi Kihara <[email protected]>
This patch adds SCIF{0,1,2,3,4,5} pins, groups and functions to R8A7796 SoC.
Signed-off-by Takeshi Kihara <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 3/4 arm64: dts: r8a7796: Add pinctrl device node
In reply to Ulrich HechtFrom: Takeshi Kihara <[email protected]>
This patch adds pinctrl device node for R8A7796 SoC.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +5 -0
@@ -98,6 +98,11 @@ (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>; }; + pfc: pfc@e6060000 { + compatible = "renesas,pfc-r8a7796"; + reg = <0 0xe6060000 0 0x50c>; + }; + cpg: clock-controller@e6150000 { compatible = "renesas,r8a7796-cpg-mssr"; reg = <0 0xe6150000 0 0x1000>;
Signature · 1 line
2.7.4
Re: [PATCH 3/4] arm64: dts: r8a7796: Add pinctrl device node
Quoted 5 lines · Ulrich Hecht
From: Takeshi Kihara <[email protected]>
This patch adds pinctrl device node for R8A7796 SoC.
Signed-off-by Takeshi Kihara <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 4/4 arm64: dts: r8a7795: salvator: add serial console pins
In reply to Ulrich HechtAdds pin control for SCIF2.
--- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +9 -0
@@ -31,11 +31,20 @@ }; }; +&pfc { + scif2_pins: scif2 { + groups = "scif2_data_a"; + function = "scif2"; + }; +}; + &extal_clk { clock-frequency = <16666666>; }; &scif2 { + pinctrl-0 = <&scif2_pins>; + pinctrl-names = "default"; status = "okay"; };
Signature · 1 line
2.7.4
Re: [PATCH 4/4] arm64: dts: r8a7795: salvator: add serial console pins
That should have said r8a7796, of course... :(
CU
Uli
Quoted 35 lines · Ulrich Hecht
Adds pin control for SCIF2.
Signed-off-by Ulrich Hecht <[email protected]>--- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +9
-1@@ -31,11 +31,20 @@ }; }; +&pfc { + scif2_pins: scif2 { + groups = "scif2_data_a"; + function = "scif2"; + }; +}; + &extal_clk { clock-frequency = <16666666>; }; &scif2 { + pinctrl-0 = <&scif2_pins>; + pinctrl-names = "default"; status = "okay"; }; --2.7.4
Re: [PATCH 4/4] arm64: dts: r8a7795: salvator: add serial console pins
In reply to Ulrich HechtHi Ulrich,
Quoted 12 lines · Ulrich Hecht
Adds pin control for SCIF2.
Signed-off-by Ulrich Hecht <[email protected]>--- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +0
-0
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts line 38
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +5
-0@@ -31,11 +31,20 @@ }; }; +&pfc { + scif2_pins: scif2 { + groups = "scif2_data_a"; + function = "scif2"; + };
Given the driver configures the SCIF to use scif_clk for 115200 bps, I think you should add support for the scif_clk pins, too. Currently it relies on the boot loader having configured pinctrl for scif_clk.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Uli,
Quoted 4 lines · Ulrich Hecht
This implements a minimal set of PFC functionality for the M3 and sits on top of renesas-drivers-2016-06-21-v4.7-rc4. It includes the SCIF pin groups and enables pin control for the serial console (SCIF2) on the Salvator-X board.
Thanks, I've imported this into the topic/r8a7796-pfc-v1 branch of my renesas-drivers repository.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 1/4] pinctrl: sh-pfc: Initial R8A7796 PFC support
Hi Ulrich,
Quoted 7 lines · Ulrich Hecht
From: Takeshi Kihara <[email protected]>
This patch adds initial pinctrl driver to support for the R8A7796 SoC.
Signed-off-by Takeshi Kihara <[email protected]>[uli: rebased on top of renesas-drivers]Signed-off-by Ulrich Hecht <[email protected]>
Thanks for picking up this patch!
Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt Required Properties: · line 23
Quoted 7 lines
Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt +1
-0@@ -20,6 +20,7 @@ Required Properties: - "renesas,pfc-r8a7793": for R8A7793 (R-Car M2-N) compatible pin-controller. - "renesas,pfc-r8a7794": for R8A7794 (R-Car E2) compatible pin-controller. - "renesas,pfc-r8a7795": for R8A7795 (R-Car H3) compatible pin-controller. + - "renesas,pfc-r8a7796": for R8A7796 (R-Car M3) compatible pin-controller.
R-Car M3-W
drivers/pinctrl/sh-pfc/Makefile obj-$(CONFIG_PINCTRL_PFC_R8A7791) += pfc-r8a7791.o · line 13
Quoted 11 lines
Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt +0
-0- "renesas,pfc-sh73a0": for SH73A0 (SH-Mobile AG5) compatible pin-controller. - reg: Base address and length of each memory resource used by the pindrivers/pinctrl/sh-pfc/Makefile +1
-0@@ -10,6 +10,7 @@ obj-$(CONFIG_PINCTRL_PFC_R8A7791) += pfc-r8a7791.o obj-$(CONFIG_PINCTRL_PFC_R8A7793) += pfc-r8a7791.o obj-$(CONFIG_PINCTRL_PFC_R8A7794) += pfc-r8a7794.o obj-$(CONFIG_PINCTRL_PFC_R8A7795) += pfc-r8a7795.o +obj-$(CONFIG_PINCTRL_PFC_R8A7796) += pfc-r8a7796.o
Something's wrong with indentation here... Ah, spaces i.s.o. TABs.
drivers/pinctrl/sh-pfc/pfc-r8a7796.c
Quoted 13 lines
drivers/pinctrl/sh-pfc/Makefile +0
-0obj-$(CONFIG_PINCTRL_PFC_SH7203) += pfc-sh7203.o obj-$(CONFIG_PINCTRL_PFC_SH7264) += pfc-sh7264.o obj-$(CONFIG_PINCTRL_PFC_SH7269) += pfc-sh7269.odrivers/pinctrl/sh-pfc/pfc-r8a7796.c new file +6
-0+#define IP0_27_24 FM(IRQ0) FM(QPOLB) F_(0, 0) FM(DU_CDE) FM(VI4_DATA0_B) FM(CAN0_TX_B) FM(CANFD0_TX_B) FM(MSIOF3_SS1_E) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) +#define IP0_31_28 FM(IRQ1) FM(QPOLA) F_(0, 0) FM(DU_DISP) FM(VI4_DATA1_B) FM(CAN0_RX_B) FM(CANFD0_RX_B) FM(MSIOF3_SS2_E) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) +#define IP1_3_0 FM(IRQ2) FM(QCPV_QDE) F_(0, 0) FM(DU_EXODDF_DU_ODDF_DISP_CDE) FM(VI4_DATA2_B) F_(0, 0) F_(0, 0) FM(MSIOF3_SYNC_E) F_(0, 0) FM(PWM3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) +#define IP1_7_4 FM(IRQ3) FM(QSTVB_QVE) FM(A25) FM(DU_DOTCLKOUT1) FM(VI4_DATA3_B) F_(0, 0) F_(0, 0) FM(MSIOF3_SCK_E) F_(0, 0) FM(PWM4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) +#define IP1_11_8 FM(IRQ4) FM(QSTH_QHS) FM(A24) FM(DU_EXHSYNC_DU_HSYNC) FM(VI4_DATA4_B) F_(0, 0) F_(0, 0) FM(MSIOF3_RXD_E) F_(0, 0) FM(PWM5_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) +#define IP1_15_12 FM(IRQ5) FM(QSTB_QHE) FM(A23) FM(DU_EXVSYNC_DU_VSYNC) FM(VI4_DATA5_B) F_(0, 0) F_(0, 0) FM(MSIOF3_TXD_E) F_(0, 0) FM(PWM6_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Please remove spaces just before TABs.
drivers/pinctrl/sh-pfc/pfc-r8a7796.c
Quoted 11 lines
drivers/pinctrl/sh-pfc/pfc-r8a7796.c new file +11
-0+ { PINMUX_CFG_REG("IPSR17", 0xe6060244, 32, 4) { +IP17_31_28 + IP17_27_24 +IP17_23_20 + IP17_19_16 +IP17_15_12 + IP17_11_8 +IP17_7_4 + IP17_3_0 } + }, + { PINMUX_CFG_REG("IPSR17", 0xe6060248, 32, 4) {
IPSR18?
drivers/pinctrl/sh-pfc/pfc-r8a7796.c
Quoted 9 lines
drivers/pinctrl/sh-pfc/pfc-r8a7796.c new file +9
-0+ /* IP18_31_28 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + /* IP18_27_24 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + /* IP18_23_20 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + /* IP18_19_16 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + /* IP18_15_12 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + /* IP18_11_8 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +IP18_7_4 + IP18_3_0 } + },
BTW, when comparing this to pfc-r8a7795.c, I discovered some oddities:
- Somewhere around IPSR10, the definitions started to become shifted by one register. E.g. IP10_27_24 on r8a7795 matches IP11_27_24 on r8a7796. What's happening there?
- pfc-r8a7795 lacks IPSR18,
- pfc-r8a7796 defines more functions.
Having a quick look at the datasheet, it seems pfc-r8a7796 is (more) correct.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds