devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 00/13] Improve Rock 5A Device Tree
@ 2023-07-10 16:52 Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 01/13] dt-bindings: vendor-prefixes: Add prefix for belling Sebastian Reichel
                   ` (13 more replies)
  0 siblings, 14 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Hi,

This brings Rock 5A on par with the Rock 5B. All necessary driver
changes have already been merged.

-- Sebastian

Lucas Tanure (1):
  arm64: dts: rockchip: rock-5a: add SD card support

Sebastian Reichel (12):
  dt-bindings: vendor-prefixes: Add prefix for belling
  dt-bindings: at24: add Belling BL24C16A
  arm64: dts: rockchip: rock-5a: add PMIC
  arm64: dts: rockchip: rock-5a: add vdd_cpu_big regulators
  arm64: dts: rockchip: rock-5a: add 5V regulator
  arm64: dts: rockchip: rock-5a: add status LED
  arm64: dts: rockchip: rock-5a: add analog audio
  arm64: dts: rockchip: rock-5a: add I2C EEPROM
  arm64: dts: rockchip: rock-5a: add vdd_npu_s0 regulator
  arm64: dts: rockchip: rock-5a: enable I2C interface from DSI and CSI
    connectors
  arm64: dts: rockchip: rock-5a: add ADC
  arm64: dts: rockchip: rock-5a: add fan support

 .../devicetree/bindings/eeprom/at24.yaml      |   3 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 .../boot/dts/rockchip/rk3588s-rock-5a.dts     | 586 ++++++++++++++++++
 3 files changed, 591 insertions(+)

-- 
2.40.1


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

* [PATCH v1 01/13] dt-bindings: vendor-prefixes: Add prefix for belling
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 18:23   ` Conor Dooley
  2023-07-10 16:52 ` [PATCH v1 02/13] dt-bindings: at24: add Belling BL24C16A Sebastian Reichel
                   ` (12 subsequent siblings)
  13 siblings, 1 reply; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Add a vendor prefix entry for belling (https://www.belling.com.cn)

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index af60bf1a6664..c80a866477e4 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -190,6 +190,8 @@ patternProperties:
     description: Compass Electronics Group, LLC
   "^beagle,.*":
     description: BeagleBoard.org Foundation
+  "^belling,.*":
+    description: Shanghai Belling Co., Ltd.
   "^bhf,.*":
     description: Beckhoff Automation GmbH & Co. KG
   "^bitmain,.*":
-- 
2.40.1


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

* [PATCH v1 02/13] dt-bindings: at24: add Belling BL24C16A
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 01/13] dt-bindings: vendor-prefixes: Add prefix for belling Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 18:24   ` Conor Dooley
  2023-07-10 16:52 ` [PATCH v1 03/13] arm64: dts: rockchip: rock-5a: add PMIC Sebastian Reichel
                   ` (11 subsequent siblings)
  13 siblings, 1 reply; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Add binding for Belling BL24C16A, which is compatible with Atmel 24C16.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 Documentation/devicetree/bindings/eeprom/at24.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
index 84af0d5f52aa..2ec37c11286c 100644
--- a/Documentation/devicetree/bindings/eeprom/at24.yaml
+++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
@@ -101,6 +101,9 @@ properties:
                   pattern: spd$
       # These are special cases that don't conform to the above pattern.
       # Each requires a standard at24 model as fallback.
+      - items:
+          - const: belling,bl24c16a
+          - const: atmel,24c16
       - items:
           - enum:
               - rohm,br24g01
-- 
2.40.1


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

* [PATCH v1 03/13] arm64: dts: rockchip: rock-5a: add PMIC
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 01/13] dt-bindings: vendor-prefixes: Add prefix for belling Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 02/13] dt-bindings: at24: add Belling BL24C16A Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 04/13] arm64: dts: rockchip: rock-5a: add vdd_cpu_big regulators Sebastian Reichel
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

This adds PMIC support for the Radxa ROCK 5A

Co-developed-by: shengfei Xu <xsf@rock-chips.com>
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 .../boot/dts/rockchip/rk3588s-rock-5a.dts     | 368 ++++++++++++++++++
 1 file changed, 368 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 901825514f9d..9b5c47b78eea 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -18,6 +18,51 @@ aliases {
 	chosen {
 		stdout-path = "serial2:1500000n8";
 	};
+
+	vcc12v_dcin: vcc12v-dcin {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc12v_dcin";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+	};
+
+	vcc5v0_sys: vcc5v0-sys {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc5v0_sys";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&vcc12v_dcin>;
+	};
+
+	vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_1v1_nldo_s3";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <1100000>;
+		regulator-max-microvolt = <1100000>;
+		vin-supply = <&vcc5v0_sys>;
+	};
+};
+
+&cpu_l0 {
+	cpu-supply = <&vdd_cpu_lit_s0>;
+};
+
+&cpu_l1 {
+	cpu-supply = <&vdd_cpu_lit_s0>;
+};
+
+&cpu_l2 {
+	cpu-supply = <&vdd_cpu_lit_s0>;
+};
+
+&cpu_l3 {
+	cpu-supply = <&vdd_cpu_lit_s0>;
 };
 
 &gmac1 {
@@ -67,6 +112,329 @@ &sdhci {
 	status = "okay";
 };
 
+&spi2 {
+	status = "okay";
+	assigned-clocks = <&cru CLK_SPI2>;
+	assigned-clock-rates = <200000000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
+	num-cs = <1>;
+
+	pmic@0 {
+		compatible = "rockchip,rk806";
+		spi-max-frequency = <1000000>;
+		reg = <0x0>;
+
+		interrupt-parent = <&gpio0>;
+		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
+			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
+
+		vcc1-supply = <&vcc5v0_sys>;
+		vcc2-supply = <&vcc5v0_sys>;
+		vcc3-supply = <&vcc5v0_sys>;
+		vcc4-supply = <&vcc5v0_sys>;
+		vcc5-supply = <&vcc5v0_sys>;
+		vcc6-supply = <&vcc5v0_sys>;
+		vcc7-supply = <&vcc5v0_sys>;
+		vcc8-supply = <&vcc5v0_sys>;
+		vcc9-supply = <&vcc5v0_sys>;
+		vcc10-supply = <&vcc5v0_sys>;
+		vcc11-supply = <&vcc_2v0_pldo_s3>;
+		vcc12-supply = <&vcc5v0_sys>;
+		vcc13-supply = <&vcc_1v1_nldo_s3>;
+		vcc14-supply = <&vcc_1v1_nldo_s3>;
+		vcca-supply = <&vcc5v0_sys>;
+
+		gpio-controller;
+		#gpio-cells = <2>;
+
+		rk806_dvs1_null: dvs1-null-pins {
+			pins = "gpio_pwrctrl2";
+			function = "pin_fun0";
+		};
+
+		rk806_dvs2_null: dvs2-null-pins {
+			pins = "gpio_pwrctrl2";
+			function = "pin_fun0";
+		};
+
+		rk806_dvs3_null: dvs3-null-pins {
+			pins = "gpio_pwrctrl3";
+			function = "pin_fun0";
+		};
+
+		regulators {
+			vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 {
+				regulator-boot-on;
+				regulator-min-microvolt = <550000>;
+				regulator-max-microvolt = <950000>;
+				regulator-ramp-delay = <12500>;
+				regulator-name = "vdd_gpu_s0";
+				regulator-enable-ramp-delay = <400>;
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <550000>;
+				regulator-max-microvolt = <950000>;
+				regulator-ramp-delay = <12500>;
+				regulator-name = "vdd_cpu_lit_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vdd_log_s0: dcdc-reg3 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <675000>;
+				regulator-max-microvolt = <750000>;
+				regulator-ramp-delay = <12500>;
+				regulator-name = "vdd_log_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+					regulator-suspend-microvolt = <750000>;
+				};
+			};
+
+			vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <550000>;
+				regulator-max-microvolt = <950000>;
+				regulator-ramp-delay = <12500>;
+				regulator-name = "vdd_vdenc_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vdd_ddr_s0: dcdc-reg5 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <675000>;
+				regulator-max-microvolt = <900000>;
+				regulator-ramp-delay = <12500>;
+				regulator-name = "vdd_ddr_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+					regulator-suspend-microvolt = <850000>;
+				};
+			};
+
+			vdd2_ddr_s3: dcdc-reg6 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-name = "vdd2_ddr_s3";
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+				};
+			};
+
+			vcc_2v0_pldo_s3: dcdc-reg7 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <2000000>;
+				regulator-max-microvolt = <2000000>;
+				regulator-ramp-delay = <12500>;
+				regulator-name = "vdd_2v0_pldo_s3";
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+					regulator-suspend-microvolt = <2000000>;
+				};
+			};
+
+			vcc_3v3_s3: dcdc-reg8 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-name = "vcc_3v3_s3";
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+					regulator-suspend-microvolt = <3300000>;
+				};
+			};
+
+			vddq_ddr_s0: dcdc-reg9 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-name = "vddq_ddr_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vcc_1v8_s3: dcdc-reg10 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-name = "vcc_1v8_s3";
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+					regulator-suspend-microvolt = <1800000>;
+				};
+			};
+
+			avcc_1v8_s0: pldo-reg1 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-name = "avcc_1v8_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vcc_1v8_s0: pldo-reg2 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-name = "vcc_1v8_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+					regulator-suspend-microvolt = <1800000>;
+				};
+			};
+
+			avdd_1v2_s0: pldo-reg3 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <1200000>;
+				regulator-max-microvolt = <1200000>;
+				regulator-name = "avdd_1v2_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vcc_3v3_s0: pldo-reg4 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-ramp-delay = <12500>;
+				regulator-name = "vcc_3v3_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vccio_sd_s0: pldo-reg5 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-ramp-delay = <12500>;
+				regulator-name = "vccio_sd_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			pldo6_s3: pldo-reg6 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-name = "pldo6_s3";
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+					regulator-suspend-microvolt = <1800000>;
+				};
+			};
+
+			vdd_0v75_s3: nldo-reg1 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <750000>;
+				regulator-max-microvolt = <750000>;
+				regulator-name = "vdd_0v75_s3";
+
+				regulator-state-mem {
+					regulator-on-in-suspend;
+					regulator-suspend-microvolt = <750000>;
+				};
+			};
+
+			vdd_ddr_pll_s0: nldo-reg2 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <850000>;
+				regulator-max-microvolt = <850000>;
+				regulator-name = "vdd_ddr_pll_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+					regulator-suspend-microvolt = <850000>;
+				};
+			};
+
+			avdd_0v75_s0: nldo-reg3 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <750000>;
+				regulator-max-microvolt = <750000>;
+				regulator-name = "avdd_0v75_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vdd_0v85_s0: nldo-reg4 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <850000>;
+				regulator-max-microvolt = <850000>;
+				regulator-name = "vdd_0v85_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+
+			vdd_0v75_s0: nldo-reg5 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-min-microvolt = <750000>;
+				regulator-max-microvolt = <750000>;
+				regulator-name = "vdd_0v75_s0";
+
+				regulator-state-mem {
+					regulator-off-in-suspend;
+				};
+			};
+		};
+	};
+};
+
 &uart2 {
 	pinctrl-0 = <&uart2m0_xfer>;
 	status = "okay";
-- 
2.40.1


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

* [PATCH v1 04/13] arm64: dts: rockchip: rock-5a: add vdd_cpu_big regulators
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (2 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 03/13] arm64: dts: rockchip: rock-5a: add PMIC Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 05/13] arm64: dts: rockchip: rock-5a: add 5V regulator Sebastian Reichel
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

The RK8602 and RK8603 voltage regulators on the Rock 5A board provide
the power lines vdd_cpu_big0 and vdd_cpu_big1, respectively.

Add the necessary device tree nodes and bind them to the corresponding
CPU big core nodes.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 .../boot/dts/rockchip/rk3588s-rock-5a.dts     | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 9b5c47b78eea..616a6bcfd60b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -49,6 +49,22 @@ vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 {
 	};
 };
 
+&cpu_b0 {
+	cpu-supply = <&vdd_cpu_big0_s0>;
+};
+
+&cpu_b1 {
+	cpu-supply = <&vdd_cpu_big0_s0>;
+};
+
+&cpu_b2 {
+	cpu-supply = <&vdd_cpu_big1_s0>;
+};
+
+&cpu_b3 {
+	cpu-supply = <&vdd_cpu_big1_s0>;
+};
+
 &cpu_l0 {
 	cpu-supply = <&vdd_cpu_lit_s0>;
 };
@@ -65,6 +81,46 @@ &cpu_l3 {
 	cpu-supply = <&vdd_cpu_lit_s0>;
 };
 
+&i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0m2_xfer>;
+	status = "okay";
+
+	vdd_cpu_big0_s0: regulator@42 {
+		compatible = "rockchip,rk8602";
+		reg = <0x42>;
+		fcs,suspend-voltage-selector = <1>;
+		regulator-name = "vdd_cpu_big0_s0";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <550000>;
+		regulator-max-microvolt = <1050000>;
+		regulator-ramp-delay = <2300>;
+		vin-supply = <&vcc5v0_sys>;
+
+		regulator-state-mem {
+			regulator-off-in-suspend;
+		};
+	};
+
+	vdd_cpu_big1_s0: regulator@43 {
+		compatible = "rockchip,rk8603", "rockchip,rk8602";
+		reg = <0x43>;
+		fcs,suspend-voltage-selector = <1>;
+		regulator-name = "vdd_cpu_big1_s0";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <550000>;
+		regulator-max-microvolt = <1050000>;
+		regulator-ramp-delay = <2300>;
+		vin-supply = <&vcc5v0_sys>;
+
+		regulator-state-mem {
+			regulator-off-in-suspend;
+		};
+	};
+};
+
 &gmac1 {
 	clock_in_out = "output";
 	phy-handle = <&rgmii_phy1>;
-- 
2.40.1


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

* [PATCH v1 05/13] arm64: dts: rockchip: rock-5a: add 5V regulator
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (3 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 04/13] arm64: dts: rockchip: rock-5a: add vdd_cpu_big regulators Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 06/13] arm64: dts: rockchip: rock-5a: add SD card support Sebastian Reichel
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Add GPIO controlled 5V regulator, which is used for supplying
the fan, on-board USB hub and HDMI.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 .../boot/dts/rockchip/rk3588s-rock-5a.dts     | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 616a6bcfd60b..87864a991b50 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -38,6 +38,20 @@ vcc5v0_sys: vcc5v0-sys {
 		vin-supply = <&vcc12v_dcin>;
 	};
 
+	vcc_5v0: vcc-5v0 {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_5v0";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		regulator-boot-on;
+		regulator-always-on;
+		enable-active-high;
+		gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&vcc_5v0_en>;
+		vin-supply = <&vcc5v0_sys>;
+	};
+
 	vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc_1v1_nldo_s3";
@@ -150,6 +164,12 @@ rgmii_phy1: ethernet-phy@1 {
 };
 
 &pinctrl {
+	power {
+		vcc_5v0_en: vcc-5v0-en {
+			rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	rtl8211f {
 		rtl8211f_rst: rtl8211f-rst {
 			rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
-- 
2.40.1


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

* [PATCH v1 06/13] arm64: dts: rockchip: rock-5a: add SD card support
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (4 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 05/13] arm64: dts: rockchip: rock-5a: add 5V regulator Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 07/13] arm64: dts: rockchip: rock-5a: add status LED Sebastian Reichel
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Lucas Tanure, kernel,
	Sebastian Reichel

From: Lucas Tanure <lucas.tanure@collabora.com>

Add sdmmc support for Rock Pi 5A board.

Signed-off-by: Lucas Tanure <lucas.tanure@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 87864a991b50..19e05dba2794 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -188,6 +188,20 @@ &sdhci {
 	status = "okay";
 };
 
+&sdmmc {
+	max-frequency = <150000000>;
+	no-sdio;
+	no-mmc;
+	bus-width = <4>;
+	cap-mmc-highspeed;
+	cap-sd-highspeed;
+	disable-wp;
+	sd-uhs-sdr104;
+	vmmc-supply = <&vcc_3v3_s0>;
+	vqmmc-supply = <&vccio_sd_s0>;
+	status = "okay";
+};
+
 &spi2 {
 	status = "okay";
 	assigned-clocks = <&cru CLK_SPI2>;
-- 
2.40.1


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

* [PATCH v1 07/13] arm64: dts: rockchip: rock-5a: add status LED
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (5 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 06/13] arm64: dts: rockchip: rock-5a: add SD card support Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 08/13] arm64: dts: rockchip: rock-5a: add analog audio Sebastian Reichel
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Describe the Rock 5A status LED in its device tree.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 .../boot/dts/rockchip/rk3588s-rock-5a.dts     | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 19e05dba2794..5bad81c5b09d 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -3,6 +3,7 @@
 /dts-v1/;
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/pinctrl/rockchip.h>
 #include "rk3588s.dtsi"
 
@@ -19,6 +20,19 @@ chosen {
 		stdout-path = "serial2:1500000n8";
 	};
 
+	leds {
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&io_led>;
+
+		io-led {
+			function = LED_FUNCTION_STATUS;
+			color = <LED_COLOR_ID_BLUE>;
+			gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+		};
+	};
+
 	vcc12v_dcin: vcc12v-dcin {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc12v_dcin";
@@ -164,6 +178,12 @@ rgmii_phy1: ethernet-phy@1 {
 };
 
 &pinctrl {
+	leds {
+		io_led: io-led {
+			rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
+
 	power {
 		vcc_5v0_en: vcc-5v0-en {
 			rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
-- 
2.40.1


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

* [PATCH v1 08/13] arm64: dts: rockchip: rock-5a: add analog audio
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (6 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 07/13] arm64: dts: rockchip: rock-5a: add status LED Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 09/13] arm64: dts: rockchip: rock-5a: add I2C EEPROM Sebastian Reichel
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Add analog audio support based on the Everest Semi ES8316 codec.

Note, that this currently does not support headphone plug events. The
Rock 5A uses a different headphone jack with a different logic to detect
a headphone plug. Unfortunately the detect GPIO is always low.
Downstream uses an ADC channel instead, but that is currently not
supported upstream.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 .../boot/dts/rockchip/rk3588s-rock-5a.dts     | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 5bad81c5b09d..4c6c87d462e9 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -16,6 +16,20 @@ aliases {
 		serial2 = &uart2;
 	};
 
+	analog-sound {
+		compatible = "audio-graph-card";
+		label = "rk3588-es8316";
+
+		widgets = "Microphone", "Mic Jack",
+			  "Headphone", "Headphones";
+
+		routing = "MIC2", "Mic Jack",
+			  "Headphones", "HPOL",
+			  "Headphones", "HPOR";
+
+		dais = <&i2s0_8ch_p0>;
+	};
+
 	chosen {
 		stdout-path = "serial2:1500000n8";
 	};
@@ -149,6 +163,44 @@ regulator-state-mem {
 	};
 };
 
+&i2c7 {
+	status = "okay";
+
+	es8316: audio-codec@11 {
+		compatible = "everest,es8316";
+		reg = <0x11>;
+		clocks = <&cru I2S0_8CH_MCLKOUT>;
+		clock-names = "mclk";
+		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
+		assigned-clock-rates = <12288000>;
+		#sound-dai-cells = <0>;
+
+		port {
+			es8316_p0_0: endpoint {
+				remote-endpoint = <&i2s0_8ch_p0_0>;
+			};
+		};
+	};
+};
+
+&i2s0_8ch {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2s0_lrck
+		     &i2s0_mclk
+		     &i2s0_sclk
+		     &i2s0_sdi0
+		     &i2s0_sdo0>;
+	status = "okay";
+
+	i2s0_8ch_p0: port {
+		i2s0_8ch_p0_0: endpoint {
+			dai-format = "i2s";
+			mclk-fs = <256>;
+			remote-endpoint = <&es8316_p0_0>;
+		};
+	};
+};
+
 &gmac1 {
 	clock_in_out = "output";
 	phy-handle = <&rgmii_phy1>;
-- 
2.40.1


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

* [PATCH v1 09/13] arm64: dts: rockchip: rock-5a: add I2C EEPROM
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (7 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 08/13] arm64: dts: rockchip: rock-5a: add analog audio Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 10/13] arm64: dts: rockchip: rock-5a: add vdd_npu_s0 regulator Sebastian Reichel
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Add the I2C EEPROM to the Rock 5A DT.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 4c6c87d462e9..0b18d4230eef 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -163,6 +163,16 @@ regulator-state-mem {
 	};
 };
 
+&i2c2 {
+	status = "okay";
+
+	eeprom: eeprom@50 {
+		compatible = "belling,bl24c16a", "atmel,24c16";
+		reg = <0x50>;
+		pagesize = <16>;
+	};
+};
+
 &i2c7 {
 	status = "okay";
 
-- 
2.40.1


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

* [PATCH v1 10/13] arm64: dts: rockchip: rock-5a: add vdd_npu_s0 regulator
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (8 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 09/13] arm64: dts: rockchip: rock-5a: add I2C EEPROM Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 11/13] arm64: dts: rockchip: rock-5a: enable I2C interface from DSI and CSI connectors Sebastian Reichel
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Add the NPU regulator.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 .../arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 0b18d4230eef..c4471dfe574f 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -166,6 +166,23 @@ regulator-state-mem {
 &i2c2 {
 	status = "okay";
 
+	vdd_npu_s0: rk8602@42 {
+		compatible = "rockchip,rk8602";
+		reg = <0x42>;
+		fcs,suspend-voltage-selector = <1>;
+		regulator-name = "vdd_npu_s0";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <550000>;
+		regulator-max-microvolt = <950000>;
+		regulator-ramp-delay = <2300>;
+		vin-supply = <&vcc5v0_sys>;
+
+		regulator-state-mem {
+			regulator-off-in-suspend;
+		};
+	};
+
 	eeprom: eeprom@50 {
 		compatible = "belling,bl24c16a", "atmel,24c16";
 		reg = <0x50>;
-- 
2.40.1


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

* [PATCH v1 11/13] arm64: dts: rockchip: rock-5a: enable I2C interface from DSI and CSI connectors
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (9 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 10/13] arm64: dts: rockchip: rock-5a: add vdd_npu_s0 regulator Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 12/13] arm64: dts: rockchip: rock-5a: add ADC Sebastian Reichel
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

I2C3 is routed to the Camera connector and I2C5 is routed to the LCD
connector. On I2C5 additionally there is an unpopulated footprint for
a HYM8563TS RTC.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index c4471dfe574f..01822dda0b2d 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -190,6 +190,16 @@ eeprom: eeprom@50 {
 	};
 };
 
+&i2c3 {
+	status = "okay";
+};
+
+&i2c5 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c5m2_xfer>;
+};
+
 &i2c7 {
 	status = "okay";
 
-- 
2.40.1


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

* [PATCH v1 12/13] arm64: dts: rockchip: rock-5a: add ADC
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (10 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 11/13] arm64: dts: rockchip: rock-5a: enable I2C interface from DSI and CSI connectors Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-10 16:52 ` [PATCH v1 13/13] arm64: dts: rockchip: rock-5a: add fan support Sebastian Reichel
  2023-07-11 13:29 ` [PATCH v1 00/13] Improve Rock 5A Device Tree Heiko Stuebner
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Enable ADC support for Rock 5A, which has the following ADC channels:

Channel 0 = Boot Mode Config
Channel 1 = Recovery Key
Channel 2 = PWM Fan
Channel 3 = Headphone Hook
Channel 4 = System Input Voltage
Channel 5 = Board ID Config

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 01822dda0b2d..156c93b22382 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -286,6 +286,11 @@ rtl8211f_rst: rtl8211f-rst {
 	};
 };
 
+&saradc {
+	vref-supply = <&avcc_1v8_s0>;
+	status = "okay";
+};
+
 &sdhci {
 	bus-width = <8>;
 	no-sdio;
-- 
2.40.1


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

* [PATCH v1 13/13] arm64: dts: rockchip: rock-5a: add fan support
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (11 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 12/13] arm64: dts: rockchip: rock-5a: add ADC Sebastian Reichel
@ 2023-07-10 16:52 ` Sebastian Reichel
  2023-07-11 13:29 ` [PATCH v1 00/13] Improve Rock 5A Device Tree Heiko Stuebner
  13 siblings, 0 replies; 17+ messages in thread
From: Sebastian Reichel @ 2023-07-10 16:52 UTC (permalink / raw)
  To: linux-rockchip, Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, linux-arm-kernel, Sebastian Reichel, kernel

Add the necessary DT changes for the Rock 5A board to enable support for
the PWM controlled heat sink fan.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
index 156c93b22382..ad6fec5514a0 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
@@ -47,6 +47,14 @@ io-led {
 		};
 	};
 
+	fan: pwm-fan {
+		compatible = "pwm-fan";
+		cooling-levels = <0 95 145 195 255>;
+		fan-supply = <&vcc_5v0>;
+		pwms = <&pwm3 0 50000 0>;
+		#cooling-cells = <2>;
+	};
+
 	vcc12v_dcin: vcc12v-dcin {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc12v_dcin";
@@ -286,6 +294,12 @@ rtl8211f_rst: rtl8211f-rst {
 	};
 };
 
+&pwm3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pwm3m1_pins>;
+	status = "okay";
+};
+
 &saradc {
 	vref-supply = <&avcc_1v8_s0>;
 	status = "okay";
-- 
2.40.1


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

* Re: [PATCH v1 01/13] dt-bindings: vendor-prefixes: Add prefix for belling
  2023-07-10 16:52 ` [PATCH v1 01/13] dt-bindings: vendor-prefixes: Add prefix for belling Sebastian Reichel
