Revision | c405ad062b5a693a124950a30e2d25c87885bc10 (tree) |
---|---|
Time | 2020-07-26 18:05:53 |
Author | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
ult62n update
@@ -14,36 +14,37 @@ | ||
14 | 14 | ethernet0 = ð0; |
15 | 15 | spi0 = &spi0; |
16 | 16 | }; |
17 | - | |
18 | 17 | xclk: oscillator { |
19 | 18 | #clock-cells = <0>; |
20 | 19 | compatible = "fixed-clock"; |
21 | 20 | clock-frequency = <12000000>; |
22 | 21 | clock-output-names = "xtal"; |
23 | 22 | }; |
24 | - iclk: iclk { | |
25 | - compatible = "renesas,rx-mul-clock"; | |
23 | + pllclk: pllclk { | |
24 | + #clock-cells = <0>; | |
25 | + compatible = "fixed-factor-clock"; | |
26 | + clock-mult = <8>; | |
26 | 27 | clocks = <&xclk>; |
28 | + clock-output-names = "pll"; | |
29 | + }; | |
30 | + pck: pck { | |
27 | 31 | #clock-cells = <0>; |
32 | + compatible = "renesas,rx62n-cpg"; | |
33 | + clocks = <&pllclk>; | |
28 | 34 | reg = <0x00080020 4>; |
29 | - renesas,offset = <24>; | |
30 | - renesas,maxfreq = <100000000>; | |
35 | + clock-names = "fck"; | |
31 | 36 | }; |
32 | - pclk: pclk { | |
33 | - compatible = "renesas,rx-mul-clock"; | |
34 | - clocks = <&xclk>; | |
37 | + bck: bck { | |
38 | + compatible = "renesas,rx62n-cpg"; | |
39 | + clocks = <&pllclk>; | |
35 | 40 | #clock-cells = <0>; |
36 | 41 | reg = <0x00080020 4>; |
37 | - renesas,offset = <8>; | |
38 | - renesas,maxfreq = <50000000>; | |
39 | 42 | }; |
40 | - bclk: bclk { | |
41 | - compatible = "renesas,rx-mul-clock"; | |
42 | - clocks = <&xclk>; | |
43 | + ick: ick { | |
44 | + compatible = "renesas,rx62n-cpg"; | |
45 | + clocks = <&pllclk>; | |
43 | 46 | #clock-cells = <0>; |
44 | 47 | reg = <0x00080020 4>; |
45 | - renesas,offset = <16>; | |
46 | - renesas,maxfreq = <50000000>; | |
47 | 48 | }; |
48 | 49 | |
49 | 50 | cpus { |
@@ -51,10 +52,11 @@ | ||
51 | 52 | #size-cells = <0>; |
52 | 53 | cpu@0 { |
53 | 54 | compatible = "renesas,rx"; |
54 | - clock-frequency = <96000000>; | |
55 | + clocks = <&ick>; | |
55 | 56 | mem-cycle = <2>; |
56 | 57 | }; |
57 | 58 | }; |
59 | + | |
58 | 60 | memory@08000000 { |
59 | 61 | device_type = "memory"; |
60 | 62 | reg = <0x08000000 0x01000000>; |
@@ -70,21 +72,23 @@ | ||
70 | 72 | mtu: timer@00088600 { |
71 | 73 | compatible = "renesas,rx-mtu2"; |
72 | 74 | reg = <0x00088600 0x600>; |
73 | - clock-frequency = <46875>; | |
75 | + clocks = <&pck>; | |
74 | 76 | }; |
75 | 77 | |
76 | 78 | sci0: serial@00088240 { |
77 | 79 | compatible = "renesas,sci"; |
78 | 80 | reg = <0x00088240 8>; |
79 | 81 | interrupts = <214 0>, <215 0>, <216 0>, <217 0>; |
80 | - clock = <48000000>; | |
82 | + clock-names = "fck", "pck"; | |
83 | + clocks = <&pck>; | |
81 | 84 | }; |
82 | 85 | |
83 | 86 | sci1: serial@00088248 { |
84 | 87 | compatible = "renesas,sci"; |
85 | 88 | reg = <0x00088248 8>; |
86 | 89 | interrupts = <218 0>, <219 0>, <220 0>, <221 0>; |
87 | - clock = <48000000>; | |
90 | + clock-names = "fck", "pck"; | |
91 | + clocks = <&pck>; | |
88 | 92 | }; |
89 | 93 | eth0: ethernet@000c0000 { |
90 | 94 | compatible = "renesas,sh_eth"; |
@@ -27,7 +27,7 @@ ENTRY(_start) | ||
27 | 27 | |
28 | 28 | MEMORY { |
29 | 29 | iram : ORIGIN = 0x0000100, LENGTH = 96K - 256 |
30 | - sdram : ORIGIN = 0x08ffc000, LENGTH = 16K | |
30 | + sdram : ORIGIN = 0x08ff0000, LENGTH = 64K | |
31 | 31 | irom : ORIGIN = 0xfff80000, LENGTH = 512K - 128 |
32 | 32 | vector : ORIGIN = 0xffffff80, LENGTH = 128 |
33 | 33 | } |
@@ -25,7 +25,6 @@ | ||
25 | 25 | #ifndef __ULT62N_H |
26 | 26 | #define __ULT62N_H |
27 | 27 | |
28 | -#define CONFIG_BAUDRATE 38400 | |
29 | 28 | #define CONFIG_BOOTARGS "console=ttySC0,38400" |
30 | 29 | #define CONFIG_BOARD_LATE_INIT |
31 | 30 | #define CONFIG_BOARD_EARLY_INIT_F |
@@ -35,7 +34,6 @@ | ||
35 | 34 | #define CONFIG_VERSION_VARIABLE |
36 | 35 | #undef CONFIG_SHOW_BOOT_PROGRESS |
37 | 36 | |
38 | -#define CONFIG_ENV_SIZE 2048 | |
39 | 37 | #define CONFIG_ENV_ADDR 0x100000 |
40 | 38 | |
41 | 39 | /* SCI */ |
@@ -66,5 +64,6 @@ | ||
66 | 64 | #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII |
67 | 65 | #define CONFIG_SH_ETHER_USE_PORT 0 |
68 | 66 | #define CONFIG_SH_ETHER_PHY_ADDR 0 |
67 | +#define CONFIG_BITBANGMII_MULTI | |
69 | 68 | |
70 | 69 | #endif /* __ULT62N */ |