Re: [RFC PATCH 01/15] DO-NOT-MERGE: dts: upstream: src: Necessary pulls from upstream dts

2024-04-05 Thread Sumit Garg
On Fri, 5 Apr 2024 at 11:17, Jayesh Choudhary  wrote:
>
> Hello Sumit,
>
> On 05/04/24 10:27, Sumit Garg wrote:
> > Hi Jayesh,
> >
> > On Thu, 4 Apr 2024 at 14:30, Jayesh Choudhary  wrote:
> >>
> >> j722s dts support that needs to be pulled from devicetree-rebasing
> >> tree. The whole series depends on this support.
> >>
> >
> > Which devicetree-rebasing tag does this patch depend upon? v6.8-dts
> > has already made its way to U-Boot mainline [1].
> >
> > [1] 
> > https://source.denx.de/u-boot/u-boot/-/commit/bc39e06778168a34bb4e0a34fbee4edbde4414d8
> >
>
> These patches are on top of the next branch (same commit)
> The required patches[0][2][3] are in tag v6.9-rc1-dts.
>

Okay, the next sync is expected to happen when U-Boot next branch
opens again and I suppose during that time frame only Linux kernel
v6.9 will be released. If you are targeting the U-Boot July release
then you have to opt out of OF_UPSTREAM.

-Sumit

> [0]:
> 
> [2]:
> 
> [3]:
> 
>
> -Jayesh
>
>
> > -Sumit
> >
> >> Signed-off-by: Jayesh Choudhary 
> >> ---
> >>   dts/upstream/Bindings/arm/ti/k3.yaml   |   6 +
> >>   dts/upstream/src/arm64/ti/k3-j722s-evm.dts | 383 +
> >>   dts/upstream/src/arm64/ti/k3-j722s.dtsi|  89 +
> >>   dts/upstream/src/arm64/ti/k3-pinctrl.h |   3 +
> >>   4 files changed, 481 insertions(+)
> >>   create mode 100644 dts/upstream/src/arm64/ti/k3-j722s-evm.dts
> >>   create mode 100644 dts/upstream/src/arm64/ti/k3-j722s.dtsi
> >>
> >> diff --git a/dts/upstream/Bindings/arm/ti/k3.yaml 
> >> b/dts/upstream/Bindings/arm/ti/k3.yaml
> >> index c6506bccfe..d526723484 100644
> >> --- a/dts/upstream/Bindings/arm/ti/k3.yaml
> >> +++ b/dts/upstream/Bindings/arm/ti/k3.yaml
> >> @@ -123,6 +123,12 @@ properties:
> >> - ti,j721s2-evm
> >> - const: ti,j721s2
> >>
> >> +  - description: K3 J722S SoC and Boards
> >> +items:
> >> +  - enum:
> >> +  - ti,j722s-evm
> >> +  - const: ti,j722s
> >> +
> >> - description: K3 J784s4 SoC
> >>   items:
> >> - enum:
>
> [...]


Re: [RFC PATCH 01/15] DO-NOT-MERGE: dts: upstream: src: Necessary pulls from upstream dts

2024-04-04 Thread Jayesh Choudhary

Hello Sumit,

On 05/04/24 10:27, Sumit Garg wrote:

Hi Jayesh,

On Thu, 4 Apr 2024 at 14:30, Jayesh Choudhary  wrote:


j722s dts support that needs to be pulled from devicetree-rebasing
tree. The whole series depends on this support.



Which devicetree-rebasing tag does this patch depend upon? v6.8-dts
has already made its way to U-Boot mainline [1].

[1] 
https://source.denx.de/u-boot/u-boot/-/commit/bc39e06778168a34bb4e0a34fbee4edbde4414d8



These patches are on top of the next branch (same commit)
The required patches[0][2][3] are in tag v6.9-rc1-dts.

[0]: 

[2]: 

[3]: 



-Jayesh



-Sumit


Signed-off-by: Jayesh Choudhary 
---
  dts/upstream/Bindings/arm/ti/k3.yaml   |   6 +
  dts/upstream/src/arm64/ti/k3-j722s-evm.dts | 383 +
  dts/upstream/src/arm64/ti/k3-j722s.dtsi|  89 +
  dts/upstream/src/arm64/ti/k3-pinctrl.h |   3 +
  4 files changed, 481 insertions(+)
  create mode 100644 dts/upstream/src/arm64/ti/k3-j722s-evm.dts
  create mode 100644 dts/upstream/src/arm64/ti/k3-j722s.dtsi

diff --git a/dts/upstream/Bindings/arm/ti/k3.yaml 
b/dts/upstream/Bindings/arm/ti/k3.yaml
index c6506bccfe..d526723484 100644
--- a/dts/upstream/Bindings/arm/ti/k3.yaml
+++ b/dts/upstream/Bindings/arm/ti/k3.yaml
@@ -123,6 +123,12 @@ properties:
- ti,j721s2-evm
- const: ti,j721s2

+  - description: K3 J722S SoC and Boards
+items:
+  - enum:
+  - ti,j722s-evm
+  - const: ti,j722s
+
- description: K3 J784s4 SoC
  items:
- enum:


[...]


Re: [RFC PATCH 01/15] DO-NOT-MERGE: dts: upstream: src: Necessary pulls from upstream dts

2024-04-04 Thread Sumit Garg
Hi Jayesh,

On Thu, 4 Apr 2024 at 14:30, Jayesh Choudhary  wrote:
>
> j722s dts support that needs to be pulled from devicetree-rebasing
> tree. The whole series depends on this support.
>

Which devicetree-rebasing tag does this patch depend upon? v6.8-dts
has already made its way to U-Boot mainline [1].

[1] 
https://source.denx.de/u-boot/u-boot/-/commit/bc39e06778168a34bb4e0a34fbee4edbde4414d8

-Sumit