@ 2023-07-10 18:23   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2023-07-10 18:23 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: linux-rockchip, Heiko Stuebner, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, linux-kernel, linux-arm-kernel, kernel

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

On Mon, Jul 10, 2023 at 06:52:16PM +0200, Sebastian Reichel wrote:
> Add a vendor prefix entry for belling (https://www.belling.com.cn)
> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Cheers,
Conor.

> ---
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> index af60bf1a6664..c80a866477e4 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -190,6 +190,8 @@ patternProperties:
>      description: Compass Electronics Group, LLC
>    "^beagle,.*":
>      description: BeagleBoard.org Foundation
> +  "^belling,.*":
> +    description: Shanghai Belling Co., Ltd.
>    "^bhf,.*":
>      description: Beckhoff Automation GmbH & Co. KG
>    "^bitmain,.*":
> -- 
> 2.40.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [PATCH v1 02/13] dt-bindings: at24: add Belling BL24C16A
  2023-07-10 16:52 ` [PATCH v1 02/13] dt-bindings: at24: add Belling BL24C16A Sebastian Reichel
@ 2023-07-10 18:24   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2023-07-10 18:24 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: linux-rockchip, Heiko Stuebner, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, linux-kernel, linux-arm-kernel, kernel

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

On Mon, Jul 10, 2023 at 06:52:17PM +0200, Sebastian Reichel wrote:
> Add binding for Belling BL24C16A, which is compatible with Atmel 24C16.
> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Cheers,
Conor.

> ---
>  Documentation/devicetree/bindings/eeprom/at24.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
> index 84af0d5f52aa..2ec37c11286c 100644
> --- a/Documentation/devicetree/bindings/eeprom/at24.yaml
> +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
> @@ -101,6 +101,9 @@ properties:
>                    pattern: spd$
>        # These are special cases that don't conform to the above pattern.
>        # Each requires a standard at24 model as fallback.
> +      - items:
> +          - const: belling,bl24c16a
> +          - const: atmel,24c16
>        - items:
>            - enum:
>                - rohm,br24g01
> -- 
> 2.40.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [PATCH v1 00/13] Improve Rock 5A Device Tree
  2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
                   ` (12 preceding siblings ...)
  2023-07-10 16:52 ` [PATCH v1 13/13] arm64: dts: rockchip: rock-5a: add fan support Sebastian Reichel
@ 2023-07-11 13:29 ` Heiko Stuebner
  13 siblings, 0 replies; 17+ messages in thread
From: Heiko Stuebner @ 2023-07-11 13:29 UTC (permalink / raw)
  To: Sebastian Reichel, linux-rockchip
  Cc: Heiko Stuebner, Rob Herring, linux-arm-kernel,
	Krzysztof Kozlowski, devicetree, Conor Dooley, kernel,
	linux-kernel

On Mon, 10 Jul 2023 18:52:15 +0200, Sebastian Reichel wrote:
> This brings Rock 5A on par with the Rock 5B. All necessary driver
> changes have already been merged.
> 
> -- Sebastian
> 
> Lucas Tanure (1):
>   arm64: dts: rockchip: rock-5a: add SD card support
> 
> [...]

Applied, thanks!

After talking with Arnd on IRC, I also picked the two binding patches
for the eeprom.

I also fixed a number of nits when applying:
- "-regulator" suffix was missing on most added fixed regulators
- one regulator@42 was instead a rk6*@42
- some ordering issues


[01/13] dt-bindings: vendor-prefixes: Add prefix for belling
        commit: 3dc9c73e65fbe1d8b4762b2ef763d8f5941e87bb
[02/13] dt-bindings: at24: add Belling BL24C16A
        commit: 892e989559c7352cd8cacc95729aa6d5bf63b897
[03/13] arm64: dts: rockchip: rock-5a: add PMIC
        commit: 75fdcbc8f4c1557545aaabe3f3d41a7337a1ffd8
[04/13] arm64: dts: rockchip: rock-5a: add vdd_cpu_big regulators
        commit: 4bbca5c7f4f0175c95588709535e3466a936dd2e
[05/13] arm64: dts: rockchip: rock-5a: add 5V regulator
        commit: 53bf040e14c0245711a3cae6f3259e589ac8171b
[06/13] arm64: dts: rockchip: rock-5a: add SD card support
        commit: ea3e66e7ad0d8ca1a4248a55e235fa27817ac3da
[07/13] arm64: dts: rockchip: rock-5a: add status LED
        commit: db02f866b140dc04eb13da8bc8d9b1e36232102c
[08/13] arm64: dts: rockchip: rock-5a: add analog audio
        commit: fb031e6275fc165100a2bf65d630872b89a97c08
[09/13] arm64: dts: rockchip: rock-5a: add I2C EEPROM
        commit: 89c880808cff8bc6f1ea6e1b5edc603e6232310e
[10/13] arm64: dts: rockchip: rock-5a: add vdd_npu_s0 regulator
        commit: afc3925f694a1a16f38ce66dfc7dcf88cc77b8ee
[11/13] arm64: dts: rockchip: rock-5a: enable I2C interface from DSI and CSI connectors
        commit: aa00cf88bd8c5ac22f4da9ae390790268b111f97
[12/13] arm64: dts: rockchip: rock-5a: add ADC
        commit: 43465c67518c3d2e6293e9d97e577de434ad682b
[13/13] arm64: dts: rockchip: rock-5a: add fan support
        commit: dd4464ecced6f07b0e62f67752928d1424883dee

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

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

end of thread, other threads:[~2023-07-11 13:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-10 16:52 [PATCH v1 00/13] Improve Rock 5A Device Tree Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 01/13] dt-bindings: vendor-prefixes: Add prefix for belling Sebastian Reichel
2023-07-10 18:23   ` Conor Dooley
2023-07-10 16:52 ` [PATCH v1 02/13] dt-bindings: at24: add Belling BL24C16A Sebastian Reichel
2023-07-10 18:24   ` Conor Dooley
2023-07-10 16:52 ` [PATCH v1 03/13] arm64: dts: rockchip: rock-5a: add PMIC Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 04/13] arm64: dts: rockchip: rock-5a: add vdd_cpu_big regulators Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 05/13] arm64: dts: rockchip: rock-5a: add 5V regulator Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 06/13] arm64: dts: rockchip: rock-5a: add SD card support Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 07/13] arm64: dts: rockchip: rock-5a: add status LED Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 08/13] arm64: dts: rockchip: rock-5a: add analog audio Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 09/13] arm64: dts: rockchip: rock-5a: add I2C EEPROM Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 10/13] arm64: dts: rockchip: rock-5a: add vdd_npu_s0 regulator Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 11/13] arm64: dts: rockchip: rock-5a: enable I2C interface from DSI and CSI connectors Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 12/13] arm64: dts: rockchip: rock-5a: add ADC Sebastian Reichel
2023-07-10 16:52 ` [PATCH v1 13/13] arm64: dts: rockchip: rock-5a: add fan support Sebastian Reichel
2023-07-11 13:29 ` [PATCH v1 00/13] Improve Rock 5A Device Tree Heiko Stuebner

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).