2020-04-23 18:08:27

by Grygorii Strashko

[permalink] [raw]
Subject: [PATCH 0/5] soc: ti: add k3 platforms chipid module driver

Hi All,

This series introduces TI K3 Multicore SoC platforms chipid module driver
which provides identification support of the TI K3 SoCs (family, revision)
and register this information with the SoC bus. It is available under
/sys/devices/soc0/ for user space, and can be checked, where needed,
in Kernel using soc_device_match().
It is also required for introducing support for new revisions of
K3 AM65x/J721E SoCs.

Example J721E:
# cat /sys/devices/soc0/{machine,family,revision}
Texas Instruments K3 J721E SoC
J721E
SR1.0

Example AM65x:
# cat /sys/devices/soc0/{machine,family,revision}
Texas Instruments AM654 Base Board
AM65X
SR1.0

Grygorii Strashko (5):
dt-bindings: soc: ti: add binding for k3 platforms chipid module
soc: ti: add k3 platforms chipid module driver
arm64: arch_k3: enable chipid driver
arm64: dts: ti: k3-am65-wakeup: add k3 platforms chipid module node
arm64: dts: ti: k3-j721e-mcu-wakeup: add k3 platforms chipid module
node

.../bindings/soc/ti/k3-socinfo.yaml | 40 ++++++
arch/arm64/Kconfig.platforms | 1 +
arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 5 +
.../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 5 +
drivers/soc/ti/Kconfig | 10 ++
drivers/soc/ti/Makefile | 1 +
drivers/soc/ti/k3-socinfo.c | 135 ++++++++++++++++++
7 files changed, 197 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/ti/k3-socinfo.yaml
create mode 100644 drivers/soc/ti/k3-socinfo.c

--
2.17.1


2020-04-23 18:10:47

by Grygorii Strashko

[permalink] [raw]
Subject: [PATCH 3/5] arm64: arch_k3: enable chipid driver

Select TI chip id driver for TI's SoCs based on K3 architecture to provide
this information to user space and Kernel as it is required by other
drivers to determine SoC revision to function properly.

Signed-off-by: Grygorii Strashko <[email protected]>
Reviewed-by: Lokesh Vutla <[email protected]>
---
arch/arm64/Kconfig.platforms | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 55d70cfe0f9e..174dd4fc6cf2 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -98,6 +98,7 @@ config ARCH_K3
select TI_SCI_PROTOCOL
select TI_SCI_INTR_IRQCHIP
select TI_SCI_INTA_IRQCHIP
+ select TI_K3_SOCINFO
help
This enables support for Texas Instruments' K3 multicore SoC
architecture.
--
2.17.1

2020-04-23 18:11:01

by Grygorii Strashko

[permalink] [raw]
Subject: [PATCH 5/5] arm64: dts: ti: k3-j721e-mcu-wakeup: add k3 platforms chipid module node

Add DT node for the Texas Instruments K3 Multicore J721E SoC platforms
chipid module.

Signed-off-by: Grygorii Strashko <[email protected]>
Reviewed-by: Lokesh Vutla <[email protected]>
---
arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi
index 3d6064125b40..b69688f0f925 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi
@@ -48,6 +48,11 @@
};
};

+ chipid@43000014 {
+ compatible = "ti,am654-chipid";
+ reg = <0x0 0x43000014 0x0 0x4>;
+ };
+
wkup_pmx0: pinmux@4301c000 {
compatible = "pinctrl-single";
/* Proxy 0 addressing */
--
2.17.1

2020-04-23 19:36:58

by Grygorii Strashko

[permalink] [raw]
Subject: [PATCH 4/5] arm64: dts: ti: k3-am65-wakeup: add k3 platforms chipid module node

Add DT node for the Texas Instruments K3 Multicore AM65x SoC platforms
chipid module.

Signed-off-by: Grygorii Strashko <[email protected]>
Reviewed-by: Lokesh Vutla <[email protected]>
---
arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi
index f4227e2743f2..b79492fa8b5f 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi
@@ -34,6 +34,11 @@
};
};

+ chipid@43000014 {
+ compatible = "ti,am654-chipid";
+ reg = <0x43000014 0x4>;
+ };
+
wkup_pmx0: pinmux@4301c000 {
compatible = "pinctrl-single";
reg = <0x4301c000 0x118>;
--
2.17.1

2020-05-01 20:57:46

by Grygorii Strashko

[permalink] [raw]
Subject: Re: [PATCH 0/5] soc: ti: add k3 platforms chipid module driver

Hi Santosh, Tero

On 23/04/2020 21:05, Grygorii Strashko wrote:
> Hi All,
>
> This series introduces TI K3 Multicore SoC platforms chipid module driver
> which provides identification support of the TI K3 SoCs (family, revision)
> and register this information with the SoC bus. It is available under
> /sys/devices/soc0/ for user space, and can be checked, where needed,
> in Kernel using soc_device_match().
> It is also required for introducing support for new revisions of
> K3 AM65x/J721E SoCs.
>
> Example J721E:
> # cat /sys/devices/soc0/{machine,family,revision}
> Texas Instruments K3 J721E SoC
> J721E
> SR1.0
>
> Example AM65x:
> # cat /sys/devices/soc0/{machine,family,revision}
> Texas Instruments AM654 Base Board
> AM65X
> SR1.0
>
> Grygorii Strashko (5):
> dt-bindings: soc: ti: add binding for k3 platforms chipid module
> soc: ti: add k3 platforms chipid module driver
> arm64: arch_k3: enable chipid driver
> arm64: dts: ti: k3-am65-wakeup: add k3 platforms chipid module node
> arm64: dts: ti: k3-j721e-mcu-wakeup: add k3 platforms chipid module
> node
>
> .../bindings/soc/ti/k3-socinfo.yaml | 40 ++++++
> arch/arm64/Kconfig.platforms | 1 +
> arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 5 +
> .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 5 +
> drivers/soc/ti/Kconfig | 10 ++
> drivers/soc/ti/Makefile | 1 +
> drivers/soc/ti/k3-socinfo.c | 135 ++++++++++++++++++
> 7 files changed, 197 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/soc/ti/k3-socinfo.yaml
> create mode 100644 drivers/soc/ti/k3-socinfo.c
>

Any more comments? I'm going resend it.

--
Best regards,
grygorii

2020-05-01 21:27:29

by Santosh Shilimkar

[permalink] [raw]
Subject: Re: [PATCH 0/5] soc: ti: add k3 platforms chipid module driver

On 5/1/20 1:55 PM, Grygorii Strashko wrote:
> Hi Santosh, Tero
>
> On 23/04/2020 21:05, Grygorii Strashko wrote:
>> Hi All,
>>
>> This series introduces TI K3 Multicore SoC platforms chipid module driver
>> which provides identification support of the TI K3 SoCs (family,
>> revision)
>> and register this information with the SoC bus. It is available under
>> /sys/devices/soc0/ for user space, and can be checked, where needed,
>> in Kernel using soc_device_match().
>> It is also required for introducing support for new revisions of
>> K3 AM65x/J721E SoCs.
>>
>> Example J721E:
>>    # cat /sys/devices/soc0/{machine,family,revision}
>>    Texas Instruments K3 J721E SoC
>>    J721E
>>    SR1.0
>>
>> Example AM65x:
>>    # cat /sys/devices/soc0/{machine,family,revision}
>>    Texas Instruments AM654 Base Board
>>    AM65X
>>    SR1.0
>>
>> Grygorii Strashko (5):
>>    dt-bindings: soc: ti: add binding for k3 platforms chipid module
>>    soc: ti: add k3 platforms chipid module driver
>>    arm64: arch_k3: enable chipid driver
>>    arm64: dts: ti: k3-am65-wakeup: add k3 platforms chipid module node
>>    arm64: dts: ti: k3-j721e-mcu-wakeup: add k3 platforms chipid module
>>      node
>>
>>   .../bindings/soc/ti/k3-socinfo.yaml           |  40 ++++++
>>   arch/arm64/Kconfig.platforms                  |   1 +
>>   arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi    |   5 +
>>   .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi      |   5 +
>>   drivers/soc/ti/Kconfig                        |  10 ++
>>   drivers/soc/ti/Makefile                       |   1 +
>>   drivers/soc/ti/k3-socinfo.c                   | 135 ++++++++++++++++++
>>   7 files changed, 197 insertions(+)
>>   create mode 100644
>> Documentation/devicetree/bindings/soc/ti/k3-socinfo.yaml
>>   create mode 100644 drivers/soc/ti/k3-socinfo.c
>>
>
> Any more comments? I'm going resend it.
>
If you have acks from DT maintainers, then I suggest you to split this
series and post platform and drivers patches separately.

Regards,
Santosh