> Signed-off-by: Jayesh Choudhary 
> ---
>  dts/upstream/Bindings/arm/ti/k3.yaml   |   6 +
>  dts/upstream/src/arm64/ti/k3-j722s-evm.dts | 383 +
>  dts/upstream/src/arm64/ti/k3-j722s.dtsi|  89 +
>  dts/upstream/src/arm64/ti/k3-pinctrl.h |   3 +
>  4 files changed, 481 insertions(+)
>  create mode 100644 dts/upstream/src/arm64/ti/k3-j722s-evm.dts
>  create mode 100644 dts/upstream/src/arm64/ti/k3-j722s.dtsi
>
> diff --git a/dts/upstream/Bindings/arm/ti/k3.yaml 
> b/dts/upstream/Bindings/arm/ti/k3.yaml
> index c6506bccfe..d526723484 100644
> --- a/dts/upstream/Bindings/arm/ti/k3.yaml
> +++ b/dts/upstream/Bindings/arm/ti/k3.yaml
> @@ -123,6 +123,12 @@ properties:
>- ti,j721s2-evm
>- const: ti,j721s2
>
> +  - description: K3 J722S SoC and Boards
> +items:
> +  - enum:
> +  - ti,j722s-evm
> +  - const: ti,j722s
> +
>- description: K3 J784s4 SoC
>  items:
>- enum:
> diff --git a/dts/upstream/src/arm64/ti/k3-j722s-evm.dts 
> b/dts/upstream/src/arm64/ti/k3-j722s-evm.dts
> new file mode 100644
> index 00..cee3a8661d
> --- /dev/null
> +++ b/dts/upstream/src/arm64/ti/k3-j722s-evm.dts
> @@ -0,0 +1,383 @@
> +// SPDX-License-Identifier: GPL-2.0-only OR MIT
> +/*
> + * Device Tree file for the J722S EVM
> + * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
> + *
> + * Schematics: https://www.ti.com/lit/zip/sprr495
> + */
> +
> +/dts-v1/;
> +
> +#include 
> +#include "k3-j722s.dtsi"
> +
> +/ {
> +   compatible = "ti,j722s-evm", "ti,j722s";
> +   model = "Texas Instruments J722S EVM";
> +
> +   aliases {
> +   serial0 = &wkup_uart0;
> +   serial2 = &main_uart0;
> +   mmc0 = &sdhci0;
> +   mmc1 = &sdhci1;
> +   };
> +
> +   chosen {
> +   stdout-path = &main_uart0;
> +   };
> +
> +   memory@8000 {
> +   /* 8G RAM */
> +   reg = <0x 0x8000 0x 0x8000>,
> + <0x0008 0x8000 0x0001 0x8000>;
> +   device_type = "memory";
> +   bootph-pre-ram;
> +   };
> +
> +   reserved_memory: reserved-memory {
> +   #address-cells = <2>;
> +   #size-cells = <2>;
> +   ranges;
> +
> +   secure_tfa_ddr: tfa@9e78 {
> +   reg = <0x00 0x9e78 0x00 0x8>;
> +   no-map;
> +   };
> +
> +   secure_ddr: optee@9e80 {
> +   reg = <0x00 0x9e80 0x00 0x0180>;
> +   no-map;
> +   };
> +
> +   wkup_r5fss0_core0_memory_region: r5f-memory@a010 {
> +   compatible = "shared-dma-pool";
> +   reg = <0x00 0xa010 0x00 0xf0>;
> +   no-map;
> +   };
> +
> +   };
> +
> +   vmain_pd: regulator-0 {
> +   /* TPS65988 PD CONTROLLER OUTPUT */
> +   compatible = "regulator-fixed";
> +   regulator-name = "vmain_pd";
> +   regulator-min-microvolt = <500>;
> +   regulator-max-microvolt = <500>;
> +   regulator-always-on;
> +   regulator-boot-on;
> +   bootph-all;
> +   };
> +
> +   vsys_5v0: regulator-vsys5v0 {
> +   /* Output of LM5140 */
> +   compatible = "regulator-fixed";
> +   regulator-name = "vsys_5v0";
> +   regulator-min-microvolt = <500>;
> +   regulator-max-microvolt = <500>;
> +   vin-supply = <&vmain_pd>;
> +   regulator-always-on;
> +   regulator-boot-on;
> +   };
> +
> +   vdd_mmc1: regulator-mmc1 {
> +   /* TPS22918DBVR */
> +   compatible = "regulator-fixed";
> +   regulator-name = "vdd_mmc1";
> +   regulator-min-microvolt = <330>;
> +   regulator-max-microvolt = <330>;
> +   regulator-boot-on;
> +   enable-active-high;
> +   gpio = <&exp1 15 GPIO_ACTIVE_HIGH>;
> +   bootph-all;
> +   };
> +
> +   vdd_sd_dv: regulator-TLV71033 {
> +   compatible = "regulator-gpio";
> +   regulator-name = "tlv71033";
> +   pinctrl-names = "default";
> +   pinctrl-0 = <&vdd_sd_dv_pins_default>;
> +   regulator-min-microvolt = <18000

[RFC PATCH 01/15] DO-NOT-MERGE: dts: upstream: src: Necessary pulls from upstream dts

2024-04-04 Thread Jayesh Choudhary
j722s dts support that needs to be pulled from devicetree-rebasing
tree. The whole series depends on this support.

Signed-off-by: Jayesh Choudhary 
---
 dts/upstream/Bindings/arm/ti/k3.yaml   |   6 +
 dts/upstream/src/arm64/ti/k3-j722s-evm.dts | 383 +
 dts/upstream/src/arm64/ti/k3-j722s.dtsi|  89 +
 dts/upstream/src/arm64/ti/k3-pinctrl.h |   3 +
 4 files changed, 481 insertions(+)
 create mode 100644 dts/upstream/src/arm64/ti/k3-j722s-evm.dts
 create mode 100644 dts/upstream/src/arm64/ti/k3-j722s.dtsi

diff --git a/dts/upstream/Bindings/arm/ti/k3.yaml 
b/dts/upstream/Bindings/arm/ti/k3.yaml
index c6506bccfe..d526723484 100644
--- a/dts/upstream/Bindings/arm/ti/k3.yaml
+++ b/dts/upstream/Bindings/arm/ti/k3.yaml
@@ -123,6 +123,12 @@ properties:
   - ti,j721s2-evm
   - const: ti,j721s2
 
+  - description: K3 J722S SoC and Boards
+items:
+  - enum:
+  - ti,j722s-evm
+  - const: ti,j722s
+
   - description: K3 J784s4 SoC
 items:
   - enum:
diff --git a/dts/upstream/src/arm64/ti/k3-j722s-evm.dts 
b/dts/upstream/src/arm64/ti/k3-j722s-evm.dts
new file mode 100644
index 00..cee3a8661d
--- /dev/null
+++ b/dts/upstream/src/arm64/ti/k3-j722s-evm.dts
@@ -0,0 +1,383 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Device Tree file for the J722S EVM
+ * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ * Schematics: https://www.ti.com/lit/zip/sprr495
+ */
+
+/dts-v1/;
+
+#include 
+#include "k3-j722s.dtsi"
+
+/ {
+   compatible = "ti,j722s-evm", "ti,j722s";
+   model = "Texas Instruments J722S EVM";
+
+   aliases {
+   serial0 = &wkup_uart0;
+   serial2 = &main_uart0;
+   mmc0 = &sdhci0;
+   mmc1 = &sdhci1;
+   };
+
+   chosen {
+   stdout-path = &main_uart0;
+   };
+
+   memory@8000 {
+   /* 8G RAM */
+   reg = <0x 0x8000 0x 0x8000>,
+ <0x0008 0x8000 0x0001 0x8000>;
+   device_type = "memory";
+   bootph-pre-ram;
+   };
+
+   reserved_memory: reserved-memory {
+   #address-cells = <2>;
+   #size-cells = <2>;
+   ranges;
+
+   secure_tfa_ddr: tfa@9e78 {
+   reg = <0x00 0x9e78 0x00 0x8>;
+   no-map;
+   };
+
+   secure_ddr: optee@9e80 {
+   reg = <0x00 0x9e80 0x00 0x0180>;
+   no-map;
+   };
+
+   wkup_r5fss0_core0_memory_region: r5f-memory@a010 {
+   compatible = "shared-dma-pool";
+   reg = <0x00 0xa010 0x00 0xf0>;
+   no-map;
+   };
+
+   };
+
+   vmain_pd: regulator-0 {
+   /* TPS65988 PD CONTROLLER OUTPUT */
+   compatible = "regulator-fixed";
+   regulator-name = "vmain_pd";
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+   regulator-always-on;
+   regulator-boot-on;
+   bootph-all;
+   };
+
+   vsys_5v0: regulator-vsys5v0 {
+   /* Output of LM5140 */
+   compatible = "regulator-fixed";
+   regulator-name = "vsys_5v0";
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+   vin-supply = <&vmain_pd>;
+   regulator-always-on;
+   regulator-boot-on;
+   };
+
+   vdd_mmc1: regulator-mmc1 {
+   /* TPS22918DBVR */
+   compatible = "regulator-fixed";
+   regulator-name = "vdd_mmc1";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   regulator-boot-on;
+   enable-active-high;
+   gpio = <&exp1 15 GPIO_ACTIVE_HIGH>;
+   bootph-all;
+   };
+
+   vdd_sd_dv: regulator-TLV71033 {
+   compatible = "regulator-gpio";
+   regulator-name = "tlv71033";
+   pinctrl-names = "default";
+   pinctrl-0 = <&vdd_sd_dv_pins_default>;
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <330>;
+   regulator-boot-on;
+   vin-supply = <&vsys_5v0>;
+   gpios = <&main_gpio0 70 GPIO_ACTIVE_HIGH>;
+   states = <180 0x0>,
+<330 0x1>;
+   };
+
+   vsys_io_1v8: regulator-vsys-io-1v8 {
+   compatible = "regulator-fixed";
+   regulator-name = "vsys_io_1v8";
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
+   regulato