Renesas ARM based SoC pinmux updates for v3.12
SH Mobile pinctrl DT support -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJR7x2SAAoJENfPZGlqN0++TSMQAK8jwFDHgLwTgqVzBy59OwK4 w9Ou1Jj2Fu6tRaOKjATDc/lrt/kAqifhBLvUX5VFccxa5TLBc8w/KVsrOvi3aN0Q ns447EsCmMqfVF1EwYFxro9mYpvwPB92+IsABdN3lWSZyqVrSCy8hs/4q3ozDqu5 4rfhFRWWzOJ3G5D+U7ZCbKsgSud6IB3eicYbBHVvrF3AJwgddCneN61q5WKTpiae ah3EIPO1RtprdSCq9MtIliX0PFALtcKfGTz7dcPCdUy5H0wZf5X8/NvMlYiqnf4X 0BTAlsR14R1vCZF04oSMQPlwI1YfuvX/QrlESQuI/vD4FwU32SFC44iYJtpKS6s2 sSfEeU66gGQyTpbX4OkwHX1ws68d0gsOB0lXb01i6kZnavFUrMOLLWmFxBmgnFSU /PCA7YiFdGjiTduVwpFmPI5l+1m7solHSLiw7iMN5dBlGIruEseSPQl9ovC7cGUc bZU2VxHe/Xxyg9O6WWjsV8XVC05V+r79L0/bPdxIFzi1W4mjK0dqyya243TyJRKD 20TAdmlmkW+J/gpaJpISKftn0mcE1/DEkz0XpzYWc/WgYEOnD3gtad80ZB+dzq1W BblYm1dEON/qjNYW6KYXYyYgttR/QkZVSVWm08LPypxjGvihB+Sxwhrb3ivK/CtI IKBiqj17072aIseJbtFq =PwyZ -----END PGP SIGNATURE----- Merge tag 'renesas-pinmux-for-v3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/dt From Simon Horman: Renesas ARM based SoC pinmux updates for v3.12 SH Mobile pinctrl DT support * tag 'renesas-pinmux-for-v3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas: ARM: shmobile: kzm9g-reference: Add LED1-LED4 to the device tree ARM: shmobile: kzm9g-reference: Move SDHI regulators to DT ARM: shmobile: kzm9g-reference: Move pinctrl mappings to device tree ARM: shmobile: marzen-reference: Add LED2-LED4 to the device tree ARM: shmobile: marzen-reference: Move pinctrl mappings to device tree ARM: shmobile: armadillo-reference: Add LED1-LED4 to the device tree ARM: shmobile: armadillo-reference: Move st1232 reset GPIO to DT ARM: shmobile: armadillo-reference: Add st1232 pin mappings ARM: shmobile: armadillo-reference: Move pinctrl mappings to device tree ARM: shmobile: sh73a0: Add pin control device to device tree ARM: shmobile: sh7372: Add pin control device to device tree ARM: shmobile: r8a7790: Add GPIO controller devices to device tree ARM: shmobile: r8a7790: Add pin control device to device tree ARM: shmobile: r8a7779: Add GPIO controller devices to device tree ARM: shmobile: r8a7779: Add pin control device to device tree ARM: shmobile: r8a7778: Add GPIO controller devices to device tree ARM: shmobile: r8a7778: Add pin control device to device tree ARM: shmobile: r8a7740: Add pin control device to device tree ARM: shmobile: r8a73a4: Add pin control device to device tree Signed-off-by: Olof Johansson <olof@lixom.net> Conflicts: arch/arm/boot/dts/r8a73a4.dtsi arch/arm/boot/dts/r8a7790.dtsi
This commit is contained in:
commit
55689bfa21
|
@ -185,6 +185,13 @@
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pfc: pfc@e6050000 {
|
||||||
|
compatible = "renesas,pfc-r8a73a4";
|
||||||
|
reg = <0 0xe6050000 0 0x9000>;
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
sdhi0: sdhi@ee100000 {
|
sdhi0: sdhi@ee100000 {
|
||||||
compatible = "renesas,r8a73a4-sdhi";
|
compatible = "renesas,r8a73a4-sdhi";
|
||||||
reg = <0 0xee100000 0 0x100>;
|
reg = <0 0xee100000 0 0x100>;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
/include/ "r8a7740.dtsi"
|
/include/ "r8a7740.dtsi"
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "armadillo 800 eva reference";
|
model = "armadillo 800 eva reference";
|
||||||
|
@ -33,6 +34,21 @@
|
||||||
regulator-boot-on;
|
regulator-boot-on;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
led1 {
|
||||||
|
gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
led2 {
|
||||||
|
gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
led3 {
|
||||||
|
gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
led4 {
|
||||||
|
gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c0 {
|
&i2c0 {
|
||||||
|
@ -41,5 +57,23 @@
|
||||||
reg = <0x55>;
|
reg = <0x55>;
|
||||||
interrupt-parent = <&irqpin1>;
|
interrupt-parent = <&irqpin1>;
|
||||||
interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */
|
interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */
|
||||||
|
pinctrl-0 = <&st1232_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pfc {
|
||||||
|
pinctrl-0 = <&scifa1_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
scifa1_pins: scifa1 {
|
||||||
|
renesas,groups = "scifa1_data";
|
||||||
|
renesas,function = "scifa1";
|
||||||
|
};
|
||||||
|
|
||||||
|
st1232_pins: st1232 {
|
||||||
|
renesas,groups = "intc_irq10";
|
||||||
|
renesas,function = "intc";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -139,4 +139,12 @@
|
||||||
0 72 0x4
|
0 72 0x4
|
||||||
0 73 0x4>;
|
0 73 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pfc: pfc@e6050000 {
|
||||||
|
compatible = "renesas,pfc-r8a7740";
|
||||||
|
reg = <0xe6050000 0x8000>,
|
||||||
|
<0xe605800c 0x20>;
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -32,4 +32,70 @@
|
||||||
reg = <0xfe438000 0x1000>,
|
reg = <0xfe438000 0x1000>,
|
||||||
<0xfe430000 0x100>;
|
<0xfe430000 0x100>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpio0: gpio@ffc40000 {
|
||||||
|
compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc40000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 103 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 0 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio1: gpio@ffc41000 {
|
||||||
|
compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc41000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 103 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 32 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio2: gpio@ffc42000 {
|
||||||
|
compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc42000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 103 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 64 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio3: gpio@ffc43000 {
|
||||||
|
compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc43000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 103 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 96 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio4: gpio@ffc44000 {
|
||||||
|
compatible = "renesas,gpio-r8a7778", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc44000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 103 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 128 27>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
pfc: pfc@fffc0000 {
|
||||||
|
compatible = "renesas,pfc-r8a7778";
|
||||||
|
reg = <0xfffc000 0x118>;
|
||||||
|
#gpio-range-cells = <3>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
/include/ "r8a7779.dtsi"
|
/include/ "r8a7779.dtsi"
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "marzen";
|
model = "marzen";
|
||||||
|
@ -37,6 +38,9 @@
|
||||||
lan0@18000000 {
|
lan0@18000000 {
|
||||||
compatible = "smsc,lan9220", "smsc,lan9115";
|
compatible = "smsc,lan9220", "smsc,lan9115";
|
||||||
reg = <0x18000000 0x100>;
|
reg = <0x18000000 0x100>;
|
||||||
|
pinctrl-0 = <&lan0_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
phy-mode = "mii";
|
phy-mode = "mii";
|
||||||
interrupt-parent = <&gic>;
|
interrupt-parent = <&gic>;
|
||||||
interrupts = <0 28 0x4>;
|
interrupts = <0 28 0x4>;
|
||||||
|
@ -44,4 +48,49 @@
|
||||||
vddvario-supply = <&fixedregulator3v3>;
|
vddvario-supply = <&fixedregulator3v3>;
|
||||||
vdd33a-supply = <&fixedregulator3v3>;
|
vdd33a-supply = <&fixedregulator3v3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
led2 {
|
||||||
|
gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
led3 {
|
||||||
|
gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
led4 {
|
||||||
|
gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pfc {
|
||||||
|
pinctrl-0 = <&scif2_pins &scif4_pins &sdhi0_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
lan0_pins: lan0 {
|
||||||
|
intc {
|
||||||
|
renesas,groups = "intc_irq1_b";
|
||||||
|
renesas,function = "intc";
|
||||||
|
};
|
||||||
|
lbsc {
|
||||||
|
renesas,groups = "lbsc_ex_cs0";
|
||||||
|
renesas,function = "lbsc";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
scif2_pins: scif2 {
|
||||||
|
renesas,groups = "scif2_data_c";
|
||||||
|
renesas,function = "scif2";
|
||||||
|
};
|
||||||
|
|
||||||
|
scif4_pins: scif4 {
|
||||||
|
renesas,groups = "scif4_data";
|
||||||
|
renesas,function = "scif4";
|
||||||
|
};
|
||||||
|
|
||||||
|
sdhi0_pins: sdhi0 {
|
||||||
|
renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd",
|
||||||
|
"sdhi0_wp";
|
||||||
|
renesas,function = "sdhi0";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -48,6 +48,90 @@
|
||||||
<0xf0000100 0x100>;
|
<0xf0000100 0x100>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpio0: gpio@ffc40000 {
|
||||||
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc40000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 141 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 0 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio1: gpio@ffc41000 {
|
||||||
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc41000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 142 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 32 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio2: gpio@ffc42000 {
|
||||||
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc42000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 143 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 64 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio3: gpio@ffc43000 {
|
||||||
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc43000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 144 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 96 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio4: gpio@ffc44000 {
|
||||||
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc44000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 145 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 128 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio5: gpio@ffc45000 {
|
||||||
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc45000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 146 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 160 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio6: gpio@ffc46000 {
|
||||||
|
compatible = "renesas,gpio-r8a7779", "renesas,gpio-rcar";
|
||||||
|
reg = <0xffc46000 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 147 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 192 9>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
irqpin0: irqpin@fe780010 {
|
irqpin0: irqpin@fe780010 {
|
||||||
compatible = "renesas,intc-irqpin";
|
compatible = "renesas,intc-irqpin";
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
|
@ -101,6 +185,12 @@
|
||||||
interrupts = <0 81 0x4>;
|
interrupts = <0 81 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pfc: pfc@fffc0000 {
|
||||||
|
compatible = "renesas,pfc-r8a7779";
|
||||||
|
reg = <0xfffc0000 0x23c>;
|
||||||
|
#gpio-range-cells = <3>;
|
||||||
|
};
|
||||||
|
|
||||||
thermal@ffc48000 {
|
thermal@ffc48000 {
|
||||||
compatible = "renesas,rcar-thermal";
|
compatible = "renesas,rcar-thermal";
|
||||||
reg = <0xffc48000 0x38>;
|
reg = <0xffc48000 0x38>;
|
||||||
|
|
|
@ -38,6 +38,78 @@
|
||||||
interrupts = <1 9 0xf04>;
|
interrupts = <1 9 0xf04>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpio0: gpio@ffc40000 {
|
||||||
|
compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
|
||||||
|
reg = <0 0xffc40000 0 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 4 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 0 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio1: gpio@ffc41000 {
|
||||||
|
compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
|
||||||
|
reg = <0 0xffc41000 0 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 5 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 32 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio2: gpio@ffc42000 {
|
||||||
|
compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
|
||||||
|
reg = <0 0xffc42000 0 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 6 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 64 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio3: gpio@ffc43000 {
|
||||||
|
compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
|
||||||
|
reg = <0 0xffc43000 0 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 7 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 96 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio4: gpio@ffc44000 {
|
||||||
|
compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
|
||||||
|
reg = <0 0xffc44000 0 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 8 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 128 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio5: gpio@ffc45000 {
|
||||||
|
compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
|
||||||
|
reg = <0 0xffc45000 0 0x2c>;
|
||||||
|
interrupt-parent = <&gic>;
|
||||||
|
interrupts = <0 9 0x4>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
gpio-ranges = <&pfc 0 160 32>;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
};
|
||||||
|
|
||||||
timer {
|
timer {
|
||||||
compatible = "arm,armv7-timer";
|
compatible = "arm,armv7-timer";
|
||||||
interrupts = <1 13 0xf08>,
|
interrupts = <1 13 0xf08>,
|
||||||
|
@ -73,6 +145,12 @@
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pfc: pfc@e6060000 {
|
||||||
|
compatible = "renesas,pfc-r8a7790";
|
||||||
|
reg = <0 0xe6060000 0 0x250>;
|
||||||
|
#gpio-range-cells = <3>;
|
||||||
|
};
|
||||||
|
|
||||||
sdhi0: sdhi@ee100000 {
|
sdhi0: sdhi@ee100000 {
|
||||||
compatible = "renesas,r8a7790-sdhi";
|
compatible = "renesas,r8a7790-sdhi";
|
||||||
reg = <0 0xee100000 0 0x100>;
|
reg = <0 0xee100000 0 0x100>;
|
||||||
|
|
|
@ -23,4 +23,12 @@
|
||||||
reg = <0x0>;
|
reg = <0x0>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pfc: pfc@e6050000 {
|
||||||
|
compatible = "renesas,pfc-sh7372";
|
||||||
|
reg = <0xe6050000 0x8000>,
|
||||||
|
<0xe605801c 0x1c>;
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
/include/ "sh73a0.dtsi"
|
/include/ "sh73a0.dtsi"
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "KZM-A9-GT";
|
model = "KZM-A9-GT";
|
||||||
|
@ -58,6 +59,24 @@
|
||||||
regulator-boot-on;
|
regulator-boot-on;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vmmc_sdhi0: regulator@2 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "SDHI0 Vcc";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
gpio = <&pfc 15 GPIO_ACTIVE_HIGH>;
|
||||||
|
enable-active-high;
|
||||||
|
};
|
||||||
|
|
||||||
|
vmmc_sdhi2: regulator@3 {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "SDHI2 Vcc";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
gpio = <&pfc 14 GPIO_ACTIVE_HIGH>;
|
||||||
|
enable-active-high;
|
||||||
|
};
|
||||||
|
|
||||||
lan9220@10000000 {
|
lan9220@10000000 {
|
||||||
compatible = "smsc,lan9220", "smsc,lan9115";
|
compatible = "smsc,lan9220", "smsc,lan9115";
|
||||||
reg = <0x10000000 0x100>;
|
reg = <0x10000000 0x100>;
|
||||||
|
@ -70,6 +89,22 @@
|
||||||
vddvario-supply = <®_1p8v>;
|
vddvario-supply = <®_1p8v>;
|
||||||
vdd33a-supply = <®_3p3v>;
|
vdd33a-supply = <®_3p3v>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
led1 {
|
||||||
|
gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
led2 {
|
||||||
|
gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
led3 {
|
||||||
|
gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
led4 {
|
||||||
|
gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c0 {
|
&i2c0 {
|
||||||
|
@ -145,20 +180,71 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2c3 {
|
||||||
|
pinctrl-0 = <&i2c3_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
};
|
||||||
|
|
||||||
&mmcif {
|
&mmcif {
|
||||||
|
pinctrl-0 = <&mmcif_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
bus-width = <8>;
|
bus-width = <8>;
|
||||||
vmmc-supply = <®_1p8v>;
|
vmmc-supply = <®_1p8v>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pfc {
|
||||||
|
pinctrl-0 = <&scifa4_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
i2c3_pins: i2c3 {
|
||||||
|
renesas,groups = "i2c3_1";
|
||||||
|
renesas,function = "i2c3";
|
||||||
|
};
|
||||||
|
|
||||||
|
mmcif_pins: mmcif {
|
||||||
|
mux {
|
||||||
|
renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0";
|
||||||
|
renesas,function = "mmc0";
|
||||||
|
};
|
||||||
|
cfg {
|
||||||
|
renesas,groups = "mmc0_data8_0";
|
||||||
|
renesas,pins = "PORT279";
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
scifa4_pins: scifa4 {
|
||||||
|
renesas,groups = "scifa4_data", "scifa4_ctrl";
|
||||||
|
renesas,function = "scifa4";
|
||||||
|
};
|
||||||
|
|
||||||
|
sdhi0_pins: sdhi0 {
|
||||||
|
renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp";
|
||||||
|
renesas,function = "sdhi0";
|
||||||
|
};
|
||||||
|
|
||||||
|
sdhi2_pins: sdhi2 {
|
||||||
|
renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
|
||||||
|
renesas,function = "sdhi2";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&sdhi0 {
|
&sdhi0 {
|
||||||
vmmc-supply = <®_3p3v>;
|
pinctrl-0 = <&sdhi0_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
vmmc-supply = <&vmmc_sdhi0>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&sdhi2 {
|
&sdhi2 {
|
||||||
vmmc-supply = <®_3p3v>;
|
pinctrl-0 = <&sdhi2_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
vmmc-supply = <&vmmc_sdhi2>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
broken-cd;
|
broken-cd;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
|
@ -222,4 +222,12 @@
|
||||||
cap-sd-highspeed;
|
cap-sd-highspeed;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pfc: pfc@e6050000 {
|
||||||
|
compatible = "renesas,pfc-sh73a0";
|
||||||
|
reg = <0xe6050000 0x8000>,
|
||||||
|
<0xe605801c 0x1c>;
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/pinctrl/machine.h>
|
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/r8a7740.h>
|
#include <mach/r8a7740.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
|
@ -119,12 +118,6 @@
|
||||||
* usbhsf_power_ctrl()
|
* usbhsf_power_ctrl()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const struct pinctrl_map eva_pinctrl_map[] = {
|
|
||||||
/* SCIFA1 */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.1", "pfc-r8a7740",
|
|
||||||
"scifa1_data", "scifa1"),
|
|
||||||
};
|
|
||||||
|
|
||||||
static void __init eva_clock_init(void)
|
static void __init eva_clock_init(void)
|
||||||
{
|
{
|
||||||
struct clk *system = clk_get(NULL, "system_clk");
|
struct clk *system = clk_get(NULL, "system_clk");
|
||||||
|
@ -165,27 +158,18 @@ clock_error:
|
||||||
*/
|
*/
|
||||||
static void __init eva_init(void)
|
static void __init eva_init(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
r8a7740_clock_init(MD_CK0 | MD_CK2);
|
r8a7740_clock_init(MD_CK0 | MD_CK2);
|
||||||
eva_clock_init();
|
eva_clock_init();
|
||||||
|
|
||||||
pinctrl_register_mappings(eva_pinctrl_map, ARRAY_SIZE(eva_pinctrl_map));
|
|
||||||
r8a7740_pinmux_init();
|
|
||||||
|
|
||||||
r8a7740_meram_workaround();
|
r8a7740_meram_workaround();
|
||||||
|
|
||||||
/*
|
|
||||||
* Touchscreen
|
|
||||||
* TODO: Move reset GPIO over to .dts when we can reference it
|
|
||||||
*/
|
|
||||||
gpio_request_one(166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */
|
|
||||||
|
|
||||||
#ifdef CONFIG_CACHE_L2X0
|
#ifdef CONFIG_CACHE_L2X0
|
||||||
/* Early BRESP enable, Shared attribute override enable, 32K*8way */
|
/* Early BRESP enable, Shared attribute override enable, 32K*8way */
|
||||||
l2x0_init(IOMEM(0xf0002000), 0x40440000, 0x82000fff);
|
l2x0_init(IOMEM(0xf0002000), 0x40440000, 0x82000fff);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
r8a7740_add_standard_devices_dt();
|
r8a7740_add_standard_devices_dt();
|
||||||
|
|
||||||
r8a7740_pm_init();
|
r8a7740_pm_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,66 +21,19 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/gpio.h>
|
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/irq.h>
|
#include <linux/irq.h>
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
#include <linux/of_platform.h>
|
#include <linux/of_platform.h>
|
||||||
#include <linux/pinctrl/machine.h>
|
|
||||||
#include <linux/pinctrl/pinconf-generic.h>
|
|
||||||
#include <mach/sh73a0.h>
|
#include <mach/sh73a0.h>
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <asm/hardware/cache-l2x0.h>
|
#include <asm/hardware/cache-l2x0.h>
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
|
|
||||||
static unsigned long pin_pullup_conf[] = {
|
|
||||||
PIN_CONF_PACKED(PIN_CONFIG_BIAS_PULL_UP, 0),
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct pinctrl_map kzm_pinctrl_map[] = {
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("e6826000.i2c", "pfc-sh73a0",
|
|
||||||
"i2c3_1", "i2c3"),
|
|
||||||
/* MMCIF */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("e6bd0000.mmcif", "pfc-sh73a0",
|
|
||||||
"mmc0_data8_0", "mmc0"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("e6bd0000.mmcif", "pfc-sh73a0",
|
|
||||||
"mmc0_ctrl_0", "mmc0"),
|
|
||||||
PIN_MAP_CONFIGS_PIN_DEFAULT("e6bd0000.mmcif", "pfc-sh73a0",
|
|
||||||
"PORT279", pin_pullup_conf),
|
|
||||||
PIN_MAP_CONFIGS_GROUP_DEFAULT("e6bd0000.mmcif", "pfc-sh73a0",
|
|
||||||
"mmc0_data8_0", pin_pullup_conf),
|
|
||||||
/* SCIFA4 */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-sh73a0",
|
|
||||||
"scifa4_data", "scifa4"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-sh73a0",
|
|
||||||
"scifa4_ctrl", "scifa4"),
|
|
||||||
/* SDHI0 */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("ee100000.sdhi", "pfc-sh73a0",
|
|
||||||
"sdhi0_data4", "sdhi0"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("ee100000.sdhi", "pfc-sh73a0",
|
|
||||||
"sdhi0_ctrl", "sdhi0"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("ee100000.sdhi", "pfc-sh73a0",
|
|
||||||
"sdhi0_cd", "sdhi0"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("ee100000.sdhi", "pfc-sh73a0",
|
|
||||||
"sdhi0_wp", "sdhi0"),
|
|
||||||
/* SDHI2 */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("ee140000.sdhi", "pfc-sh73a0",
|
|
||||||
"sdhi2_data4", "sdhi2"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("ee140000.sdhi", "pfc-sh73a0",
|
|
||||||
"sdhi2_ctrl", "sdhi2"),
|
|
||||||
};
|
|
||||||
|
|
||||||
static void __init kzm_init(void)
|
static void __init kzm_init(void)
|
||||||
{
|
{
|
||||||
sh73a0_add_standard_devices_dt();
|
sh73a0_add_standard_devices_dt();
|
||||||
pinctrl_register_mappings(kzm_pinctrl_map, ARRAY_SIZE(kzm_pinctrl_map));
|
|
||||||
sh73a0_pinmux_init();
|
|
||||||
|
|
||||||
/* enable SD */
|
|
||||||
gpio_request_one(15, GPIOF_OUT_INIT_HIGH, NULL); /* power */
|
|
||||||
|
|
||||||
gpio_request_one(14, GPIOF_OUT_INIT_HIGH, NULL); /* power */
|
|
||||||
|
|
||||||
#ifdef CONFIG_CACHE_L2X0
|
#ifdef CONFIG_CACHE_L2X0
|
||||||
/* Early BRESP enable, Shared attribute override enable, 64K*8way */
|
/* Early BRESP enable, Shared attribute override enable, 64K*8way */
|
||||||
|
|
|
@ -19,42 +19,14 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/pinctrl/machine.h>
|
|
||||||
#include <mach/r8a7779.h>
|
#include <mach/r8a7779.h>
|
||||||
#include <mach/common.h>
|
#include <mach/common.h>
|
||||||
#include <mach/irqs.h>
|
#include <mach/irqs.h>
|
||||||
#include <asm/irq.h>
|
#include <asm/irq.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
|
|
||||||
static const struct pinctrl_map marzen_pinctrl_map[] = {
|
|
||||||
/* SCIF2 (CN18: DEBUG0) */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "pfc-r8a7779",
|
|
||||||
"scif2_data_c", "scif2"),
|
|
||||||
/* SCIF4 (CN19: DEBUG1) */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-r8a7779",
|
|
||||||
"scif4_data", "scif4"),
|
|
||||||
/* SDHI0 */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779",
|
|
||||||
"sdhi0_data4", "sdhi0"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779",
|
|
||||||
"sdhi0_ctrl", "sdhi0"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779",
|
|
||||||
"sdhi0_cd", "sdhi0"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779",
|
|
||||||
"sdhi0_wp", "sdhi0"),
|
|
||||||
/* SMSC */
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "pfc-r8a7779",
|
|
||||||
"intc_irq1_b", "intc"),
|
|
||||||
PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "pfc-r8a7779",
|
|
||||||
"lbsc_ex_cs0", "lbsc"),
|
|
||||||
};
|
|
||||||
|
|
||||||
static void __init marzen_init(void)
|
static void __init marzen_init(void)
|
||||||
{
|
{
|
||||||
pinctrl_register_mappings(marzen_pinctrl_map,
|
|
||||||
ARRAY_SIZE(marzen_pinctrl_map));
|
|
||||||
r8a7779_pinmux_init();
|
|
||||||
|
|
||||||
r8a7779_add_standard_devices_dt();
|
r8a7779_add_standard_devices_dt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue