mirror of https://gitee.com/openkylin/linux.git
331 lines
5.3 KiB
Plaintext
331 lines
5.3 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Device Tree Source for the iWave-RZ/G1H Qseven board development
|
|
* platform with camera daughter board
|
|
*
|
|
* Copyright (C) 2020 Renesas Electronics Corp.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "r8a7742-iwg21d-q7.dts"
|
|
|
|
/ {
|
|
model = "iWave Systems RZ/G1H Qseven development platform with camera add-on";
|
|
compatible = "iwave,g21d", "iwave,g21m", "renesas,r8a7742";
|
|
|
|
aliases {
|
|
serial0 = &scif0;
|
|
serial1 = &scif1;
|
|
serial3 = &scifb1;
|
|
serial5 = &hscif0;
|
|
ethernet1 = ðer;
|
|
};
|
|
|
|
mclk_cam1: mclk-cam1 {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <26000000>;
|
|
};
|
|
|
|
mclk_cam2: mclk-cam2 {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <26000000>;
|
|
};
|
|
|
|
mclk_cam3: mclk-cam3 {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <26000000>;
|
|
};
|
|
|
|
mclk_cam4: mclk-cam4 {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <26000000>;
|
|
};
|
|
};
|
|
|
|
&avb {
|
|
/* Pins shared with VIN0, keep status disabled */
|
|
status = "disabled";
|
|
};
|
|
|
|
&can0 {
|
|
pinctrl-0 = <&can0_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
ðer {
|
|
pinctrl-0 = <ðer_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
phy-handle = <&phy1>;
|
|
renesas,ether-link-active-low;
|
|
status = "okay";
|
|
|
|
phy1: ethernet-phy@1 {
|
|
reg = <1>;
|
|
micrel,led-mode = <1>;
|
|
};
|
|
};
|
|
|
|
&gpio0 {
|
|
/* Disable hogging GP0_18 to output LOW */
|
|
/delete-node/ qspi_en;
|
|
|
|
/* Hog GP0_18 to output HIGH to enable VIN2 */
|
|
vin2_en {
|
|
gpio-hog;
|
|
gpios = <18 GPIO_ACTIVE_HIGH>;
|
|
output-high;
|
|
line-name = "VIN2_EN";
|
|
};
|
|
};
|
|
|
|
&hscif0 {
|
|
pinctrl-0 = <&hscif0_pins>;
|
|
pinctrl-names = "default";
|
|
uart-has-rtscts;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c0 {
|
|
ov5640@3c {
|
|
compatible = "ovti,ov5640";
|
|
reg = <0x3c>;
|
|
clocks = <&mclk_cam1>;
|
|
clock-names = "xclk";
|
|
|
|
port {
|
|
ov5640_0: endpoint {
|
|
bus-width = <8>;
|
|
data-shift = <2>;
|
|
bus-type = <6>;
|
|
pclk-sample = <1>;
|
|
remote-endpoint = <&vin0ep>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c1 {
|
|
pinctrl-0 = <&i2c1_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
|
|
ov5640@3c {
|
|
compatible = "ovti,ov5640";
|
|
reg = <0x3c>;
|
|
clocks = <&mclk_cam2>;
|
|
clock-names = "xclk";
|
|
|
|
port {
|
|
ov5640_1: endpoint {
|
|
bus-width = <8>;
|
|
data-shift = <2>;
|
|
bus-type = <6>;
|
|
pclk-sample = <1>;
|
|
remote-endpoint = <&vin1ep>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c2 {
|
|
ov5640@3c {
|
|
compatible = "ovti,ov5640";
|
|
reg = <0x3c>;
|
|
clocks = <&mclk_cam3>;
|
|
clock-names = "xclk";
|
|
|
|
port {
|
|
ov5640_2: endpoint {
|
|
bus-width = <8>;
|
|
data-shift = <2>;
|
|
bus-type = <6>;
|
|
pclk-sample = <1>;
|
|
remote-endpoint = <&vin2ep>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c3 {
|
|
pinctrl-0 = <&i2c3_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
|
|
ov5640@3c {
|
|
compatible = "ovti,ov5640";
|
|
reg = <0x3c>;
|
|
clocks = <&mclk_cam4>;
|
|
clock-names = "xclk";
|
|
|
|
port {
|
|
ov5640_3: endpoint {
|
|
bus-width = <8>;
|
|
data-shift = <2>;
|
|
bus-type = <6>;
|
|
pclk-sample = <1>;
|
|
remote-endpoint = <&vin3ep>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&pfc {
|
|
can0_pins: can0 {
|
|
groups = "can0_data_d";
|
|
function = "can0";
|
|
};
|
|
|
|
ether_pins: ether {
|
|
groups = "eth_mdio", "eth_rmii";
|
|
function = "eth";
|
|
};
|
|
|
|
hscif0_pins: hscif0 {
|
|
groups = "hscif0_data", "hscif0_ctrl";
|
|
function = "hscif0";
|
|
};
|
|
|
|
i2c1_pins: i2c1 {
|
|
groups = "i2c1_c";
|
|
function = "i2c1";
|
|
};
|
|
|
|
i2c3_pins: i2c3 {
|
|
groups = "i2c3";
|
|
function = "i2c3";
|
|
};
|
|
|
|
scif0_pins: scif0 {
|
|
groups = "scif0_data";
|
|
function = "scif0";
|
|
};
|
|
|
|
scif1_pins: scif1 {
|
|
groups = "scif1_data";
|
|
function = "scif1";
|
|
};
|
|
|
|
scifb1_pins: scifb1 {
|
|
groups = "scifb1_data";
|
|
function = "scifb1";
|
|
};
|
|
|
|
vin0_8bit_pins: vin0 {
|
|
groups = "vin0_data8", "vin0_clk", "vin0_sync";
|
|
function = "vin0";
|
|
};
|
|
|
|
vin1_8bit_pins: vin1 {
|
|
groups = "vin1_data8_b", "vin1_clk_b", "vin1_sync_b";
|
|
function = "vin1";
|
|
};
|
|
|
|
vin2_pins: vin2 {
|
|
groups = "vin2_g8", "vin2_clk";
|
|
function = "vin2";
|
|
};
|
|
|
|
vin3_pins: vin3 {
|
|
groups = "vin3_data8", "vin3_clk", "vin3_sync";
|
|
function = "vin3";
|
|
};
|
|
};
|
|
|
|
&qspi {
|
|
/* Pins shared with VIN2, keep status disabled */
|
|
status = "disabled";
|
|
};
|
|
|
|
&scif0 {
|
|
pinctrl-0 = <&scif0_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&scif1 {
|
|
pinctrl-0 = <&scif1_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&scifb1 {
|
|
pinctrl-0 = <&scifb1_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
|
|
rts-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
|
|
cts-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
&vin0 {
|
|
/*
|
|
* Set SW2 switch on the SOM to 'ON'
|
|
* Set SW1 switch on camera board to 'OFF' as we are using 8bit mode
|
|
*/
|
|
status = "okay";
|
|
pinctrl-0 = <&vin0_8bit_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
port {
|
|
vin0ep: endpoint {
|
|
remote-endpoint = <&ov5640_0>;
|
|
bus-width = <8>;
|
|
bus-type = <6>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&vin1 {
|
|
/* Set SW1 switch on the SOM to 'ON' */
|
|
status = "okay";
|
|
pinctrl-0 = <&vin1_8bit_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
port {
|
|
vin1ep: endpoint {
|
|
remote-endpoint = <&ov5640_1>;
|
|
bus-width = <8>;
|
|
bus-type = <6>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&vin2 {
|
|
status = "okay";
|
|
pinctrl-0 = <&vin2_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
port {
|
|
vin2ep: endpoint {
|
|
remote-endpoint = <&ov5640_2>;
|
|
bus-width = <8>;
|
|
data-shift = <8>;
|
|
bus-type = <6>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&vin3 {
|
|
status = "okay";
|
|
pinctrl-0 = <&vin3_pins>;
|
|
pinctrl-names = "default";
|
|
|
|
port {
|
|
vin3ep: endpoint {
|
|
remote-endpoint = <&ov5640_3>;
|
|
bus-width = <8>;
|
|
bus-type = <6>;
|
|
};
|
|
};
|
|
};
|