* [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410
@ 2015-10-27 8:43 Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410 Pavel Fedin
` (4 more replies)
0 siblings, 5 replies; 13+ messages in thread
From: Pavel Fedin @ 2015-10-27 8:43 UTC (permalink / raw)
To: linux-arm-kernel
This patch extends Exynos SROM controller driver with ability to configure
controller outputs and enables SMSC9115 Ethernet chip on SMDK5410 board,
which is connected via SROMc bank #3.
With this patchset, support for the whole existing SMDK range can be added.
Actually, only bank number is different.
This patchset also depends on Exynos 5410 pinctrl support, introduced by
patches 0003 and 0004 from this set:
[PATCH v4 0/5] ARM: EXYNOS: ODROID-XU DT and LEDs
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/330862.html
Pinctrl support is necessary in order to correctly configure
multifunctional pins of the Exynos chip.
v1 => v2:
- Fixed some typos and bad labels in device tree
- Improved documentation
Pavel Fedin (4):
ARM: dts: Add SROMc to Exynos 5410
drivers: exynos-srom: Add support for bank configuration
ARM: dts: Add Ethernet chip to SMDK5410
Documentation: dt-bindings: Describe SROMc configuration
.../bindings/arm/samsung/exynos-srom.txt | 24 ++++++++++++-
arch/arm/boot/dts/exynos5410-smdk5410.dts | 42 ++++++++++++++++++++++
arch/arm/boot/dts/exynos5410.dtsi | 5 +++
arch/arm/mach-exynos/Kconfig | 2 +-
drivers/soc/samsung/Kconfig | 2 +-
drivers/soc/samsung/exynos-srom.c | 42 +++++++++++++++++++++-
6 files changed, 113 insertions(+), 4 deletions(-)
--
2.4.4
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410
2015-10-27 8:43 [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin
@ 2015-10-27 8:43 ` Pavel Fedin
2015-10-28 2:12 ` Krzysztof Kozlowski
2015-10-27 8:43 ` [PATCH v2 2/4] drivers: exynos-srom: Add support for bank configuration Pavel Fedin
` (3 subsequent siblings)
4 siblings, 1 reply; 13+ messages in thread
From: Pavel Fedin @ 2015-10-27 8:43 UTC (permalink / raw)
To: linux-arm-kernel
This machine uses own SoC device tree file, add missing part.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
---
arch/arm/boot/dts/exynos5410.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi
index 4603356..af85aad 100644
--- a/arch/arm/boot/dts/exynos5410.dtsi
+++ b/arch/arm/boot/dts/exynos5410.dtsi
@@ -101,6 +101,11 @@
reg = <0x10000000 0x100>;
};
+ sromc: sromc at 12250000 {
+ compatible = "samsung,exynos-srom";
+ reg = <0x12250000 0x10>;
+ };
+
pmu_system_controller: system-controller at 10040000 {
compatible = "samsung,exynos5410-pmu", "syscon";
reg = <0x10040000 0x5000>;
--
2.4.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH v2 2/4] drivers: exynos-srom: Add support for bank configuration
2015-10-27 8:43 [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410 Pavel Fedin
@ 2015-10-27 8:43 ` Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 3/4] ARM: dts: Add Ethernet chip to SMDK5410 Pavel Fedin
` (2 subsequent siblings)
4 siblings, 0 replies; 13+ messages in thread
From: Pavel Fedin @ 2015-10-27 8:43 UTC (permalink / raw)
To: linux-arm-kernel
Bindings are based on u-boot implementation, however they are stored in
subnodes, providing support for more than one bank.
Since the driver now does more than suspend-resume support, dependency on
CONFIG_PM is removed.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
---
arch/arm/mach-exynos/Kconfig | 2 +-
drivers/soc/samsung/Kconfig | 2 +-
drivers/soc/samsung/exynos-srom.c | 42 ++++++++++++++++++++++++++++++++++++++-
3 files changed, 43 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 83c85f5..c22dc42 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -16,7 +16,7 @@ menuconfig ARCH_EXYNOS
select ARM_GIC
select COMMON_CLK_SAMSUNG
select EXYNOS_THERMAL
- select EXYNOS_SROM if PM
+ select EXYNOS_SROM
select HAVE_ARM_SCU if SMP
select HAVE_S3C2410_I2C if I2C
select HAVE_S3C2410_WATCHDOG if WATCHDOG
diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig
index 2833b5b..ea4bc2a 100644
--- a/drivers/soc/samsung/Kconfig
+++ b/drivers/soc/samsung/Kconfig
@@ -8,6 +8,6 @@ config SOC_SAMSUNG
config EXYNOS_SROM
bool
- depends on ARM && ARCH_EXYNOS && PM
+ depends on ARM && ARCH_EXYNOS
endmenu
diff --git a/drivers/soc/samsung/exynos-srom.c b/drivers/soc/samsung/exynos-srom.c
index 57a232d..6c8c56a 100644
--- a/drivers/soc/samsung/exynos-srom.c
+++ b/drivers/soc/samsung/exynos-srom.c
@@ -67,9 +67,46 @@ static struct exynos_srom_reg_dump *exynos_srom_alloc_reg_dump(
return rd;
}
+static int decode_sromc(struct exynos_srom *srom, struct device_node *np)
+{
+ u32 bank, width;
+ u32 timing[7];
+ u32 bw;
+
+ if (of_property_read_u32(np, "bank", &bank))
+ return -ENXIO;
+ if (of_property_read_u32(np, "width", &width))
+ width = 1;
+ if (of_property_read_u32_array(np, "srom-timing", timing, 7)) {
+ pr_err("Could not decode SROMC configuration\n");
+ return -ENXIO;
+ }
+
+ bank *= 4; /* Convert bank into shift/offset */
+
+ bw = 1 << EXYNOS_SROM_BW__BYTEENABLE__SHIFT;
+ if (width == 2)
+ bw |= 1 << EXYNOS_SROM_BW__DATAWIDTH__SHIFT;
+ bw <<= bank;
+ bw |= __raw_readl(srom->reg_base + EXYNOS_SROM_BW) &
+ ~(EXYNOS_SROM_BW__CS_MASK << bank);
+ __raw_writel(bw, srom->reg_base + EXYNOS_SROM_BW);
+
+ __raw_writel((timing[0] << EXYNOS_SROM_BCX__PMC__SHIFT) |
+ (timing[1] << EXYNOS_SROM_BCX__TACP__SHIFT) |
+ (timing[2] << EXYNOS_SROM_BCX__TCAH__SHIFT) |
+ (timing[3] << EXYNOS_SROM_BCX__TCOH__SHIFT) |
+ (timing[4] << EXYNOS_SROM_BCX__TACC__SHIFT) |
+ (timing[5] << EXYNOS_SROM_BCX__TCOS__SHIFT) |
+ (timing[6] << EXYNOS_SROM_BCX__TACS__SHIFT),
+ srom->reg_base + EXYNOS_SROM_BC0 + bank);
+
+ return 0;
+}
+
static int exynos_srom_probe(struct platform_device *pdev)
{
- struct device_node *np;
+ struct device_node *np, *child;
struct exynos_srom *srom;
struct device *dev = &pdev->dev;
@@ -100,6 +137,9 @@ static int exynos_srom_probe(struct platform_device *pdev)
return -ENOMEM;
}
+ for_each_child_of_node(np, child)
+ decode_sromc(srom, child);
+
return 0;
}
--
2.4.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH v2 3/4] ARM: dts: Add Ethernet chip to SMDK5410
2015-10-27 8:43 [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410 Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 2/4] drivers: exynos-srom: Add support for bank configuration Pavel Fedin
@ 2015-10-27 8:43 ` Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 4/4] Documentation: dt-bindings: Describe SROMc configuration Pavel Fedin
2015-10-28 1:52 ` [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Krzysztof Kozlowski
4 siblings, 0 replies; 13+ messages in thread
From: Pavel Fedin @ 2015-10-27 8:43 UTC (permalink / raw)
To: linux-arm-kernel
The chip is smsc9115, connected via SROMc bank 3. Additionally, some GPIO
initialization is required.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
---
arch/arm/boot/dts/exynos5410-smdk5410.dts | 42 +++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5410-smdk5410.dts b/arch/arm/boot/dts/exynos5410-smdk5410.dts
index cebeaab..2a6a5ac 100644
--- a/arch/arm/boot/dts/exynos5410-smdk5410.dts
+++ b/arch/arm/boot/dts/exynos5410-smdk5410.dts
@@ -35,6 +35,17 @@
reg = <0x02037000 0x1000>;
};
+ ethernet at 07000000 {
+ compatible = "smsc,lan9115";
+ reg = <0x07000000 0x10000>;
+ phy-mode = "mii";
+ interrupt-parent = <&gpx0>;
+ interrupts = <5 8>;
+ reg-io-width = <2>;
+ smsc,irq-push-pull;
+ smsc,force-internal-phy;
+ };
+
};
&mmc_0 {
@@ -61,6 +72,27 @@
disable-wp;
};
+&pinctrl_0 {
+ srom_ctl: srom-ctl {
+ samsung,pins = "gpy0-3", "gpy0-4", "gpy0-5",
+ "gpy1-0", "gpy1-1", "gpy1-2", "gpy1-3";
+ samsung,pin-function = <2>;
+ samsung,pin-drv = <0>;
+ };
+
+ srom_ebi: srom-ebi {
+ samsung,pins = "gpy3-0", "gpy3-1", "gpy3-2", "gpy3-3",
+ "gpy3-4", "gpy3-5", "gpy3-6", "gpy3-7",
+ "gpy5-0", "gpy5-1", "gpy5-2", "gpy5-3",
+ "gpy5-4", "gpy5-5", "gpy5-6", "gpy5-7",
+ "gpy6-0", "gpy6-1", "gpy6-2", "gpy6-3",
+ "gpy6-4", "gpy6-5", "gpy6-6", "gpy6-7";
+ samsung,pin-function = <2>;
+ samsung,pin-pud = <3>;
+ samsung,pin-drv = <0>;
+ };
+};
+
&uart0 {
status = "okay";
};
@@ -72,3 +104,13 @@
&uart2 {
status = "okay";
};
+
+&sromc {
+ pinctrl-names = "default";
+ pinctrl-0 = <&srom_ctl>, <&srom_ebi>;
+ bank at 3 {
+ bank = <3>;
+ width = <2>;
+ srom-timing = <1 9 12 1 9 1 1>;
+ };
+};
--
2.4.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH v2 4/4] Documentation: dt-bindings: Describe SROMc configuration
2015-10-27 8:43 [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin
` (2 preceding siblings ...)
2015-10-27 8:43 ` [PATCH v2 3/4] ARM: dts: Add Ethernet chip to SMDK5410 Pavel Fedin
@ 2015-10-27 8:43 ` Pavel Fedin
2015-10-28 1:52 ` [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Krzysztof Kozlowski
4 siblings, 0 replies; 13+ messages in thread
From: Pavel Fedin @ 2015-10-27 8:43 UTC (permalink / raw)
To: linux-arm-kernel
Add documentation for new properties, allowing bank configuration.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
---
.../bindings/arm/samsung/exynos-srom.txt | 24 +++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
index 33886d5..9e4a40b 100644
--- a/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
+++ b/Documentation/devicetree/bindings/arm/samsung/exynos-srom.txt
@@ -5,8 +5,30 @@ Required properties:
- reg: offset and length of the register set
-Example:
+Bank configurations can be defined in optional subnodes. Each subnode
+describes one bank and contains the following:
+
+Required properties:
+- bank : bank number (0 - 3)
+
+- srom-timing : array of 7 integers: Tacp, Tcah, Tcoh, Tacc, Tcos, Tacs
+
+Optional properties:
+- width : data width in bytes (1 or 2). If omitted, default of 1 is used.
+
+Example: basic definition, no banks are configured
+ sromc at 12570000 {
+ compatible = "samsung,exynos-srom";
+ reg = <0x12570000 0x10>;
+ };
+
+Example: SROMc with bank3 configuration
sromc at 12570000 {
compatible = "samsung,exynos-srom";
reg = <0x12570000 0x10>;
+ bank at 3 {
+ bank = <3>;
+ width = <2>;
+ srom-timing = <1 9 12 1 9 1 1>;
+ };
};
--
2.4.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410
2015-10-27 8:43 [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin
` (3 preceding siblings ...)
2015-10-27 8:43 ` [PATCH v2 4/4] Documentation: dt-bindings: Describe SROMc configuration Pavel Fedin
@ 2015-10-28 1:52 ` Krzysztof Kozlowski
4 siblings, 0 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-28 1:52 UTC (permalink / raw)
To: linux-arm-kernel
On 27.10.2015 17:43, Pavel Fedin wrote:
> This patch extends Exynos SROM controller driver with ability to configure
> controller outputs and enables SMSC9115 Ethernet chip on SMDK5410 board,
> which is connected via SROMc bank #3.
>
> With this patchset, support for the whole existing SMDK range can be added.
> Actually, only bank number is different.
>
> This patchset also depends on Exynos 5410 pinctrl support, introduced by
> patches 0003 and 0004 from this set:
> [PATCH v4 0/5] ARM: EXYNOS: ODROID-XU DT and LEDs
> http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/330862.html
>
> Pinctrl support is necessary in order to correctly configure
> multifunctional pins of the Exynos chip.
>
> v1 => v2:
> - Fixed some typos and bad labels in device tree
> - Improved documentation
>
> Pavel Fedin (4):
> ARM: dts: Add SROMc to Exynos 5410
> drivers: exynos-srom: Add support for bank configuration
> ARM: dts: Add Ethernet chip to SMDK5410
> Documentation: dt-bindings: Describe SROMc configuration
>
The bindings documentation goes first.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410
2015-10-27 8:43 ` [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410 Pavel Fedin
@ 2015-10-28 2:12 ` Krzysztof Kozlowski
2015-10-28 7:06 ` Pavel Fedin
0 siblings, 1 reply; 13+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-28 2:12 UTC (permalink / raw)
To: linux-arm-kernel
On 27.10.2015 17:43, Pavel Fedin wrote:
> This machine uses own SoC device tree file, add missing part.
>
> Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
> ---
> arch/arm/boot/dts/exynos5410.dtsi | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi
> index 4603356..af85aad 100644
> --- a/arch/arm/boot/dts/exynos5410.dtsi
> +++ b/arch/arm/boot/dts/exynos5410.dtsi
> @@ -101,6 +101,11 @@
> reg = <0x10000000 0x100>;
> };
>
> + sromc: sromc at 12250000 {
> + compatible = "samsung,exynos-srom";
> + reg = <0x12250000 0x10>;
Isn't 0x10 too small (SROM_BC3 won't be mapped)?
Best regards,
Krzysztof
> + };
> +
> pmu_system_controller: system-controller at 10040000 {
> compatible = "samsung,exynos5410-pmu", "syscon";
> reg = <0x10040000 0x5000>;
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410
2015-10-28 2:12 ` Krzysztof Kozlowski
@ 2015-10-28 7:06 ` Pavel Fedin
2015-10-28 7:24 ` Krzysztof Kozlowski
0 siblings, 1 reply; 13+ messages in thread
From: Pavel Fedin @ 2015-10-28 7:06 UTC (permalink / raw)
To: linux-arm-kernel
Hello!
> > + sromc: sromc at 12250000 {
> > + compatible = "samsung,exynos-srom";
> > + reg = <0x12250000 0x10>;
>
> Isn't 0x10 too small (SROM_BC3 won't be mapped)?
Muhaha, indeed, thanks for noticing this.
By the way, i've just checked exynos4.dtsi and exynos5.dtsi, they specify the same size. Did reviewers overlook this small thing?
Shouldn't it be fixed then?
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410
2015-10-28 7:06 ` Pavel Fedin
@ 2015-10-28 7:24 ` Krzysztof Kozlowski
2015-10-28 7:25 ` Pavel Fedin
2015-10-28 9:30 ` Pankaj Dubey
0 siblings, 2 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-28 7:24 UTC (permalink / raw)
To: linux-arm-kernel
On 28.10.2015 16:06, Pavel Fedin wrote:
> Hello!
>
>>> + sromc: sromc at 12250000 {
>>> + compatible = "samsung,exynos-srom";
>>> + reg = <0x12250000 0x10>;
>>
>> Isn't 0x10 too small (SROM_BC3 won't be mapped)?
>
> Muhaha, indeed, thanks for noticing this.
> By the way, i've just checked exynos4.dtsi and exynos5.dtsi, they specify the same size. Did reviewers overlook this small thing?
Yep, I pointed that 0x100 (from first version of patchset) is too big...
but did not exactly check the length of new value.
> Shouldn't it be fixed then?
Yes. It hasn't been pulled yet by arm-soc... Let's wait Kukjin's opinion
how to deal with exynos[45].dtsi.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410
2015-10-28 7:24 ` Krzysztof Kozlowski
@ 2015-10-28 7:25 ` Pavel Fedin
2015-10-28 9:30 ` Pankaj Dubey
1 sibling, 0 replies; 13+ messages in thread
From: Pavel Fedin @ 2015-10-28 7:25 UTC (permalink / raw)
To: linux-arm-kernel
Hello!
> Yes. It hasn't been pulled yet by arm-soc... Let's wait Kukjin's opinion
> how to deal with exynos[45].dtsi.
I can simply include it into my patchset, two more lines aren't a problem for me.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410
2015-10-28 7:24 ` Krzysztof Kozlowski
2015-10-28 7:25 ` Pavel Fedin
@ 2015-10-28 9:30 ` Pankaj Dubey
2015-10-28 9:36 ` Krzysztof Kozlowski
2015-10-28 9:39 ` Pavel Fedin
1 sibling, 2 replies; 13+ messages in thread
From: Pankaj Dubey @ 2015-10-28 9:30 UTC (permalink / raw)
To: linux-arm-kernel
Hi
On Wednesday 28 October 2015 12:54 PM, Krzysztof Kozlowski wrote:
> On 28.10.2015 16:06, Pavel Fedin wrote:
>> Hello!
>>
>>>> + sromc: sromc at 12250000 {
>>>> + compatible = "samsung,exynos-srom";
>>>> + reg = <0x12250000 0x10>;
>>>
>>> Isn't 0x10 too small (SROM_BC3 won't be mapped)?
>>
>> Muhaha, indeed, thanks for noticing this.
>> By the way, i've just checked exynos4.dtsi and exynos5.dtsi, they specify the same size. Did reviewers overlook this small thing?
>
> Yep, I pointed that 0x100 (from first version of patchset) is too big...
> but did not exactly check the length of new value.
>
Yes, once you pointed out I checked UM for Exynos4415, Exynos5250,
Exynos5420 and Exynos5410 and all these manuals talks about SROM_BC{0-3}
only. There is no offset such as SROM_BC{4,5} at least in these SoC
manuals. Accordingly I modified size from 0x100 to 0x10. But looks like
I missed to remove SROM_BC{{4,5} from exynos-srom.h. I checked only
these registers are used in the driver, so as such it should not cause
any issue in driver as of now, only we have some redundant entry in
exynos-srom.h which can be removed if it's not applicable for any of
Exynos SoC, after confirmation from Kukjin.
>> Shouldn't it be fixed then?
>
> Yes. It hasn't been pulled yet by arm-soc... Let's wait Kukjin's opinion
> how to deal with exynos[45].dtsi.
>
> Best regards,
> Krzysztof
>
Thanks,
Pankaj Dubey
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410
2015-10-28 9:30 ` Pankaj Dubey
@ 2015-10-28 9:36 ` Krzysztof Kozlowski
2015-10-28 9:39 ` Pavel Fedin
1 sibling, 0 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-28 9:36 UTC (permalink / raw)
To: linux-arm-kernel
On 28.10.2015 18:30, Pankaj Dubey wrote:
> Hi
>
> On Wednesday 28 October 2015 12:54 PM, Krzysztof Kozlowski wrote:
>> On 28.10.2015 16:06, Pavel Fedin wrote:
>>> Hello!
>>>
>>>>> + sromc: sromc at 12250000 {
>>>>> + compatible = "samsung,exynos-srom";
>>>>> + reg = <0x12250000 0x10>;
>>>>
>>>> Isn't 0x10 too small (SROM_BC3 won't be mapped)?
>>>
>>> Muhaha, indeed, thanks for noticing this.
>>> By the way, i've just checked exynos4.dtsi and exynos5.dtsi, they
>>> specify the same size. Did reviewers overlook this small thing?
>>
>> Yep, I pointed that 0x100 (from first version of patchset) is too big...
>> but did not exactly check the length of new value.
>>
>
> Yes, once you pointed out I checked UM for Exynos4415, Exynos5250,
> Exynos5420 and Exynos5410 and all these manuals talks about SROM_BC{0-3}
> only. There is no offset such as SROM_BC{4,5} at least in these SoC
> manuals. Accordingly I modified size from 0x100 to 0x10. But looks like
> I missed to remove SROM_BC{{4,5} from exynos-srom.h. I checked only
> these registers are used in the driver, so as such it should not cause
> any issue in driver as of now, only we have some redundant entry in
> exynos-srom.h which can be removed if it's not applicable for any of
> Exynos SoC, after confirmation from Kukjin.
I was not referring to SROM_BC[45] but to SROM_BC3 which has the offset
of 0x10.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410
2015-10-28 9:30 ` Pankaj Dubey
2015-10-28 9:36 ` Krzysztof Kozlowski
@ 2015-10-28 9:39 ` Pavel Fedin
1 sibling, 0 replies; 13+ messages in thread
From: Pavel Fedin @ 2015-10-28 9:39 UTC (permalink / raw)
To: linux-arm-kernel
Hello!
> There is no offset such as SROM_BC{4,5} at least in these SoC
> manuals. Accordingly I modified size from 0x100 to 0x10.
0x10 is indeed an offset for SROM_BC3. But, it occupies 4 bytes by itself, and you have to include it, because you are describing
*SIZE* of the region. :)
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2015-10-28 9:39 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 8:43 [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 1/4] ARM: dts: Add SROMc to Exynos 5410 Pavel Fedin
2015-10-28 2:12 ` Krzysztof Kozlowski
2015-10-28 7:06 ` Pavel Fedin
2015-10-28 7:24 ` Krzysztof Kozlowski
2015-10-28 7:25 ` Pavel Fedin
2015-10-28 9:30 ` Pankaj Dubey
2015-10-28 9:36 ` Krzysztof Kozlowski
2015-10-28 9:39 ` Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 2/4] drivers: exynos-srom: Add support for bank configuration Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 3/4] ARM: dts: Add Ethernet chip to SMDK5410 Pavel Fedin
2015-10-27 8:43 ` [PATCH v2 4/4] Documentation: dt-bindings: Describe SROMc configuration Pavel Fedin
2015-10-28 1:52 ` [PATCH v2 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410 Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).