All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/15] am335x, guardian: update board specific dts changes
@ 2022-03-25 10:05 Gireesh.Hiremath
  2022-03-25 10:05 ` [PATCH 01/15] ARM: dts: am335x: Guardian: Update NAND partition table Gireesh.Hiremath
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:05 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

update guardian device tree

Gireesh Hiremath (15):
  ARM: dts: am335x: Guardian: Update NAND partition table
  ARM: dts: am335x: Guardian: Rename power button label
  ARM: dts: am335x: Guardian: Add keypad
  ARM: dts: am335x: Guardian: Disable poweroff support from RTC
  ARM: dts: am335x: Guardian: Remove mmc status led
  ARM: dts: am335x: Guardian: Update life led
  ARM: dts: am335x: Guardian: Update beeper label
  ARM: dts: am335x: Guardian: Update regulator node name
  ARM: dts: am335x: Guardian: Add lcd port
  ARM: dts: am335x: Guardian: Update backlight parameter
  ARM: dts: am335x: Guardian: Enable UART port two
  ARM: dts: am335x: Guardian: Disable DMA property of USB1
  ARM: dts: am335x: Guardian: Update interface pinmux
  ARM: dts: am335x: Guardian: Add gpio line manes
  ARM: dts: am335x: Guardian: Update comments

 arch/arm/boot/dts/am335x-guardian.dts | 376 ++++++++++++++++++++++----
 1 file changed, 316 insertions(+), 60 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH 01/15] ARM: dts: am335x: Guardian: Update NAND partition table
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
@ 2022-03-25 10:05 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 02/15] ARM: dts: am335x: Guardian: Rename power button label Gireesh.Hiremath
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:05 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * Update partition table to save env and splash image
 * GPMC config values optimized for Bosch Guardian Board
 * NAND Chip used by Bosch Guardian Board is Micron MT29F4G08ABBFA

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 65 ++++++++++++++++++++-------
 1 file changed, 48 insertions(+), 17 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 1918766c1f80..41b7adf78656 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -133,28 +133,29 @@
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>; /* termcount */
 		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
+		ti,nand-xfer-type = "prefetch-dma";
 		ti,nand-ecc-opt = "bch16";
 		ti,elm-id = <&elm>;
 		nand-bus-width = <8>;
 		gpmc,device-width = <1>;
 		gpmc,sync-clk-ps = <0>;
 		gpmc,cs-on-ns = <0>;
-		gpmc,cs-rd-off-ns = <44>;
-		gpmc,cs-wr-off-ns = <44>;
-		gpmc,adv-on-ns = <6>;
-		gpmc,adv-rd-off-ns = <34>;
-		gpmc,adv-wr-off-ns = <44>;
+		gpmc,cs-rd-off-ns = <30>;
+		gpmc,cs-wr-off-ns = <30>;
+		gpmc,adv-on-ns = <0>;
+		gpmc,adv-rd-off-ns = <30>;
+		gpmc,adv-wr-off-ns = <30>;
 		gpmc,we-on-ns = <0>;
-		gpmc,we-off-ns = <40>;
-		gpmc,oe-on-ns = <0>;
-		gpmc,oe-off-ns = <54>;
-		gpmc,access-ns = <64>;
-		gpmc,rd-cycle-ns = <82>;
-		gpmc,wr-cycle-ns = <82>;
+		gpmc,we-off-ns = <15>;
+		gpmc,oe-on-ns = <1>;
+		gpmc,oe-off-ns = <15>;
+		gpmc,access-ns = <30>;
+		gpmc,rd-cycle-ns = <30>;
+		gpmc,wr-cycle-ns = <30>;
 		gpmc,bus-turnaround-ns = <0>;
 		gpmc,cycle2cycle-delay-ns = <0>;
 		gpmc,clk-activation-ns = <0>;
-		gpmc,wr-access-ns = <40>;
+		gpmc,wr-access-ns = <0>;
 		gpmc,wr-data-mux-bus-ns = <0>;
 
 		/*
@@ -198,18 +199,33 @@
 		};
 
 		partition@6 {
-			label = "u-boot-env";
-			reg = <0x300000 0x40000>;
+			label = "u-boot-2";
+			reg = <0x300000 0x100000>;
 		};
 
 		partition@7 {
-			label = "u-boot-env.backup1";
-			reg = <0x340000 0x40000>;
+			label = "u-boot-2.backup1";
+			reg = <0x400000 0x100000>;
 		};
 
 		partition@8 {
+			label = "u-boot-env";
+			reg = <0x500000 0x40000>;
+		};
+
+		partition@9 {
+			label = "u-boot-env.backup1";
+			reg = <0x540000 0x40000>;
+		};
+
+		partition@10 {
+			label = "splash-screen";
+			reg = <0x580000 0x40000>;
+		};
+
+		partition@11 {
 			label = "UBI";
-			reg = <0x380000 0x1fc80000>;
+			reg = <0x5c0000 0x1fa40000>;
 		};
 	};
 };
@@ -470,20 +486,35 @@
 
 	nandflash_pins: pinmux_nandflash_pins {
 		pinctrl-single,pins = <
+			/* (U7) gpmc_ad0.gpmc_ad0 */
 			AM33XX_IOPAD(0x800, PIN_INPUT | MUX_MODE0)
+			/* (V7) gpmc_ad1.gpmc_ad1 */
 			AM33XX_IOPAD(0x804, PIN_INPUT | MUX_MODE0)
+			/* (R8) gpmc_ad2.gpmc_ad2 */
 			AM33XX_IOPAD(0x808, PIN_INPUT | MUX_MODE0)
+			/* (T8) gpmc_ad3.gpmc_ad3 */
 			AM33XX_IOPAD(0x80c, PIN_INPUT | MUX_MODE0)
+			/* (U8) gpmc_ad4.gpmc_ad4 */
 			AM33XX_IOPAD(0x810, PIN_INPUT | MUX_MODE0)
+			/* (V8) gpmc_ad5.gpmc_ad5 */
 			AM33XX_IOPAD(0x814, PIN_INPUT | MUX_MODE0)
+			/* (R9) gpmc_ad6.gpmc_ad6 */
 			AM33XX_IOPAD(0x818, PIN_INPUT | MUX_MODE0)
+			/* (T9) gpmc_ad7.gpmc_ad7 */
 			AM33XX_IOPAD(0x81c, PIN_INPUT | MUX_MODE0)
+			/* (T17) gpmc_wait0.gpmc_wait0 */
 			AM33XX_IOPAD(0x870, PIN_INPUT | MUX_MODE0)
+			/* (U17) gpmc_wpn.gpmc_wpn */
 			AM33XX_IOPAD(0x874, PIN_OUTPUT | MUX_MODE0)
+			/* (V6) gpmc_csn0.gpmc_csn0 */
 			AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0)
+			/* (R7) gpmc_advn_ale.gpmc_advn_ale */
 			AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0)
+			/* (T7) gpmc_oen_ren.gpmc_oen_ren */
 			AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0)
+			/* (U6) gpmc_wen.gpmc_wen */
 			AM33XX_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0)
+			/* (T6) gpmc_be0n_cle.gpmc_be0n_cle */
 			AM33XX_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0)
 		>;
 	};
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 02/15] ARM: dts: am335x: Guardian: Rename power button label
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
  2022-03-25 10:05 ` [PATCH 01/15] ARM: dts: am335x: Guardian: Update NAND partition table Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 03/15] ARM: dts: am335x: Guardian: Add keypad Gireesh.Hiremath
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * Rename label button to power button

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 41b7adf78656..645de77bdb56 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -29,21 +29,22 @@
 		reg = <0x80000000 0x10000000>; /* 256 MB */
 	};
 
