Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/arch/arm64/boot/dts/renesas/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 3 kB image not shown  

Quelle  rzg2l-smarc.dtsi   Sprache: unbekannt

 
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
 * Device Tree Source for the RZ/{G2L,V2L} SMARC EVK common parts
 *
 * Copyright (C) 2021 Renesas Electronics Corp.
 */

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>

/ {
 aliases {
  serial1 = &scif2;
  i2c3 = &i2c3;
 };

 osc1: cec-clock {
  compatible = "fixed-clock";
  #clock-cells = <0>;
  clock-frequency = <12000000>;
 };

 hdmi-out {
  compatible = "hdmi-connector";
  type = "d";

  port {
   hdmi_con_out: endpoint {
    remote-endpoint = <&adv7535_out>;
   };
  };
 };

 sound_card {
  compatible = "audio-graph-card";
  label = "HDMI-Audio";
  dais = <&i2s2_port>;
 };
};

&cpu_dai {
 sound-dai = <&ssi0>;
};

&dsi {
 status = "okay";

 ports {
  port@1 {
   dsi0_out: endpoint {
    data-lanes = <1 2 3 4>;
    remote-endpoint = <&adv7535_in>;
   };
  };
 };
};

&du {
 status = "okay";
};

&i2c1 {
 adv7535: hdmi@3d {
  compatible = "adi,adv7535";
  reg = <0x3d>;

  interrupts-extended = <&pinctrl RZG2L_GPIO(2, 1) IRQ_TYPE_EDGE_FALLING>;
  clocks = <&osc1>;
  clock-names = "cec";
  avdd-supply = <®_1p8v>;
  dvdd-supply = <®_1p8v>;
  pvdd-supply = <®_1p8v>;
  a2vdd-supply = <®_1p8v>;
  v3p3-supply = <®_3p3v>;
  v1p2-supply = <®_1p8v>;

  adi,dsi-lanes = <4>;

  ports {
   #address-cells = <1>;
   #size-cells = <0>;

   port@0 {
    reg = <0>;
    adv7535_in: endpoint {
     remote-endpoint = <&dsi0_out>;
    };
   };

   port@1 {
    reg = <1>;
    adv7535_out: endpoint {
     remote-endpoint = <&hdmi_con_out>;
    };
   };

   port@2 {
    reg = <2>;
    codec_endpoint: endpoint {
     remote-endpoint = <&i2s2_cpu_endpoint>;
    };
   };
  };
 };
};

#if PMOD0_GPT
&gpt {
 pinctrl-0 = <&gpt_pins>;
 pinctrl-names = "default";
 status = "okay";
};
#endif /* PMOD0_GPT */

&i2c3 {
 pinctrl-0 = <&i2c3_pins>;
 pinctrl-names = "default";
 clock-frequency = <400000>;

 status = "okay";

 wm8978: codec@1a {
  compatible = "wlf,wm8978";
  #sound-dai-cells = <0>;
  reg = <0x1a>;
 };

 versa3: clock-generator@68 {
  compatible = "renesas,5p35023";
  reg = <0x68>;
  #clock-cells = <1>;
  clocks = <&x1>;

  renesas,settings = [
   80 00 11 19 4c 02 23 7f 83 19 08 a9 5f 25 24 bf
   00 14 7a e1 00 00 00 00 01 55 59 bb 3f 30 90 b6
   80 b0 45 c4 95
  ];

  assigned-clocks = <&versa3 0>, <&versa3 1>,
      <&versa3 2>, <&versa3 3>,
      <&versa3 4>, <&versa3 5>;
  assigned-clock-rates = <24000000>, <11289600>,
           <11289600>, <12000000>,
           <25000000>, <12288000>;
 };
};

#if PMOD_MTU3
&mtu3 {
 pinctrl-0 = <&mtu3_pins>;
 pinctrl-names = "default";

 status = "okay";
};

#if MTU3_COUNTER_Z_PHASE_SIGNAL
/* SDHI cd pin is muxed with counter Z phase signal */
&sdhi1 {
 status = "disabled";
};
#endif /* MTU3_COUNTER_Z_PHASE_SIGNAL */

&spi1 {
 status = "disabled";
};
#endif /* PMOD_MTU3 */

/*
 * To enable SCIF2 (SER0) on PMOD1 (CN7)
 * SW1 should be at position 2->3 so that SER0_CTS# line is activated
 * SW2 should be at position 2->3 so that SER0_TX line is activated
 * SW3 should be at position 2->3 so that SER0_RX line is activated
 * SW4 should be at position 2->3 so that SER0_RTS# line is activated
 */
#if PMOD1_SER0
&scif2 {
 pinctrl-0 = <&scif2_pins>;
 pinctrl-names = "default";

 uart-has-rtscts;
 status = "okay";
};
#endif

&ssi0 {
 pinctrl-0 = <&ssi0_pins>;
 pinctrl-names = "default";

 status = "okay";
};

&ssi1 {
 pinctrl-0 = <&ssi1_pins>;
 pinctrl-names = "default";

 status = "okay";

 i2s2_port: port {
  i2s2_cpu_endpoint: endpoint {
   remote-endpoint = <&codec_endpoint>;
   dai-format = "i2s";

   bitclock-master = <&i2s2_cpu_endpoint>;
   frame-master = <&i2s2_cpu_endpoint>;
  };
 };
};

&vccq_sdhi1 {
 gpios = <&pinctrl RZG2L_GPIO(39, 1) GPIO_ACTIVE_HIGH>;
};

[ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet)  ]