From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B02E9227EA8 for ; Fri, 19 Sep 2025 14:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758293012; cv=none; b=UMmMqCOkrcTrp+I/2aWlAYS/Ns8SvtiD2O06rq6XhR/eZyEKpTVWdwWaDEeEyMAsnKlLcp6iSHvu8kHAbYHBbepQO9vnBvbMTmzh87VLOVLptULtl0W4t9LFqysPptyalw0gODU2famX5uaLtLL4OwhkOqei40HaITq2JHq6LB8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758293012; c=relaxed/simple; bh=SH7yxLu4/6TLsOZ88TaRyqPYYv3Btz3WCab4neycCqo=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=Anf9c2GcgulFAsh7JUqnuAKEZc9LRDKgnLAkUi5THKws/VoPadX54+GFN6hhWTBxu8jUpAI3s+f+te4da++KpdErMtsWLSdnCmnPemanSPnE2R4n9uv8DAWEh8H2eBWQgY4PMar1GYnjOIAM8AVEa9WHuBE2vd4o38uow7irxns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=q2c2P1XX; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q2c2P1XX" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-45df7dc1b98so13956235e9.1 for ; Fri, 19 Sep 2025 07:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1758293008; x=1758897808; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=SWUtL1UQ6+yUSLVklwzlRQU7PKxN439/50grQVTKRY0=; b=q2c2P1XX2DGyCS8vDQ2lvN7Mz+mseGcX666UNnmmxMO7j1xv4LcS1RUhgZNgBf5vl9 YA48HNAUcBMXL+yD2LuIxrzw/N62BxwrTmupl91Vp8q6hHNzqP/gUeT2TY/7Q98zycIh Vc/aswOJrMNq1cRKY4HlYkMQ9XYJnPU9eAeVBEFeSP7QsgwMOJ3FLehq3h9istTHpARi GgI3sS63ggISKpkfn4X0h4RUQIAXm4bhTWkzrClinscB3K+Ik+Y9p/OFjL8RdnIqkcbs HoZ5vaZXsB7OP9CViV1Es0NylvoQM3ghyEwADsHdDfnkvmsvS15Ffejz5pTsglgcgRBm qQdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758293008; x=1758897808; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=SWUtL1UQ6+yUSLVklwzlRQU7PKxN439/50grQVTKRY0=; b=XhfN4MptEL+vvFvZ6RNlMOesOFz1IBVL8i40/PnVU4v6231xkLetLnlAx8jfsbcueT WjpazXWR0LoIvzvgRch2nHpMnYhDBmvpMaLchUn0pHX//sGMKFvpsaxz375Ttz+zb/aK XIj8DCkh1wqIJNNPCZsFuY7jX7FGmhDUNTTXWE34x8/Hf5S5C5KR7yif54/U9pNbSSad W6r++qt8/S1ZAy7m6Ynku4qcFdsm6H6xXowYlELGIM4spDTUkKqjhYFeIW0W4GkqtC61 FSdpfHRIx407tSR+M+W4MgmrjSZyqkcxk4QBjfHvGKDWlOTGWYgnIEIyZ+jMPC1D6HoR Kd6Q== X-Forwarded-Encrypted: i=1; AJvYcCVz6BWCBADIn1v36FoOse5ctOt30jGIzJjZjDaC+IyKiavPHzO/DAZpZF4cd79toM0hOBdCCrK6TLZv@vger.kernel.org X-Gm-Message-State: AOJu0YysFMn8YGbaMDIOFJO3d+/1aLT+/jqcbdorVr+jl3cBwM4/od3U xESHKGm6Wolf7y58mFtx51DG7QVAtKmpAjePYTsudrr6M1plkVoXI3HHh1eC+ImJMP0= X-Gm-Gg: ASbGncsSwZNok1H59TCX4lV2Gy2grY1i9J5jNwyUs/r7OfLB+y9MN7k7STCC70yYlkm 7Ky0iDPPV1apt2GA7boTdkU1a3VoYD8yReU9YISFGQf5NEkDipmhQLA3nUQ3GpoSTOLvrLgM4Ba qBBkr1DVvxQ5Z+8ltMpi4kWHMAqrbSPt1VPiINy9GhBuuALZy7xIeWSGGDtBeMPFdNsFHoZi1D3 QEq4zaZNA5EhjOD/zmBmkpfGmrCn1EFXRj5kccTdJbMSAStNtEzLyE0mv5UClobeAdOl+osGjV6 QeOoo3WfSme1ijB3On8Oz/xNJXHgpIpOUtXzORz+CR86CL5gffKOLHYZX6EQYEk9fwHsCuhRK9V xiWHunEvyeWz0HT5a1+f+WPme5ErdOUD3ZOywMW35SrR1/F3Wyq46ObFWbHMsgFD0RMho9Jg/ X-Google-Smtp-Source: AGHT+IHCWl7rYd87fEkv3gPY4LPDSQXSViH2/pCqHBtI1svI/kh5EQAbPk2h8jWXnmgX+A4zRGpPIw== X-Received: by 2002:a05:600c:8b4b:b0:456:1a69:94fa with SMTP id 5b1f17b1804b1-467e7f7d89dmr29564495e9.13.1758293007734; Fri, 19 Sep 2025 07:43:27 -0700 (PDT) Received: from ?IPV6:2a01:e0a:3d9:2080:77b3:66a:b2a0:c20f? ([2a01:e0a:3d9:2080:77b3:66a:b2a0:c20f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4613d42bee6sm131246365e9.15.2025.09.19.07.43.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Sep 2025 07:43:27 -0700 (PDT) Message-ID: <36345378-6fd5-4a48-b5ea-0fcb6abda7ba@linaro.org> Date: Fri, 19 Sep 2025 16:43:26 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH RESEND] dts: arm64: amlogic: Add ISP related nodes for C3 To: keke.li@amlogic.com, Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250918-b4-c3isp-v1-1-5f48db6516c9@amlogic.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN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iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20250918-b4-c3isp-v1-1-5f48db6516c9@amlogic.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 18/09/2025 10:35, Keke Li via B4 Relay wrote: > From: Keke Li > > Add the IMX290 sensor node description to the device tree file, > which will be controlled via I2C bus with image data transmission > through MIPI CSI-2 interface. > > Add CSI-2, adapter and ISP nodes for C3 family. > > Signed-off-by: Keke Li > --- > The C3 ISP driver and device-tree bindings have been > submitted. To facilitate using the C3 ISP driver, the > related device nodes need to be added. No need to resend until the bindings are merged. Neil > --- > .../boot/dts/amlogic/amlogic-c3-c308l-aw419.dts | 84 +++++++++++++++++++++ > arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 88 ++++++++++++++++++++++ > 2 files changed, 172 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3-c308l-aw419.dts b/arch/arm64/boot/dts/amlogic/amlogic-c3-c308l-aw419.dts > index 45f8631f9feb..e026604c55e6 100644 > --- a/arch/arm64/boot/dts/amlogic/amlogic-c3-c308l-aw419.dts > +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3-c308l-aw419.dts > @@ -17,6 +17,7 @@ / { > aliases { > serial0 = &uart_b; > spi0 = &spifc; > + i2c2 = &i2c2; > }; > > memory@0 { > @@ -146,6 +147,36 @@ sdcard: regulator-sdcard { > regulator-boot-on; > regulator-always-on; > }; > + > + camera_vdddo_1v8: regulator-camera-1v8 { > + compatible = "regulator-fixed"; > + regulator-name = "CAMERA_VDDDO"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + vin-supply = <&vcc_3v3>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + camera_vdda_2v9: regulator-camera-2v9 { > + compatible = "regulator-fixed"; > + regulator-name = "CAMERA_VDDA"; > + regulator-min-microvolt = <2900000>; > + regulator-max-microvolt = <2900000>; > + vin-supply = <&vcc_5v>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + camera_vddd_1v2: regulator-camera-1v2 { > + compatible = "regulator-fixed"; > + regulator-name = "CAMERA_VDDD"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + vin-supply = <&vcc_3v3>; > + regulator-boot-on; > + regulator-always-on; > + }; > }; > > &uart_b { > @@ -258,3 +289,56 @@ &sd { > vmmc-supply = <&sdcard>; > vqmmc-supply = <&sdcard>; > }; > + > +&i2c2 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c2_pins1>; > + clock-frequency = <100000>; /* default 100k */ > + > + imx290: sensor0@1a { > + compatible = "sony,imx290"; > + reg = <0x1a>; > + clocks = <&clkc_pll CLKID_MCLK0>; > + clock-names = "xclk"; > + clock-frequency = <37125000>; > + assigned-clocks = <&clkc_pll CLKID_MCLK_PLL>, > + <&clkc_pll CLKID_MCLK0>; > + assigned-clock-rates = <74250000>, <37125000>; > + > + vdddo-supply = <&camera_vdddo_1v8>; > + vdda-supply = <&camera_vdda_2v9>; > + vddd-supply = <&camera_vddd_1v2>; > + > + reset-gpios = <&gpio GPIOE_4 GPIO_ACTIVE_LOW>; > + > + port { > + imx290_out: endpoint { > + data-lanes = <1 2 3 4>; > + link-frequencies = /bits/ 64 <222750000 148500000>; > + remote-endpoint = <&c3_mipi_csi_in>; > + }; > + }; > + }; > +}; > + > +&csi2 { > + status = "okay"; > + > + ports { > + port@0 { > + c3_mipi_csi_in: endpoint { > + remote-endpoint = <&imx290_out>; > + data-lanes = <1 2 3 4>; > + }; > + }; > + }; > +}; > + > +&adap { > + status = "okay"; > +}; > + > +&isp { > + status = "okay"; > +}; > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi > index cb9ea3ca6ee0..a62fd8534209 100644 > --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi > +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi > @@ -992,5 +992,93 @@ mdio0: mdio { > #size-cells = <0>; > }; > }; > + > + csi2: csi2@ff018000 { > + compatible = "amlogic,c3-mipi-csi2"; > + reg = <0x0 0xff018000 0x0 0x100>, > + <0x0 0xff019000 0x0 0x300>, > + <0x0 0xff01a000 0x0 0x100>; > + reg-names = "aphy", "dphy", "host"; > + power-domains = <&pwrc PWRC_C3_MIPI_ISP_WRAP_ID>; > + clocks = <&clkc_periphs CLKID_VAPB>, > + <&clkc_periphs CLKID_CSI_PHY0>; > + clock-names = "vapb", "phy0"; > + assigned-clocks = <&clkc_periphs CLKID_VAPB>, > + <&clkc_periphs CLKID_CSI_PHY0>; > + assigned-clock-rates = <0>, <200000000>; > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + }; > + > + port@1 { > + reg = <1>; > + c3_mipi_csi_out: endpoint { > + remote-endpoint = <&c3_adap_in>; > + }; > + }; > + }; > + }; > + > + adap: adap@ff010000 { > + compatible = "amlogic,c3-mipi-adapter"; > + reg = <0x0 0xff010000 0x0 0x100>, > + <0x0 0xff01b000 0x0 0x100>, > + <0x0 0xff01d000 0x0 0x200>; > + reg-names = "top", "fd", "rd"; > + power-domains = <&pwrc PWRC_C3_ISP_TOP_ID>; > + clocks = <&clkc_periphs CLKID_VAPB>, > + <&clkc_periphs CLKID_ISP0>; > + clock-names = "vapb", "isp0"; > + assigned-clocks = <&clkc_periphs CLKID_VAPB>, > + <&clkc_periphs CLKID_ISP0>; > + assigned-clock-rates = <0>, <400000000>; > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + c3_adap_in: endpoint { > + remote-endpoint = <&c3_mipi_csi_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + c3_adap_out: endpoint { > + remote-endpoint = <&c3_isp_in>; > + }; > + }; > + }; > + }; > + > + isp: isp@ff000000 { > + compatible = "amlogic,c3-isp"; > + reg = <0x0 0xff000000 0x0 0xf000>; > + reg-names = "isp"; > + power-domains = <&pwrc PWRC_C3_ISP_TOP_ID>; > + clocks = <&clkc_periphs CLKID_VAPB>, > + <&clkc_periphs CLKID_ISP0>; > + clock-names = "vapb", "isp0"; > + assigned-clocks = <&clkc_periphs CLKID_VAPB>, > + <&clkc_periphs CLKID_ISP0>; > + assigned-clock-rates = <0>, <400000000>; > + interrupts = ; > + status = "disabled"; > + > + port { > + c3_isp_in: endpoint { > + remote-endpoint = <&c3_adap_out>; > + }; > + }; > + }; > }; > }; > > --- > base-commit: 84b92a499e7eca54ba1df6f6c6e01766025943f1 > change-id: 20250731-b4-c3isp-16531391a1cb > > Best regards,