-	gpio_keys {
+	guardian_buttons: gpio-keys {
+		pinctrl-names = "default";
+		pinctrl-0 = <&guardian_button_pins>;
 		compatible = "gpio-keys";
 		#address-cells = <1>;
 		#size-cells = <0>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&gpio_keys_pins>;
 
-		button21 {
+		power-button {
 			label = "guardian-power-button";
 			linux,code = <KEY_POWER>;
-			gpios = <&gpio2 21 0>;
+			gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
 			wakeup-source;
 		};
 	};
 
+
 	leds {
 		compatible = "gpio-leds";
 		pinctrl-names = "default";
@@ -365,9 +366,9 @@
 		>;
 	};
 
-	gpio_keys_pins: pinmux_gpio_keys_pins {
+	guardian_button_pins: pinmux_guardian_button_pins {
 		pinctrl-single,pins = <
-			AM33XX_IOPAD(0x940, PIN_INPUT | MUX_MODE7)
+			AM33XX_IOPAD(0x940, PIN_INPUT | MUX_MODE7) /* (M16) gmii1_rxd0.gpio2[21] */
 		>;
 	};
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 03/15] ARM: dts: am335x: Guardian: Add keypad
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
  2022-03-25 10:05 ` [PATCH 01/15] ARM: dts: am335x: Guardian: Update NAND partition table Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 02/15] ARM: dts: am335x: Guardian: Rename power button label Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 04/15] ARM: dts: am335x: Guardian: Disable poweroff support from RTC Gireesh.Hiremath
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * Add support to guardian mt gpio keypad

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 645de77bdb56..6f59c5f36c0d 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -36,6 +36,13 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		select-button {
+			label = "guardian-select-button";
+			linux,code = <KEY_5>;
+			gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
+			wakeup-source;
+		};
+
 		power-button {
 			label = "guardian-power-button";
 			linux,code = <KEY_POWER>;
@@ -115,6 +122,22 @@
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
 	};
+
+	mt_keypad: mt_keypad@0 {
+		compatible = "gpio-mt-keypad";
+		debounce-delay-ms = <10>;
+		col-scan-delay-us = <2>;
+		keypad,num-lines = <5>;
+		linux,no-autorepeat;
+		gpio-activelow;
+		line-gpios = <
+			&gpio1 24 GPIO_ACTIVE_LOW    /*gpio_56*/
+			&gpio1 23 GPIO_ACTIVE_LOW    /*gpio_55*/
+			&gpio1 22 GPIO_ACTIVE_LOW    /*gpio_54*/
+			&gpio1 20 GPIO_ACTIVE_LOW    /*gpio_52*/
+			&gpio1 16 GPIO_ACTIVE_LOW    /*gpio_48*/
+		>;
+	};
 };
 
 &elm {
@@ -369,6 +392,7 @@
 	guardian_button_pins: pinmux_guardian_button_pins {
 		pinctrl-single,pins = <
 			AM33XX_IOPAD(0x940, PIN_INPUT | MUX_MODE7) /* (M16) gmii1_rxd0.gpio2[21] */
+			AM33XX_IOPAD(0x884, PIN_INPUT | MUX_MODE7) /* (V9)  gpmc_csn2.gpio1[31] */
 		>;
 	};
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 04/15] ARM: dts: am335x: Guardian: Disable poweroff support from RTC
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (2 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 03/15] ARM: dts: am335x: Guardian: Add keypad Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 05/15] ARM: dts: am335x: Guardian: Remove mmc status led Gireesh.Hiremath
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * Disabling poweroff support form RTC will allow poweroff
   to handle from other machanism

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 6f59c5f36c0d..46314f1bc85b 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -282,7 +282,6 @@
 &rtc {
 	clocks = <&clk_32768_ck>, <&clk_24mhz_clkctrl AM3_CLK_24MHZ_CLKDIV32K_CLKCTRL 0>;
 	clock-names = "ext-clk", "int-clk";
-	system-power-controller;
 };
 
 &spi0 {
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 05/15] ARM: dts: am335x: Guardian: Remove mmc status led
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (3 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 04/15] ARM: dts: am335x: Guardian: Disable poweroff support from RTC Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 06/15] ARM: dts: am335x: Guardian: Update life led Gireesh.Hiremath
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * MMC presence indicater LED removed from Guardian Board

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 46314f1bc85b..749239081bf1 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -51,7 +51,6 @@
 		};
 	};
 
-
 	leds {
 		compatible = "gpio-leds";
 		pinctrl-names = "default";
@@ -63,13 +62,6 @@
 			linux,default-trigger = "heartbeat";
 			default-state = "off";
 		};
-
-		led2 {
-			label = "green:mmc0";
-			gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
-			linux,default-trigger = "mmc0";
-			default-state = "off";
-		};
 	};
 
 	panel {
@@ -475,7 +467,6 @@
 
 	leds_pins: pinmux_leds_pins {
 		pinctrl-single,pins = <
-			AM33XX_IOPAD(0x868, PIN_OUTPUT | MUX_MODE7)
 			AM33XX_IOPAD(0x86c, PIN_OUTPUT | MUX_MODE7)
 		>;
 	};
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 06/15] ARM: dts: am335x: Guardian: Update life led
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (4 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 05/15] ARM: dts: am335x: Guardian: Remove mmc status led Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 07/15] ARM: dts: am335x: Guardian: Update beeper label Gireesh.Hiremath
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * update life led label and pin number

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 749239081bf1..68443c59aba4 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -51,14 +51,14 @@
 		};
 	};
 
-	leds {
-		compatible = "gpio-leds";
+	guardian_leds: gpio-leds {
 		pinctrl-names = "default";
-		pinctrl-0 = <&leds_pins>;
+		pinctrl-0 = <&guardian_led_pins>;
+		compatible = "gpio-leds";
 
-		led1 {
-			label = "green:heartbeat";
-			gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
+		life-led {
+			label = "guardian:life-led";
+			gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "heartbeat";
 			default-state = "off";
 		};
@@ -465,9 +465,9 @@
 		>;
 	};
 
-	leds_pins: pinmux_leds_pins {
+	guardian_led_pins: pinmux_guardian_led_pins {
 		pinctrl-single,pins = <
-			AM33XX_IOPAD(0x86c, PIN_OUTPUT | MUX_MODE7)
+			AM33XX_IOPAD(0x868, PIN_OUTPUT | MUX_MODE7) /* (T16) gpmc_a10.gpio1[26] */
 		>;
 	};
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 07/15] ARM: dts: am335x: Guardian: Update beeper label
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (5 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 06/15] ARM: dts: am335x: Guardian: Update life led Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 08/15] ARM: dts: am335x: Guardian: Update regulator node name Gireesh.Hiremath
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * Update lable pwm to guardian beeper

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 68443c59aba4..ed4cd51dd838 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -100,11 +100,11 @@
 
 	};
 
-	pwm7: dmtimer-pwm {
+	guardian_beeper: dmtimer-pwm@7 {
 		compatible = "ti,omap-dmtimer-pwm";
 		ti,timers = <&timer7>;
 		pinctrl-names = "default";
-		pinctrl-0 = <&dmtimer7_pins>;
+		pinctrl-0 = <&guardian_beeper_pins>;
 		ti,clock-source = <0x01>;
 	};
 
@@ -374,9 +374,9 @@
 		>;
 	};
 
-	dmtimer7_pins: pinmux_dmtimer7_pins {
+	guardian_beeper_pins: pinmux_dmtimer7_pins {
 		pinctrl-single,pins = <
-			AM33XX_IOPAD(0x968, PIN_OUTPUT | MUX_MODE5)
+			AM33XX_IOPAD(0x968, PIN_OUTPUT | MUX_MODE5) /* (E18) timer7 */
 		>;
 	};
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 08/15] ARM: dts: am335x: Guardian: Update regulator node name
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (6 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 07/15] ARM: dts: am335x: Guardian: Update beeper label Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 09/15] ARM: dts: am335x: Guardian: Add lcd port Gireesh.Hiremath
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * Update mmcsd voltage regulator node name

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index ed4cd51dd838..e0186043f18c 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -108,7 +108,7 @@
 		ti,clock-source = <0x01>;
 	};
 
-	vmmcsd_fixed: regulator-3v3 {
+	vmmcsd_fixed: fixedregulator0 {
 		compatible = "regulator-fixed";
 		regulator-name = "vmmcsd_fixed";
 		regulator-min-microvolt = <3300000>;
@@ -303,6 +303,7 @@
 		};
 
 		dcdc2_reg: regulator@1 {
+			/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
 			regulator-name = "vdd_mpu";
 			regulator-min-microvolt = <925000>;
 			regulator-max-microvolt = <1351500>;
@@ -311,6 +312,7 @@
 		};
 
 		dcdc3_reg: regulator@2 {
+			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
 			regulator-name = "vdd_core";
 			regulator-min-microvolt = <925000>;
 			regulator-max-microvolt = <1150000>;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 09/15] ARM: dts: am335x: Guardian: Add lcd port
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (7 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 08/15] ARM: dts: am335x: Guardian: Update regulator node name Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 10/15] ARM: dts: am335x: Guardian: Update backlight parameter Gireesh.Hiremath
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

* Add port to the node lcdc

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 54 +++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index e0186043f18c..75ac8686091a 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -260,6 +260,11 @@
 &lcdc {
 	blue-and-red-wiring = "crossed";
 	status = "okay";
+	port {
+		lcdc_0: endpoint@0 {
+			remote-endpoint = <0>;
+		};
+	};
 };
 
 &mmc1 {
@@ -405,64 +410,113 @@
 
 	lcd_disen_pins: pinmux_lcd_disen_pins {
 		pinctrl-single,pins = <
+			/* P9_27, mcasp0_fsr.gpio3[19] (lcd_disen) */
 			AM33XX_IOPAD(0x9a4, PIN_OUTPUT_PULLUP | SLEWCTRL_SLOW | MUX_MODE7)
 		>;
 	};
 
 	lcd_pins_default: pinmux_lcd_pins_default {
 		pinctrl-single,pins = <
+			/* (U10) gpmc_ad8.lcd_data23 */
 			AM33XX_IOPAD(0x820, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
+			/* (T10) gpmc_ad9.lcd_data22 */
 			AM33XX_IOPAD(0x824, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
+			/* (T11) gpmc_ad10.lcd_data21 */
 			AM33XX_IOPAD(0x828, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
+			/* (U12) gpmc_ad11.lcd_data20 */
 			AM33XX_IOPAD(0x82c, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
+			/* (T12) gpmc_ad12.lcd_data19 */
 			AM33XX_IOPAD(0x830, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
+			/* (R12) gpmc_ad13.lcd_data18 */
 			AM33XX_IOPAD(0x834, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
+			/* (V13) gpmc_ad14.lcd_data17 */
 			AM33XX_IOPAD(0x838, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
+			/* (U13) gpmc_ad15.lcd_data16 */
 			AM33XX_IOPAD(0x83c, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE1)
+			/* lcd_data0.lcd_data0 */
 			AM33XX_IOPAD(0x8a0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data1.lcd_data1 */
 			AM33XX_IOPAD(0x8a4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data2.lcd_data2 */
 			AM33XX_IOPAD(0x8a8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data3.lcd_data3 */
 			AM33XX_IOPAD(0x8ac, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data4.lcd_data4 */
 			AM33XX_IOPAD(0x8b0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data5.lcd_data5 */
 			AM33XX_IOPAD(0x8b4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data6.lcd_data6 */
 			AM33XX_IOPAD(0x8b8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data7.lcd_data7 */
 			AM33XX_IOPAD(0x8bc, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data8.lcd_data8 */
 			AM33XX_IOPAD(0x8c0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data9.lcd_data9 */
 			AM33XX_IOPAD(0x8c4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data10.lcd_data10 */
 			AM33XX_IOPAD(0x8c8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data11.lcd_data11 */
 			AM33XX_IOPAD(0x8cc, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data12.lcd_data12 */
 			AM33XX_IOPAD(0x8d0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data13.lcd_data13 */
 			AM33XX_IOPAD(0x8d4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data14.lcd_data14 */
 			AM33XX_IOPAD(0x8d8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_data15.lcd_data15 */
 			AM33XX_IOPAD(0x8dc, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_vsync.lcd_vsync */
 			AM33XX_IOPAD(0x8e0, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_hsync.lcd_hsync */
 			AM33XX_IOPAD(0x8e4, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_pclk.lcd_pclk */
 			AM33XX_IOPAD(0x8e8, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
+			/* lcd_ac_bias_en.lcd_ac_bias_en */
 			AM33XX_IOPAD(0x8ec, PIN_OUTPUT | SLEWCTRL_SLOW | MUX_MODE0)
 		>;
 	};
 
 	lcd_pins_sleep: pinmux_lcd_pins_sleep {
 		pinctrl-single,pins = <
+			/* lcd_data0.lcd_data0 */
 			AM33XX_IOPAD(0x8a0, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data1.lcd_data1 */
 			AM33XX_IOPAD(0x8a4, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data2.lcd_data2 */
 			AM33XX_IOPAD(0x8a8, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data3.lcd_data3 */
 			AM33XX_IOPAD(0x8ac, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data4.lcd_data4 */
 			AM33XX_IOPAD(0x8b0, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data5.lcd_data5 */
 			AM33XX_IOPAD(0x8b4, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data6.lcd_data6 */
 			AM33XX_IOPAD(0x8b8, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data7.lcd_data7 */
 			AM33XX_IOPAD(0x8bc, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data8.lcd_data8 */
 			AM33XX_IOPAD(0x8c0, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data9.lcd_data9 */
 			AM33XX_IOPAD(0x8c4, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data10.lcd_data10 */
 			AM33XX_IOPAD(0x8c8, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data11.lcd_data11 */
 			AM33XX_IOPAD(0x8cc, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data12.lcd_data12 */
 			AM33XX_IOPAD(0x8d0, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data13.lcd_data13 */
 			AM33XX_IOPAD(0x8d4, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data14.lcd_data14 */
 			AM33XX_IOPAD(0x8d8, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_data15.lcd_data15 */
 			AM33XX_IOPAD(0x8dc, PULL_DISABLE | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_vsync.lcd_vsync */
 			AM33XX_IOPAD(0x8e0, PIN_INPUT_PULLDOWN | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_hsync.lcd_hsync */
 			AM33XX_IOPAD(0x8e4, PIN_INPUT_PULLDOWN | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_pclk.lcd_pclk */
 			AM33XX_IOPAD(0x8e8, PIN_INPUT_PULLDOWN | SLEWCTRL_SLOW | MUX_MODE7)
+			/* lcd_ac_bias_en.lcd_ac_bias_en */
 			AM33XX_IOPAD(0x8ec, PIN_INPUT_PULLDOWN | SLEWCTRL_SLOW | MUX_MODE7)
 		>;
 	};
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 10/15] ARM: dts: am335x: Guardian: Update backlight parameter
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (8 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 09/15] ARM: dts: am335x: Guardian: Add lcd port Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 11/15] ARM: dts: am335x: Guardian: Enable UART port two Gireesh.Hiremath
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * Update default brightness and dimming frequency
 * Enable current sink, while initialization

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 31 +++++++++++++++++++++++++--
 1 file changed, 29 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 75ac8686091a..fab844815065 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -291,14 +291,34 @@
 #include "tps65217.dtsi"
 
 &tps {
+  /*
+   * Configure pmic to enter OFF-state instead of SLEEP-state ("RTC-only
+   * mode") at poweroff.  Most BeagleBone versions do not support RTC-only
+   * mode and risk hardware damage if this mode is entered.
+   *
+   * For details, see linux-omap mailing list May 2015 thread
+   *  [PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller
+   * In particular, messages:
+   *  http://www.spinics.net/lists/linux-omap/msg118585.html
+   *  http://www.spinics.net/lists/linux-omap/msg118615.html
+   *
+   * You can override this later with
+   *  &tps {  /delete-property/ ti,pmic-shutdown-controller;  }
+   * if you want to use RTC-only mode and made sure you are not affected
+   * by the hardware problems. (Tip: double-check by performing a current
+   * measurement after shutdown: it should be less than 1 mA.)
+   */
 	ti,pmic-shutdown-controller;
 	interrupt-parent = <&intc>;
 	interrupts = <7>; /* NMI */
 
 	backlight {
 		isel = <1>;  /* 1 - ISET1, 2 ISET2 */
-		fdim = <100>; /* TPS65217_BL_FDIM_100HZ */
-		default-brightness = <100>;
+		fdim = <500>; /* TPS65217_BL_FDIM_500HZ */
+		default-brightness = <50>;
+		/* 1(on) - enable current sink, while initialization */
+		/* 0(off) - disable current sink, while initialization */
+		isink-en = <1>;
 	};
 
 	regulators {
@@ -408,6 +428,13 @@
 		>;
 	};
 
+	led_bl_pins: gpio_led_bl_pins {
+		pinctrl-single,pins = <
+			/* P9_14, gpmc_a[2].GPIO1[18] (backlight control) */
+			AM33XX_IOPAD(0x848, PIN_OUTPUT | MUX_MODE7)
+		>;
+	};
+
 	lcd_disen_pins: pinmux_lcd_disen_pins {
 		pinctrl-single,pins = <
 			/* P9_27, mcasp0_fsr.gpio3[19] (lcd_disen) */
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 11/15] ARM: dts: am335x: Guardian: Enable UART port two
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (9 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 10/15] ARM: dts: am335x: Guardian: Update backlight parameter Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 12/15] ARM: dts: am335x: Guardian: Disable DMA property of USB1 Gireesh.Hiremath
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

* Add support for uart2 port

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index fab844815065..9f60f5430f36 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -383,6 +383,12 @@
 	status = "okay";
 };
 
+&uart2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart2_pins>;
+	status = "okay";
+};
+
 &usb0 {
 	dr_mode = "peripheral";
 };
@@ -582,6 +588,15 @@
 		>;
 	};
 
+	uart2_pins: pinmux_uart2_pins {
+		pinctrl-single,pins = <
+			/* K18 uart2_rxd.mirx_txd */
+			AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE1)
+			/* L18 uart2_txd.mirx_rxd */
+			AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLDOWN | MUX_MODE1)
+		>;
+	};
+
 	nandflash_pins: pinmux_nandflash_pins {
 		pinctrl-single,pins = <
 			/* (U7) gpmc_ad0.gpmc_ad0 */
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 12/15] ARM: dts: am335x: Guardian: Disable DMA property of USB1
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (10 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 11/15] ARM: dts: am335x: Guardian: Enable UART port two Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 13/15] ARM: dts: am335x: Guardian: Update interface pinmux Gireesh.Hiremath
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * Dispble DMA property of USB1

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 9f60f5430f36..93576f136368 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -395,6 +395,8 @@
 
 &usb1 {
 	dr_mode = "host";
+	/delete-property/dmas;
+	/delete-property/dma-names;
 };
 
 &am33xx_pinmux {
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 13/15] ARM: dts: am335x: Guardian: Update interface pinmux
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (11 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 12/15] ARM: dts: am335x: Guardian: Disable DMA property of USB1 Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 14/15] ARM: dts: am335x: Guardian: Add gpio line manes Gireesh.Hiremath
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

* Update interface pinmux for
  - poweroff button
  - battery and coincell enable
  - ASP and Miraculix

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 44 ++++++++++++++++++++++-----
 1 file changed, 37 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 93576f136368..b225210d5e11 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -64,6 +64,11 @@
 		};
 	};
 
+	gpio-poweroff {
+		compatible = "gpio-poweroff";
+		gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+	};
+
 	panel {
 		compatible = "ti,tilcdc,panel";
 		pinctrl-names = "default", "sleep";
@@ -401,14 +406,45 @@
 
 &am33xx_pinmux {
 	pinctrl-names = "default";
-	pinctrl-0 = <&clkout2_pin &gpio_pins>;
+	pinctrl-0 = <&clkout2_pin &guardian_interface_pins>;
 
 	clkout2_pin: pinmux_clkout2_pin {
 		pinctrl-single,pins = <
+			/* xdma_event_intr1.clkout2 */
 			AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3)
 		>;
 	};
 
+	guardian_interface_pins: pinmux_interface_pins {
+		pinctrl-single,pins = <
+			/* ADC_BATSENSE_EN */
+			/* (A14) MCASP0_AHCLKx.gpio3[21] */
+			AM33XX_IOPAD(0x9ac, PIN_OUTPUT_PULLDOWN | MUX_MODE7 )
+			/* ADC_COINCELL_EN */
+			/* (J16) MII1_TX_EN.gpio3[3] */
+			AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE7 )
+			/* ASP_ENABLE */
+			/* (A13) MCASP0_ACLKx.gpio3[14] */
+			AM33XX_IOPAD(0x990, PIN_OUTPUT_PULLUP | MUX_MODE7)
+			/* (D16) uart1_rxd.uart1_rxd */
+			AM33XX_IOPAD(0x980, PIN_INPUT | MUX_MODE7)
+			/* (D15) uart1_txd.uart1_txd */
+			AM33XX_IOPAD(0x984, PIN_INPUT | MUX_MODE7)
+			/*SWITCH-OFF_3V6*/
+			/* (M18) gpio0[1] */
+			AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE7)
+			/* MIRACULIX */
+			/* (H17) gmii1_crs.gpio3[1] */
+			AM33XX_IOPAD(0x90c, PIN_OUTPUT_PULLDOWN | MUX_MODE7 )
+			/* (H18) rmii1_refclk.gpio0[29] */
+			AM33XX_IOPAD(0x944, PIN_OUTPUT_PULLDOWN | MUX_MODE7 )
+			/* (J18) gmii1_txd3.gpio0[16] */
+			AM33XX_IOPAD(0x91c, PIN_INPUT           | MUX_MODE7 )
+			/* (J17) gmii1_rxdv.gpio3[4] */
+			AM33XX_IOPAD(0x918, PIN_OUTPUT_PULLDOWN | MUX_MODE7 )
+		>;
+	};
+
 	guardian_beeper_pins: pinmux_dmtimer7_pins {
 		pinctrl-single,pins = <
 			AM33XX_IOPAD(0x968, PIN_OUTPUT | MUX_MODE5) /* (E18) timer7 */
@@ -422,12 +458,6 @@
 		>;
 	};
 
-	gpio_pins: pinmux_gpio_pins {
-		pinctrl-single,pins = <
-			AM33XX_IOPAD(0x928, PIN_OUTPUT | MUX_MODE7)
-			AM33XX_IOPAD(0x990, PIN_OUTPUT | MUX_MODE7)
-		>;
-	};
 
 	i2c0_pins: pinmux_i2c0_pins {
 		pinctrl-single,pins = <
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 14/15] ARM: dts: am335x: Guardian: Add gpio line manes
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (12 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 13/15] ARM: dts: am335x: Guardian: Update interface pinmux Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-03-25 10:06 ` [PATCH 15/15] ARM: dts: am335x: Guardian: Update comments Gireesh.Hiremath
  2022-04-21 11:08 ` [PATCH 00/15] am335x, guardian: update board specific dts changes Tony Lindgren
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

 * assign name to gpio line

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 74 +++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index b225210d5e11..cc56b4510930 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -382,6 +382,80 @@
 	};
 };
 
+&gpio0 {
+	gpio-line-names =
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"MirxWakeup",
+		"",
+		"";
+};
+
+&gpio3 {
+	ti,gpio-always-on;
+	ti,no-reset-on-init;
+	gpio-line-names =
+		"",
+		"MirxBtReset",
+		"",
+		"CcVolAdcEn",
+		"MirxBlePause",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"AspEn",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"BatVolAdcEn",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins>;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 15/15] ARM: dts: am335x: Guardian: Update comments
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (13 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 14/15] ARM: dts: am335x: Guardian: Add gpio line manes Gireesh.Hiremath
@ 2022-03-25 10:06 ` Gireesh.Hiremath
  2022-04-21 11:08 ` [PATCH 00/15] am335x, guardian: update board specific dts changes Tony Lindgren
  15 siblings, 0 replies; 17+ messages in thread
From: Gireesh.Hiremath @ 2022-03-25 10:06 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-omap, robh+dt, tony, bcousson
  Cc: sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias, Gireesh.Hiremath

From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

* Add comment to improve readability

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 arch/arm/boot/dts/am335x-guardian.dts | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index cc56b4510930..1a7e187b1953 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -535,8 +535,8 @@
 
 	i2c0_pins: pinmux_i2c0_pins {
 		pinctrl-single,pins = <
-			AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)
-			AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)
+			AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
+			AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
 		>;
 	};
 
@@ -668,28 +668,34 @@
 
 	mmc1_pins: pinmux_mmc1_pins {
 		pinctrl-single,pins = <
-			AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0)
-			AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0)
-			AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0)
-			AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0)
-			AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0)
-			AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0)
-			AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7)
+			AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0)  /* mmc0_dat3.mmc0_dat3 */
+			AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0)  /* mmc0_dat2.mmc0_dat2 */
+			AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0)  /* mmc0_dat1.mmc0_dat1 */
+			AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0)  /* mmc0_dat0.mmc0_dat0 */
+			AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0)  /* mmc0_clk.mmc0_clk */
+			AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0)  /* mmc0_cmd.mmc0_cmd */
+			AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7)         /* GPIO0_6 */
 		>;
 	};
 
 	spi0_pins: pinmux_spi0_pins {
 		pinctrl-single,pins = <
+			/* SPI0_CLK  - spi0_clk.spi */
 			AM33XX_IOPAD(0x950, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
+			/* SPI0_MOSI - spi0_d0.spi0 */
 			AM33XX_IOPAD(0x954, PIN_OUTPUT_PULLUP | MUX_MODE0)
+			/* SPI0_MISO - spi0_d1.spi0 */
 			AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0)
+			/* SPI0_CS0 - spi */
 			AM33XX_IOPAD(0x95c, PIN_OUTPUT_PULLUP | MUX_MODE0)
 		>;
 	};
 
 	uart0_pins: pinmux_uart0_pins {
 		pinctrl-single,pins = <
+			/* uart0_rxd.uart0_rxd */
 			AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)
+			/* uart0_txd.uart0_txd */
 			AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
 		>;
 	};
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [PATCH 00/15] am335x, guardian: update board specific dts changes
  2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
                   ` (14 preceding siblings ...)
  2022-03-25 10:06 ` [PATCH 15/15] ARM: dts: am335x: Guardian: Update comments Gireesh.Hiremath
@ 2022-04-21 11:08 ` Tony Lindgren
  15 siblings, 0 replies; 17+ messages in thread
From: Tony Lindgren @ 2022-04-21 11:08 UTC (permalink / raw)
  To: Gireesh.Hiremath
  Cc: linux-kernel, devicetree, linux-omap, robh+dt, bcousson,
	sjoerd.simons, VinayKumar.Shettar, Govindaraji.Sivanantham,
	anaclaudia.dias

* Gireesh.Hiremath@in.bosch.com <Gireesh.Hiremath@in.bosch.com> [220325 12:04]:
> From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
> 
> update guardian device tree

Thanks applying into omap-for-v5.19/dt.

Few ideas for future though.

Not sure how you handle the nand partition table changes.. Seems the partition
values in the devicetree should not change in general.

The node names in devicetree should not use "_" but "-" instead. And the node
names should be general like you mostly already have. Anyways, we have a lot
of these especially for pinctrl, but we may want to clean them up eventually.
Just FYI.

Regards,

Tony

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-04-21 11:09 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
2022-03-25 10:05 ` [PATCH 01/15] ARM: dts: am335x: Guardian: Update NAND partition table Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 02/15] ARM: dts: am335x: Guardian: Rename power button label Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 03/15] ARM: dts: am335x: Guardian: Add keypad Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 04/15] ARM: dts: am335x: Guardian: Disable poweroff support from RTC Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 05/15] ARM: dts: am335x: Guardian: Remove mmc status led Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 06/15] ARM: dts: am335x: Guardian: Update life led Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 07/15] ARM: dts: am335x: Guardian: Update beeper label Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 08/15] ARM: dts: am335x: Guardian: Update regulator node name Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 09/15] ARM: dts: am335x: Guardian: Add lcd port Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 10/15] ARM: dts: am335x: Guardian: Update backlight parameter Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 11/15] ARM: dts: am335x: Guardian: Enable UART port two Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 12/15] ARM: dts: am335x: Guardian: Disable DMA property of USB1 Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 13/15] ARM: dts: am335x: Guardian: Update interface pinmux Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 14/15] ARM: dts: am335x: Guardian: Add gpio line manes Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 15/15] ARM: dts: am335x: Guardian: Update comments Gireesh.Hiremath
2022-04-21 11:08 ` [PATCH 00/15] am335x, guardian: update board specific dts changes Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.